/* Duyus — PortfolioBox-inspired theme (light + dark) */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --bg-muted: #efefec;
  --text: #0a0a0a;
  --text-muted: #5c5c5c;
  --text-light: #888;
  --border: #e4e4e0;
  --border-dark: #d0d0cb;
  --accent: #0a0a0a;
  --accent-hover: #222222;
  --on-accent: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.92);
  --showcase-gradient: linear-gradient(145deg, #ececea, #f7f7f5);
  --icon-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --container: 1140px;
  --header-h: 72px;
  --mobile-nav-h: 72px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --reveal-distance: 64px;
  --reveal-duration: 1s;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-muted: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --text-light: #737373;
  --border: #2a2a2a;
  --border-dark: #3a3a3a;
  --accent: #ffffff;
  --accent-hover: #e5e5e5;
  --on-accent: #0a0a0a;
  --header-bg: rgba(10, 10, 10, 0.92);
  --showcase-gradient: linear-gradient(145deg, #1a1a1a, #111111);
  --icon-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#mobile,
#web {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}
.container-narrow { max-width: 720px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}
.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.nav-list { display: flex; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-soft);
}
.header-actions { display: flex; align-items: center; gap: 0.65rem; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-dark);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.lang-switcher { position: relative; }
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  padding: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: 0.2s var(--ease);
}
.lang-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: block;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  border-radius: 6px;
  color: var(--text-muted);
}
.lang-option:hover,
.lang-option.is-active { background: var(--bg-soft); color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-dark:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn-outline:hover { border-color: var(--text); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.9375rem; }

main { min-height: 50vh; }

/* Hero — PortfolioBox style */
.pb-hero {
  padding: 4rem 0 0;
  text-align: center;
  background: var(--bg);
}
.pb-hero-inner {
  max-width: 820px;
  margin-inline: auto;
  padding-bottom: 3rem;
}
.pb-hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}
.pb-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
}
.pb-hero-title-sm {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: left;
}
.pb-hero-lead,
.pb-section-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.pb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.pb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.pb-trust span:nth-child(odd) { color: var(--text-muted); font-weight: 500; }

