#lookbook {
  --album-paper: var(--silk, #f3ede4);
  --album-ink: var(--ink, #26181f);
  --album-ash: var(--pencil, #5f4e55);
  --album-claret: var(--cherry, #8c2946);
  --album-bordeaux: var(--bordeaux, #311924);
  --album-silver: #cfc4b7;
  --album-pale: #fffaf2;
  background: var(--album-paper);
  color: var(--album-ink);
  padding: clamp(60px, 7vw, 118px) var(--gutter, 5vw) clamp(56px, 6.5vw, 108px);
  scroll-margin-top: 12px;
  overflow-x: clip;
}
#lookbook .ar-inner { max-width: var(--max-shell, 1520px); margin: auto; }

#lookbook .ar-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--album-silver);
}
#lookbook .ar-heading { min-width: 0; max-width: 100%; }
#lookbook .ar-kicker {
  margin: 0 0 8px;
  font: 600 10px/1.3 var(--sans, sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--album-claret);
}
#lookbook h2, #lookbook h3 { color: var(--album-ink); margin: 0; font-weight: 400; }
#lookbook h2 {
  font: 400 clamp(54px, 6.2vw, 108px)/.86 var(--display, Georgia, serif);
  letter-spacing: -.05em;
  white-space: nowrap;
  max-width: 100%;
}
#lookbook h2 em { color: var(--album-claret); font-style: italic; }
#lookbook h2 sup {
  display: inline-block;
  margin-left: .4em;
  vertical-align: top;
  font: 500 clamp(12px, .95vw, 16px)/1.3 var(--mono, monospace);
  color: var(--album-ash);
}

#lookbook .ar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px clamp(14px, 1.8vw, 28px);
  min-width: 0;
  max-width: 100%;
}
#lookbook .ar-filters button {
  min-height: 38px;
  border: none;
  border-bottom: 1.5px solid transparent;
  padding: 6px 0;
  color: var(--album-ash);
  background: transparent;
  font: 500 13px/1.25 var(--sans, sans-serif);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
#lookbook .ar-filters button:is(:hover, [aria-pressed=true]) {
  color: var(--album-claret);
  border-color: currentColor;
}
#lookbook .ar-filters button[aria-pressed=true] { font-weight: 700; }

#lookbook .ar-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .86fr);
  gap: clamp(28px, 5.4vw, 88px);
  align-items: stretch;
}
#lookbook .ar-main, #lookbook .ar-notes, #lookbook .ar-study { min-width: 0; }

#lookbook .ar-print, #lookbook .ar-macro {
  position: relative;
  overflow: clip;
  background: #23141c;
}
#lookbook .ar-print {
  aspect-ratio: 1.12;
  cursor: crosshair;
  user-select: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
#lookbook .ar-print.motion-active { cursor: default; }
#lookbook .ar-print.is-dragging:not(.motion-active),
#lookbook .ar-print:active:not(.motion-active) { cursor: grabbing; }

#lookbook .ar-photo-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

#lookbook .ar-photo,
#lookbook .ar-plate-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#lookbook .ar-photo {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  transition: opacity .36s cubic-bezier(.22, 1, .36, 1), transform .48s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
#lookbook .ar-photo.no-trans { transition: none !important; }
#lookbook .ar-photo.is-entering {
  opacity: 0;
  transform: scale(1.028);
}

#lookbook .ar-plate-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#lookbook .ar-print.motion-active .ar-plate-video {
  opacity: 1;
  pointer-events: auto;
}
#lookbook .ar-print.motion-active .ar-lens { opacity: 0; }

/* Mode Switch inside Plate */
#lookbook .ar-mode-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  background: rgb(23 14 20 / .72);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(255 250 242 / .24);
  padding: 3px;
  gap: 2px;
}
#lookbook .ar-mode-bar button {
  padding: 6px 11px;
  font: 600 10px/1.1 var(--sans, sans-serif);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(255 250 242 / .78);
  transition: background .2s, color .2s;
}
#lookbook .ar-mode-bar button[aria-pressed="true"] {
  background: var(--album-pale);
  color: var(--album-ink);
}

