/* The home page, section by section. */
section { position: relative; }

/* 1. Hero */
.motion .hero { height: 350svh; }
.hero__stage {
  position: relative; display: flex; flex-direction: column; overflow: clip;
  height: calc(100svh - var(--top-h) - 36px); min-height: 560px; padding: clamp(14px, 3vh, 34px) var(--gut) 92px; background: var(--paper);
}
.motion .hero__stage { position: sticky; inset-block-start: var(--top-h); }
.hero__copy { position: relative; z-index: 3; text-align: center; }
.hero__kicker { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-block-end: 4px; }
@media (min-width: 1000px) { .hero__copy .ln { display: inline-block; vertical-align: top; } }

/* The frame is 3:2 with white air around the glasses, so it may run behind the copy. */
.hero__media {
  position: absolute; z-index: 1; inset-block-start: 50%; left: 50%;
  aspect-ratio: 3 / 2; height: min(88%, 74vw); translate: -50% -50%; margin-block-start: 3vh;
}
.hero__pair { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero__pair + .hero__pair { display: none; }
.motion .hero__pair + .hero__pair { display: block; visibility: hidden; }
@media (max-width: 899px) { .hero__media { height: auto; width: 118vw; margin-block-start: 0; inset-block-start: 55%; } }

.hero__words {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none;
  mix-blend-mode: multiply; padding-block-end: 4vh;
}
.hero__word {
  grid-area: 1 / 1; font-family: var(--f-display); font-size: clamp(84px, 19vw, 320px); line-height: 1;
  letter-spacing: -0.04em; color: var(--mist-2); white-space: nowrap; opacity: 0;
}
.hero__word.is-long { font-size: clamp(64px, 13vw, 220px); }
@media (max-width: 400px) { .hero__word.is-long { font-size: 15.5vw; } }

.hero__foot { position: relative; z-index: 3; margin-block-start: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hero__lede { max-width: 76ch; margin: 8px auto 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 374px) { .hero__copy h1 { font-size: 30px; } .hero__lede { font-size: 15px; } }
@media (min-width: 900px) {
  .hero__stage { padding-block-end: clamp(18px, 3vh, 32px); }
  .hero__lede { font-size: 17px; }
}

/* It lies over the buttons of the opening, so a press has to pass through it. */
.hero__caps { position: absolute; inset-inline: var(--gut); inset-block-end: 22px; z-index: 3; display: none; pointer-events: none; }
.motion .hero__caps { display: grid; }
.hero__caps li { grid-area: 1 / 1; display: grid; justify-items: center; text-align: center; gap: 1px; opacity: 0; }
.hero__caps b { font: 400 var(--t-s)/1.15 var(--f-display); }
.hero__caps span { color: var(--ink-2); font-size: 16px; }
.hero__caps i { font-style: normal; font-weight: 600; font-size: 17px; }
@media (max-width: 899px) { .hero__caps { inset-block-end: 88px; } }
@media (min-width: 900px) { .hero__caps li { justify-items: start; text-align: start; } }

/* 2. Brand strip */
.brands { overflow: clip; padding-block: clamp(14px, 2vw, 26px); }
.brands__track { display: flex; width: max-content; align-items: center; gap: clamp(32px, 5vw, 80px); }
.motion .brands__track { animation: drift 70s linear infinite; }
.brands span { font: 400 clamp(22px, 2.6vw, 36px)/1.2 var(--f-display); letter-spacing: -0.015em; color: var(--ink-2); white-space: nowrap; }
@keyframes drift { to { transform: translateX(-50%); } }

/* 3. Promos */
.promos { padding: clamp(36px, 5.5vw, 80px) clamp(14px, 3.4vw, 56px) clamp(14px, 3.4vw, 56px); }
.promos h2 { max-width: 22ch; margin-block-end: clamp(24px, 3.6vw, 48px); }
.promos__grid { display: grid; gap: clamp(12px, 1.4vw, 20px); }
@media (min-width: 900px) { .promos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promo .spin { margin-block-start: auto; }
.promo {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: clamp(400px, 40vw, 600px);
  background: var(--paper); border-radius: var(--r-m); padding: clamp(22px, 2.8vw, 40px); text-decoration: none; overflow: hidden;
}
.promo__copy p:not(.brandline) { color: var(--ink-2); margin-block: 8px 12px; max-width: 42ch; }
.promo h3 { font-size: var(--t-s); margin-block-start: 4px; }
.promo img { width: 100%; margin: auto auto 0; }

/* 4. About */
.about { padding-block: clamp(64px, 10vw, 150px) 0; }
.about__copy { max-width: 900px; margin-inline: auto; padding-inline: var(--gut); text-align: center; }
.about__text { font: 400 var(--t-m)/1.34 var(--f-text); margin-block: 24px 26px; letter-spacing: -0.012em; text-wrap: pretty; }
.about__media { margin-block-start: clamp(40px, 6vw, 80px); overflow: clip; aspect-ratio: 16 / 9; max-height: 92svh; width: 100%; transform-origin: 50% 0; border-radius: 0; background: var(--mist); }
.about__media video { width: 100%; height: 100%; object-fit: cover; }
.about__text .wd { transition: none; }

/* 5. Brands: real variation per cell, then a tighter run of the rest */
.cats { padding: clamp(14px, 1.4vw, 20px) clamp(10px, 1.2vw, 18px); }
.cats__grid { display: grid; gap: clamp(10px, 1.2vw, 18px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; text-decoration: none;
  background: var(--mist); border-radius: var(--r-m); padding: clamp(16px, 2vw, 28px); min-height: 230px;
}
.cat h3 { font-size: var(--t-m); }
.cat p { color: var(--ink-2); font-size: 15px; }
.cat .link { font-size: 15px; margin-block-start: 6px; }
.cat figure { position: relative; aspect-ratio: 2 / 1; margin-block-start: 8px; }
.cat figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity 240ms var(--ui); }
.cat figure img + img { opacity: 0; }
.cat--a, .cat--b { grid-column: span 2; }
@media (hover: hover) { .cat:hover figure img:first-child, .mini:hover img:first-child { opacity: 0; } .cat:hover figure img + img, .mini:hover img + img { opacity: 1; } }
@media (min-width: 900px) {
  .cats__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cat { grid-column: span 4; min-height: 320px; }
  .cat--a { grid-column: span 7; min-height: 460px; }
  .cat--b { grid-column: span 5; min-height: 460px; }
  .cat--a figure, .cat--b figure { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; width: 74%; aspect-ratio: 2 / 1; }
  .cat--a figure { aspect-ratio: 3 / 2; width: 66%; }
}
.minis { display: grid; gap: clamp(10px, 1.2vw, 18px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: clamp(10px, 1.2vw, 18px); }
@media (min-width: 640px) { .minis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .minis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mini { position: relative; display: block; height: 100%; background: var(--mist); border-radius: 16px; padding: 12px 14px 12px; text-decoration: none; }
.mini figure { position: relative; aspect-ratio: 2 / 1; }
.mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity 240ms var(--ui); }
.mini img + img { opacity: 0; }
.mini h3 { font-size: var(--t-xs); margin-block-start: 6px; }
.mini p { color: var(--ink-2); font-size: 14px; }
.mini--all { display: grid; place-items: center; background: var(--ink); color: #fff; min-height: 120px; }
.mini--all .link { font-size: 15px; background-size: 0 0; }
@media (min-width: 400px) { .mini--all .link { white-space: nowrap; } }

/* 6. Shapes */
.feat { margin-block-start: clamp(14px, 1.4vw, 20px); }
.motion .feat { height: 300svh; }
.feat__stage { padding: clamp(32px, 4.6vw, 64px) clamp(16px, 4vw, 64px); display: grid; gap: clamp(16px, 2.6vw, 36px); }
.motion .feat__stage { position: sticky; inset-block-start: var(--top-h); height: calc(100svh - var(--top-h)); align-content: center; overflow: clip; }
@media (max-width: 899px) { .motion .feat__stage { padding-block: 12px; gap: 10px; } .motion .feat__list li { padding-block: 7px; } }
.feat__head h2 { max-width: 12ch; margin-block-start: 6px; }
.feat__media { position: relative; display: grid; gap: 12px; }
.feat__media img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; border-radius: var(--r-m); background: var(--paper); }
.motion .feat__media img { grid-area: 1 / 1; opacity: 0; transition: opacity 360ms var(--ui); }
.motion .feat__media img.is-on { opacity: 1; }
.feat__list { display: grid; gap: 4px; }
.feat__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding-block: 10px; border-block-start: 1px solid var(--line); }
.feat__list p { grid-column: 1 / -1; }
.feat__list .chip { background: var(--paper); min-height: 40px; padding-inline: 14px; font-size: 14px; }
.feat__list li.is-on .chip { background: var(--accent); color: #fff; }
.feat__list h3 { font-size: var(--t-s); }
.feat__list p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.motion .feat__list h3 { transition: color 240ms var(--ui); }
.motion .feat__list li:not(.is-on) h3 { color: var(--ink-2); }
/* Hidden from the eye only: a screen reader never reaches the scroll position that opens it. */
.motion .feat__list li:not(.is-on) p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 900px) {
  .feat__stage { grid-template-columns: 4fr 8fr; grid-template-rows: auto 1fr; column-gap: clamp(32px, 5vw, 80px); }
  .feat__head { grid-column: 1; grid-row: 1; }
  .feat__list { grid-column: 1; grid-row: 2; align-content: start; }
  .feat__media { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* 7. Smart glasses, and the shared switcher */
.metaline { padding: clamp(64px, 9vw, 130px) var(--gut) clamp(40px, 6vw, 80px); }
.metaline__head { max-width: 780px; margin-block-end: clamp(20px, 3vw, 40px); }
.metaline__head p { color: var(--ink-2); margin-block-start: 12px; max-width: 54ch; }
.sw.is-swapping .sw__stage video { opacity: 0; transform: scale(0.985); }
.sw__stage video { transition: opacity 180ms var(--ui), transform 180ms var(--ui); }
.sw__go { justify-self: start; font-size: 15px; margin-block: 2px 12px; }
.vary__now { font-weight: 500; font-size: 15px; text-align: center; margin-block: 2px 8px; min-height: 1.65em; }
.vary__frames { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-block-end: 10px; }
.vary__frames .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.vary__colours { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; padding: 7px 7px 8px; scrollbar-width: thin; }
.vary__colours button { flex: none; width: 92px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 160ms var(--ui); }
.vary__colours button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.vary__colours img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
@media (hover: hover) { .vary__colours button:hover { box-shadow: inset 0 0 0 2px var(--ink-2); } }
.sw--rail .sw__go { display: flex; width: fit-content; margin-inline: auto; }
.sw__list { display: grid; }
.sw__item { display: grid; width: 100%; gap: 0 16px; align-items: baseline; text-align: start; padding-block: 13px; border-block-start: 1px solid var(--line); color: var(--ink-2); transition: color 160ms var(--ui); }
.sw__item b { font: 400 var(--t-s)/1.2 var(--f-display); color: var(--ink); }
.sw__item span { font-size: 15px; line-height: 1.45; }
.sw__item.is-on { box-shadow: inset 0 2px 0 var(--accent); color: var(--ink); }
.sw__item.is-on b { color: var(--accent); }
@media (hover: hover) { .sw__item:hover b { color: var(--accent); } }
.metaline__all { margin-block-start: 22px; }
@media (max-width: 899px) { [data-vary] .sw__show { order: -1; } [data-vary] { display: flex; flex-direction: column; } }
@media (min-width: 900px) {
  .sw:not(.sw--rail) { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 64px); align-items: center; }
  .sw:not(.sw--rail) .sw__show { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
  .sw:not(.sw--rail) .sw__list { grid-column: 1; grid-row: 1; }
  .sw:not(.sw--rail) .sw__go { grid-column: 1; grid-row: 2; align-self: start; margin-block-start: 12px; }
  }

/* 9. Eyeglasses */
.optic { padding: clamp(40px, 6vw, 88px) clamp(14px, 3.4vw, 56px) clamp(24px, 3.6vw, 56px); margin-block-start: clamp(14px, 1.4vw, 20px); }
.optic__head { max-width: 760px; margin-block-end: clamp(22px, 3.2vw, 44px); }
.optic__head h2 { margin-block: 6px 12px; }
.optic__head p:last-child { color: var(--ink-2); max-width: 56ch; }
.optic__grid { display: grid; gap: clamp(12px, 1.4vw, 20px); }
@media (min-width: 760px) { .optic__grid { grid-template-columns: 1fr 1fr; } }
.optic__item { display: block; background: var(--paper); border-radius: var(--r-m); padding: clamp(14px, 2vw, 28px); text-decoration: none; }
.optic__item img { width: 100%; }
.optic__item p { color: var(--ink-2); }

/* 10. Lenses */
.lens { display: grid; gap: clamp(24px, 4vw, 64px); padding: clamp(64px, 9vw, 130px) var(--gut); align-items: start; }
@media (min-width: 900px) { .lens { grid-template-columns: 7fr 5fr; } .lens__visual { position: sticky; inset-block-start: calc(var(--top-h) + 6vh); } }
.lens__frame { position: relative; aspect-ratio: 1280 / 690; }
.lens__frame img, .lens__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens__frame canvas { opacity: 0; }
.lens__frame canvas.is-ready { opacity: 1; }
.lens__scale { display: flex; align-items: center; gap: 12px; font-weight: 500; margin-block-start: 8px; }
.lens__scale i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.lens__scale i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.lens__copy > p:not(.lens__note) { color: var(--ink-2); margin-block: 14px 22px; max-width: 54ch; }
.lens__types > div { padding-block: 14px; border-block-start: 1px solid var(--line); }
.lens__types dt { font: 400 var(--t-s)/1.2 var(--f-display); }
.lens__types dd { color: var(--ink-2); }
.lens__steps { counter-reset: s; margin-block: 14px 12px; display: grid; gap: 6px; }
.lens__steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; font-size: 16px; }
.lens__steps li::before { content: counter(s); font-family: var(--f-display); color: var(--accent); }
.lens__note { font-size: 15px; color: var(--ink-2); margin-block-end: 18px; }
.lens__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* 11. Our own smart line */
.line { padding: clamp(40px, 6vw, 88px) clamp(14px, 3.4vw, 56px) clamp(24px, 3.6vw, 56px); }
.line__head { text-align: center; max-width: 820px; margin-inline: auto; }
.line__head p { color: var(--ink-2); margin-block-start: 12px; }
.sw--rail .sw__stage { background: var(--paper); border-radius: var(--r-m); margin-block: clamp(20px, 3vw, 40px) 12px; padding-inline: clamp(0px, 16vw, 300px); }
.sw--rail .sw__list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-block: 4px 12px; scrollbar-width: thin; }
.sw--rail .sw__list li { flex: 0 0 clamp(190px, 21vw, 280px); scroll-snap-align: start; }
.sw--rail .sw__item { height: 100%; background: var(--paper); border: 0; border-radius: 16px; padding: 10px 14px 14px; align-content: start; }
.sw--rail .sw__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.sw--rail .sw__item b { font-size: var(--t-xs); }
.sw--rail .sw__item span { font-size: 14px; }
.sw--rail .sw__item.is-on { box-shadow: inset 0 0 0 2px var(--accent); }

/* 12. Sport */
.oak { display: grid; gap: 20px; padding: var(--t-xl) var(--gut); align-items: center; }
@media (min-width: 900px) { .oak { grid-template-columns: 5fr 7fr; } .oak__copy { order: -1; } }
.oak__img img { width: 100%; }
.oak__copy h2 { margin-block: 6px 14px; }
.oak__copy > p:last-of-type { color: var(--ink-2); max-width: 46ch; margin-block-end: 22px; }
.oak__links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }

/* 13. Kids and designer houses */
.extras { display: grid; gap: clamp(12px, 1.4vw, 20px); padding-inline: var(--gut); }
@media (min-width: 900px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra { background: var(--mist); border-radius: var(--r-m); overflow: hidden; }
.extra img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; mix-blend-mode: multiply; }
.extra > div { padding: clamp(16px, 2vw, 28px); }
.extra p { color: var(--ink-2); margin-block-start: 6px; }

/* 14. The classics */
.top-products { padding: clamp(64px, 9vw, 130px) var(--gut) clamp(48px, 7vw, 96px); }
.top-products h2 { margin-block-end: 18px; }
.tabs__row { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: clamp(10px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); padding-block-end: 12px; }
.tabs__row::-webkit-scrollbar { display: none; }
.tabs__row .pcard { scroll-snap-align: start; }
@media (min-width: 640px) { .tabs__row { grid-auto-columns: 38%; } }
@media (min-width: 900px) { .tabs__row { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; } }
.tabs__all { margin-block-start: 8px; }

/* 15. FAQ */
.faq { display: grid; gap: 22px; padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 64px); }
@media (min-width: 900px) { .faq { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); } }
.faq header p { color: var(--ink-2); margin-block-start: 12px; }