/* Hero animated stats */
.pb-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.pb-hero-stat {
  min-width: 88px;
  padding: 0.85rem 1.1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.pb-hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pb-hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.pb-hero-stat span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero icon strip — marquee */
.pb-hero-gallery-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pb-marquee-track {
  display: flex;
  width: max-content;
  animation: pb-marquee 45s linear infinite;
}
.pb-marquee-track:hover { animation-play-state: paused; }
.pb-marquee-group {
  display: flex;
  gap: 1rem;
  padding: 0 0.5rem;
}
@keyframes pb-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Touch devices: static icon row — animated marquee breaks tap on iOS */
@media (hover: none) and (pointer: coarse) {
  .pb-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1rem;
  }
  .pb-marquee-group[aria-hidden="true"] {
    display: none;
  }
}
.pb-hero-thumb-web img {
  border-radius: 12px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Hero icon strip */
.pb-hero-gallery {
  overflow: hidden;
  padding: 2rem 0 3rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pb-hero-gallery-track {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}
.pb-hero-thumb {
  flex-shrink: 0;
  display: block;
  transition: transform 0.25s var(--ease);
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 20%, transparent);
  touch-action: manipulation;
}
.pb-hero-thumb:hover { transform: scale(1.08); }
.pb-hero-thumb img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Sections */
.pb-section {
  padding: 5rem 0;
  position: relative;
  overflow: clip;
}
.pb-section:nth-child(even) {
  background: var(--bg-soft);
}
.pb-intro { text-align: center; }
.pb-intro-inner .pb-section-title { margin-bottom: 1rem; }
.pb-section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.pb-section-head-center {
  text-align: center;
  margin-inline: auto;
}
.pb-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.pb-section-lead { margin: 0; font-size: 1.0625rem; }

/* Features */
.pb-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.pb-feature-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
.pb-feature-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s, transform 0.25s;
}
.pb-section:nth-child(even) .pb-feature-card {
  background: var(--bg);
}
.pb-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.pb-feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.pb-feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.pb-tag-web {
  color: var(--web-accent, #2563eb);
}
.pb-tag-mobile {
  color: #0071e3;
}
[data-theme="dark"] .pb-tag-web {
  color: #60a5fa;
}
[data-theme="dark"] .pb-tag-mobile {
  color: #2997ff;
}

/* Type tabs */
.pb-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.pb-type-tab {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  transition: 0.2s;
}
.pb-type-tab:hover { border-color: var(--border-dark); color: var(--text); }
.pb-type-tab.is-active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* Web section */
.pb-web {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}
.pb-web-spotlight {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.pb-web-spotlight-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 1rem;
}
.pb-web-spotlight-copy p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1.5rem;
}
.pb-web-highlights {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.pb-web-highlights li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.pb-web-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pb-web-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.pb-tech-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.pb-tech-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  white-space: nowrap;
}
.pb-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pb-tech-tags span,
.pb-web-stack span {
  padding: 0.3rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pb-web-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.pb-web-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.pb-web-companion {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.pb-web-preview {
  overflow: hidden;
  background: var(--bg-muted);
  position: relative;
  line-height: 0;
}
.pb-web-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  border-radius: inherit;
}
.pb-web-card a:hover .pb-web-preview::after {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--web-accent, #2563eb) 30%, transparent);
}
.pb-web-preview-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease);
  background: var(--bg-soft);
}
.pb-web-card a:hover .pb-web-preview-img {
  transform: scale(1.04);
}
.pb-web-preview-lg {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.pb-web-preview-lg .pb-web-preview-img {
  aspect-ratio: 16 / 10;
}
[data-theme="dark"] .pb-web-preview-img {
  opacity: 0.96;
}

/* Tech marquee */
.pb-tech-marquee .pb-tech-label { flex-shrink: 0; }
.pb-tech-marquee-viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.pb-tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: pb-marquee 30s linear infinite;
}
.pb-tech-marquee:hover .pb-tech-marquee-track { animation-play-state: paused; }
.pb-tech-marquee .pb-tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Stats animated */
.pb-stat-item {
  transition: transform 0.3s var(--ease);
}
.pb-stats-grid.is-visible .pb-stat-item {
  animation: pb-stat-pop 0.5s var(--ease) backwards;
}
.pb-stats-grid.is-visible .pb-stat-item:nth-child(1) { animation-delay: 0.05s; }
.pb-stats-grid.is-visible .pb-stat-item:nth-child(2) { animation-delay: 0.1s; }
.pb-stats-grid.is-visible .pb-stat-item:nth-child(3) { animation-delay: 0.15s; }
.pb-stats-grid.is-visible .pb-stat-item:nth-child(4) { animation-delay: 0.2s; }
.pb-stats-grid.is-visible .pb-stat-item:nth-child(5) { animation-delay: 0.25s; }
@keyframes pb-stat-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pb-stats-grid strong {
  font-variant-numeric: tabular-nums;
}
.pb-showcase-visual-web img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Browser chrome */
.pb-browser {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.pb-web-card a:hover .pb-browser,
.pb-browser-lg:hover {
  box-shadow: var(--shadow-hover);
}
.pb-browser-lg {
  box-shadow: var(--shadow-hover);
}
.pb-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.pb-browser-dots {
  display: flex;
  gap: 5px;
}
.pb-browser-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-dark);
}
.pb-browser-dots i:nth-child(1) { background: #ff5f57; }
.pb-browser-dots i:nth-child(2) { background: #febc2e; }
.pb-browser-dots i:nth-child(3) { background: #28c840; }
.pb-browser-url {
  flex: 1;
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-light);
  background: var(--bg-soft);
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-browser-body {
  aspect-ratio: 16 / 10;
  padding: 1rem;
  background: var(--bg);
  overflow: hidden;
}
.pb-browser-lg .pb-browser-body {
  aspect-ratio: 16 / 11;
  padding: 1.25rem;
}

/* Web cards */
.pb-web-card a {
  display: block;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.pb-web-card a:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.pb-web-card .pb-gallery-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

/* CSS mockups */
.pb-mockup {
  height: 100%;
  min-height: 120px;
}
.pb-mock-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28%;
  height: 100%;
  float: left;
  padding-right: 0.75rem;
}
.pb-mock-sidebar span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-muted);
}
.pb-mock-sidebar span:first-child { width: 70%; background: var(--border-dark); }
.pb-mock-main { overflow: hidden; }
.pb-mock-header {
  height: 10px;
  width: 45%;
  border-radius: 4px;
  background: var(--border-dark);
  margin-bottom: 0.75rem;
}
.pb-mock-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6px;
  margin-bottom: 0.75rem;
}
.pb-mock-chart {
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--bg-muted), var(--bg-soft));
  border: 1px solid var(--border);
}
.pb-mock-chart-lg { grid-row: span 2; height: auto; min-height: 102px; }
.pb-mock-rows span {
  display: block;
  height: 7px;
  border-radius: 3px;
  background: var(--bg-muted);
  margin-bottom: 5px;
}
.pb-mock-rows span:nth-child(1) { width: 90%; }
.pb-mock-rows span:nth-child(2) { width: 75%; }
.pb-mock-rows span:nth-child(3) { width: 60%; }