/* Interactive Loupe Reticle */
#lookbook .ar-lens {
  position: absolute;
  inset: 0 auto auto 0;
  pointer-events: none;
  z-index: 3;
  border: 1px solid rgb(255 250 242 / .24);
  box-shadow: inset 0 0 0 1px rgb(23 14 20 / .16);
  transition: opacity .25s ease;
}
#lookbook .ar-lens::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgb(255 250 242 / .82);
  box-shadow: 0 0 3px rgb(23 14 20 / .85);
  transform: translate(-50%, -50%);
}
#lookbook .ar-print.is-gliding .ar-lens {
  transition: opacity .25s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
@keyframes ar-lens-ping {
  0% { border-color: rgb(255 250 242 / .85); box-shadow: inset 0 0 0 1px rgb(23 14 20 / .24), 0 0 0 0 rgb(255 250 242 / .48); }
  100% { border-color: rgb(255 250 242 / .24); box-shadow: inset 0 0 0 1px rgb(23 14 20 / .16), 0 0 0 10px rgb(255 250 242 / 0); }
}
#lookbook .ar-lens.lens-ping {
  animation: ar-lens-ping .42s cubic-bezier(.22, 1, .36, 1);
}
#lookbook .ar-lens i {
  position: absolute;
  width: 11px;
  height: 11px;
  border: solid var(--album-pale);
  filter: drop-shadow(0 0 2px #170e14);
}
#lookbook .ar-lens i:nth-child(1) { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
#lookbook .ar-lens i:nth-child(2) { top: -1px; right: -1px; border-width: 1.5px 1.5px 0 0; }
#lookbook .ar-lens i:nth-child(3) { bottom: -1px; left: -1px; border-width: 0 0 1.5px 1.5px; }
#lookbook .ar-lens i:nth-child(4) { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* Main Caption & Circular Plate Stepping Controls */
#lookbook .ar-main-caption,
#lookbook .ar-study-caption,
#lookbook .ar-finish {
  margin: 0;
  font: 600 10px/1.2 var(--sans, sans-serif);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--album-ash);
}
#lookbook .ar-main-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 44px;
  padding-top: 10px;
}
#lookbook .ar-plate-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
#lookbook .ar-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgb(38 24 31 / .22);
  background: rgb(255 250 242 / .58);
  color: var(--album-ink);
  display: grid;
  place-items: center;
  font: 400 14px/1 var(--sans, sans-serif);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, opacity .2s ease;
}
#lookbook .ar-step-btn:hover:not(:disabled) {
  background: var(--album-bordeaux);
  color: var(--album-pale);
  border-color: var(--album-bordeaux);
}
#lookbook .ar-step-btn:active:not(:disabled) { transform: scale(.93); }
#lookbook .ar-step-btn:disabled { opacity: .34; cursor: default; }

#lookbook .ar-plate {
  font: 600 10.5px/1.2 var(--mono, monospace);
  font-variant-numeric: tabular-nums;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--album-ink);
  min-width: 11.5ch;
  text-align: center;
  white-space: nowrap;
}
#lookbook .ar-help-label {
  letter-spacing: .04em;
  text-transform: none;
  color: var(--album-ash);
}

#lookbook .ar-study-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}
#lookbook .ar-magnification { font-family: var(--mono, monospace); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* Editorial Notes & Service Pairing */
#lookbook .ar-notes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block-start: clamp(6px, 1.4vw, 24px);
  gap: 22px;
}
@keyframes ar-note-settle {
  from { opacity: .45; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
#lookbook .ar-caption.is-settling {
  animation: ar-note-settle .34s cubic-bezier(.22, 1, .36, 1) both;
}
#lookbook .ar-finish { color: var(--album-claret); }
#lookbook .ar-name {
  font: italic 400 clamp(38px, 4.8vw, 84px)/.95 var(--display, Georgia, serif);
  letter-spacing: -.045em;
  margin: 10px 0 12px;
  text-wrap: balance;
}
#lookbook .ar-description {
  max-width: 38ch;
  margin: 0 0 14px;
  color: var(--album-ash);
  font: 400 15px/1.58 var(--sans, sans-serif);
}

