/* ── Theme Toggle (top nav) ──────────────────────── */

.theme-toggle-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
}

/* ── Logo inversion for dark mode ──────────────── */

img[src*="algorilla-logo"] {
  transition: filter 0.3s ease;
}

[data-theme="dark"] img[src*="algorilla-logo"] {
  filter: brightness(0) invert(1);
}

/* ── Social Proof ───────────────────────────────── */

.social-proof {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.social-proof-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-proof-quote {
  border-left: 2px solid var(--color-text);
  padding: 1.5rem 2rem;
  background: var(--color-surface);
}

.social-proof-quote p {
  font-size: var(--text-sm);
  line-height: 1.7;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.social-proof-quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.social-proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.social-proof-metric {
  padding: 2rem;
  text-align: center;
  background: var(--color-surface);
}

.social-proof-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-brand);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.social-proof-metric-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── FAQ Accordion ──────────────────────────────── */

.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-brand);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.faq-question-icon {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-family: var(--font-mono);
}

.faq-item.open .faq-question-icon {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 0 1.25rem 0;
}

.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Micro-interactions ─────────────────────────── */

.btn {
  transition: all 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.footer-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ── Layout Structure ───────────────────────────────── */

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Overlay (sits atop main UI layer) */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--space-sidebar);
  height: 100vh;
  z-index: 1000;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  will-change: transform;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

[data-theme="dark"] .sidebar-backdrop {
  background: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .carousel-body {
  color: #edecec;
}

[data-theme="dark"] .carousel-icon {
  color: #edecec;
}

.sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-toggle:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.sidebar-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sidebar-toggle.open span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sidebar .sidebar-logo {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.sidebar .sidebar-logo img {
  width: 40px;
  height: 40px;
}

.sidebar-info {
  margin-bottom: 2rem;
}

.sidebar-status {
  margin-top: auto;
  font-size: var(--text-xs);
  line-height: 1.6;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.sidebar-nav-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease;
}

.sidebar-nav-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  color: var(--color-text);
}

/* Main Scrollable Area */
.main-viewport {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar — sticky with scroll shadow */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 4rem;
  min-height: 4rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 3rem;
  gap: 3rem;
  background: var(--color-surface);
  transition: box-shadow 0.3s ease;
}

.top-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.top-nav a {
  text-transform: uppercase;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  padding-bottom: 2px;
}

.top-nav a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.top-nav a:hover {
  color: var(--color-text);
}

.top-nav a.active {
  color: var(--color-text);
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 2px;
}

.top-nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
}

.top-nav-logo img {
  display: block;
}

.content-padding {
  padding: var(--space-3xl) 8%;
}

.prose {
  max-width: 65ch;
}

.prose p, .prose li, .prose blockquote {
  max-width: 65ch;
}

/* ── Shared Components ────────────────────────────── */

.metadata-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
}

.data-cell {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.data-value {
  font-size: var(--text-xl);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ── Text Primitives ──────────────────────────────── */

.text-em {
  font-weight: 700;
}

.text-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-text-muted);
  text-decoration-skip-ink: none;
}

.text-underline-em {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
}

.text-strike {
  text-decoration: line-through;
  text-decoration-color: var(--color-text-muted);
  opacity: 0.6;
}

.text-marker {
  background: linear-gradient(to top, transparent 40%, var(--color-border) 40%);
  display: inline;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
  letter-spacing: -0.02em;
}

.text-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* ── Status Badges (cursor-style) ─────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

[data-theme="dark"] .badge-dot {
  background: #4ade80;
}

/* ── Hero / Mission Header ────────────────────────── */

.mission-header {
  margin-bottom: 2rem;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(200px, 1.0fr) 1.5fr;
  gap: 4.0rem;
  align-items: center;
}

