/* =====================================================================
   Alpha Works Toolkit — public site
   ===================================================================== */
:root, :root[data-theme="dark"] {
  --bg: #09090b;
  --bg-2: #0f0f12;
  --surface: #131316;
  --surface-2: #18181c;
  --surface-3: #1f1f24;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.12);
  --line-3: rgba(255,255,255,.2);
  --text: #f5f3ef;
  --text-2: #b4b0a8;
  --text-3: #76736d;
  --accent: #e41e26;
  --accent-2: #ef4a50;
  --accent-ink: #fff;
  --accent-soft: rgba(228,30,38,.12);
  --ok: #3ccf7f;
  --warn: #f0b343;
  --glass: rgba(16,16,19,.72);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.8);
  --ring-track: rgba(255,255,255,.08);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ee;
  --bg-2: #ebe8e2;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-3: #f1efea;
  --line: rgba(18,18,18,.08);
  --line-2: rgba(18,18,18,.13);
  --line-3: rgba(18,18,18,.24);
  --text: #121212;
  --text-2: #4d4a45;
  --text-3: #8a867f;
  --accent-soft: rgba(228,30,38,.1);
  --ok: #17904f;
  --warn: #b7791f;
  --glass: rgba(244,242,238,.78);
  --shadow: 0 1px 2px rgba(18,18,18,.04), 0 18px 40px -24px rgba(18,18,18,.22);
  --ring-track: rgba(18,18,18,.08);
  color-scheme: light;
}
:root {
  --r: 18px;
  --r-sm: 12px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
main { flex: 1; outline: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--accent); color: #fff; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="light"] .grain { opacity: .05; mix-blend-mode: multiply; }

/* initial hidden state for JS-driven reveals (only when JS & motion allowed) */
.js .reveal { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: var(--glass); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; color: var(--text); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-weight: 700; letter-spacing: .16em; font-size: 13px; text-transform: uppercase; }
.brand__text span { font-size: 11px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.kbtn {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text-3); cursor: pointer; font-size: 13px; transition: border-color .2s, color .2s;
}
.kbtn:hover { border-color: var(--line-3); color: var(--text); }
.kbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.kbtn kbd { font: 500 11px var(--mono); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
@media (max-width: 720px) { .kbtn span, .kbtn kbd { display: none; } .kbtn { width: 38px; padding: 0; justify-content: center; } }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--text-3); cursor: pointer; transition: color .25s; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .2s; }
.iconbtn:hover { border-color: var(--line-3); }
.iconbtn:active { transform: scale(.94); }
.iconbtn--plain { background: none; }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.iconbtn .i-sun { display: none; }
:root[data-theme="light"] .iconbtn .i-sun { display: block; }
:root[data-theme="light"] .iconbtn .i-moon { display: none; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; margin-top: -68px; padding-top: 68px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__orb {
  position: absolute; width: 760px; height: 760px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228,30,38,.42), rgba(228,30,38,.12) 45%, transparent 72%); filter: blur(10px);
}
:root[data-theme="light"] .hero__orb { background: radial-gradient(closest-side, rgba(228,30,38,.28), rgba(228,30,38,.08) 45%, transparent 72%); }
.hero__rings { position: absolute; right: -120px; top: -40px; width: 820px; height: 820px; opacity: .9; }
.hero__rings circle { fill: none; stroke: var(--line-2); }
.hero__rings circle.hot { stroke: var(--accent); stroke-opacity: .55; }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 200px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero__in { padding-block: clamp(56px, 10vw, 120px) 56px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.eyebrow i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(42px, 8.4vw, 112px); line-height: .98; letter-spacing: -.045em;
  margin: 26px 0 22px; max-width: 12ch; font-variation-settings: "opsz" 96;
}
.hero h1 .hl { color: var(--accent); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero .lead { color: var(--text-2); font-size: clamp(15px, 1.5vw, 18px); max-width: 58ch; margin: 0 0 34px; }

.search {
  position: relative; max-width: 640px; display: flex; align-items: center; height: 60px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow); }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2; margin: 0 12px 0 18px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--text-3); }
.search kbd { font: 500 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; margin-right: 14px; }
@media (hover: none) { .search kbd { display: none; } }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); max-width: 840px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--bg); padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--text-3); }

