/* =========================================================
   Oliver Peoples brand page (global tokens live in style.css)
   Warm Los Angeles light: sun-faded sand, tortoiseshell browns, film credits.
   ========================================================= */

:root { --opl-brown: #2b2119; --opl-sand: #efe6d8; --opl-tan: #b8875a; --opl-cream: #f8f3ea; }

.opl-kicker { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--opl-tan); }
.opl-title { margin: 10px 0 22px; font-family: var(--font-title); font-weight: 300; font-style: italic; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; color: var(--ink); }
.opl-title--light { color: var(--opl-cream); }
.opl-story .eyebrow { color: var(--opl-tan); }

/* ---------- On screen (film credits) ---------- */
.opl-screen { background: var(--opl-brown); color: var(--opl-cream); padding-block: clamp(72px, 9vw, 130px); }
.opl-screen__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.opl-screen__intro { font-size: 15px; line-height: 1.75; color: rgba(248, 243, 234, .72); max-width: 34ch; }
.opl-credits { list-style: none; padding: 0; margin: 0; }
.opl-credits li {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid rgba(248, 243, 234, .14);
}
.opl-credits li:first-child { border-top: 1px solid rgba(248, 243, 234, .14); }
.opl-credits__year { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--opl-tan); }
.opl-credits__title { font-family: var(--font-title); font-weight: 300; font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.opl-credits__who { font-size: 12px; letter-spacing: .08em; text-align: right; color: rgba(248, 243, 234, .7); }

/* ---------- Collection ---------- */
.opl-switch { display: flex; justify-content: center; gap: 8px; border: 0; padding: 0; margin: 0 auto clamp(28px, 4vw, 44px); }
.opl-switch input { position: absolute; opacity: 0; pointer-events: none; }
.opl-switch label { padding: 11px 22px; border: 1px solid var(--opl-tan); border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--opl-brown); transition: background .3s, color .3s; }
.opl-switch input:checked + label { background: var(--opl-brown); border-color: var(--opl-brown); color: var(--opl-cream); }
.opl-switch input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 3px; }
.opl-prods { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); list-style: none; padding: 0; }
.opl-coll:has(#opl-type-sun:checked) .opl-prods--sun, .opl-coll:has(#opl-type-eye:checked) .opl-prods--eye { display: grid; }
.opl-prods li { animation: oplIn .7s var(--ease-out) both; }
.opl-prods li:nth-child(2) { animation-delay: .05s; } .opl-prods li:nth-child(3) { animation-delay: .1s; } .opl-prods li:nth-child(4) { animation-delay: .15s; }
.opl-prods li:nth-child(5) { animation-delay: .2s; } .opl-prods li:nth-child(6) { animation-delay: .25s; } .opl-prods li:nth-child(7) { animation-delay: .3s; } .opl-prods li:nth-child(8) { animation-delay: .35s; }
@keyframes oplIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.opl-prod__img { aspect-ratio: 2 / 1; overflow: hidden; background: #fff; }
.opl-prod__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease-out); }
.opl-prod:hover .opl-prod__img img { transform: scale(1.06); }
.opl-prod__name { margin-top: 14px; font-family: var(--font-title); font-weight: 300; font-size: 22px; line-height: 1.15; }
.opl-prod__desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.opl-note { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Campaign strip ---------- */
.opl-campaign { display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; gap: 4px; background: var(--opl-brown); }
.opl-campaign figure { margin: 0; height: clamp(260px, 34vw, 520px); overflow: hidden; }
.opl-campaign img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.opl-campaign figure:hover img { transform: scale(1.04); }

/* ---------- Collaborations ---------- */
.opl-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); list-style: none; padding: 0; }
.opl-card { padding-bottom: 6px; border-bottom: 1px solid var(--gold-soft); }
.opl-card__img { aspect-ratio: 2 / 1; overflow: hidden; background: #fff; }
.opl-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease-out); }
.opl-card:hover .opl-card__img img { transform: scale(1.06); }
.opl-card__year { margin-top: 16px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--opl-tan); }
.opl-card__title { margin: 6px 0 8px; font-family: var(--font-title); font-weight: 300; font-size: 25px; line-height: 1.1; }
.opl-card p:not([class]) { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.opl-past { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; margin-top: clamp(44px, 6vw, 72px); padding: 24px 0; border-block: 1px solid var(--gold-soft); }
.opl-past__label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.opl-past ul { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; }
.opl-past li { font-family: var(--font-title); font-weight: 300; font-size: 21px; }
.opl-past li span { margin-right: 6px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--opl-tan); vertical-align: middle; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .opl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .opl-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .opl-screen__grid { grid-template-columns: 1fr; }
  .opl-campaign { grid-template-columns: 1fr 1fr; }
  .opl-campaign figure:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .opl-credits li { grid-template-columns: 52px minmax(0, 1fr); }
  .opl-credits__who { grid-column: 2; text-align: left; }
  .opl-cards { grid-template-columns: 1fr 1fr; }
  .opl-prods { gap: 14px; }
  .opl-past li { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .opl-prods li { animation: none; } }
