/* =========================================================
   Brochure Library — design system & public pages
   ========================================================= */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --ink: #161514;
  --ink-2: #4f4c47;
  --ink-3: #8b877f;
  --line: #e7e3dc;
  --line-strong: #d6d1c8;
  --stage: #ece9e3;
  --focus: #2f5d50;
  --danger: #b4382f;
  --success: #2f6b4f;

  --font-display: "Fraunces", "Iowan Old Style", "Hind Siliguri", Georgia, serif;
  --font-ui: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-cover: 0 1px 2px rgb(20 18 15 / 0.08), 0 8px 18px -6px rgb(20 18 15 / 0.22), 0 22px 40px -18px rgb(20 18 15 / 0.28);
  --shadow-cover-hover: 0 2px 4px rgb(20 18 15 / 0.08), 0 16px 30px -8px rgb(20 18 15 / 0.28), 0 38px 60px -24px rgb(20 18 15 / 0.38);
  --shadow-pop: 0 10px 30px -10px rgb(20 18 15 / 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
kbd {
  font-family: var(--font-ui); font-size: 11px; line-height: 1; color: var(--ink-3);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--surface);
}
.icon { flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-3); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; font-variation-settings: "opsz" 144; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #33312e; box-shadow: var(--shadow-pop); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink-2); transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(250 249 247 / 0.82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgb(250 249 247 / 0.92); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-search {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; height: 38px; padding: 0 8px 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 14px;
  transition: border-color .2s, color .2s;
}
.nav-search:hover { border-color: var(--line-strong); color: var(--ink); }
.nav-search span { margin-right: 18px; }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav .container { display: flex; flex-direction: column; padding-block: 8px 16px; }
.mobile-nav a, .mobile-nav button {
  text-align: left; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none;
  font-family: var(--font-display); font-size: 22px;
}
.mobile-nav a:last-child, .mobile-nav button:last-child { border-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.hero-title { font-size: clamp(2.75rem, 7.2vw, 5.75rem); margin-top: 18px; }
.hero-sub { color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 42ch; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 40px); margin: 28px 0 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats dt { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.hero-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 28px; line-height: 1.1; min-width: 2ch; }

.search {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: clamp(32px, 5vw, 56px);
  height: 64px; padding: 0 16px 0 22px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(20 18 15 / 0.04), 0 12px 32px -20px rgb(20 18 15 / 0.25);
  transition: border-color .2s, box-shadow .3s;
}
.search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgb(47 93 80 / 0.10), 0 16px 40px -20px rgb(20 18 15 / 0.3); }
.search > .icon { color: var(--ink-3); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink-2); }
.search-clear:hover { background: var(--line); }
.search-kbd { margin-right: 4px; }
.search:focus-within .search-kbd { display: none; }

/* ---------- toolbar ---------- */
.library { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(64px, 10vw, 120px); }
.library-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 12px; }
.result-count { color: var(--ink-3); font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); padding-right: 24px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; flex: none;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-selected="true"] .chip-count { color: rgb(255 255 255 / 0.6); }
.toolbar-filters { display: flex; gap: 8px; flex: none; align-items: center; }
.toolbar-search {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.toolbar-search:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgb(47 93 80 / 0.12); }
.toolbar-search > .icon { color: var(--ink-3); flex: none; }
.toolbar-search input {
  width: 170px; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--ink); padding: 0;
}
.toolbar-search input::placeholder { color: var(--ink-3); }
.toolbar-search input::-webkit-search-cancel-button { display: none; }
.toolbar-search .search-clear {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  border: 0; background: var(--surface-2); color: var(--ink-2); padding: 0; cursor: pointer;
}
.toolbar-search .search-clear:hover { background: var(--line); }
.select { position: relative; display: inline-flex; align-items: center; }
.select select {
  appearance: none; -webkit-appearance: none; height: 38px; padding: 0 36px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-2); max-width: 220px;
  transition: border-color .2s;
}
.select select:hover { border-color: var(--line-strong); }
.select .icon { position: absolute; right: 12px; pointer-events: none; color: var(--ink-3); }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 24px; font-size: 14px; color: var(--ink-3); }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink); border: 0; font-size: 13px; }
.filter-pill:hover { background: var(--line); }
.link-btn { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- grid & cards ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2.2vw, 32px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419px)  { .grid { grid-template-columns: minmax(0, 1fr); } }