/* ---------------------------------------------------------- marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; will-change: transform; }
.marquee a { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; color: var(--text-3); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; transition: color .25s; }
.marquee a::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .6; }
.marquee a:hover { color: var(--text); }

/* ---------------------------------------------------------- category tiles */
.section { padding-block: 72px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.section h2 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.section__sub { color: var(--text-3); max-width: 42ch; margin: 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 200px; padding: 20px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; transition: border-color .3s;
}
.tile:hover { border-color: var(--line-3); }
.tile__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); transition: background .3s, color .3s; }
.tile:hover .tile__ico { background: var(--accent); color: #fff; }
.tile__ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile b { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; display: block; line-height: 1.15; }
.tile small { color: var(--text-3); font-size: 13px; }
.tile__arrow { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.tile__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.tile:hover .tile__arrow { transform: rotate(45deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.tile__num { position: absolute; right: -6px; bottom: -28px; font-family: var(--display); font-size: 120px; font-weight: 800; letter-spacing: -.06em; color: var(--text); opacity: .04; line-height: 1; pointer-events: none; }

/* ---------------------------------------------------------- filter bar */
.filters { position: sticky; top: 68px; z-index: 30; margin-top: 28px; }
.filters__in { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; position: relative; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 11px; border: 0; background: transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .2s;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--bg); }
.chip > * { position: relative; z-index: 1; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.chip small { font-weight: 600; opacity: .55; font-size: 12px; }
.chips__pill { position: absolute; top: 0; left: 0; height: 38px; border-radius: 11px; background: var(--text); z-index: 0; pointer-events: none; }
.toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; white-space: nowrap; padding: 0 6px; }
.toggle input { appearance: none; width: 36px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform .3s var(--ease), background .2s; }
.toggle input:checked { background: var(--accent); border-color: var(--accent); }
.toggle input:checked::after { transform: translateX(14px); background: #fff; }
@media (max-width: 760px) { .toggle span { display: none; } .toggle::before { content: attr(data-short); font-size: 12px; } }

/* ---------------------------------------------------------- catalogue */
.catalogue { padding-block: 20px 100px; }
.group { margin-top: 48px; }
.group__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.group__head h3 { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.group__head span { color: var(--text-3); font-size: 13px; font-family: var(--mono); }
.series { margin: 26px 0 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 12px; }
.series::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 20px; padding: 18px; min-height: 196px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; overflow: hidden;
  transition: border-color .3s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(228,30,38,.13), transparent 45%);
}
.card:hover { border-color: var(--line-3); }
.card:hover::before { opacity: 1; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); flex: none; transition: background .3s, color .3s; }
.card:hover .card__ico { background: var(--accent); color: #fff; }
.card__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.badge { font: 600 10.5px/1 var(--font); letter-spacing: .08em; padding: 6px 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; }
.badge svg { width: 10px; height: 10px; fill: currentColor; }
.badge--soon { background: var(--accent-soft); color: var(--accent); }
.badge--line { background: transparent; border: 1px solid var(--line-2); }
.card__name { font-family: var(--display); font-size: 23px; font-weight: 700; letter-spacing: -.025em; margin: 0; line-height: 1.1; }
.card__sub { color: var(--text-3); font-size: 13px; margin-top: 5px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.meter { display: flex; gap: 3px; }
.meter i { width: 16px; height: 4px; border-radius: 2px; background: var(--line-2); }
.meter i.on { background: var(--text); }
.card:hover .meter i.on { background: var(--accent); }
.meter i.na { background: transparent; outline: 1px dashed var(--line-2); outline-offset: -1px; }
.card__go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s; }
.card__go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.card:hover .card__go { transform: rotate(-45deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.card__count { font-size: 12px; color: var(--text-3); white-space: nowrap; font-family: var(--mono); }
.card--soon .card__name, .card--soon .card__ico { opacity: .55; }
.empty { text-align: center; padding: 100px 16px; color: var(--text-3); }
.empty b { display: block; color: var(--text); font-family: var(--display); font-size: 26px; margin-bottom: 8px; letter-spacing: -.02em; }

/* ---------------------------------------------------------- product page */
.phero { position: relative; isolation: isolate; overflow: hidden; margin-top: -68px; padding-top: 68px; border-bottom: 1px solid var(--line); }
.phero .hero__orb { width: 620px; height: 620px; top: -300px; right: -160px; }
.phero__in { position: relative; padding-block: 28px 44px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 44px; }
.crumbs a { text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; opacity: .6; }
.phero__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .phero__grid { grid-template-columns: minmax(0, 1fr) auto; } }
.phero__tag { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; margin-bottom: 16px; }
.phero__tag .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.phero__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); }
.phero__ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phero h1 { font-family: var(--display); font-size: clamp(44px, 8.6vw, 120px); letter-spacing: -.03em; line-height: .95; margin: 0; font-weight: 800; }
.phero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.phero__desc { color: var(--text-2); max-width: 56ch; margin: 18px 0 0; font-size: 16px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ring { position: relative; width: 148px; height: 148px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--ring-track); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; }
.ring__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__txt b { font-family: var(--display); font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ring__txt span { font-size: 11px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 899px) { .ring { display: none; } }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px;
  border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn:hover { border-color: var(--line-3); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost { background: transparent; }
.btn--sm { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 10px; }

.ptabs { position: sticky; top: 68px; z-index: 20; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.ptabs__in { display: flex; align-items: center; gap: 14px; height: 58px; }
.jump { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-size: 13px; color: var(--text-3); text-decoration: none; padding: 7px 11px; border-radius: 9px; font-weight: 500; transition: color .2s, background .2s; white-space: nowrap; }
.jump a:hover { color: var(--text); }
.jump a.is-active { color: var(--text); background: var(--surface-3); }
.seg2 { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line-2); flex: none; }
.seg2 button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-3); cursor: pointer; transition: color .2s, background .2s; }
.seg2 button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg2 button:disabled { opacity: .35; cursor: not-allowed; }

.pbody { padding-block: 32px 80px; display: grid; gap: 28px; }
@media (min-width: 1040px) { .pbody { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.assets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.asset { scroll-margin-top: 150px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: border-color .3s; }
.asset:hover { border-color: var(--line-2); }
.asset--featured { grid-column: 1 / -1; background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--surface); }
.asset__head { display: flex; gap: 14px; align-items: flex-start; }
.asset__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.asset__ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.asset__title { font-weight: 700; font-size: 16px; margin: 1px 0 2px; letter-spacing: -.01em; }
.asset__desc { font-size: 13px; color: var(--text-3); margin: 0; }
.asset__links { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: flex; gap: 4px; align-items: center; }
.link {
  flex: 1; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; min-width: 0;
  border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; transition: border-color .2s, background .2s, transform .3s var(--ease);
}
.link:hover { border-color: var(--line-3); background: var(--surface-3); transform: translateX(3px); }
.link__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link__txt b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link__txt small { color: var(--text-3); font-size: 11.5px; }
.link__go { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; opacity: .4; transition: opacity .2s, transform .3s var(--ease); }
.link:hover .link__go { opacity: 1; transform: translate(2px, -2px); }
.link__copy { width: 34px; height: 34px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--text-3); flex: none; transition: background .2s, color .2s; }
.link__copy:hover { background: var(--surface-3); color: var(--text); }
.link__copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vgroup { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 8px 0 2px 2px; }
.swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line-3); }
.swatches { display: flex; }
.swatches .swatch + .swatch { margin-left: -4px; }
.asset__state { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; border: 1px dashed var(--line-2); }
.asset__state svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.asset--muted { background: transparent; }
.asset--muted .asset__ico { background: var(--surface-3); color: var(--text-3); }

