/* ============================================================
   antspro — BRAND WORLD
   Editorial light theme · lavender accent · full-bleed imagery
   ============================================================ */

:root {
  --paper: #f2efe9;
  --paper-2: #e8e3da;
  --paper-3: #dcd5c8;
  --ink: #111216;
  --ink-soft: #272930;
  --muted: #6e6a63;
  --muted-light: #a7a29a;
  --accent: #8b7bc7;
  --accent-deep: #5d4b9e;
  --accent-soft: #d8d0ee;
  --line: rgba(17, 18, 22, 0.14);
  --line-strong: rgba(17, 18, 22, 0.28);
  --line-light: rgba(242, 239, 233, 0.18);
  --white: #fbfaf7;
  --sans: "Helvetica Neue", "Neue Haas Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Times New Roman", Georgia, serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --gutter: clamp(20px, 4.2vw, 68px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--white); }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
.eyebrow span { color: var(--ink); }
.eyebrow .brand-name { text-transform: none; letter-spacing: 0.12em; font-weight: 500; }
.eyebrow.light { color: var(--muted-light); }
.eyebrow.light::before { background: var(--accent-soft); }

.display {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}
.display.light { color: var(--paper); }
.display.light em { color: var(--accent-soft); }

.section {
  padding: clamp(84px, 11vw, 170px) var(--gutter);
  position: relative;
}
section[id], footer[id] { scroll-margin-top: 76px; }
.section-head { margin-bottom: clamp(44px, 6vw, 84px); }
.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
}
.section-aside p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 34ch;
  font-size: 14px;
}
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }

