/* =========================================================
   Oakley brand page (global tokens live in style.css)
   Technical and athletic: black, tight caps, an electric accent.
   ========================================================= */

:root { --ok-black: #0b0c0d; --ok-ink: #16181a; --ok-volt: #d7ff3a; --ok-grey: #8b9095; }

.ok-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ok-grey); }
.ok-title { margin-top: 12px; font-family: var(--font-body); font-weight: 700; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.ok-head { margin-bottom: clamp(28px, 4vw, 48px); }
.ok-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Story ---------- */
.ok-story { background: var(--ok-black); color: #f2f3f4; padding-block: clamp(72px, 10vw, 140px); }
.ok-story .ok-title { color: #fff; max-width: 12ch; }
.ok-story .ok-kicker { color: var(--ok-volt); }
.ok-story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ok-story__copy p { font-size: 16px; line-height: 1.8; color: #c9cdd1; }
.ok-story__copy p + p { margin-top: 16px; }
.ok-story__copy p:last-child { color: #fff; }

/* ---------- Timeline ---------- */
.ok-time { background: var(--ok-ink); color: #fff; border-top: 1px solid #2a2d30; }
.ok-time__list { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 0; }
.ok-time__list li { position: relative; padding: clamp(28px, 4vw, 44px) 20px clamp(28px, 4vw, 44px) 0; border-left: 1px solid #2a2d30; padding-left: 20px; }
.ok-time__list li:first-child { border-left: 0; padding-left: 0; }
.ok-time__list li::before { content: ""; position: absolute; top: -1px; left: 20px; width: 28px; height: 3px; background: var(--ok-volt); }
.ok-time__list li:first-child::before { left: 0; }
.ok-time__list span { display: block; font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.ok-time__list p { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #aeb3b8; max-width: 22ch; }

/* ---------- Technology ---------- */
.ok-tech { background: #f3f4f5; }
.ok-tech__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.ok-tech__card {
  position: relative; padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 28px) clamp(28px, 3vw, 40px);
  background: #fff; border-top: 3px solid var(--ok-black); transition: transform .5s var(--ease-out), box-shadow .5s;
}
.ok-tech__card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.4); }
.ok-tech__card--prizm { background: linear-gradient(135deg, #1b1f3a 0%, #3b1e5a 35%, #0d6e6e 70%, #b5d22f 100%); color: #fff; border-top-color: var(--ok-volt); }
.ok-tech__card.ok-tech__card--prizm p { color: rgba(255,255,255,.9); }
.ok-tech__no { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--ok-grey); }
.ok-tech__card--prizm .ok-tech__no { color: var(--ok-volt); }
.ok-tech__card h3 { margin: 14px 0 10px; font-family: var(--font-body); font-weight: 700; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; }
.ok-tech__card p { font-size: 14px; line-height: 1.6; color: #4a4f54; }

/* ---------- Collection ---------- */
.ok-switch { display: inline-flex; border: 0; padding: 0; margin: 0; background: #e6e8ea; border-radius: 999px; padding: 4px; }
.ok-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ok-switch label { padding: 11px 22px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: background .3s, color .3s; }
.ok-switch input:checked + label { background: var(--ok-black); color: #fff; }
.ok-switch input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }

.ok-prods { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.ok-coll:has(#ok-type-sun:checked) .ok-prods--sun, .ok-coll:has(#ok-type-opt:checked) .ok-prods--opt { display: grid; }
.ok-prods li { animation: okIn .5s var(--ease-out) both; }
.ok-prods li:nth-child(2) { animation-delay: .05s; } .ok-prods li:nth-child(3) { animation-delay: .1s; }
.ok-prods li:nth-child(4) { animation-delay: .15s; } .ok-prods li:nth-child(5) { animation-delay: .2s; } .ok-prods li:nth-child(6) { animation-delay: .25s; }
@keyframes okIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ok-prod { padding: 18px 18px 22px; background: #fff; border: 1px solid #e3e5e7; transition: border-color .3s; }
.ok-prod:hover { border-color: var(--ok-black); }
.ok-prod__img { aspect-ratio: 2 / 1; overflow: hidden; }
.ok-prod__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease-out); }
.ok-prod:hover .ok-prod__img img { transform: scale(1.06) rotate(-1deg); }
.ok-prod__code { margin-top: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ok-grey); }
.ok-prod__name { margin-top: 4px; font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .01em; }
.ok-note { margin-top: 24px; font-size: 13.5px; color: var(--ink-soft); max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ok-tech__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ok-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ok-story__grid { grid-template-columns: 1fr; }
  .ok-time__list { grid-template-columns: repeat(2, 1fr); }
  .ok-time__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ok-time__list li:nth-child(odd)::before { left: 0; }
}
@media (max-width: 560px) {
  .ok-tech__grid, .ok-prods { grid-template-columns: 1fr; }
  .ok-time__list { grid-template-columns: 1fr; }
  .ok-time__list li { border-left: 0; padding-left: 0; }
  .ok-time__list li::before { left: 0; }
}
@media (prefers-reduced-motion: reduce) { .ok-prods li { animation: none; } }