.side { display: grid; gap: 12px; }
@media (min-width: 1040px) { .side { position: sticky; top: 146px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe, .video button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { cursor: pointer; background-size: cover; background-position: center; display: grid; place-items: center; transition: transform .6s var(--ease); }
.video:hover button { transform: scale(1.03); }
.video button span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s, transform .3s var(--ease); }
.video button:hover span { background: var(--accent); transform: scale(1.08); }
.video button svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 6px 0; color: var(--text-2); }
.checklist li svg { width: 16px; height: 16px; flex: none; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.checklist li.ok svg { stroke: var(--ok); }
.checklist li.pending svg { stroke: var(--warn); }
.checklist li.na { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-3); }
.checklist li.na svg { stroke: var(--text-3); }
.related { display: grid; gap: 2px; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .2s; }
.related a:hover { background: var(--surface-3); }
.related a small { color: var(--text-3); font-weight: 500; font-size: 12px; font-family: var(--mono); }
.note { font-size: 13px; color: var(--text-3); padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 10px; margin-top: 16px; }
.note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; margin-top: 2px; }

.nextp { display: block; margin-top: 40px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; position: relative; overflow: hidden; transition: border-color .3s; }
.nextp:hover { border-color: var(--line-3); }
.nextp small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.nextp b { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: clamp(30px, 5vw, 56px); letter-spacing: -.04em; line-height: 1.05; margin-top: 6px; }
.nextp b svg { width: clamp(28px, 4vw, 48px); height: clamp(28px, 4vw, 48px); fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; transition: transform .5s var(--ease); }
.nextp:hover b svg { transform: translateX(8px); }
.nextp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent-soft)); transform: translateX(-100%); transition: transform .7s var(--ease); z-index: -1; }
.nextp:hover::after { transform: none; }
.nextp { isolation: isolate; }