.micro {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(242, 239, 233, 0.9);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header.on-dark {
  background: rgba(13, 11, 18, 0.96);
  border-bottom-color: var(--line-light);
  color: var(--paper);
}
.site-header.on-dark .brand-logo { filter: invert(1) brightness(1.8); }
.site-header.on-dark .brand-sub { color: var(--muted-light); }
.site-header.on-dark .nav a::after { background: var(--paper); }
.site-header.on-dark .icon-btn { border-color: var(--line-light); color: var(--paper); }
.site-header.on-dark .icon-btn:hover { background: rgba(242, 239, 233, 0.12); }
.site-header.on-dark .pill-ai { background: var(--accent); color: var(--white); border-color: var(--accent); }
.site-header.on-dark .pill-ai:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.site-header.on-dark .menu-btn { border-color: var(--line-light); }
.site-header.on-dark .menu-btn span { background: var(--paper); }
.brand { display: flex; align-items: baseline; gap: 12px; flex: none; }
.brand-logo { height: 24px; width: auto; }
.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}
.icon-btn:hover { background: rgba(17, 18, 22, 0.06); border-color: var(--line-strong); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill-ai { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-ai:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--white); }
.pill-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-dark:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.pill-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.spark { font-size: 13px; line-height: 1; }

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  padding: 11px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span { display: block; height: 1px; background: var(--ink); width: 100%; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  padding: 100px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu a {
  font-size: 34px;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.mobile-menu .pill { margin-top: 24px; align-self: flex-start; }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  padding: 118px var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  column-gap: clamp(20px, 4vw, 64px);
  row-gap: 0;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* ---------- season archive ---------- */

.season-bar {
  grid-column: 1 / -1;
  align-self: start;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding: 0 0 13px;
  margin-bottom: clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.season-label {
  flex: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.season-label em {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-left: 8px;
  color: var(--muted-light);
}
.season-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.season-list::-webkit-scrollbar { display: none; }
.season-item {
  flex: none;
  position: relative;
  border: 0;
  background: transparent;
  padding: 4px 0 6px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: #b9b3aa;
  transition: color 0.25s var(--ease);
  white-space: nowrap;
}
.season-item:hover { color: #7e786e; }
.season-item.is-active { color: var(--ink); font-weight: 500; }
.season-item.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}
.season-item:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 26px; }
.hero-title {
  margin: 0;
  font-size: clamp(3.15rem, 6.85vw, 7.35rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 500;
  text-transform: uppercase;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-title span:nth-child(2) { margin-left: 0.18em; }
.hero-title span:nth-child(3) { margin-left: 0.36em; }
.hero-cn {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 26px);
  letter-spacing: 0.06em;
}
.hero-lede {
  margin: 18px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.hero-search {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  max-width: 520px;
}
.hero-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13.5px;
}
.hero-search input::placeholder { color: var(--muted-light); }
.hero-search button {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
}
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 12.5px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.text-link:hover { color: var(--accent-deep); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 46px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-art {
  position: relative;
  align-self: center;
  height: min(78vh, 780px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-block {
  position: absolute;
  inset: 10% 2% 4% 8%;
  background: var(--accent-soft);
  border-radius: 200px 200px 2px 2px;
}
.hero-img {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 8%;
  width: 90%;
  height: 86%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 200px 200px 2px 2px;
  mix-blend-mode: multiply;
  filter: contrast(1.03) saturate(0.96);
}
.hero-badge {
  position: absolute;
  z-index: 3;
  left: 2%;
  top: 18%;
  background: var(--ink);
  color: var(--paper);
  padding: 18px 18px 16px;
  width: 132px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.badge-kicker { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: var(--muted-light); }
.hero-badge strong { font-size: 34px; line-height: 1; letter-spacing: -0.04em; }
.badge-note { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); line-height: 1.4; }
.hero-caption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 4%;
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-caption span { display: block; color: var(--muted); margin-bottom: 6px; }
.hero-caption p { margin: 0; line-height: 1.6; }
.hero-vertical {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 2%;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.hero-art.is-archive .hero-img,
.hero-art.is-archive .hero-badge,
.hero-art.is-archive .hero-caption,
.hero-art.is-archive .hero-vertical { display: none; }
.hero-archive {
  position: absolute;
  z-index: 4;
  top: 10%;
  left: 8%;
  width: 90%;
  height: 86%;
  border-radius: 200px 200px 2px 2px;
  background: var(--accent-soft);
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.archive-kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.hero-archive strong {
  font-size: clamp(76px, 10vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.07em;
  font-weight: 500;
}
.hero-archive p {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.hero-scroll span {
  width: 34px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span::before { content: "✦"; color: var(--accent); margin-right: 48px; font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: start;
}
.manifesto-copy p { margin: 0 0 18px; color: var(--muted); max-width: 52ch; }
.manifesto-copy .lead { color: var(--ink-soft); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pull-quote {
  margin: clamp(54px, 7vw, 110px) 0 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}
.pull-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.pull-quote cite {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

/* ---------- season empty ---------- */

.season-empty {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 5vw, 66px) 0;
}
.season-empty .eyebrow { margin-bottom: 10px; }
.season-empty h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.season-empty p:not(.eyebrow) {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- products ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.product-toolbar .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.product-toolbar .tabs::-webkit-scrollbar { display: none; }
.product-toolbar .tab { flex: none; }
.product-count {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.tab {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 13px;
  border-radius: 12px;
  color: var(--muted);
  transition: 0.25s;
}
.tab-zh { font-family: var(--sans); font-size: 12px; letter-spacing: 0.02em; line-height: 1.2; }
.tab-en { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.05em; line-height: 1.25; color: var(--muted); }
.tab:hover { border-color: var(--line-strong); color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tab.is-active .tab-en { color: rgba(242, 239, 233, 0.66); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 42px) clamp(16px, 2.4vw, 28px);
}
.product-card { position: relative; }
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
  cursor: pointer;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.9s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.035); }
.product-index {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.product-arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 15px;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.35s var(--ease);
}
.product-card:hover .product-arrow { opacity: 1; transform: none; }
.product-meta { padding-top: 14px; }
.product-series {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  text-transform: uppercase;
}
.product-category { font-family: var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.image-download {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border: 1px solid rgba(17, 18, 22, 0.18);
  border-radius: 999px;
  background: rgba(242, 239, 233, 0.9);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: 0.2s;
}
.image-download:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.product-name {
  margin: 5px 0 3px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product-tagline { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---------- price form ---------- */

.price-panel {
  margin-top: clamp(42px, 6vw, 84px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.price-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: end;
  margin-bottom: 24px;
}
.price-panel-head h3 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.price-panel-head > p {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}
.price-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: end;
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.price-form label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.price-form select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 38px 12px 13px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.price-form select:focus { outline: 1px solid var(--ink); outline-offset: 2px; }
.price-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid var(--line);
}
.price-line { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-line span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.price-line strong {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
  white-space: nowrap;
}
.price-line strong.is-pending { font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--muted); }
.price-result small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.5; }
.price-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 72px);
  margin-top: clamp(24px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.price-detail-copy .eyebrow { margin-bottom: 9px; }
.price-detail-copy h4 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.price-detail-copy p:not(.eyebrow) {
  margin: 0 0 14px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}
.price-detail-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.price-thumb, .price-video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  overflow: hidden;
}
.price-thumb-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  cursor: pointer;
  overflow: hidden;
}
.price-thumb img, .price-video img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  mix-blend-mode: multiply;
  transition: opacity 0.2s;
}
.price-thumb:hover img, .price-video:hover img { opacity: 0.85; }
.price-video { cursor: pointer; }
.price-thumb-download { top: 4px; right: 4px; width: 20px; height: 20px; padding: 0; justify-content: center; border-radius: 50%; font-size: 9px; }
.price-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 18, 22, 0.82);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 10px;
}

/* ---------- tech ---------- */

.section-dark {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(84px, 11vw, 170px) var(--gutter);
}
.tech-inner { max-width: 1500px; margin: 0 auto; }
.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 7vw, 110px);
}
.tech-copy .lead { color: var(--paper); }
.light-muted { color: var(--muted-light); max-width: 46ch; font-size: 14px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tech-tags span {
  border: 1px solid var(--line-light);
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
}
.layer-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.layer-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}
.layer-no { font-family: var(--mono); font-size: 10px; color: var(--accent-soft); padding-top: 3px; }
.layer-list strong { font-weight: 500; font-size: 15px; }
.layer-list p { margin: 5px 0 0; color: var(--muted-light); font-size: 13px; }
.tech-visual {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--paper);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.5fr);
  gap: 18px;
  align-items: end;
}
.tech-visual img { width: 100%; height: min(58vw, 620px); object-fit: cover; object-position: top center; mix-blend-mode: multiply; }
.tech-visual-cap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 6px;
}

/* ---------- lookbook ---------- */

.video-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 42px;
}
.video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  cursor: pointer;
}
.video-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper-2);
  overflow: hidden;
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.9s var(--ease);
}
.video-card:hover .video-media img { transform: scale(1.03); }
.video-card .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(17, 18, 22, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(242, 239, 233, 0.72);
  backdrop-filter: blur(4px);
  font-size: 13px;
}
.video-card .v-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.video-card .v-meta strong { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 0; margin-bottom: 3px; }
.download-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  transition: 0.2s;
}
.download-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---------- story ---------- */

