@font-face { font-family: "Inter"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/Inter-ExtraLight.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/Inter-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
/* Visual in place: tokens, base, components */
:root {
  --bg: #090909; --band: #161616; --img: #1c1c1c; --img2: #303030;
  --line: #333333; --line2: #404040; --mid: #999999; --text: #ffffff;
  --btn: #ffffff; --btn-text: #000000; --panel: rgba(36,36,36,.9); --hover: rgba(255,255,255,.07);
  --ease: cubic-bezier(.22,1,.36,1);
  --pad: 40px; --gap: 24px; --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html[data-theme="light"] {
  --bg: #f6f6f6; --band: #e9e9e9; --img: #e3e3e3; --img2: #cfcfcf;
  --line: #cccccc; --line2: #bfbfbf; --mid: #666666; --text: #000000;
  --btn: #000000; --btn-text: #ffffff; --panel: rgba(222,222,222,.9); --hover: rgba(0,0,0,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: none; margin: 0; }
.muted { color: var(--mid); }
.label { font-size: 13px; color: var(--mid); }
.h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 400; }
.h2 { font-size: 48px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 400; }
.h3 { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 400; }
.band { background: var(--band); }
.section { padding-top: 96px; padding-bottom: 96px; }
.strike { text-decoration: line-through; color: var(--mid); }

/* Header */
.header { position: relative; z-index: 20; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo svg { width: 34px; height: 22px; display: block; }
.logo path { fill: var(--text); }
.nav { display: flex; gap: 32px; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--mid); }
.menu-btn { display: none; background: none; border: 0; font-size: 14px; cursor: pointer; }

/* Mobile menu */
.menu { position: fixed; inset: 0; background: var(--bg); z-index: 60; display: none; flex-direction: column; padding: 0 16px 32px; }
.menu.open { display: flex; }
.menu .top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.menu .big { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; font-size: 40px; letter-spacing: -0.03em; }
.menu .small { margin-top: auto; display: flex; flex-direction: column; gap: 10px; color: var(--mid); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 45px; padding: 0 22px; border-radius: var(--radius); background: var(--btn); color: var(--btn-text); border: 1px solid var(--btn); font-size: 14px; cursor: pointer; transition: opacity .2s; white-space: nowrap; }
.btn:hover { opacity: .85; }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.secondary:hover { border-color: var(--text); opacity: 1; }
.btn.full { width: 100%; }
.ulink { display: inline-flex; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--text); font-size: 15px; font-weight: 500; }
.ulink:hover { color: var(--mid); border-color: var(--mid); }
.chip { height: 32px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line2); background: transparent; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; }
.chip.active { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.chip[disabled] { color: var(--mid); cursor: default; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Product card */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px var(--gap); }
.card { display: block; }
.card .img { position: relative; aspect-ratio: 437 / 546; background: var(--img); overflow: hidden; }
.card .img span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; color: var(--mid); }
.card .img .alt { background: var(--img2); opacity: 0; transition: opacity .35s; }
.card:hover .img .alt { opacity: 1; }
.card .cap { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.card .cap .price { color: var(--mid); }
.ph { background: var(--img); display: grid; place-items: center; font-size: 11px; color: var(--mid); }

/* Fixed search bar */
.fade { position: fixed; left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(to bottom, transparent, var(--bg) 85%); pointer-events: none; z-index: 30; transition: opacity .35s; }
.sbar { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40; transition: opacity .35s, transform .35s; }
.sbar.hide, .fade.hide { opacity: 0; pointer-events: none; }
.sbar.hide { transform: translate(-50%, 20px); }
.spanel { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line2); border-radius: 20px; padding: 14px 22px; }
.pair { display: flex; align-items: center; gap: 12px; font-size: 28px; letter-spacing: -0.02em; }
.pair .br { font-size: 44px; line-height: 1; font-weight: 300; }
.pair .grp { display: flex; align-items: center; gap: 8px; }
.pair button.scope { background: none; border: 0; cursor: pointer; font-size: inherit; }
.pair input { background: none; border: 0; outline: none; width: calc(var(--chars) * 0.5em + 6px); font-size: inherit; letter-spacing: inherit; }
input[type=search]::-webkit-search-cancel-button { display: none; }
.pair input::placeholder { color: var(--mid); }
.cats { display: none; margin-bottom: 10px; padding: 8px; }
.cats.open { display: block; }
.cats a, .cats button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: var(--radius); background: none; border: 0; cursor: pointer; font-size: 15px; }
.cats a:hover, .cats button:hover, .cats .on { background: var(--img); }
.cats .soon { color: var(--mid); }