/* Matched Service Card inside Lookbook */
#lookbook .ar-service-match {
  padding: 14px 16px;
  background: var(--linen, #e6ddd1);
  border-left: 2px solid var(--album-claret);
  margin: 0 0 16px;
}
#lookbook .ar-service-match small {
  display: block;
  font: 600 9px/1.2 var(--sans, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--album-claret);
  margin-bottom: 4px;
}
#lookbook .ar-service-match strong {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  font: 600 14px/1.3 var(--sans, sans-serif);
  color: var(--album-ink);
}
#lookbook .ar-service-match em {
  font: 600 13px/1 var(--mono, monospace);
  font-style: normal;
  color: var(--album-claret);
  white-space: nowrap;
}
#lookbook .ar-service-match p {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--album-ash);
}

#lookbook .ar-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
#lookbook .ar-book-look {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 18px;
  background: var(--album-bordeaux);
  color: var(--album-pale);
  font: 600 12.5px/1.2 var(--sans, sans-serif);
  transition: background .2s, transform .15s;
}
#lookbook .ar-book-look:hover { background: var(--album-claret); }
#lookbook .ar-book-look:active { transform: scale(.98); }

#lookbook .ar-ask-look,
#lookbook .ar-open,
#lookbook .ar-share-look {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  color: var(--album-claret);
  border-bottom: 1px solid currentColor;
  font: 600 12.5px/1.3 var(--sans, sans-serif);
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
#lookbook .ar-open { color: var(--album-ink); border-color: var(--album-silver); }
#lookbook .ar-open:hover { color: var(--album-claret); border-color: var(--album-claret); }

#lookbook .ar-share-look {
  color: var(--album-ash);
  border-color: var(--album-silver);
}
#lookbook .ar-share-look:hover,
#lookbook .ar-share-look.copied {
  color: var(--album-claret);
  border-color: var(--album-claret);
}
#lookbook .ar-share-ico {
  width: 13px;
  height: 13px;
  flex: none;
}
#lookbook .ar-ico-check { display: none; }
#lookbook .ar-share-look.copied .ar-ico-link { display: none; }
#lookbook .ar-share-look.copied .ar-ico-check { display: block; }

/* Macro Detail Study (strict paint containment prevents phantom overflow) */
#lookbook .ar-macro {
  width: 100%;
  aspect-ratio: 2.25;
  contain: paint;
  overflow: clip;
}
#lookbook .ar-macro img {
  display: block;
  position: absolute;
  inset: 0 auto auto 0;
  max-width: none;
  opacity: 1;
  transition: opacity .32s cubic-bezier(.22, 1, .36, 1);
}
#lookbook .ar-macro.is-entering img { opacity: .18; }
#lookbook .ar-macro.is-gliding img {
  transition: opacity .32s cubic-bezier(.22, 1, .36, 1), transform .28s cubic-bezier(.22, 1, .36, 1);
}

/* 10-Plate Thumbnail Contact Sheet */
#lookbook .ar-index {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: start;
  gap: clamp(6px, 1.1vw, 16px);
  padding-block: clamp(18px, 2.2vw, 32px) 4px;
  margin-top: clamp(14px, 1.8vw, 26px);
  border-top: 1px solid var(--album-silver);
}
#lookbook .ar-index[hidden] { display: none; }
#lookbook .ar-sample {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 0;
  background: transparent;
  color: var(--album-ash);
  font: 500 clamp(10px, .82vw, 12.5px)/1.25 var(--sans, sans-serif);
  text-align: left;
  cursor: pointer;
}
#lookbook .ar-sample > span:last-child { overflow-wrap: break-word; }
#lookbook .ar-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #23141c;
}
#lookbook .ar-sample img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  opacity: .74;
  transition: opacity .2s ease, transform .3s ease;
}
#lookbook .ar-sample:is(:hover, [aria-pressed=true]) img { opacity: 1; transform: scale(1.03); }
#lookbook .ar-film-pill {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  background: rgb(23 14 20 / .78);
  color: #fffaf2;
  font: 600 8px/1.1 var(--mono, monospace);
  letter-spacing: .06em;
}
#lookbook .ar-sample[aria-pressed=true] { color: var(--album-claret); font-weight: 700; }
#lookbook .ar-sample[aria-pressed=true] .ar-thumb-wrap { outline: 2px solid var(--album-claret); outline-offset: 2px; }
#lookbook .ar-sr { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }

@media (pointer: coarse) {
  #lookbook .ar-step-btn { width: 36px; height: 36px; }
}

/* Mid Tablets & Compact Laptops (820px–1024px): preserve graceful 2-column spread */
@media (max-width: 1024px) and (min-width: 820px) {
  #lookbook .ar-spread {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(22px, 3.6vw, 42px);
  }
  #lookbook .ar-main {
    display: flex;
    flex-direction: column;
  }
  #lookbook .ar-print {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 380px;
  }
  #lookbook .ar-name { font-size: clamp(36px, 4.4vw, 54px); }
  #lookbook .ar-description { font-size: 14px; }
  #lookbook .ar-macro { aspect-ratio: 2.1; }
  #lookbook .ar-index {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 12px;
  }
  #lookbook .ar-sample { font-size: 11.5px; }
}

/* Small Tablets (< 820px) & Phones: single-column editorial stack + snap contact sheet */
@media (max-width: 819px) {
  #lookbook .ar-spread { grid-template-columns: 1fr; gap: 26px; }
  #lookbook .ar-notes { padding-block-start: 0; }
  #lookbook .ar-print { aspect-ratio: 1.05; }
  #lookbook .ar-step-btn { width: 36px; height: 36px; }
  #lookbook .ar-index {
    grid-template-columns: none;
    grid-auto-columns: minmax(84px, 16%);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-inline: 4px;
    padding-bottom: 8px;
    margin-inline: -4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--album-silver) transparent;
    -webkit-overflow-scrolling: touch;
  }
  #lookbook .ar-sample { scroll-snap-align: start; }
}

@media (max-width: 600px) {
  #lookbook { padding-block: 44px; }
  #lookbook h2 { font-size: clamp(40px, 12vw, 68px); }
  #lookbook .ar-print { aspect-ratio: .92; }
  #lookbook .ar-macro { aspect-ratio: 1.85; }
  #lookbook .ar-index { grid-auto-columns: 76px; gap: 10px; }
}

@media (max-width: 430px) {
  #lookbook .ar-header { gap: 14px 20px; padding-bottom: 16px; }
  #lookbook .ar-filters { gap: 2px 14px; }
  #lookbook .ar-filters button { min-height: 36px; font-size: 12.5px; }
  #lookbook .ar-cta-row { gap: 10px 14px; }
}

@media (max-width: 360px) {
  #lookbook h2 { font-size: clamp(34px, 11vw, 38px); }
  #lookbook .ar-name { font-size: clamp(34px, 10.5vw, 38px); }
  #lookbook .ar-filters { gap: 2px 12px; }
  #lookbook .ar-filters button { font-size: 12px; }
  #lookbook .ar-main-caption { gap: 6px 10px; }
  #lookbook .ar-plate-nav { gap: 8px; }
  #lookbook .ar-step-btn { width: 34px; height: 34px; }
  #lookbook .ar-help-label { font-size: 9.5px; }
}

/* Short Phone Landscape (e.g. 844×390) */
@media (max-height: 520px) and (orientation: landscape) {
  #lookbook { padding-block: 32px; }
  #lookbook .ar-header { margin-bottom: 20px; padding-bottom: 14px; }
  #lookbook .ar-spread { gap: 20px; }
}

/* Dual-Screen Foldable Devices (Surface Duo spanned mode) */
@media (horizontal-viewport-segments: 2) {
  #lookbook .ar-spread {
    gap: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0) + 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #lookbook *, #lookbook *::before, #lookbook *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