.story-intro {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.story-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(36px, 5vw, 64px);
  padding-bottom: 8px;
}
.story-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  height: 1px;
  background: var(--line-strong);
}
.story-node {
  position: relative;
  min-height: 108px;
  padding: 0 18px 22px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.story-node .node-year {
  display: block;
  height: 38px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--muted-light);
  transition: color 0.25s var(--ease);
}
.story-node .node-dot {
  position: absolute;
  left: 0;
  top: 52px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  transition: 0.25s var(--ease);
}
.story-node .node-label {
  display: block;
  margin-top: 28px;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.story-node:hover .node-year,
.story-node:hover .node-label { color: var(--ink); }
.story-node.is-active .node-year { color: var(--ink); }
.story-node.is-active .node-label { color: var(--ink); font-weight: 500; }
.story-node.is-active .node-dot {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line-strong);
}
.story-node:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.story-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 76px);
  margin-top: clamp(30px, 4vw, 54px);
  padding-top: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--line);
}
.story-panel-head .eyebrow { margin-bottom: 12px; }
.story-panel-head h3 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.8vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.story-summary {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
}
.story-panel-body p {
  margin: 0 0 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}
.story-panel-body p:last-child { margin-bottom: 0; }
.story-events {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.story-event {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.story-event time {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  padding-top: 2px;
}
.story-event span { color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- faq ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span { font-family: var(--mono); font-size: 9px; color: var(--accent-deep); letter-spacing: 0.1em; }
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--muted); text-align: right; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px 60px; color: var(--muted); font-size: 13.5px; max-width: 74ch; white-space: pre-line; }

/* ---------- ask ---------- */

.ask-section {
  background: #14121d;
  color: var(--paper);
  padding: clamp(90px, 12vw, 180px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.ask-section::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 123, 199, 0.32), transparent 65%);
  top: -20%;
  right: -10%;
  pointer-events: none;
}
.ask-bg {
  position: absolute;
  right: -2vw;
  bottom: -8vw;
  font-size: clamp(160px, 34vw, 520px);
  line-height: 0.7;
  font-weight: 600;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 208, 238, 0.16);
  pointer-events: none;
  user-select: none;
}
.ask-inner { position: relative; z-index: 1; max-width: 1100px; }
.ask-inner .display { margin-bottom: 24px; }
.ask-lede { color: var(--muted-light); max-width: 50ch; font-size: 14px; }
.ask-samples { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 28px; }
.ask-samples button {
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--paper);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11.5px;
  transition: 0.25s;
}
.ask-samples button:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ask-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ask-note { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted-light); }
.ask-preview { margin-top: clamp(48px, 7vw, 90px); max-width: 620px; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { padding: 15px 17px; font-size: 13.5px; line-height: 1.65; max-width: 88%; }
.chat-bubble.user { align-self: flex-end; background: var(--accent); color: var(--white); }
.chat-bubble.ai { background: rgba(242, 239, 233, 0.06); border: 1px solid var(--line-light); }
.chat-bubble p { margin: 0 0 8px; }
.chat-bubble p:last-of-type { margin-bottom: 0; }
.cite { color: var(--accent-soft); font-family: var(--mono); font-size: 10px; }
.chat-sources { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chat-sources span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-light);
  padding: 4px 7px;
  color: var(--muted-light);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 90px);
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand img { height: 26px; width: auto; }
.footer-brand p { color: var(--muted-light); font-family: var(--serif); font-size: 18px; margin: 18px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 { margin: 0 0 14px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--muted-light); font-weight: 400; }
.footer-cols a, .footer-cols span { display: block; font-size: 12.5px; color: var(--paper); margin-bottom: 9px; opacity: 0.78; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
#icpSlot:empty { display: none; }

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(9, 9, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 36px);
  animation: fadeIn 0.22s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.close-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 13px;
  z-index: 5;
}
.close-btn:hover { background: var(--ink); color: var(--paper); }
.close-btn.light { background: transparent; color: var(--paper); border-color: var(--line-light); }
.close-btn.light:hover { background: var(--paper); color: var(--ink); }