.pb-mock-chat { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.pb-mock-bubble {
  height: 28px;
  border-radius: 10px;
  max-width: 75%;
  background: var(--bg-muted);
}
.pb-mock-bubble-out {
  align-self: flex-end;
  background: var(--accent);
  opacity: 0.15;
}
.pb-mock-bubble-sm { max-width: 45%; height: 20px; }
.pb-mock-input {
  margin-top: auto;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.pb-mock-form { display: flex; flex-direction: column; gap: 8px; }
.pb-mock-field {
  height: 14px;
  border-radius: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}
.pb-mock-field-lg { height: 36px; }
.pb-mock-steps {
  display: flex;
  gap: 6px;
  margin: 0.25rem 0;
}
.pb-mock-steps span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}
.pb-mock-steps span.is-active { background: var(--accent); opacity: 0.4; }
.pb-mock-btn {
  height: 22px;
  width: 40%;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0.2;
  margin-top: auto;
}

.pb-mock-inbox {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 8px;
  height: 100%;
}
.pb-mock-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pb-mock-inbox-list span {
  height: 18px;
  border-radius: 4px;
  background: var(--bg-muted);
}
.pb-mock-inbox-list span.is-active { background: var(--border-dark); }
.pb-mock-inbox-detail { display: flex; flex-direction: column; gap: 6px; }

.pb-mock-map {
  position: relative;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--bg-muted) 40%, var(--bg-soft));
  border: 1px solid var(--border);
}
.pb-mock-map-pin {
  position: absolute;
  top: 35%;
  left: 45%;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  opacity: 0.35;
  transform: rotate(-45deg);
}
.pb-mock-map-card {
  position: absolute;
  bottom: 12%;
  left: 10%;
  right: 10%;
  padding: 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.pb-mock-map-card span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-muted);
  margin-bottom: 4px;
}
.pb-mock-map-card span:first-child { width: 60%; }

.pb-mock-journal { display: flex; flex-direction: column; gap: 8px; }
.pb-mock-journal-date {
  width: 35%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-dark);
}
.pb-mock-mood {
  display: flex;
  gap: 6px;
}
.pb-mock-mood span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.pb-mock-checklist { display: flex; flex-direction: column; gap: 8px; }
.pb-mock-check {
  height: 14px;
  border-radius: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  position: relative;
}
.pb-mock-check.is-done { opacity: 0.5; }
.pb-mock-check.is-done::before {
  content: "✓";
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 10px;
  color: var(--text-light);
}
.pb-mock-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.pb-mock-progress::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 55%;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 3px;
}

.pb-mock-admin { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.pb-mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pb-mock-stat {
  height: 32px;
  border-radius: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}
.pb-mock-table span {
  display: block;
  height: 10px;
  border-radius: 3px;
  background: var(--bg-muted);
  margin-bottom: 5px;
}
.pb-mock-table span:first-child { background: var(--border-dark); width: 100%; }

.pb-showcase-visual-web {
  padding: 1rem;
  background: var(--bg);
}
.pb-showcase-visual-web .pb-mockup { min-height: 140px; }
.pb-showcase-card-web .pb-showcase-visual { height: auto; min-height: 200px; }

.pb-category-grid-5 { grid-template-columns: repeat(5, 1fr); }
.pb-category-card-web { border-style: dashed; }

.pb-stats-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Filters */
.pb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.pb-filter {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: 0.2s;
}
.pb-filter:hover { border-color: var(--border-dark); color: var(--text); }
.pb-filter.is-active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* Gallery grid — template cards */
.pb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pb-gallery-card.is-hidden,
.pb-web-card.is-hidden { display: none; }
.pb-gallery-card a {
  display: block;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 20%, transparent);
  touch-action: manipulation;
}
.pb-gallery-card a:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.pb-gallery-visual {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  padding: 2.5rem;
}
.pb-gallery-visual img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  min-width: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--icon-shadow);
}
.pb-gallery-body {
  padding: 1.35rem 1.5rem 1.5rem;
}
.pb-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.pb-gallery-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.pb-gallery-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pb-gallery-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

