:root {
  color-scheme: dark;
  --ink: #f4f4f2;
  --muted: #aaa9aa;
  --base: #080808;
  --line: #282829;
  --ease: cubic-bezier(.2, .72, .2, 1);
  font-family: Inter, 'Segoe UI', sans-serif;
  background: var(--base);
  color: var(--ink);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.frame { width: min(100% - 96px, 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 14px; left: 14px; padding: 12px; background: var(--ink); color: #080808; transform: translateY(-180%); }
.skip:focus { transform: none; }

.bar { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.bar-inner, .footer { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }
.brand, .nav-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand { gap: 10px; font-size: 1.16rem; font-weight: 720; letter-spacing: -.045em; }
.brand-mark { width: 26px; height: 26px; background: center / contain no-repeat url('./mark.png?v=2'); }
.nav-link { padding-inline: 4px; color: #b0afb0; font-size: .92rem; transition: color 200ms ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: calc(100svh - 64px); padding-block: 15px clamp(24px, 6vh, 64px); align-items: center; isolation: isolate; }
.hero-art { position: relative; grid-column: 2; grid-row: 1; z-index: -1; height: clamp(330px, min(48vw, 77svh), 700px); margin-inline: -6% -3%; overflow: hidden; }
.hero-art::before { content: ''; position: absolute; inset: 8%; background: radial-gradient(ellipse, #222226 0%, var(--base) 70%); }
.hero-pan { position: absolute; inset: 0; transform: translate3d(var(--move-x, 0), var(--move-y, 0), 0); transition: transform 660ms var(--ease); }
.mascot { position: absolute; top: 50%; right: 0; width: min(82%, clamp(310px, 35vw, 520px)); height: auto; aspect-ratio: 4 / 5; translate: 0 -50%; overflow: visible; }
.robot-blink { opacity: 0; animation: blink 4.3s linear infinite; }
.hero[data-offscreen] .robot-blink { animation-play-state: paused; }
.hero-copy { grid-column: 1; grid-row: 1; display: grid; justify-items: center; justify-self: start; width: max-content; gap: clamp(20px, 2.65vw, 40px); }
.hero h1 { font-size: clamp(3.05rem, 8.2vw, 8.75rem); font-weight: 730; line-height: .98; letter-spacing: -.059em; text-shadow: 0 4px 34px #000d; }
.hero h1 span { color: #cfcecd; }
.hero h1, .hero-actions { animation: rise 850ms var(--ease) both; }
.hero-actions { animation-delay: 340ms; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: fit-content; padding: 10px 21px; border: 1px solid transparent; border-radius: 100px; font-size: .93rem; font-weight: 660; line-height: 1.4; text-decoration: none; transition: transform 200ms var(--ease), background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.button-light { color: #0c0c0c; background: #f1f0ef; }
.button-light:hover { background: #fff; box-shadow: 0 0 28px #fff3; transform: translateY(-2px); }
.hero-actions .button { min-height: 64px; width: clamp(218px, 25vw, 310px); padding-inline: 24px; font-size: clamp(1rem, 1.35vw, 1.17rem); }
.button-subtle { border-color: #545457; background: #1a1a1b; }
.button-subtle:hover { color: #0c0c0c; background: #e8e7e6; border-color: #e8e7e6; }
.button:active { transform: scale(.96); }

.catalog-page { min-height: 100vh; display: flex; flex-direction: column; }
.products { flex: 1; padding: clamp(38px, 6vw, 92px) 0 clamp(48px, 8vw, 110px); }
.section-header { margin-bottom: clamp(20px, 3.5vw, 44px); }
.section-header h1 { font-size: clamp(2.75rem, 6.4vw, 6rem); line-height: 1.02; font-weight: 650; letter-spacing: -.06em; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: grid; min-width: 0; }
.card-surface { display: grid; grid-template-rows: clamp(194px, 20vw, 276px) 1fr; min-width: 0; overflow: hidden; border: 1px solid #2b2b2e; border-radius: 24px; background: #101011; transition: transform 300ms ease-out, border-color 250ms ease; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px 24px; }
.card-copy h2 { font-size: clamp(1.55rem, 2.25vw, 2rem); line-height: 1.1; letter-spacing: -.045em; }
.card-copy p { margin: 9px 0 22px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.card-copy .button, .availability { margin-top: auto; }
.availability { display: flex; align-items: center; min-height: 48px; color: #a5a4a6; font-size: .92rem; }
.card-art { display: grid; place-items: center; border-bottom: 1px solid #ffffff12; background: #0c0c0d; }
.product-mark { width: clamp(82px, 8.5vw, 116px); height: auto; }

.footer { border-top: 1px solid var(--line); min-height: 82px; }
.footer .brand { color: #bebdbe; font-size: 1.04rem; }
.footer .brand-mark { scale: .8; transform-origin: left; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0 20px; }
.legal-footer { display: flex; justify-content: center; align-items: center; min-height: 64px; border-top: 1px solid var(--line); }
.site-info { flex: 1; padding-block: clamp(34px, 6vw, 84px); }
.site-info .section-header h1 { font-size: clamp(2.3rem, 5.4vw, 4.45rem); }
.site-info-section { max-width: 70ch; padding-block: 24px; border-top: 1px solid var(--line); }
.site-info-section h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.site-info-section p { margin-top: 12px; color: var(--muted); line-height: 1.65; }

@keyframes blink {
  0%, 35%, 39%, 89%, 93%, 100% { opacity: 0; }
  37%, 91% { opacity: 1; }
}
@keyframes rise { from { opacity: .32; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.card:focus-within .card-surface { border-color: #606067; }

@media (any-hover: hover) {
  .card:hover .card-surface { transform: translateY(-6px); border-color: #606067; }
}

@media (max-width: 830px) {
  .frame { width: calc(100% - 56px); }
  .hero-art { height: 480px; }
  .card-copy { padding-inline: 17px; }
}

@media (max-width: 650px) {
  .frame { width: calc(100% - 36px); }
  .bar-inner { min-height: 63px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: 'copy' 'robot'; justify-items: center; padding: 44px 0 34px; }
  .hero-copy { grid-area: copy; justify-self: center; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 5rem); }
  .hero-art { grid-area: robot; justify-self: stretch; height: clamp(295px, 95vw, 410px); margin: 0 -12px; }
  .mascot { right: 1%; width: min(79%, clamp(215px, 70vw, 310px)); }
  .hero-actions .button { min-height: 58px; }
  .product-grid { grid-template-columns: 1fr; }
  .card-surface { grid-template-rows: 195px 1fr; }
  .card-copy { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .hero h1, .hero-actions { animation: none; }
  .nav-link, .hero-pan, .button { transition: none; }
  .hero-pan { transform: none; }
}