/* search */

.search-overlay { align-items: start; padding-top: 7vh; }
.search-panel {
  width: min(840px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.search-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.search-bar input { flex: 1; border: 0; background: transparent; outline: none; font-size: 18px; letter-spacing: -0.01em; }
.search-bar kbd { font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line); padding: 4px 6px; }
.search-send {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.search-send:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.search-body { overflow-y: auto; padding: 24px 20px 30px; }
.search-intro {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(139, 123, 199, 0.07);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.search-chat { display: flex; flex-direction: column; gap: 13px; margin-bottom: 22px; }
.s-msg { display: flex; align-items: flex-start; gap: 9px; }
.s-msg.user { justify-content: flex-end; }
.s-avatar {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
}
.s-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 3px 14px 14px 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.s-msg.user .s-bubble {
  border-radius: 14px 3px 14px 14px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.s-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.s-options .chip { font-size: 11px; padding: 6px 10px; background: var(--paper); }
.s-loading { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.s-loading i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; animation: sdot 1s infinite ease-in-out; }
.s-loading i:nth-child(2) { animation-delay: 0.12s; }
.s-loading i:nth-child(3) { animation-delay: 0.24s; }
@keyframes sdot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.search-results { display: flex; flex-direction: column; gap: 20px; }
.sr-product-item, .sr-image-item { position: relative; min-width: 0; }
.sr-download {
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 9px;
}
.sr-section h4 {
  margin: 0 0 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
}
.sr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sr-product, .sr-video, .sr-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.sr-product img, .sr-video img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
  display: block;
}
.sr-product img { mix-blend-mode: multiply; }
.sr-product .sr-tag, .sr-video .sr-tag {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  text-transform: uppercase;
}
.sr-product strong, .sr-video strong { display: block; margin: 3px 0 0; font-size: 12px; font-weight: 500; line-height: 1.35; }
.sr-product span:last-child, .sr-video span:last-child { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.sr-video { position: relative; }
.sr-video .sr-play {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(17, 18, 22, 0.82);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.sr-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sr-image img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); display: block; }
.sr-links { border-top: 1px solid var(--line); }
.sr-link {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 11px 2px;
  cursor: pointer;
}
.sr-link .sr-tag { display: block; font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.12em; color: var(--accent-deep); text-transform: uppercase; }
.sr-link strong { display: block; margin: 2px 0; font-size: 13px; font-weight: 500; }
.sr-link .sr-desc { display: -webkit-box; margin: 0; font-size: 11px; color: var(--muted); line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-link .go { font-size: 13px; color: var(--muted); align-self: center; }
@media (hover: hover) {
  .sr-product:hover img, .sr-video:hover img, .sr-image:hover img { opacity: 0.86; }
}

.search-hints .chip-row { margin-top: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11.5px;
  color: var(--muted);
  transition: 0.2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.search-group { margin-bottom: 24px; }
.search-group h4 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
}
.search-result {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.search-result:hover { background: rgba(139, 123, 199, 0.08); }
.search-result img { width: 64px; height: 76px; object-fit: cover; background: var(--paper-2); mix-blend-mode: multiply; }
.search-result .sr-type { font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: var(--accent-deep); text-transform: uppercase; }
.search-result strong { display: block; font-size: 13.5px; font-weight: 500; margin: 2px 0; }
.search-result p { margin: 0; color: var(--muted); font-size: 11.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result .go { font-size: 14px; color: var(--muted); }
.search-empty { padding: 30px 6px; color: var(--muted); font-size: 13px; }

/* product detail */

.product-overlay { padding: 0; background: var(--paper); backdrop-filter: none; }
.product-panel {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: var(--paper);
  position: relative;
  padding: clamp(60px, 7vw, 90px) var(--gutter) 60px;
}
.product-panel > .close-btn { position: fixed; top: 18px; right: var(--gutter); }
.product-detail {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.pd-gallery { position: sticky; top: 90px; }
.pd-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}
.pd-download { top: auto; bottom: 12px; right: 12px; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.pd-thumb {
  position: relative;
  width: 68px;
  height: 82px;
  flex: none;
  border: 1px solid transparent;
  background: var(--paper-2);
  overflow: hidden;
}
.pd-thumb.is-active { border-color: var(--ink); }
.pd-thumb > button[data-thumb] {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper-2);
  padding: 0;
  overflow: hidden;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pd-thumb-download {
  top: auto;
  left: auto;
  right: 3px;
  bottom: 3px;
  width: 20px;
  height: 20px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 9px;
}
.pd-info .eyebrow { margin-bottom: 16px; }
.pd-info .category-label { text-transform: none; letter-spacing: 0.04em; color: var(--muted); }
.pd-info h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.pd-tagline { font-family: var(--serif); font-size: 18px; color: var(--accent-deep); margin: 0 0 22px; }
.pd-desc { color: var(--muted); font-size: 14px; margin: 0 0 26px; max-width: 54ch; }
.pd-features { margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pd-features li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.pd-features li::before { content: "—"; color: var(--accent); }
.pd-specs { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 12.5px; }
.pd-specs th, .pd-specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd-specs th { font-weight: 400; color: var(--muted); width: 34%; padding-right: 16px; }
.pd-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.pd-tech span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; border: 1px solid var(--line); padding: 6px 9px; color: var(--muted); }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-source { margin-top: 24px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--muted); }

/* video */

.video-overlay { background: rgba(9, 9, 12, 0.82); }
.video-panel { position: relative; width: min(460px, 92vw); }
.video-panel .close-btn { position: absolute; top: -50px; right: 0; }
.video-panel video { width: 100%; max-height: 80vh; background: #000; display: block; }
.video-caption { color: var(--muted-light); font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; margin: 12px 0 0; }

/* lightbox */

.lightbox { background: rgba(9, 9, 12, 0.88); }
.lightbox > .close-btn { position: fixed; top: 20px; right: 24px; }
.lightbox img { max-width: min(88vw, 900px); max-height: 82vh; object-fit: contain; background: var(--paper); }
.lb-caption { position: fixed; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted-light); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; margin: 0; }
.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 22px;
}
.lb-nav:hover { background: var(--paper); color: var(--ink); }
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }

/* ---------- AI drawer ---------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(9, 9, 12, 0.42);
  backdrop-filter: blur(3px);
}
.ai-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(480px, 100vw);
  height: 100dvh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0.45s;
}
.ai-drawer.is-open { transform: none; visibility: visible; }
.ai-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.ai-id { display: flex; gap: 10px; align-items: center; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(139, 123, 199, 0.18); }
.ai-id strong { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.ai-id span { display: block; font-size: 10.5px; color: var(--muted); }
.ai-head-actions { display: flex; align-items: center; gap: 10px; }
.ai-user { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--muted); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { border: 0; background: transparent; font-size: 10.5px; color: var(--muted); border-bottom: 1px solid currentColor; padding: 0; }
.ai-body { flex: 1; overflow-y: auto; padding: 22px 18px; overscroll-behavior: contain; }
.ai-welcome h3 { margin: 0 0 12px; font-size: 27px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 500; }
.ai-welcome > p { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.ai-messages { display: flex; flex-direction: column; gap: 14px; }
.ai-msg { max-width: 94%; font-size: 13px; line-height: 1.7; }
.ai-msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); padding: 10px 13px; }
.ai-msg.assistant { align-self: flex-start; width: 100%; }
.ai-msg.assistant .md { color: var(--ink-soft); }
.ai-msg.assistant .md p { margin: 0 0 10px; }
.ai-msg.assistant .md strong { font-weight: 600; }
.ai-msg.assistant .md ul { margin: 6px 0 12px; padding-left: 18px; }
.ai-msg.assistant .md li { margin-bottom: 4px; }
.ai-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ai-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 4px 7px;
  font-size: 9.5px;
  color: var(--muted);
  border-radius: 999px;
  max-width: 100%;
}
.ai-source:hover { border-color: var(--ink); color: var(--ink); }
.ai-source b { font-family: var(--mono); font-weight: 500; color: var(--accent-deep); font-size: 8px; }
.ai-status { color: var(--muted); font-size: 11px; height: 16px; margin-top: 8px; }
.ai-status .dot { animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.ai-login { padding: 18px; border-top: 1px solid var(--line); background: var(--paper); flex: none; }
.ai-login form { display: flex; flex-direction: column; gap: 10px; }
.ai-login label span { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.ai-login input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 11px;
  font-size: 13px;
  outline: none;
}
.ai-login input:focus { border-color: var(--accent); }
.ai-login .pill { width: 100%; margin-top: 4px; }
.form-error { margin: 2px 0; color: #b42318; font-size: 11.5px; }
.login-note { margin: 12px 0 0; color: var(--muted); font-size: 10.5px; }
.ai-composer {
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex: none;
  background: var(--paper);
}
.ai-composer textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  max-height: 120px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
}
.ai-composer textarea:focus { border-color: var(--accent); }
.ai-composer > button {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
}
.ai-composer > button:disabled { opacity: 0.4; cursor: default; }
.ai-composer > button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.composer-note { flex-basis: 100%; font-family: var(--mono); font-size: 8px; letter-spacing: 0.08em; color: var(--muted); text-align: right; }

/* toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 12px;
  animation: toastIn 0.25s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* reveal */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.06s; }
.reveal:nth-child(3) { transition-delay: 0.12s; }
.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero-title { font-size: clamp(2.8rem, 5.7vw, 4.2rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-visual { grid-template-columns: 1fr; }
  .tech-visual img { height: min(70vw, 520px); }
  .tech-visual-cap { flex-direction: row; justify-content: space-between; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .header-actions .pill-ai { display: none; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 96px;
    min-height: auto;
    row-gap: 28px;
  }
  .season-bar { flex-direction: column; align-items: flex-start; gap: 9px; }
  .season-list { width: 100%; gap: 10px 20px; flex-wrap: wrap; overflow: visible; }
  .season-item { font-size: 12.5px; }
  .hero-title { font-size: clamp(2.9rem, 12.6vw, 6rem); }
  .hero-title span:nth-child(2) { margin-left: 0; }
  .hero-art { height: min(92vw, 560px); margin-top: 10px; }
  .hero-vertical, .hero-scroll { display: none; }
  .hero-caption { bottom: 0; }
  .hero-badge { left: 0; top: 8%; }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .manifesto-grid,
  .tech-grid,
  .pull-quote,
  .footer-top,
  .product-detail { grid-template-columns: 1fr; }
  .pull-quote cite { text-align: left; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .pd-gallery { position: static; }
  .product-panel { padding-top: 80px; }
}

@media (max-width: 600px) {
  .brand-sub { display: none; }
  .ai-head { padding: 12px 14px; }
  .ai-head-actions { gap: 8px; flex: none; }
  .ai-user { display: none; }
  .ai-id { min-width: 0; gap: 8px; }
  .ai-id span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; font-size: 10px; }
  .ai-head .link-btn { white-space: nowrap; flex: none; }
  .ai-head .close-btn { width: 36px; height: 36px; flex: none; }
  .hero-title { font-size: clamp(2.35rem, 10vw, 3.6rem); }
  .hero-title span:nth-child(2), .hero-title span:nth-child(3) { margin-left: 0; }
  .hero-art { height: min(98vw, 520px); }
  .hero-copy { min-width: 0; }
  .hero-lede { font-size: 13px; }
  .hero-search { margin-top: 24px; }
  .hero-meta { margin-top: 30px; gap: 5px 16px; }
  .hero-actions { gap: 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-count { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .video-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .video-card .v-meta strong { font-size: 11px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .site-footer { padding-left: 18px; padding-right: 18px; }
  .site-header { padding-left: 18px; padding-right: 18px; }
  .ask-preview { max-width: 100%; }
  .chat-bubble { max-width: 92%; }
  .footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .search-result { grid-template-columns: 52px 1fr auto; }
  .search-result img { width: 52px; height: 64px; }
  .search-panel { max-height: 90vh; }
  .search-overlay { padding-top: 4vh; }
  .search-bar { padding: 14px; gap: 9px; }
  .search-bar input { font-size: 16px; }
  .search-bar kbd { display: none; }
  .search-body { padding: 18px 14px 24px; }
  .s-bubble { max-width: 92%; font-size: 12.5px; }
  .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sr-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sr-product strong, .sr-video strong { font-size: 11.5px; }
  .product-detail { gap: 24px; }
  .pd-info h2 { font-size: 28px; }
  .ask-bg { display: none; }
  .lb-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .video-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .video-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .download-btn { font-size: 7.5px; padding: 5px 8px; }
}

@media (max-width: 600px) {
  .story-timeline { grid-template-columns: 1fr; margin-top: 30px; }
  .story-timeline::before { left: 5px; right: auto; top: 0; bottom: 22px; width: 1px; height: auto; }
  .story-node { min-height: 0; padding: 0 0 24px 26px; }
  .story-node .node-year { height: auto; font-size: 23px; }
  .story-node .node-dot { top: 7px; left: 0; }
  .story-node .node-label { margin-top: 4px; font-size: 12px; }
  .story-panel { grid-template-columns: 1fr; gap: 20px; }
  .story-events { grid-template-columns: 1fr; gap: 0; }
  .story-event { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 700px) {
  .price-panel-head { grid-template-columns: 1fr; gap: 8px; }
  .price-form { grid-template-columns: 1fr; gap: 16px; }
  .price-result { padding-left: 0; padding-top: 12px; border-left: 0; border-top: 1px solid var(--line); }
  .price-detail { grid-template-columns: 1fr; gap: 20px; }
  .price-detail-media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- fixed homepage brand assistant ---------- */

.home-agent {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 110;
  width: min(420px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 70px rgba(17, 18, 22, 0.2);
  transition: width 0.25s var(--ease), max-height 0.25s var(--ease);
}
.ha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex: none;
}
.ha-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ha-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px rgba(139, 123, 199, 0.12); }
.ha-id strong { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; }
.ha-id small { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; font-family: var(--mono); letter-spacing: 0.04em; }
.ha-actions { display: flex; gap: 4px; flex: none; }
.ha-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.ha-icon:hover { border-color: var(--ink); color: var(--ink); }
.ha-icon:disabled { opacity: 0.35; cursor: default; border-color: var(--line); color: var(--muted); }
.ha-icon.ha-back.is-on { color: var(--accent-deep); border-color: var(--accent); }
.ha-icon.ha-back.is-on:hover { background: var(--paper-2); }
.ha-body { overflow-y: auto; padding: 14px; flex: 1; }
.ha-intro p { margin: 0 0 11px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.ha-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ha-chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 5px 9px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.ha-chip:hover { border-color: var(--ink); color: var(--ink); }
.ha-full-link {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  cursor: pointer;
}
.ha-full-link:hover { text-decoration: underline; }
.ha-chat { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.ha-msg { display: flex; }
.ha-msg.user { justify-content: flex-end; }
.ha-msg .ha-bubble { max-width: 90%; padding: 8px 10px; font-size: 11.5px; line-height: 1.65; border-radius: 2px 10px 10px 10px; background: var(--paper-2); border: 1px solid var(--line); }
.ha-msg.user .ha-bubble { border-radius: 10px 2px 10px 10px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ha-options { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ha-options button { border: 1px solid var(--line); background: var(--paper); padding: 5px 8px; font-size: 9.5px; color: var(--muted); cursor: pointer; }
.ha-options button:hover { border-color: var(--ink); color: var(--ink); }
.ha-page { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.ha-page-head .eyebrow { margin-bottom: 5px; }
.ha-page-head h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.ha-page-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.ha-products { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ha-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.ha-product-media { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; }
.ha-product-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ha-product-media .image-download { top: 4px; right: 4px; width: 18px; height: 18px; padding: 0; justify-content: center; border-radius: 50%; font-size: 8px; }
.ha-product-copy { min-width: 0; }
.ha-product-copy strong { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.35; }
.ha-product-copy .ha-price { display: block; margin: 3px 0 4px; color: var(--accent-deep); font-family: var(--serif); font-size: 15px; }
.ha-product-copy p { margin: 0 0 5px; color: var(--muted); font-size: 9.5px; line-height: 1.5; }
.ha-link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ha-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.ha-media-item { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; padding: 0; border: 0; cursor: pointer; }
.ha-media-item img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ha-media-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: pointer; overflow: hidden; }
.ha-media-open img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ha-media-item .ha-play { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(17,18,22,0.82); color: var(--paper); display: grid; place-items: center; font-size: 9px; }
.ha-price-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.ha-price-table th, .ha-price-table td { padding: 7px 2px; border-bottom: 1px solid var(--line); text-align: left; font-size: 10px; }
.ha-price-table th { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.1em; color: var(--muted); font-weight: 400; }
.ha-price-table td:last-child { text-align: right; white-space: nowrap; }
.ha-story-years { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0; }
.ha-story-years button { border: 1px solid var(--line); background: transparent; padding: 4px 7px; font-family: var(--mono); font-size: 9px; color: var(--muted); cursor: pointer; }
.ha-story-years button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ha-story-body { margin-top: 9px; }
.ha-story-body h4 { margin: 0 0 6px; font-size: 13px; font-weight: 500; line-height: 1.3; }
.ha-story-body p { margin: 0 0 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.ha-story-body ul { margin: 7px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ha-story-body li { display: grid; grid-template-columns: 58px 1fr; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 9px; color: var(--muted); }
.ha-story-body time { font-family: var(--mono); font-size: 7.5px; color: var(--accent-deep); }
.ha-facts { margin: 9px 0; padding: 0; list-style: none; }
.ha-facts li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.ha-facts strong { display: block; color: var(--ink); font-size: 11px; font-weight: 500; margin-bottom: 2px; }
.ha-links { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.ha-link-row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 8px 0; cursor: pointer; }
.ha-link-row strong { display: block; font-size: 10.5px; font-weight: 500; }
.ha-link-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.ha-form { display: flex; border-top: 1px solid var(--line); flex: none; }
.ha-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 13px; outline: none; font-size: 12px; }
.ha-form button { width: 46px; border: 0; border-left: 1px solid var(--line); background: var(--ink); color: var(--paper); font-size: 16px; cursor: pointer; }
.ha-homebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 13px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  flex: none;
}
.ha-homebar[hidden] { display: none; }
.ha-home-btn {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--ink);
  cursor: pointer;
}
.ha-home-btn:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.ha-home-tip { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-agent.is-minimized { width: 250px; max-height: 56px; }
.home-agent.is-minimized .ha-body, .home-agent.is-minimized .ha-form, .home-agent.is-minimized .ha-homebar { display: none; }
.home-agent.is-minimized .ha-head { border-bottom: 0; cursor: pointer; }
@media (max-width: 600px) {
  .home-agent { right: 10px; bottom: 10px; width: calc(100vw - 20px); max-height: 68vh; }
  .home-agent.is-minimized { width: 230px; }
  .ha-product { grid-template-columns: 74px minmax(0, 1fr); }
}

/* 登录 / 注册切换 */
#authSwitch { margin-top: 10px; text-align: center; }
#authSwitch a { color: var(--accent); font-size: 12px; text-decoration: underline; }

/* 登录 / 注册 tab */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.auth-tab { flex: 1; padding: 7px 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; }
.auth-tab.is-active { background: #111216; border-color: #111216; color: #f2efe9; }
