/* =========================================================
   Ray-Ban Meta brand page (global tokens live in style.css)
   Dark, technical: near-black with a cool electric accent.
   ========================================================= */

:root { --mt-bg: #0b0d12; --mt-panel: #151922; --mt-line: rgba(255, 255, 255, .12); --mt-accent: #5aa9ff; --mt-grey: #f2f2f2; }

.mt-kicker { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--mt-accent); }
.mt-left { text-align: left; }

/* ---------- Intro hero ---------- */
.mt-hero { position: relative; background: var(--mt-bg); color: #fff; overflow: hidden; }
.mt-hero__media { aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; }
.mt-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 18, 0) 35%, rgba(11, 13, 18, .92) 88%); pointer-events: none; }
.mt-hero__copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 64px); z-index: 1; }
.mt-hero__copy > p:not([class]) { max-width: 560px; font-size: 15.5px; line-height: 1.7; opacity: .88; }
.mt-title { margin: 10px 0 16px; font-family: var(--font-body); font-weight: 700; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; }

/* ---------- Features ---------- */
.mt-feats { background: var(--mt-bg); color: #fff; }
.mt-feats .section__title { color: #fff; }
.mt-feats .eyebrow { color: var(--mt-accent); }
.mt-feat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--mt-line); border: 1px solid var(--mt-line); list-style: none; padding: 0; }
.mt-feat { padding: clamp(22px, 3vw, 36px); background: var(--mt-bg); transition: background .4s; }
.mt-feat:hover { background: var(--mt-panel); }
.mt-feat__n { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--mt-accent); }
.mt-feat h3 { margin: 14px 0 10px; font-family: var(--font-body); font-weight: 700; font-size: 21px; }
.mt-feat p { font-size: 14px; line-height: 1.65; opacity: .78; }
.mt-note { margin-top: 18px; font-size: 12px; line-height: 1.5; opacity: .6; }

/* ---------- Collection ---------- */
.mt-switch { display: flex; justify-content: center; border: 0; padding: 4px; margin: 0 auto clamp(28px, 4vw, 44px); width: max-content; max-width: 100%; border-radius: 999px; background: #e4e6ea; }
.mt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mt-switch label {
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  transition: background .3s, color .3s;
}
.mt-switch input:checked + label { background: var(--mt-bg); color: #fff; }
.mt-switch input:focus-visible + label { outline: 2px solid var(--mt-accent); outline-offset: 2px; }

.mt-prods { display: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; padding: 0; }
.mt-coll:has(#mt-type-g3:checked) .mt-prods--g3,
.mt-coll:has(#mt-type-old:checked) .mt-prods--old { display: grid; }
.mt-prods li { animation: mtIn .6s var(--ease-out) both; }
.mt-prods li:nth-child(2) { animation-delay: .06s; } .mt-prods li:nth-child(3) { animation-delay: .12s; }
.mt-prods li:nth-child(4) { animation-delay: .18s; } .mt-prods li:nth-child(5) { animation-delay: .24s; }
@keyframes mtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mt-prod__img { position: relative; border-radius: 14px; background: var(--mt-grey); overflow: hidden; }
.mt-prod__img img { display: block; width: 100%; height: auto; transition: transform .9s var(--ease-out); }
.mt-prod:hover .mt-prod__img img { transform: scale(1.06); }
.mt-prod__tag { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 999px; background: var(--mt-bg); color: #fff; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; letter-spacing: .06em; }
.mt-prod__name { margin-top: 12px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.mt-prod__colour { margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.mt-time { background: var(--mt-bg); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.mt-time__list { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; }
.mt-time__list li { position: relative; padding: 26px clamp(12px, 2vw, 28px) 0 0; border-top: 1px solid var(--mt-line); }
.mt-time__list li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--mt-accent); box-shadow: 0 0 0 6px rgba(90, 169, 255, .15); }
.mt-time__list span { display: block; font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -.02em; }
.mt-time__list p { margin-top: 10px; font-size: 14px; line-height: 1.6; opacity: .78; max-width: 32ch; }

/* ---------- Fitting ---------- */
.mt-fit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mt-feat-list { grid-template-columns: 1fr 1fr; }
  .mt-fit__grid { grid-template-columns: 1fr; }
  .mt-hero__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .mt-hero__media { aspect-ratio: auto; height: 300px; }
  .mt-hero::after { display: none; }
  .mt-hero__copy { position: static; padding-block: 28px 40px; }
  .mt-time__list { grid-template-columns: 1fr; row-gap: 28px; }
}
@media (max-width: 560px) {
  .mt-feat-list { grid-template-columns: 1fr; }
  .mt-switch label { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-prods li { animation: none; }
}