.hero-logo-column {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-mark {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-logo-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-copy-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-headline {
  font-size: var(--text-5xl);
  line-height: 1.05;
  margin: 0 0 1.5rem 0;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 65ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 1.0rem;
}

/* ── Carousel (System Capabilities) ───────────── */

.carousel {
  position: relative;
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
  margin-top: 1.5rem;
  min-height: 16rem;
}

.carousel-track {
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: block;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  cursor: pointer;
  outline: none;
}

.carousel-slide:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.carousel-slide.active {
  visibility: visible;
  position: relative;
}

.carousel-slide-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.carousel-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carousel-icon {
  color: var(--color-text);
  width: 28px;
  height: 28px;
}

.carousel-icon svg {
  display: block;
}

.carousel-heading {
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.carousel-heading .first-word {
  display: block;
}

.carousel-body {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  max-width: 65ch;
  margin: 0;
}

.carousel-hint {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Carousel Navigation */

.carousel-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.carousel-dots {
  flex: 1;
}

.carousel-dots-track {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 2rem;
  height: 5px;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
  border-radius: 0;
}

.carousel-dot:hover {
  background: var(--color-text-muted);
}

.carousel-dot.active {
  background: var(--color-text);
  width: 3rem;
}

.carousel-counter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Carousel + Visual Layout ───────────────────── */

.carousel-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.carousel-content {
  min-width: 0;
}

.carousel-visual {
  position: sticky;
  top: 6rem;
}

.canopy-visual-container {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}

[data-theme="light"] .canopy-visual-container {
  background: radial-gradient(ellipse at 50% 50%, #efe9e0 0%, #e3dcd0 100%);
}

[data-theme="dark"] .canopy-visual-container {
  background: radial-gradient(ellipse at 50% 50%, #1e1c14 0%, #14120b 100%);
}

.canopy-visual-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── CTA Banner ────────────────────────────────────── */

.cta-banner {
  border: 2px solid var(--color-text);
  padding: 3rem;
  background: var(--color-surface);
}

.cta-banner h2 {
  font-size: var(--text-3xl);
  margin: 1rem 0;
}

.cta-banner p {
  color: var(--color-text-secondary);
  max-width: 65ch;
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--color-text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-surface);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-text);
}

/* ── Service Cards (Bento Grid) ──────────────────── */

.btn-outline {
  background: transparent;
  color: var(--color-text);
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-surface);
}

.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  perspective: 900px;
}

.bento-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.bento-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.bento-card:hover .bento-card-accent {
  transform: scaleX(1);
}

.bento-card-icon {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  width: 32px;
  height: 32px;
}

.bento-card-title {
  font-size: var(--text-xl);
  margin-bottom: 0.75rem;
}

.bento-card-summary {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.bento-card-details {
  list-style: none;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.bento-card-details li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.bento-card-details li:last-child {
  border-bottom: none;
}

.bento-card-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 1.0;
}

.bento-card-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ── How It Works Teaser (Home) ───────────────────── */

.hiw-teaser {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.hiw-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.hiw-teaser-content h2 {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}

.hiw-teaser-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 50ch;
}

.hiw-teaser-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hiw-teaser-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.step-marker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  width: 2rem;
  flex-shrink: 0;
}

/* ── Process Steps ────────────────────────────────── */

.process-steps-wrapper {
  position: relative;
}

.process-step {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 2rem;
  position: relative;
  transition: background 0.2s ease;
  cursor: default;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-text);
  transform: scaleY(0);
  transition: transform 0.25s ease;
  transform-origin: top;
}

.process-step:hover {
  background: var(--color-surface);
}

.process-step:hover::before {
  transform: scaleY(1);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  transition: color 0.2s ease;
  color: var(--color-text-muted);
}

.step-number::before {
  content: "[";
  font-size: 0.45em;
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.step-number::after {
  content: "]";
  font-size: 0.45em;
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.process-step:hover .step-number {
  color: var(--color-text);
}

.process-step:hover .step-number::before,
.process-step:hover .step-number::after {
  opacity: 1;
}

.step-content h3 {
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.process-step:hover .step-content h3 {
  color: var(--color-text);
}

.step-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.step-content ul {
  margin-top: 0.75rem;
  list-style: none;
}

.step-content ul li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.step-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
}

/* ── About / Philosophy ───────────────────────────── */

.philosophy-section {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}

.principle {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.principle:last-child {
  border-bottom: none;
}

.principle h3 {
  margin-bottom: 0.5rem;
}

.principle p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ── Approach Grid ─────────────────────────────────── */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.approach-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.approach-card:hover {
  border-color: var(--color-text-muted);
}

.approach-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--color-bg);
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.approach-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.approach-card-body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Projects Section ─────────────────────────────── */

.projects-section {
  scroll-margin-top: 4rem;
}

.project-block {
  margin-top: 1.5rem;
}

.project-intro {
  margin-bottom: 2.5rem;
}

.project-headline {
  font-size: var(--text-3xl);
  line-height: 1.1;
  margin: 0 0 0.75rem 0;
}

.project-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 55ch;
  margin: 0 0 1.25rem 0;
}

.project-learn-more {
  font-size: var(--text-sm);
}

/* ── Config Panel ─────────────────────────────────── */

.config-panel {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 220px;
  background: color-mix(in srgb, var(--color-bg) 75%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

[data-theme="light"] .config-panel {
  background: color-mix(in srgb, #f5f2eb 80%, transparent);
  border-color: #d4cfc4;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

[data-theme="dark"] .config-panel {
  background: color-mix(in srgb, #1a1812 80%, transparent);
  border-color: #3a382e;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.config-panel-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: grab;
  user-select: none;
}

.config-panel-header:active {
  cursor: grabbing;
}

.config-panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
}

.config-panel-dot:nth-child(1) { background: #ff5f56; }
.config-panel-dot:nth-child(2) { background: #ffbd2e; }
.config-panel-dot:nth-child(3) { background: #27c93f; }

.config-panel-title {
  margin-left: auto;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.config-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.config-tab {
  flex: 1;
  padding: 6px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.config-tab:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.config-tab.active {
  color: var(--color-text);
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-text);
}

.config-panel-body {
  padding: 10px;
  min-height: 140px;
}

.config-tab-content {
  display: none;
}

.config-tab-content.active {
  display: block;
}

/* Resize handle */
.config-panel-resize {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  z-index: 11;
}

.config-panel-resize::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  opacity: 0.4;
}

.config-panel.dragging {
  opacity: 0.85;
  transition: none;
}

.config-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 3px 0;
}

.config-toggle input {
  display: none;
}

.toggle-track {
  width: 28px;
  height: 14px;
  background: var(--color-border);
  border-radius: 7px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: var(--color-text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.config-toggle input:checked + .toggle-track {
  background: var(--color-text);
}

.config-toggle input:checked + .toggle-track::after {
  transform: translateX(14px);
  background: var(--color-bg);
}

.toggle-label {
  font-size: 10px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Status indicators */

.config-status-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-up { background: #27c93f; }
.status-pending { background: #ffbd2e; }

/* Log window */

.config-log-window {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 8px;
  min-height: 80px;
  font-size: 9px;
  line-height: 1.7;
}

.log-line {
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-line-active {
  color: var(--color-text);
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  50% { opacity: 0.4; }
}

/* ── Post List ────────────────────────────────────── */

.post-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: padding-left 0.2s ease;
}

.post-card:hover {
  padding-left: 1rem;
  border-left: 2px solid var(--color-text-muted);
}

.post-card.paper-card:hover {
  border-left-color: var(--color-text);
}

.post-card:last-child {
  border-bottom: none;
}

.post-card h2 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

.post-card h2 a {
  color: var(--color-brand);
}

.post-card h2 a:hover {
  color: var(--color-text-secondary);
}

.post-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* ── Research Paper Badge ──────────────────────────── */

.paper-indicator {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.paper-card {
  border-left: 3px solid var(--color-text);
  padding-left: 1.5rem;
}

.paper-badge {
  display: inline-block;
  border: 1px solid var(--color-text);
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  margin-bottom: 0.5rem;
}

.paper-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 65ch;
}

.paper-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.paper-footer p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.paper-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.paper-footer a:hover {
  opacity: 0.6;
}

.paper-footer a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* ── Paper Abstract ─────────────────────────────────── */

.paper-abstract {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.paper-abstract::before {
  content: "Overview";
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  background: var(--color-surface);
  padding: 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.paper-abstract h2 {
  display: none;
}

.paper-abstract p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ── Paper Insight Callouts ─────────────────────────── */

.paper-insight {
  border-left: 3px solid var(--color-text);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-theme-bg);
}

.paper-insight p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0;
}

.paper-insight p:last-child {
  margin-bottom: 0;
}

/* ── Paper Content Tables ──────────────────────────── */

.paper-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
}

.paper-content th,
.paper-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.paper-content th {
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-surface);
}

.paper-content td {
  color: var(--color-text-secondary);
}

.paper-content tbody tr:nth-child(even) {
  background: var(--color-theme-bg);
}

.paper-content tbody tr:nth-child(odd) {
  background: var(--color-surface);
}

.paper-content tbody tr:hover {
  background: var(--color-border);
}

.paper-content tr:last-child td {
  border-bottom: none;
}

.paper-content .highlight-row {
  background: var(--color-surface) !important;
  border-left: 3px solid var(--color-text);
}

.paper-content .highlight-row td {
  color: var(--color-text);
  font-weight: 600;
}

/* ── Paper Figures (SVG diagrams) ──────────────────── */

.paper-figure {
  margin: 2rem 0;
  text-align: center;
}

.paper-figure svg *[fill="#000"] {
  fill: var(--color-text);
}

.paper-figure svg *[stroke="#000"] {
  stroke: var(--color-text);
}

.paper-figure svg *[fill="#555"] {
  fill: var(--color-text-secondary);
}

.paper-figure svg *[stroke="#555"] {
  stroke: var(--color-text-secondary);
}

.paper-figure svg text {
  fill: var(--color-text);
}

/* ── Paper Code Blocks ─────────────────────────────── */

.paper-content pre {
  font-size: 0.7rem;
  line-height: 1.3;
  background: var(--color-theme-bg);
  border: 1px solid var(--color-border);
}

/* ── Paper Section Adornments ──────────────────────── */

.paper-content h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-left: 0.75rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}

.paper-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 3rem;
  height: 3px;
  background: var(--color-text);
}

.paper-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--color-text-muted);
}

/* ── Paper Footnotes ────────────────────────────────── */

.paper-footnote {
  font-style: italic;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ── Paper Content Text ────────────────────────────── */

.paper-content p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.paper-content li {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.paper-content ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.paper-content ol li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Single Post ──────────────────────────────────── */

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.post-back {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.2s ease;
}

.post-back:hover {
  opacity: 0.6;
}

.post-back:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.post-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.post-content ul, .post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.post-content pre {
  margin: 1.5rem 0;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-left: 2px solid var(--color-text);
  background: var(--color-surface);
}

.post-content blockquote p {
  margin-bottom: 0;
}

/* ── Contact ──────────────────────────────────────── */

.contact-card {
  border: 1px solid var(--color-border);
  padding: 3rem;
  background: var(--color-surface);
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.contact-card h3:first-child {
  margin-top: 0;
}

.contact-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* ── Lead Form (Multi-Step) ────────────────────── */

.lead-form {
  max-width: 440px;
}

.form-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.form-step {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.form-step.active {
  color: var(--color-text);
  border-color: var(--color-text);
}

.form-step-connector {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  max-width: 2rem;
}

.form-step-panel {
  display: none;
}

.form-step-panel.active {
  display: block;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-theme-bg);
  border: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-text);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--color-theme-bg);
  border: 1px solid var(--color-border);
}

.form-status.success {
  border-color: var(--color-text);
  color: var(--color-text);
}

.form-status.error {
  border-color: #cc0000;
  color: #cc0000;
}

[data-theme="dark"] .form-status.error {
  border-color: #ff4444;
  color: #ff4444;
}

@media (max-width: 768px) {
  .lead-form {
    max-width: 100%;
  }
  .contact-card {
    padding: 1.5rem;
  }
}

/* ── Comparison Table ─────────────────────────────── */

.comparison-table {
  overflow-x: auto;
  margin-top: 2rem;
  border: 1px solid var(--color-border);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
}

.comparison-table th {
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-surface);
}

.comparison-table td {
  color: var(--color-text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* ── Privacy Notice ──────────────────────────────── */

.privacy-content {
  max-width: 720px;
}

.privacy-section {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.privacy-section:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.privacy-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.privacy-section h2 + p,
.privacy-section h2 + p:last-of-type {
  margin-bottom: var(--space-md);
}

.privacy-section > p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.privacy-list li {
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
}

.privacy-list li:last-child {
  border-bottom: none;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-border);
}

.privacy-cell {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.privacy-cell:last-child,
.privacy-cell:nth-last-child(2) {
  border-bottom: none;
}

.privacy-cell .data-value {
  font-size: var(--text-lg);
}

.privacy-block {
  border: 1px solid var(--color-border);
  margin-top: var(--space-md);
}

.privacy-block-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.privacy-block-item:last-child {
  border-bottom: none;
}

.privacy-block-item strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3xs);
}

.privacy-block-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin: 0;
}

.privacy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.privacy-row-label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.privacy-row-value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.privacy-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-3xs) var(--space-xs);
}

.privacy-badge-always {
  background: var(--color-border);
  color: var(--color-text-muted);
}

.privacy-badge-consent {
  background: var(--color-text);
  color: var(--color-surface);
}

.privacy-cookie-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.privacy-cookie-item:last-child {
  border-bottom: none;
}

.privacy-cookie-item p {
  margin-top: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.privacy-cookie-item:first-child {
  border-top: 1px solid var(--color-border);
}

.privacy-contact p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-md);
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
  background: #111111;
  border-top: 1px solid #2a2a2a;
  padding: 1.5rem 8% 1.25rem;
  margin-top: 4rem;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8125rem;
}

.footer-brand img {
  display: block;
}

.footer-email a {
  color: #a0a0a0;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-email a:hover {
  color: #ffffff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav .footer-link {
  color: #666666;
  font-size: 0.6875rem;
  transition: color 0.2s ease;
  padding: 0 0.5rem;
}

.footer-nav .footer-link:hover {
  color: #ffffff;
}

.footer-nav .footer-link + .footer-link::before {
  content: "·";
  color: #333333;
  padding-right: 1rem;
  display: inline;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 0.75rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.625rem;
  color: #666666;
  font-family: var(--font-mono);
  margin: 0;
}

.footer-bottom a {
  color: #666666;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 768px) {
  .top-nav a:not(.sidebar-toggle) {
    display: none;
  }

  .top-nav {
    padding: 0 1rem;
  }

  .hero-logo-column {
    justify-content: center;
  }

  .hero-logo-mark {
    max-width: 100px;
  }

  .carousel-layout {
    grid-template-columns: 1fr;
  }

  .carousel-visual {
    position: relative;
    top: auto;
  }

  .canopy-visual-container {
    display: none;
  }

  .config-panel {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 0;
  }

  .hero-headline {
    font-size: var(--text-4xl);
    line-height: 1;
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

  .carousel-slide-inner {
    gap: var(--space-md);
  }

  .carousel-dot {
    width: var(--space-lg);
  }

  .carousel-dot.active {
    width: var(--space-xl);
  }

  .footer-main {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .footer-nav .footer-link + .footer-link::before {
    display: none;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: var(--space-xl) 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 600px) {
  .content-padding {
    padding: 1.5rem 1rem;
  }

  .hero-headline {
    font-size: var(--text-3xl);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .carousel-heading {
    font-size: var(--text-lg);
  }

  .carousel-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
  }

  .cta-banner h2 {
    font-size: var(--text-2xl);
  }

  .contact-card {
    padding: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-logo-column {
    justify-content: center;
    order: -1;
  }

  .hero-logo-mark {
    max-width: 120px;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .carousel-layout {
    grid-template-columns: 1fr;
  }

  .carousel-visual {
    position: relative;
    top: auto;
  }

  .config-panel {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .bento-card {
    padding: 1.5rem;
  }

  .hiw-teaser-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hiw-teaser-content h2 {
    font-size: var(--text-2xl);
  }
  .top-nav {
    gap: 1.5rem;
    padding: 0 1.5rem;
    overflow-x: auto;
  }

  .content-padding {
    padding: 2rem 1.5rem;
  }

  .carousel {
    padding-top: 2rem;
    min-height: auto;
  }

  .carousel-slide-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: auto;
  }

  .carousel-heading {
    font-size: var(--text-xl);
  }

  .carousel-hint {
    display: none;
  }

  .carousel-right::before {
    display: none;
  }

  .carousel-nav {
    flex-wrap: wrap;
  }

  .carousel-counter {
    display: none;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .post-card h2 {
    font-size: var(--text-lg);
  }

  .post-excerpt {
    font-size: var(--text-sm);
  }

  .paper-article .post-header h1 {
    font-size: var(--text-2xl);
  }

  .post-content {
    font-size: var(--text-sm);
  }

  .footer-main {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .footer-nav .footer-link + .footer-link::before {
    display: none;
  }
}