/* Showcase horizontal scroll */
.pb-showcase-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.pb-showcase-scroll::-webkit-scrollbar { height: 6px; }
.pb-showcase-scroll::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 3px; }
.pb-showcase-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 20%, transparent);
  touch-action: manipulation;
}
.pb-showcase-card:hover { box-shadow: var(--shadow-hover); }
.pb-showcase-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--showcase-gradient);
}
.pb-showcase-visual img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.pb-showcase-body { padding: 1.25rem 1.5rem 1.5rem; }
.pb-showcase-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0.35rem 0 0.5rem;
}
.pb-showcase-body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Categories */
.pb-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pb-category-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: 0.25s;
}
.pb-category-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow);
}
.pb-category-icon {
  font-size: 1.25rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.75rem;
}
.pb-category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.pb-category-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Stats */
.pb-stats {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
  padding: 3.5rem 0;
}
.pb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.pb-stats-grid strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.pb-stats-grid span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* FAQ */
.pb-faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.pb-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.pb-faq-item summary {
  padding: 1.15rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pb-faq-item summary::-webkit-details-marker { display: none; }
.pb-faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
}
.pb-faq-item[open] summary::after { content: "−"; }
.pb-faq-item p {
  padding: 0 1.35rem 1.15rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* CTA */
.pb-cta {
  padding: 5rem 0 6rem;
  text-align: center;
  background: var(--bg-soft);
}
.pb-cta-inner { max-width: 560px; margin-inline: auto; }
.pb-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.pb-cta p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
}
.pb-portfolio-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  text-align: center;
  margin-top: 2.5rem;
}

/* Portfolio page — compact cards (no giant icon tiles) */
.page-portfolio .pb-gallery-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-portfolio .pb-gallery-card a {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
}

.page-portfolio .pb-gallery-visual {
  aspect-ratio: auto;
  padding: 1rem 0 1rem 1rem;
  background: transparent;
}

.page-portfolio .pb-gallery-visual img {
  width: 56px;
  height: 56px;
  max-width: 56px;
  min-width: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.page-portfolio .pb-gallery-body {
  padding: 1rem 1.25rem 1rem 0.5rem;
}

.page-portfolio .pb-web-card a {
  display: block;
}

.page-portfolio .pb-web-preview-img {
  max-height: 220px;
}

@media (min-width: 640px) {
  .page-portfolio .pb-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .page-portfolio .pb-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Inner pages */
.pb-page-hero,
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.page-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.page-about .about-grid {
  padding: 0;
}
.page-about .about-intro-section {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.page-about .about-intro-section + .page-hero {
  border-bottom: none;
}
.about-story-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.about-content p,
.contact-card p {
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.about-highlights {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.about-highlights li {
  position: relative;
  padding-left: 1.125rem;
  margin-bottom: 0.55rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.about-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text);
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.about-mission {
  padding: 0 0 2.5rem;
}
.about-mission-quote {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.75rem, 4vw, 2.5rem);
  border-left: 3px solid var(--text);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.about-mission-quote p {
  margin: 0;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.about-focus-section {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}
.about-focus-lead {
  max-width: 52ch;
  margin: 0 0 2rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.about-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-focus-card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}
.about-focus-card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow);
}
.about-focus-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.about-focus-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}
.about-focus-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.about-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.about-stats-mini div {
  text-align: center;
}
.about-stats-mini strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.about-stats-mini span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--text-muted);
}
.section-tight {
  padding-top: 0;
}
.about-company,
.contact-info,
.contact-card {
  padding: 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.company-dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.company-dl dt { color: var(--text-muted); }
.company-dl dd { margin: 0; font-weight: 500; }

.values-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.value-card,
.proof-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.contact-cards { display: grid; gap: 1rem; }
.contact-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.contact-link:hover { text-decoration: underline; }

.prose { max-width: 720px; padding: 3rem 0 4rem; }
.prose h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prose p { color: var(--text-muted); line-height: 1.75; margin: 0 0 1rem; }
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--text-light); }
.page-meta {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0;
}
.page-hero-sm { padding: 3rem 0 1.5rem; }
.legal-contact {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.legal-contact strong { color: var(--text); }
.legal-contact a {
  color: var(--text);
  font-weight: 600;
}
.legal-contact a:hover { text-decoration: underline; }

.section { padding: 4rem 0; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.not-found {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  max-width: 28ch;
}
.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-light);
}
.footer-bottom p { margin: 0; }

