:root {
  color-scheme: dark;
  --background: #10131c;
  --panel: #171c2a;
  --border: #313849;
  --text: #f5f7ff;
  --muted: #b5bed2;
  --accent: #b0c6ff;
  font-family: Inter, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section, figure { scroll-margin-top: 2rem; }

.wrap { width: min(calc(100% - 6rem), 82rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: .75rem; letter-spacing: .23em; font-weight: 750; }
.brand-mark { position: relative; overflow: hidden; width: 66px; height: 32px; mix-blend-mode: lighten; }
.brand-mark img { position: absolute; width: 95px; height: auto; left: -16px; top: -22px; }
nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.4rem); font-size: .9rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--muted); }
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .45em; }

.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(29rem, 48vw, 42rem);
  margin-top: clamp(1rem, 3vw, 3rem);
  border: 1px solid var(--border);
  border-radius: .8rem;
  overflow: hidden;
  background: #101520;
}
.home-photo { position: absolute; inset-block: 0; right: 0; z-index: -2; width: 84%; height: 100%; object-fit: cover; object-position: 63% center; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101520 15%, #101520f0 28%, #10152080 55%, transparent 82%); }
.home-intro { max-width: 53rem; padding: clamp(2rem, 5.25vw, 5rem); }
.home-intro h1 { margin: 0; max-width: 15ch; font-size: clamp(3.25rem, 6vw, 6.25rem); }
.home-intro h1 span { display: inline; color: var(--accent); }
.home-intro .lede { color: #e0e6f4; max-width: 31ch; }

.featured, .collection { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.featured > h2 { margin-top: 0; margin-bottom: 1.3rem; }
.page-intro h1 { margin-top: 0; }
.page-intro .lede { max-width: 48ch; }
.collection .preset-grid { margin-top: 2.2rem; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.preset-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: .7rem; background: var(--panel); }
.preset-card:only-child { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr; }
.preset-card:hover { border-color: var(--accent); }
.preset-card > img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 56%; }
.preset-card-copy { align-self: center; padding: clamp(1.3rem, 4vw, 3rem); }
.preset-card-copy h2, .preset-card-copy h3 { margin: 0; font-size: clamp(1.65rem, 3.15vw, 3rem); line-height: 1.08; letter-spacing: -.045em; }
.preset-card-copy p { margin-top: .65rem; color: var(--muted); line-height: 1.6; }
.card-link { display: inline-block; margin-top: 1.15rem; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(2rem, 8vw, 7rem); align-items: center; padding-block: clamp(2.5rem, 7vw, 7rem); }
.about-logo { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: .75rem; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.65rem; }
.about-actions a { margin-top: 0; }
.back-link { display: inline-block; margin-top: 2rem; color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }

.hero { display: grid; grid-template-columns: minmax(0, .79fr) minmax(0, 1.21fr); gap: clamp(1.2rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 6.4vw, 6.5rem); }
.product-hero { padding-top: clamp(2rem, 4vw, 3.8rem); }
.eyebrow { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
h1, h2 { font-weight: 760; letter-spacing: -.065em; }
h1 { font-size: clamp(2.95rem, 5.55vw, 6.05rem); line-height: .97; margin-top: 1.15rem; }
h1 span { display: block; }
h1 span + span { color: var(--accent); }
.byline { font-size: .95rem; color: var(--muted); margin-top: 1.25rem; }
.byline a { text-decoration: underline; text-underline-offset: .28em; }
.lede, .look p:not(.eyebrow) { margin-top: 1.4rem; font-size: 1.07rem; line-height: 1.65; color: var(--muted); max-width: 34ch; }
.button { display: inline-flex; align-items: center; min-height: 3rem; margin-top: 1.65rem; padding: .7rem 1.2rem; border-radius: .35rem; background: var(--accent); color: #141c33; font-weight: 750; }
.button:hover { background: #d1dfff; }

.comparison { min-width: 0; border-radius: .8rem; background: var(--panel); border: 1px solid var(--border); }
.compare-frame { --position: 50%; position: relative; aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate; border-radius: .75rem .75rem 0 0; background: #1d253a; }
.compare-frame:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.compare-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.before-image { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.photo-label { position: absolute; top: .8rem; padding: .32rem .56rem; border: 1px solid #fff7; border-radius: .24rem; background: #0b1019e8; color: white; font-size: .875rem; line-height: 1.2; font-weight: 650; }
.photo-label-before { left: .8rem; }
.photo-label-after { right: .8rem; }
.divider { position: absolute; inset-block: 0; left: var(--position); width: 2px; translate: -50% 0; background: white; pointer-events: none; }
.grip { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 2.65rem; height: 2.65rem; display: flex; align-items: center; justify-content: center; gap: .22rem; border: 2px solid white; border-radius: 50%; background: #101725e8; }
.grip i { width: .44rem; height: .44rem; border: solid white; border-width: 0 2px 2px 0; rotate: 135deg; }
.grip i + i { rotate: -45deg; }
.compare-frame[data-view='before'] .photo-label-after,
.compare-frame[data-view='after'] .photo-label-before,
.compare-frame[data-view='before'] .divider,
.compare-frame[data-view='after'] .divider { visibility: hidden; }
.compare-input { position: absolute; inset: 0; appearance: none; width: 100%; height: 100%; margin: 0; border: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-input::-webkit-slider-thumb { appearance: none; width: 2px; height: 2px; }
.compare-input::-moz-range-thumb { width: 2px; height: 2px; border: 0; }
.compare-caption { min-height: 3.75rem; padding: .65rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; color: var(--muted); font-size: .875rem; }
.view-options { display: inline-flex; gap: .15rem; border: 1px solid var(--border); border-radius: .35rem; padding: .14rem; }
.view-options button { background: transparent; color: var(--muted); border: 0; border-radius: .24rem; padding: .38rem .55rem; }
.view-options button:hover { color: var(--text); }
.view-options button[aria-pressed='true'] { background: #2c3959; color: var(--text); }

.look { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); border-top: 1px solid var(--border); padding-block: clamp(2.6rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.65rem); line-height: 1.06; margin-top: .65rem; }
.adjustments > div { display: grid; grid-template-columns: 5rem 1fr; gap: .7rem; padding: .95rem 0; border-bottom: 1px solid var(--border); line-height: 1.55; }
.adjustments dt { color: var(--text); font-weight: 700; }
.adjustments dd { color: var(--muted); }
.purchase { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; background: var(--panel); border-radius: .65rem; border: 1px solid var(--border); padding: clamp(1.35rem, 3.5vw, 3rem); }
.purchase h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); }
.availability { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 2.75rem; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: .35rem; color: var(--muted); font-size: .95rem; }
.footer { color: var(--muted); font-size: .875rem; margin-top: 1.55rem; border-top: 1px solid var(--border); }

@media (max-width: 58rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  h1 { font-size: clamp(3rem, 10vw, 5.5rem); }
  .lede { max-width: 52ch; }
}

@media (max-width: 40rem) {
  .home-hero { min-height: 0; }
  .home-photo { position: static; height: auto; width: 100%; aspect-ratio: 16 / 10; }
  .home-hero::before { content: none; }
  .home-intro { padding: 1.5rem 1.15rem 1.65rem; }
  .home-intro h1 { font-size: clamp(2.25rem, 9vw, 3.9rem); }
  .home-intro .lede { margin-top: .9rem; }
  .home-intro .button { margin-top: 1.1rem; }
  .preset-card:only-child, .about { grid-template-columns: minmax(0, 1fr); }
  .about-logo { max-width: 27rem; }
}

@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.8rem; }
  .brand { gap: .35rem; }
  nav { gap: .75rem; }
  .look { grid-template-columns: 1fr; }
  .purchase { align-items: flex-start; flex-direction: column; }
  .compare-caption { padding-inline: .55rem; }
  .view-options button { padding-inline: .4rem; }
}

@media (max-width: 23rem) {
  .brand { gap: .25rem; }
  .brand > span:last-child { letter-spacing: .1em; }
  nav { gap: .5rem; }
}