/* ---------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--text-3); font-size: 13.5px; position: relative; overflow: hidden; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr; } }
.footer__brand { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 11vw, 160px); letter-spacing: -.06em; line-height: .85; color: var(--text); opacity: .07; margin-top: 40px; white-space: nowrap; user-select: none; }
.footer b { color: var(--text); font-weight: 600; }
.footer p { margin: 6px 0 0; max-width: 56ch; }
.contact { display: grid; gap: 8px; align-content: start; }
.contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-2); transition: color .2s; }
.contact a:hover { color: var(--accent); }
.contact svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------------------------------------------------------- toast / share / cmd */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); transition: opacity .3s, transform .4s var(--ease); z-index: 400; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.6; }
.sheet { border: 0; padding: 0; background: transparent; max-width: 420px; width: calc(100vw - 32px); color: var(--text); }
.sheet::backdrop { background: rgba(5,5,7,.6); backdrop-filter: blur(6px); }
.sheet__in { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; }
.sheet__head h2 { margin: 0; font-size: 20px; font-family: var(--display); letter-spacing: -.02em; }
.sheet__name { margin: 4px 0 16px; color: var(--text-3); font-size: 14px; }
.qr { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 14px; min-height: 120px; }
.qr svg { width: 180px; height: 180px; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; height: 46px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); padding: 0 12px; font: 13px var(--mono); }
.sheet__alt { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sheet__alt .btn { flex: 1; }

.cmd { position: fixed; inset: 0; z-index: 350; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.cmd[hidden] { display: none; }
.cmd__backdrop { position: absolute; inset: 0; background: rgba(5,5,7,.6); backdrop-filter: blur(6px); }
.cmd__panel { position: relative; width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); overflow: hidden; }
.cmd__search { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 62px; border-bottom: 1px solid var(--line); }
.cmd__search svg { width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2; flex: none; }
.cmd__search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 17px; outline: none; }
.cmd__search kbd { font: 500 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 7px; }
.cmd__list { max-height: min(56vh, 460px); overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.cmd__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; cursor: pointer; }
.cmd__item[aria-selected="true"] { background: var(--surface-3); }
.cmd__item .card__ico { width: 36px; height: 36px; border-radius: 10px; }
.cmd__item .card__ico svg { width: 19px; height: 19px; }
.cmd__item b { display: block; font-weight: 600; font-size: 14.5px; }
.cmd__item small { color: var(--text-3); font-size: 12.5px; }
.cmd__item > svg { width: 16px; height: 16px; margin-left: auto; fill: none; stroke: var(--text-3); stroke-width: 2; }
.cmd__empty { padding: 30px; text-align: center; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
@media print {
  .nav, .filters, .ptabs, .footer, .phero__actions, .link__copy, .grain, .hero__bg { display: none !important; }
}

/* ---------------------------------------------------------- compact hero (above-the-fold) */
.hero--compact { overflow: visible; position: relative; z-index: 2; }
.hero--compact.is-suggesting { z-index: 45; }
.hero--compact .hero__bg { overflow: hidden; }
.hero--compact .hero__in { padding-block: clamp(28px, 4.5vw, 56px) clamp(20px, 2.6vw, 32px); }
.hero--compact .hero__rings { width: 680px; height: 680px; right: -140px; top: -140px; }
.hero--compact .hero__orb { width: 640px; height: 640px; top: -300px; }
.hero--compact .hero__fade { height: 120px; }
.hero__copy { max-width: 760px; }
.hero--compact .eyebrow { font-size: 11px; padding: 5px 12px 5px 9px; }
.hero--compact h1 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.04em; margin: 16px 0 12px; max-width: 18ch; }
.hero--compact .lead { font-size: clamp(14px, 1.2vw, 16px); margin: 0 0 22px; max-width: 56ch; }
.metrics { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.metrics span { display: inline-flex; align-items: baseline; gap: 5px; }
.metrics b { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* search + suggestions */
.sbox { position: relative; max-width: 680px; }
.sbox .search { height: 58px; max-width: none; border-radius: 16px; }
.sbox .search input::-webkit-search-cancel-button { display: none; }
.search__clear { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; cursor: pointer; margin-right: 8px; flex: none; transition: background .2s, color .2s; }
.search__clear:hover { background: var(--text); color: var(--bg); }
.search__clear svg { width: 14px; height: 14px; margin: 0; fill: none; stroke: currentColor; stroke-width: 2.2; }
.search__clear[hidden] { display: none; }
.is-suggesting .sbox .search { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), var(--shadow); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; max-height: min(440px, 62vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; box-shadow: 0 30px 60px -18px rgba(0,0,0,.55);
}
:root[data-theme="light"] .suggest { box-shadow: 0 30px 60px -24px rgba(18,18,18,.28); }
.suggest[hidden] { display: none; }
.sg__head { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 8px 10px 6px; }
.sg__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; text-decoration: none; transition: background .15s; }
.sg__item[aria-selected="true"] { background: var(--surface-3); }
.sg__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; flex: none; transition: background .2s, color .2s; }
.sg__item[aria-selected="true"] .sg__ico { background: var(--accent); color: #fff; }
.sg__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sg__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg__txt b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg__txt b mark { background: none; color: var(--accent); }
.sg__txt small { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg__meta { font: 500 11.5px var(--mono); color: var(--text-3); flex: none; }
.sg__meta em { font-style: normal; color: var(--accent); font-family: var(--font); font-weight: 600; }
.sg__go { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s var(--ease); }
.sg__item[aria-selected="true"] .sg__go { opacity: 1; transform: none; }
.sg__empty { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.sg__empty svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; margin-bottom: 4px; }
.sg__empty b { color: var(--text); font-size: 14.5px; }
.sg__all { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 11px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; background: none; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.sg__all:hover { color: var(--accent); }
.sg__all svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* category row */
.hero__cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.hero__cats .tile {
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; min-height: 0; padding: 14px 16px;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__cats .tile__ico { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.hero__cats .tile__ico svg { width: 24px; height: 24px; }
.tile__txt { flex: 1; min-width: 0; }
.hero__cats .tile b { font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__cats .tile small { display: block; }
.hero__cats .tile__arrow { position: static; width: 32px; height: 32px; flex: none; }
.hero__cats .tile:hover .tile__arrow { transform: translateX(3px); background: var(--text); color: var(--bg); border-color: var(--text); }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tile[aria-pressed="true"] .tile__ico { background: var(--accent); color: #fff; }
.hero__cats .tile[aria-pressed="true"] .tile__arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(90deg); }
@media (max-width: 999px) {
  .hero__cats { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-top: 20px; }
  .hero__cats::-webkit-scrollbar { display: none; }
  .hero__cats .tile { flex: 0 0 auto; padding: 10px 14px 10px 10px; gap: 10px; scroll-snap-align: start; }
  .hero__cats .tile__ico { width: 38px; height: 38px; border-radius: 11px; }
  .hero__cats .tile__ico svg { width: 20px; height: 20px; }
  .hero__cats .tile b { font-size: 14.5px; }
  .hero__cats .tile small { font-size: 12px; }
  .hero__cats .tile__arrow { display: none; }
}
@media (max-width: 600px) { .hero--compact .lead { display: none; } .metrics span:nth-child(n+3) { display: none; } .sbox .search { height: 54px; } }

.browse .filters { margin-top: 4px; }
.browse .catalogue { padding-top: 4px; }
.browse .group:first-child { margin-top: 22px; }
@media (max-width: 760px) {
  .browse .filters__in { flex-wrap: wrap; gap: 8px; padding: 8px; }
  .browse .chips { flex: 1 1 100%; }
  .browse .toggle { font-size: 12px; }
}
.brand__text b, .brand__text span { white-space: nowrap; }
@media (max-width: 420px) { .brand__text b { letter-spacing: .1em; font-size: 12px; } .brand__text span { display: none; } }
.hero--compact h1 { text-wrap: balance; max-width: 16ch; }
.sbox { z-index: 10; }
.hero__cats { position: relative; z-index: 1; }
.metrics { position: relative; z-index: 0; }

/* ---------------------------------------------------------- official logo */
.brand { gap: 12px; }
.nav .aw-logo { height: 32px; width: auto; color: var(--text); flex: none; transition: transform .5s var(--ease); }
.brand:hover .aw-logo { transform: scale(1.03); }
.brand__sep { width: 1px; height: 22px; background: var(--line-3); }
.brand__text #brandTag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 420px) { .nav .aw-logo { height: 28px; } .brand__sep, .brand__text #brandTag { display: none; } }