/* Footer */
.footer { background: var(--band); padding: 96px 0 40px; margin-top: 0; }
.fsearch { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-bottom: 120px; }
.fsearch .pair { font-size: 40px; }
.fsearch .pair .br { font-size: 72px; }

.fcols { display: grid; grid-template-columns: repeat(3, 160px) 1fr 180px 220px; gap: 24px; font-size: 15px; }
.fcols h4 { font-size: 13px; font-weight: 400; color: var(--mid); margin-bottom: 14px; }
.fcols a { display: block; margin-bottom: 6px; }
.fcols a:hover { color: var(--mid); }
.theme { text-align: right; }
.theme button { background: none; border: 0; cursor: pointer; font-size: 15px; }
.theme .off { color: var(--mid); }
.copy { font-size: 13px; color: var(--mid); margin-top: 14px; text-align: right; }

/* Toast (used instead of browser alerts) */
.toast { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); background: var(--btn); color: var(--btn-text); padding: 12px 18px; border-radius: var(--radius); font-size: 14px; z-index: 90; opacity: 0; transition: opacity .3s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; }

/* Mock checkout */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal .box { background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 32px; width: 420px; max-width: 100%; }
.modal .box h3 { font-weight: 400; font-size: 24px; margin: 6px 0 12px; }
.modal .row { display: flex; gap: 8px; margin-top: 24px; }

@media (max-width: 760px) {
  :root { --pad: 16px; }
  .header .wrap { height: 64px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 32px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card .cap { font-size: 13px; flex-direction: column; gap: 2px; }
  .sbar { bottom: 16px; }
  .pair { font-size: 20px; gap: 8px; }
  .pair .br { font-size: 32px; }
  .fade { height: 200px; }
  .footer { padding-top: 56px; }
  .fsearch { padding-bottom: 64px; }
  .fsearch .pair { font-size: 24px; }
  .fsearch .pair .br { font-size: 44px; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .fcols .spacer { display: none; }
  .theme, .copy { text-align: left; }
}

/* ---------- Round 2: motion, sticky nav, search, cards ---------- */
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
::selection { background: var(--text); color: var(--bg); }
a, button { transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease); }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }

/* Sticky header: follows the scroll, gains a blurred ground once you scroll */
.header { position: sticky; top: 0; z-index: 50; transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease); }
.header.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.header .wrap { transition: height .4s var(--ease); }
.header.scrolled .wrap { height: 64px; }
.nav a { position: relative; }
/* N1 Bracket hug */
.nav { position: relative; gap: 30px; padding: 0 12px; }
.nav a { color: var(--mid); z-index: 1; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .bk { position: absolute; top: 50%; height: 22px; transform: translateY(-50%); opacity: 0; pointer-events: none;
  transition: left .55s var(--ease), width .55s var(--ease), opacity .3s var(--ease); }
.nav .bk.on { opacity: 1; }
.nav .bk::before, .nav .bk::after { position: absolute; top: 50%; transform: translateY(-54%); font-size: 20px; font-weight: 300; line-height: 1; color: var(--text); }
.nav .bk::before { content: "["; left: -11px; } .nav .bk::after { content: "]"; right: -11px; }

/* Search: smaller, no stroke, dropdown floats above without resizing anything */
.searchwrap { position: relative; }
.spanel { border: 0; background: var(--panel); border-radius: 16px; }
.sbar .spanel.pair { padding: 8px 18px; }
.pair { font-size: 22px; gap: 10px; }
.pair .br { font-size: 34px; }
.fsearch .pair { font-size: 30px; }
.fsearch .pair .br { font-size: 54px; }
.cats { display: block; position: absolute; left: 50%; bottom: calc(100% + 10px); width: max(100%, 260px); padding: 6px; margin: 0;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.98); transform-origin: bottom center;
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s; z-index: 5; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.cats.open { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.cats a, .cats button { font-size: 15px; padding: 9px 12px; border-radius: 10px; }
.cats a:hover, .cats button:hover, .cats .on { background: var(--hover); }
.pair button.scope:hover { color: var(--mid); }

/* Cards: slow zoom on hover, softer image swap */
.zoom { overflow: hidden; }
.zoom > span:first-child, .card .img span { transition: transform 1.1s var(--ease), opacity .6s var(--ease); }
.card:hover .img > span:first-child, .mcard:hover .zoom > span:first-child, .split:hover .zoom > span:first-child { transform: scale(1.04); }
.ph.zoom > span { position: absolute; inset: 0; display: grid; place-items: center; background: var(--img); }
.ph.zoom { position: relative; }
.card .img .alt { transition: opacity .6s var(--ease); }
.card .cap span:first-child { transition: transform .5s var(--ease); }
.grid.wide .card .img { aspect-ratio: 3 / 2; }
.btn { transition: transform .35s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease); }
.btn:active { transform: scale(.98); }

/* Reveal on scroll and page fade */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
#main.pagein { animation: pagein .6s var(--ease) both; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal .box { transition: transform .4s var(--ease), opacity .3s var(--ease); }
.modal:not(.open) .box { transform: translateY(12px); opacity: 0; }
.menu { transition: opacity .4s var(--ease); }
.menu.open .big a { animation: menuin .7s var(--ease) both; }
.menu.open .big a:nth-child(2) { animation-delay: .06s; } .menu.open .big a:nth-child(3) { animation-delay: .12s; }
@keyframes menuin { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .pair { font-size: 18px; gap: 8px; }
  .pair .br { font-size: 28px; }
  .fsearch .pair { font-size: 22px; }
  .fsearch .pair .br { font-size: 40px; }
  .header.scrolled .wrap { height: 56px; }
}
/* Motion polish (QA 2026-11-26) */
#main.pageout { opacity: 0; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}


/* Floating search bar: one bracket pair (S3, IMF 2026-11-25) */
.sbar .one { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border: 0; border-radius: 10px; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.sbar .one .br { font-size: 28px; line-height: 1; font-weight: 300; }
.sbar .one .scope { background: none; border: 0; cursor: pointer; font-size: inherit; color: var(--text); padding: 0 2px; transition: color .2s; }
.sbar .one .scope:hover { color: var(--mid); }
.sbar .one .dv { width: 1px; height: 20px; background: var(--line2); }
.sbar .one input { background: none; border: 0; outline: none; font-size: inherit; letter-spacing: inherit; width: 150px; }
.sbar .one input::placeholder { color: var(--mid); }
@media (max-width: 760px) { .sbar .one { height: 46px; font-size: 15px; } .sbar .one input { width: 120px; } }

/* Search bar docks into the footer (IMF 2026-11-25) */
.sbar { bottom: auto; top: 0; transition: opacity .35s; will-change: top; }
.sbar.hide { transform: translateX(-50%); }
.fslot { width: 265px; height: 50px; }
.sbar.docked .spanel.one { background: var(--panel); }

/* Search categories: chip bar above the search (IMF 2026-11-26) */
.cats { width: auto; max-width: min(92vw, 1120px); padding: 8px; border-radius: 10px; overflow: hidden; }
.cats .cbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.cats .cbar::-webkit-scrollbar { display: none; }
.cats .cbar.enter { opacity: 0; transform: translateX(10px); }
.cats .cchip { flex: none; width: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; background: none; border: 0; box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; color: var(--text); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.cats .cchip:hover { background: var(--hover); }
.cats .cchip.on { background: var(--btn); color: var(--btn-text); box-shadow: none; }
.cats .cchip.grp span { color: var(--mid); font-size: 12px; }
.cats .cchip.on span { color: inherit; }
.cats .cchip.soon { color: var(--mid); box-shadow: inset 0 0 0 1px var(--line); }
.cats .cchip.back { color: var(--mid); box-shadow: none; padding-left: 6px; }
@media (max-width: 760px) { .cats .cchip { height: 34px; padding: 0 12px; font-size: 13px; } }

/* First visit intro: logo to nav (E3) */
.intro { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: background-color .6s var(--ease) .45s; pointer-events: none; }
.intro .ilogo { display: block; width: 136px; height: 87px; transform-origin: 0 0; transition: transform 1s var(--ease); }
.intro .ilogo svg { width: 100%; height: 100%; fill: var(--text); display: block; }
.intro.go { background-color: transparent; }
.intro-on .header .logo { opacity: 0; }
.intro-on #main, .intro-on .sbar { opacity: 0; }
#main, .sbar { transition: opacity .6s var(--ease); }

/* Welcome note (E6) */
.welcome { position: fixed; left: 24px; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 16px; border-radius: 10px; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 14px; transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.welcome.on { transform: none; opacity: 1; }
.welcome a { display: flex; align-items: center; gap: 6px; }
.welcome button { background: none; border: 0; color: var(--mid); cursor: pointer; padding: 4px 8px; font-size: 13px; }
.bcta.sm { font-size: 14px; }
.bcta.sm b { font-size: 22px; }
.bcta.sm span { padding: 0 6px; }
.replay { background: none; border: 0; color: var(--mid); font-size: 12px; cursor: pointer; margin-top: 8px; padding: 0; text-decoration: underline; }
@media (max-width: 760px) { .welcome { left: 16px; right: 16px; bottom: 76px; justify-content: space-between; } }
@media (max-width: 760px) { .cats .cbar { -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; } }

/* Drop-up second row (IMF 2026-11-26) */
.cats .csub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.cats .csub > .cbar { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .3s var(--ease); }
.cats .csub.show { grid-template-rows: 1fr; }
.cats .csub.show > .cbar { opacity: 1; overflow-x: auto; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.cats .cchip.grp span { display: inline-block; font-size: 10px; color: var(--mid); transform: rotate(180deg); transition: transform .35s var(--ease); }
.cats .cchip.grp.open span { transform: none; }
.cats .cchip.grp.open { box-shadow: inset 0 0 0 1px var(--text); }
.cats .cchip.grp.in { background: var(--btn); color: var(--btn-text); box-shadow: none; }
.cats .cchip.grp.in span { color: inherit; }
.cats .cchip.grp.gsoon { color: var(--mid); box-shadow: inset 0 0 0 1px var(--line); }
.cats .cchip.grp.gsoon.open { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

/* LG2 Brackets breathe (IMF 2026-11-27): on hover the brackets step out and come back */
.logo path.l, .logo path.r { transition: transform .5s var(--ease); }
.logo:hover path.l, .logo:focus-visible path.l { transform: translateX(-3px); }
.logo:hover path.r, .logo:focus-visible path.r { transform: translateX(3px); }
.logo svg { overflow: visible; }
@media (prefers-reduced-motion: reduce) { .logo path.l, .logo path.r { transition: none; } }

/* Real preview images */
.pic { background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
/* Closeup: keep the notch and the screen text in the landscape crop */
.pic[style*="iPhone-17-Pro-08"] { background-position: 50% 14%; }
.ph.zoom > span.pic { background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.ph.zoom > span.pic[style*="iPhone-17-Pro-08"] { background-position: 50% 14%; }

/* Card hover (IMF 2026-11-28, reference clip): no zoom, preview 2 cross-fades over preview 1 quickly, and back on leave */
.card:hover .img > span:first-child { transform: none; }
.card .img > span { transition: opacity .3s ease; }
.card .img .alt { transition: opacity .3s ease; }

/* Card hover image must fill the frame like preview 1 (the .alt background shorthand reset its size to auto, which looked like a zoom) */
.card .img .alt.pic { background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.card .img .alt.pic[style*="iPhone-17-Pro-08"] { background-position: 50% 14%; }

/* Free page: the hover layer (.lit) used the background shorthand, which reset its size. Make both layers fill the frame the same. */
.fwall .fimg .ph.pic, .fwall .fimg .ph.lit.pic { background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }

/* More / You might like: hover shows preview 2 (same crossfade as shop cards) */
.mcard .img .alt { opacity: 0; transition: opacity .3s ease; background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.mcard:hover .img .alt { opacity: 1; }
.mcard .img .alt.pic[style*="iPhone-17-Pro-08"] { background-position: 50% 14%; }
/* Product gallery shows each preview at its own proportions (taller stays taller, wider stays wider) */
.gallery .gimg { display: block; width: 100%; height: auto; background: var(--img); }
/* No bottom fade over the images */
.fade { display: none; }