/* 16. Guides */
.guides { display: grid; gap: 18px; padding: clamp(40px, 6vw, 80px) var(--gut) clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .guides { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); } }
.guides h2 { font-size: var(--t-m); }
.guides header p { color: var(--ink-2); margin-block-start: 10px; }
.guides a { display: block; padding-block: 14px; border-block-start: 1px solid var(--line); text-decoration: none; font-size: 18px; font-weight: 500; }
@media (hover: hover) { .guides a:hover { color: var(--accent); } }

/* 17. Service */
.service { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding: 0 var(--gut) clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .service { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.service h3 { font-size: var(--t-xs); margin-block-end: 4px; }
.service p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* The shop: filters above a plain grid */
.shop { padding: clamp(24px, 4vw, 56px) var(--gut) clamp(48px, 7vw, 96px); }
.shop__head { max-width: 720px; margin-block-end: 20px; }
.shop__head p { color: var(--ink-2); margin-block-start: 10px; }
.filters { display: grid; gap: 8px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip[aria-current] { background: var(--ink); color: #fff; }
.results { color: var(--ink-2); font-size: 15px; margin-block: 16px 10px; min-height: 1.65em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px) clamp(10px, 1.4vw, 20px); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard[hidden] { display: none; }
.empty { padding-block: 48px; text-align: center; color: var(--ink-2); }