.card { position: relative; display: flex; flex-direction: column; }
.card-link { display: block; border-radius: var(--radius); }
.stage {
  --tone: var(--stage);
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--tone); overflow: hidden;
  display: grid; place-items: center; padding: 11% 13%;
  transition: background-color .6s ease;
}
.stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(20 18 15 / 0.04); pointer-events: none; }
.cover-img, .stage .cover-placeholder {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 3px;
  box-shadow: var(--shadow-cover); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  transform-origin: 50% 100%; background: #fff;
}
.card:hover .cover-img, .card:hover .cover-placeholder, .card-link:focus-visible .cover-img { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-cover-hover); }
.cover-placeholder {
  aspect-ratio: 1 / 1.414; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14% 12%;
  background: linear-gradient(160deg, #fdfcfa, #efebe4); color: var(--ink); text-align: left;
}
.cp-company { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cp-title { font-family: var(--font-display); font-size: clamp(16px, 1.6vw, 22px); line-height: 1.1; }
.cp-mark { color: var(--ink-3); }

.card-cta {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 10px); opacity: 0;
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: rgb(22 21 20 / 0.88); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap;
  backdrop-filter: blur(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.card:hover .card-cta, .card-link:focus-visible .card-cta { opacity: 1; transform: translate(-50%, 0); }
.badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 10px; border-radius: 999px; background: rgb(255 255 255 / 0.85); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.card-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 2px 0; }
.card-meta { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; display: flex; gap: 6px; flex-wrap: wrap; }
.card-meta .dot::before { content: "·"; margin-right: 6px; }
.card-title { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; margin-top: 4px; }
.card-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); }
.card-title a:hover { background-size: 100% 1px; }
.card-company { font-size: 14px; color: var(--ink-2); grid-column: 1; }
.card-more { grid-column: 2; grid-row: 2 / span 2; align-self: start; margin-top: 2px; width: 34px; height: 34px; border: 1px solid var(--line); color: var(--ink-2); }
.card-more:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* ---------- skeletons ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2) !important; color: transparent !important; border-color: transparent !important; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.65), transparent);
  animation: shimmer 1.4s infinite;
}
.skeleton-text { display: block; width: 2.2ch; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
@keyframes shimmer { to { transform: translateX(100%); } }
.card-skeleton .sk-stage { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.card-skeleton .sk-line { height: 14px; border-radius: 6px; margin-top: 16px; width: 75%; }
.card-skeleton .sk-line.short { width: 45%; margin-top: 10px; }

/* ---------- empty / error state ---------- */
.empty { grid-column: 1 / -1; text-align: center; padding: clamp(48px, 8vw, 96px) 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty .icon { margin: 0 auto 16px; color: var(--ink-3); }
.empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.empty p { color: var(--ink-3); margin: 8px auto 24px; max-width: 44ch; }
.state-page { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 48px 16px; }
.state-page .display { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- our websites section ---------- */
/* ---------- Biniyog Club & Concerns Section ---------- */
.ecosystem-section {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.ecosystem-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}
.ecosystem-parent-wrap {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
}
.ecosystem-parent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 32px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -4px rgb(20 18 15 / 0.08);
  transition: transform .2s var(--ease), box-shadow .2s;
  text-decoration: none;
  position: relative;
}
.ecosystem-parent-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgb(20 18 15 / 0.14);
}
.ecosystem-parent-logo {
  height: 50px;
  max-width: 260px;
  object-fit: contain;
  display: block;
}
.ecosystem-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}
.ecosystem-stem {
  width: 2px;
  height: 28px;
  background: var(--line-strong);
}
.ecosystem-branch-line {
  position: relative;
  width: calc(100% - 140px);
  max-width: 1100px;
  height: 20px;
  border-left: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  border-top: 2px solid var(--line-strong);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-top: 0;
}
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 16px;
}
.ecosystem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgb(20 18 15 / 0.04);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  text-decoration: none;
  min-height: 88px;
  position: relative;
}
.ecosystem-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px -8px rgb(20 18 15 / 0.12);
}
.ecosystem-card-logo-wrap {
  height: 52px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.ecosystem-card-logo {
  max-height: 48px;
  max-width: 90%;
  object-fit: contain;
  transition: transform .2s var(--ease);
}
.ecosystem-card:hover .ecosystem-card-logo {
  transform: scale(1.05);
}
@media (max-width: 1100px) {
  .ecosystem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .ecosystem-branch-line {
    display: none;
  }
}
@media (max-width: 640px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ecosystem-card {
    padding: 12px 10px;
    min-height: 76px;
  }
  .ecosystem-card-logo-wrap {
    height: 42px;
  }
  .ecosystem-card-logo {
    max-height: 38px;
  }
}

.websites-section {
  padding-bottom: clamp(64px, 8vw, 96px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 64px);
}
.websites-head {
  margin-bottom: clamp(20px, 3vw, 28px);
}
.websites-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.website-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(20 18 15 / 0.03);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  position: relative;
}
.website-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px -10px rgb(20 18 15 / 0.16);
}
.website-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.website-card:hover .website-icon {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.website-info {
  flex: 1;
  min-width: 0;
}
.website-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.website-domain {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.website-arrow {
  color: var(--ink-3);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  transition: transform .2s var(--ease), color .2s, background-color .2s;
}
.website-card:hover .website-arrow {
  color: var(--ink);
  transform: translate(2px, -2px);
  background: var(--surface-2);
}
@media (max-width: 1024px) {
  .websites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .websites-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }

/* ---------- details page ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding-top: 28px; font-size: 14px; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .icon { color: var(--line-strong); }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.detail-stage { aspect-ratio: 1 / 1.08; border-radius: var(--radius-lg); padding: 10% 14%; }
.detail-stage .cover-img { cursor: zoom-in; }
.detail-stage:hover .cover-img { transform: translateY(-6px); box-shadow: var(--shadow-cover-hover); }
.detail-info .eyebrow a:hover { color: var(--ink); }
.detail-title { font-size: clamp(2.25rem, 4.4vw, 3.75rem); margin: 16px 0 14px; }
.detail-company { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 16px; }
.detail-company img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.detail-desc { margin-top: 24px; color: var(--ink-2); font-size: 17px; line-height: 1.7; max-width: 58ch; }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; margin: 32px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.detail-meta dt { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.detail-meta dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.detail-keywords span { font-size: 12px; color: var(--ink-3); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }

.related { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 10vw, 112px); border-top: 1px solid var(--line); }
.related .section-title { margin-bottom: 28px; }

/* ---------- toast ---------- */
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.toast {
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease); text-align: center;
}
.toast.is-in { opacity: 1; transform: none; }
.toast-error { background: var(--danger); }
.toast-success { background: var(--success); }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .detail { grid-template-columns: 1fr; }
  .detail-stage { aspect-ratio: 1 / 1.1; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; margin-right: -8px; }
  .search { height: 56px; border-radius: 16px; padding-left: 18px; }
  .search input { font-size: 16px; }
  .search-kbd { display: none; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .toolbar-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .toolbar-search { grid-column: 1 / -1; width: 100%; }
  .toolbar-search input { width: 100%; font-size: 15px; }
  .select select { max-width: none; width: 100%; }
  .card-cta { display: none; }
  .card-title { font-size: 17px; }
  .detail-actions .btn { flex: 1 1 auto; }
}
@media (hover: none) {
  .card:hover .cover-img, .card:hover .cover-placeholder { transform: none; box-shadow: var(--shadow-cover); }
}