/* Scroll reveal — Apple / PortfolioBox style */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition:
    opacity var(--reveal-duration) var(--ease-apple),
    transform var(--reveal-duration) var(--ease-apple),
    filter var(--reveal-duration) var(--ease-apple);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Directions */
[data-reveal="up"],
[data-reveal=""] {
  transform: translateY(var(--reveal-distance));
}
[data-reveal="down"] {
  transform: translateY(calc(var(--reveal-distance) * -1));
}
[data-reveal="left"] {
  transform: translateX(calc(var(--reveal-distance) * -1));
}
[data-reveal="right"] {
  transform: translateX(var(--reveal-distance));
}
[data-reveal="scale"] {
  transform: scale(0.92) translateY(32px);
}
[data-reveal="blur-up"] {
  transform: translateY(40px);
  filter: blur(10px);
}

/* Stagger delays */
[data-reveal-delay="0"] { transition-delay: 0ms; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
[data-reveal-delay="5"] { transition-delay: 0.4s; }
[data-reveal-delay="6"] { transition-delay: 0.48s; }
[data-reveal-delay="7"] { transition-delay: 0.56s; }
[data-reveal-delay="8"] { transition-delay: 0.64s; }

/* FAQ stagger items */
.pb-web-spotlight-copy[data-reveal="left"] { transform: translateX(calc(var(--reveal-distance) * -1.2)); }
.pb-web-spotlight-visual[data-reveal="right"] { transform: translateX(calc(var(--reveal-distance) * 1.2)); }

/* Showcase cards inside scroll strip */
.pb-showcase-scroll [data-reveal] {
  --reveal-distance: 48px;
}

/* FAQ stagger items */
.pb-faq-item[data-reveal] {
  --reveal-distance: 40px;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    will-change: auto;
  }
  .btn:hover, .pb-gallery-card a:hover, .pb-web-card a:hover { transform: none; }
  .pb-marquee-track,
  .pb-tech-marquee-track { animation: none; }
  .pb-stats-grid.is-visible .pb-stat-item { animation: none; }
}

@media (max-width: 1024px) {
  .pb-feature-grid,
  .pb-feature-grid-5,
  .pb-gallery-grid,
  .pb-web-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-category-grid,
  .pb-category-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .pb-stats-grid,
  .pb-stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .pb-web-spotlight { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-actions .btn { width: 100%; }
  .about-stats-mini { grid-template-columns: repeat(3, 1fr); }
  .values-grid, .proof-grid { grid-template-columns: 1fr; }
}

/* Mobile bottom navigation — desktop: hidden */
.mobile-bottom-nav {
  display: none !important;
}

@media (min-width: 769px) {
  body.has-mobile-nav {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  :root { --reveal-distance: 40px; }

  html { scroll-behavior: auto; }

  body.has-mobile-nav {
    padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
    touch-action: manipulation;
    overflow-x: clip;
  }

  [data-reveal] {
    opacity: 1;
    transform: none !important;
    filter: none !important;
    transition: none;
    will-change: auto;
  }

  .pb-stats-grid.is-visible .pb-stat-item {
    animation: none;
  }

  .mobile-bottom-nav {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bottom-nav[hidden] {
    display: block !important;
  }

  .mobile-bottom-nav-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: var(--mobile-nav-h);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    height: 100%;
    padding: 0.45rem 0.25rem 0.4rem;
    font-size: clamp(0.5625rem, 2.5vw, 0.6875rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.2s;
  }

  .mobile-bottom-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-bottom-nav-link span {
    display: -webkit-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .nav-primary {
    display: none !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .header-cta { display: none; }

  .pb-gallery-card a {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    min-height: 44px;
  }

  .pb-gallery-visual {
    aspect-ratio: auto;
    padding: 0.75rem 0 0.75rem 0.75rem;
    background: transparent;
  }

  .pb-gallery-visual img {
    width: 52px;
    height: 52px;
    max-width: 52px;
    min-width: 52px;
    border-radius: 12px;
  }

  .pb-gallery-body {
    padding: 0.75rem 1rem 0.75rem 0;
  }

  .pb-gallery-grid,
  .pb-web-grid,
  .pb-feature-grid,
  .pb-feature-grid-5,
  .pb-category-grid,
  .pb-category-grid-5 { grid-template-columns: 1fr; }
  .pb-stats-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .pb-hero-actions { flex-direction: column; align-items: stretch; }
  .pb-hero-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
}
