/*
 * Design tokens (aligned with Tailwind v4 / shadcn theme).
 * This file is plain CSS — no @import "tailwindcss" or @theme (requires a Tailwind build).
 * Dark: html.dark / .dark matches theme.js; prefers-color-scheme mirrors .dark when not .light.
 */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --secondary: #f5f5f5;
  --secondary-foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --destructive: #e7000b;
  --destructive-foreground: #ffffff;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #a1a1a1;
  --chart-1: #91c5ff;
  --chart-2: #3a81f6;
  --chart-3: #2563ef;
  --chart-4: #1a4eda;
  --chart-5: #1f3fad;
  --sidebar: #fafafa;
  --sidebar-foreground: #0a0a0a;
  --sidebar-primary: #171717;
  --sidebar-primary-foreground: #fafafa;
  --sidebar-accent: #f5f5f5;
  --sidebar-accent-foreground: #171717;
  --sidebar-border: #e5e5e5;
  --sidebar-ring: #a1a1a1;
  --font-sans: "Chakra Petch", ui-sans-serif, sans-serif, system-ui;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 0rem;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --shadow-x: 0;
  --shadow-y: 1px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.1;
  --shadow-color: oklch(0 0 0);
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
  --tracking-normal: 0em;
  --spacing: 0.25rem;
  --pattern-line: color-mix(in srgb, var(--foreground) 14%, transparent);
  --pattern-dot: color-mix(in srgb, var(--foreground) 12%, transparent);
  /* Shared with dark: structural tokens (invert SVG wordmarks/icons; success text) */
  --logo-invert: 0;
  --contact-success: oklch(0.45 0.15 145);
}

.dark,
html.dark {
  --background: #000000;
  --foreground: #ffffff;
  --card: #000000;
  --card-foreground: #ffffff;
  --popover: #000000;
  --popover-foreground: #ffffff;
  --primary: #d6544b;
  --primary-foreground: #000000;
  --secondary: #d6544b;
  --secondary-foreground: #000000;
  --muted: #1c1c17;
  --muted-foreground: #ffffff;
  --accent: #d6544b;
  --accent-foreground: #000000;
  --destructive: #d6544b;
  --destructive-foreground: #000000;
  --border: #222222;
  --input: #000000;
  --ring: #d6544b;
  --chart-1: #e68933;
  --chart-2: #d4ce21;
  --chart-3: #2f75e4;
  --chart-4: #6534db;
  --chart-5: #d6544b;
  --sidebar: #000000;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #d6544b;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #d6544b;
  --sidebar-accent-foreground: #000000;
  --sidebar-border: #000000;
  --sidebar-ring: #d6544b;
  --pattern-line: color-mix(in srgb, var(--foreground) 18%, transparent);
  --pattern-dot: color-mix(in srgb, var(--foreground) 12%, transparent);
  --logo-invert: 0;
  --contact-success: oklch(0.78 0.1 145);
}

@media (prefers-color-scheme: dark) {
  html:not(.light) {
    --background: #000000;
    --foreground: #ffffff;
    --card: #000000;
    --card-foreground: #ffffff;
    --popover: #000000;
    --popover-foreground: #ffffff;
    --primary: #d6544b;
    --primary-foreground: #000000;
    --secondary: #d6544b;
    --secondary-foreground: #000000;
    --muted: #1c1c17;
    --muted-foreground: #ffffff;
    --accent: #d6544b;
    --accent-foreground: #000000;
    --destructive: #d6544b;
    --destructive-foreground: #000000;
    --border: #222222;
    --input: #000000;
    --ring: #d6544b;
    --chart-1: #e68933;
    --chart-2: #d4ce21;
    --chart-3: #2f75e4;
    --chart-4: #6534db;
    --chart-5: #d6544b;
    --sidebar: #000000;
    --sidebar-foreground: #ffffff;
    --sidebar-primary: #d6544b;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #d6544b;
    --sidebar-accent-foreground: #000000;
    --sidebar-border: #000000;
    --sidebar-ring: #d6544b;
    --pattern-line: color-mix(in srgb, var(--foreground) 18%, transparent);
    --pattern-dot: color-mix(in srgb, var(--foreground) 12%, transparent);
    --logo-invert: 1;
    --contact-success: oklch(0.78 0.1 145);
  }
}

/* @layer base — plain CSS (Tailwind @apply border-border / outline-ring/50 / bg-background) */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

*:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

html {
  color-scheme: light dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-sans);
  letter-spacing: var(--tracking-normal);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky footer: main grows; footer stays at bottom on short pages */
.page-main {
  flex: 1 0 auto;
  width: 100%;
}

/* Navbar22 — sticky, hides on scroll down, shows on scroll up */
.nav-section {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 1rem 0;
  background: var(--background);
  transition: transform 0.3s ease;
}

.nav-section.nav-hidden {
  transform: translateY(-100%);
}

.navbar-22 {
  width: 100%;
}

.navbar-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .navbar-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  filter: invert(var(--logo-invert));
}

/* Index nav uses .hero-avatar; override hero section sizing */
.navbar-brand .hero-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.navbar-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.navbar-links-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-links-desktop {
    display: flex;
  }
}

.nav-link-animated {
  position: relative;
  display: inline-block;
  /* Taller clip box so a thick underline isn’t clipped by overflow */
  height: 2rem;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5rem;
  /* Clear idle vs hover on any background */
  color: color-mix(in oklch, var(--foreground) 68%, transparent);
  text-decoration: none;
}

.nav-link-animated:hover,
.nav-link-animated:focus-visible {
  color: var(--foreground);
}

.nav-link-label {
  display: block;
  transition: transform 0.3s ease;
}

.nav-link-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: block;
  color: var(--foreground);
  line-height: 1.5rem;
  /* Strong underline: thick + full-opacity accent (reads on dark + grid) */
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.125rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.nav-link-animated:hover .nav-link-label,
.nav-link-animated:focus-visible .nav-link-label {
  transform: translateY(-100%);
}

.nav-link-animated:hover .nav-link-hover,
.nav-link-animated:focus-visible .nav-link-hover {
  transform: translateY(0);
}

.navbar-meta {
  display: none;
  align-items: center;
  gap: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* 24px between theme toggle and Greenville */
.navbar-meta .theme-toggle {
  margin-inline-end: 24px;
}

.navbar-meta > .font-medium {
  margin-inline-end: 0.5rem;
}

.navbar-meta > .navbar-meta-sep {
  margin-inline-end: 0.5rem;
}

@media (min-width: 1024px) {
  .navbar-meta {
    display: flex;
  }
}

.navbar-meta-sep {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.navbar-meta-time {
  font-weight: 500;
  color: var(--muted-foreground);
}

/* Theme toggle with icons: Sun -> Switch -> Moon */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Legacy: kept for any remaining mobile-panel toggles */
.theme-toggle-mobile {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.theme-toggle-icon {
  display: flex;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.theme-toggle-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.theme-toggle-sun {
  color: var(--foreground);
}

.theme-toggle-moon {
  color: var(--muted-foreground);
}

.theme-switch {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-switch input:focus-visible + .theme-switch-track {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.theme-switch-track {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid transparent;
  background: var(--input);
  box-shadow: var(--shadow-xs);
  transition: background 0.15s ease;
}

.theme-switch-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: var(--background);
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s ease;
}

.theme-switch input:checked + .theme-switch-track {
  background: var(--primary);
}

.theme-switch input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(1rem);
}

/* Mobile: toggle + hamburger side-by-side in a row */
.navbar-mobile-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .navbar-mobile-actions {
    display: none;
  }
}

.theme-toggle-bar {
  display: flex;
}

@media (min-width: 768px) {
  .theme-toggle-bar {
    display: none;
  }
}

.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid color-mix(in oklch, var(--ring) 55%, var(--border));
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: var(--radius);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.nav-menu-toggle:hover {
  background: color-mix(in oklch, var(--foreground) 6%, transparent);
  color: var(--foreground);
}

.nav-menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile sheet (full viewport, slides from top) */
.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: auto;
  visibility: hidden;
  pointer-events: none;
}

.nav-mobile-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

body.nav-mobile-open {
  overflow: hidden;
}

.nav-mobile-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-mobile-brand .hero-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile-links a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.nav-mobile-links a:hover {
  background: color-mix(in oklch, var(--foreground) 6%, transparent);
  color: var(--foreground);
}

.nav-mobile-footer {
  border-top: 1px solid color-mix(in oklch, var(--ring) 40%, var(--border));
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.nav-mobile-footer .navbar-meta-time {
  margin-top: 0.25rem;
}

.nav-mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklch, var(--ring) 55%, var(--border));
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-mobile-panel-wrap {
  position: relative;
  padding-top: 3rem;
}

.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;
}

.font-medium {
  font-weight: 500;
}

/* BackgroundPattern22 — dashed grid + top radial fade */
.hero-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

.bg-pattern-22 {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--pattern-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pattern-line) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 0;
  mask-image:
    repeating-linear-gradient(
      to right,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to bottom,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    ),
    radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
  -webkit-mask-image:
    repeating-linear-gradient(
      to right,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    ),
    repeating-linear-gradient(
      to bottom,
      black 0px,
      black 3px,
      transparent 3px,
      transparent 8px
    ),
    radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.pattern-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--pattern-dot) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 45%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 45%, #000 20%, transparent 70%);
}

.hero-animated {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 64px 0 128px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--spacing) * 6);
  text-align: center;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  animation: fade-scale 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: scale(0.6);
}

.hero-heading {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  max-width: 720px;
  color: var(--foreground);
  animation: slide-up 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(100px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 3);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xs);
  animation: button-rise 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(100px);
  animation-delay: 0.7s;
}

.hero-link-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid color-mix(in oklch, var(--ring) 55%, var(--border));
  box-shadow: none;
  animation-delay: 0.4s;
}

.hero-link::before,
.hero-link::after {
  content: attr(href);
  position: absolute;
  opacity: 0;
}

.hero-link span {
  display: block;
}

.hero-link:hover {
  background: color-mix(in oklch, var(--primary) 88%, var(--foreground));
}

.hero-link-outline:hover {
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

@keyframes fade-scale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .hero-heading {
    font-size: 40px;
  }
  .hero-avatar {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-link,
  .hero-link-outline {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------- */
/* Site container (shared: footer, future sections) — matches .navbar-inner */
/* -------------------------------------------------------------------------- */
.site-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .site-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Footer27 — static port (framer-motion → CSS transitions; include on all pages) */
/* -------------------------------------------------------------------------- */
.footer-27 {
  flex-shrink: 0;
  width: 100%;
  padding: 8rem 0; /* py-32 */
  background: var(--background);
  color: var(--foreground);
}

.footer-27-top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-27-top {
    flex-direction: row;
    align-items: center;
  }
}

.footer-27-col-main {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* space-y-8 */
}

.footer-27-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

.footer-27-heading {
  font-size: 2.25rem; /* text-4xl */
  line-height: 1.25;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .footer-27-heading {
    font-size: 3rem; /* lg:text-5xl */
  }
}

.footer-27-lede {
  max-width: 28rem; /* max-w-md */
  font-size: 1.125rem; /* text-lg */
  line-height: 1.625; /* leading-relaxed */
  color: var(--muted-foreground);
}

/* Primary button (shadcn Button size="lg") */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

.btn-lg {
  min-height: 2.75rem; /* h-11 */
  padding: 0 2rem;
  font-size: 1rem;
}

.footer-27-cta {
  align-self: flex-start;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.footer-27-cta:hover {
  background: color-mix(in oklch, var(--primary) 88%, var(--foreground));
}

.footer-27-col-social {
  margin-top: 0.25rem; /* mt-5 approx */
}

@media (min-width: 768px) {
  .footer-27-col-social {
    margin-top: 0;
  }
}

.footer-27-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

.footer-27-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--foreground);
  text-decoration: none;
  transition:
    color 0.15s ease,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-27-social-link:hover {
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  transform: translateX(4px);
}

.footer-27-social-name {
  font-size: 1.25rem; /* text-xl */
  font-weight: 500;
}

.footer-27-social-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.footer-27-social-icon svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-27-social-link:hover .footer-27-social-icon svg {
  transform: translate(2px, -2px);
}

.footer-27-sep {
  margin-top: 4rem; /* mt-16 */
  margin-bottom: 2rem; /* mb-8 */
  height: 1px;
  background: var(--border);
  border: 0;
}

.footer-27-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-27-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.footer-27-copy,
.footer-27-credit {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.footer-27-credit-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.footer-27-credit-link:hover {
  color: var(--foreground);
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .footer-27-social-link,
  .footer-27-social-icon svg,
  .footer-27-credit-link {
    transition: none;
  }

  .footer-27-social-link:hover {
    transform: none;
  }

  .footer-27-social-link:hover .footer-27-social-icon svg {
    transform: none;
  }

  .footer-27-credit-link:hover {
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Contact page shell + Contact21 (react-hook-form/zod → vanilla) */
/* -------------------------------------------------------------------------- */
.page-contact {
  background: var(--background);
}

/* Same-origin navigations (e.g. Home → Contact): smooth cross-document transition */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.45s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

.contact-page-shell {
  min-height: 100%;
}

/* Contact page: load-in (staggered nav, columns, footer) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes contact-nav-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes contact-block-rise {
    from {
      opacity: 0;
      transform: translateY(1.125rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .is-contact-page .nav-section {
    opacity: 0;
    animation: contact-nav-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .is-contact-page .contact-21-left {
    opacity: 0;
    animation: contact-block-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.09s;
  }

  .is-contact-page .contact-21-right {
    opacity: 0;
    animation: contact-block-rise 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.18s;
  }

  .is-contact-page .footer-27 {
    opacity: 0;
    animation: contact-nav-fade-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.22s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-contact-page .nav-section,
  .is-contact-page .contact-21-left,
  .is-contact-page .contact-21-right,
  .is-contact-page .footer-27 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.contact-21 {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .contact-21 {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .contact-21 {
    padding: 8rem 0;
  }
}

.contact-21-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-21-grid {
    margin-top: 3rem;
  }
}

@media (min-width: 1024px) {
  .contact-21-grid {
    margin-top: 5rem;
  }
}

@media (min-width: 768px) {
  .contact-21-grid {
    gap: 2.5rem; /* md:gap-10 */
  }
}

@media (min-width: 1024px) {
  .contact-21-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.contact-21-left {
  display: flex;
  width: 100%;
  max-width: 32rem; /* max-w-lg */
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem; /* gap-10 */
}

.contact-21-quote {
  text-indent: 22%;
  font-size: 1.875rem; /* text-3xl */
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: color-mix(in oklch, var(--muted-foreground) 50%, transparent);
}

@media (min-width: 1024px) {
  .contact-21-quote {
    font-size: 2.25rem; /* lg:text-4xl */
  }
}

.contact-21-quote-accent {
  color: var(--foreground);
}

.contact-21-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem; /* mt-5 */
}

@media (min-width: 1024px) {
  .contact-21-profile {
    margin-top: 5rem; /* lg:mt-20 */
  }
}

.contact-21-avatar {
  width: 3rem;
  height: 3rem; /* size-12 */
  border-radius: 9999px;
  object-fit: cover;
}

.contact-21-name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.contact-21-role {
  margin: 0;
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--foreground) 40%, transparent);
}

.contact-21-right {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .contact-21-right {
    padding-left: 2.5rem; /* lg:pl-10 */
  }
}

.contact-21-title {
  margin: 0 0 1.75rem; /* mb-7 */
  font-size: 3.75rem; /* text-6xl */
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .contact-21-title {
    font-size: 3rem; /* lg:text-5xl */
  }
}

.contact-21-success {
  margin-bottom: 1rem;
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklch, oklch(0.65 0.2 145) 20%, transparent);
  background: color-mix(in oklch, oklch(0.65 0.2 145) 10%, transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.contact-21-success.is-visible {
  opacity: 1;
}

.contact-21-success-text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--contact-success);
}

.contact-21-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-21-field {
  margin-bottom: 0;
}

.contact-21-input {
  display: block;
  width: 100%;
  min-height: 3.75rem; /* h-15 */
  padding: 0.75rem 0;
  font-size: 1rem;
  font-family: inherit;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in oklch, var(--foreground) 25%, transparent);
  border-radius: 0;
  box-shadow: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.contact-21-input::placeholder {
  color: color-mix(in oklch, var(--foreground) 20%, transparent);
}

.contact-21-input:focus {
  outline: none;
  border-bottom-color: color-mix(in oklch, var(--foreground) 55%, transparent);
}

.contact-21-input:focus-visible {
  outline: none;
}

.contact-21-input--message {
  min-height: 4.5rem;
  line-height: 1.5;
}

.contact-21-error {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--destructive);
}

.contact-21-error--root {
  margin-top: 0.5rem;
}

.contact-21-submit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 3.75rem; /* mt-15 */
  min-height: 3rem;
  padding: 0 2rem; /* px-8 */
  border: none;
  border-radius: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

@media (min-width: 1024px) {
  .contact-21-submit {
    min-height: 3rem; /* lg:h-12 */
    font-size: 1rem; /* lg:text-base */
  }
}

.contact-21-submit:hover:not(:disabled) {
  background: color-mix(in oklch, var(--primary) 88%, var(--foreground));
}

.contact-21-submit:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.contact-21-btn-label,
.contact-21-btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-21-btn-loading {
  display: none;
}

.contact-21-form.is-submitting .contact-21-btn-label {
  display: none;
}

.contact-21-form.is-submitting .contact-21-btn-loading {
  display: inline-flex;
}

.contact-21-btn-icon {
  flex-shrink: 0;
}

.contact-21-spinner {
  animation: contact-spin 0.8s linear infinite;
}

@keyframes contact-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-21-spinner {
    animation: none;
  }

  .contact-21-success {
    transition: none;
  }
}

/* In-page anchors (index.html) */
.page-scroll-anchor {
  scroll-margin-top: 5rem;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Projects18 — portfolio strip (image cards + overlay + hover reveal) */
/* -------------------------------------------------------------------------- */
.projects-18 {
  padding: 8rem 0; /* py-32 */
  background: var(--background);
  color: var(--foreground);
  scroll-margin-top: 5rem; /* #projects */
}

.projects-18-intro {
  max-width: 100%;
}

.projects-18-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .projects-18-eyebrow {
    font-size: 1.125rem; /* md:text-lg */
  }
}

.projects-18-title {
  margin: 0;
  font-size: 1.875rem; /* text-3xl */
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .projects-18-title {
    font-size: 4.5rem; /* ~text-7xl */
  }
}

.projects-18-lede {
  margin: 1.75rem 0 0;
  max-width: 42rem; /* max-w-2xl */
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* Outline button (shadcn Button outline + lg) */
.projects-18-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem; /* mt-7 */
  min-height: 3rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  color: var(--foreground);
  background: transparent;
  border: 1px solid color-mix(in oklch, var(--ring) 55%, var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.projects-18-cta:hover {
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

.projects-18-cta:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

.projects-18-icon {
  flex-shrink: 0;
  display: block;
}

.projects-18-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* gap-5 */
  margin-top: 6rem; /* mt-24 */
}

@media (min-width: 768px) {
  .projects-18-grid {
    margin-top: 9rem; /* md:mt-36 */
  }
}

.projects-18-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 18rem; /* min-h-72 */
  padding: 3.5rem 1.25rem;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.projects-18-card,
.projects-18-card:link,
.projects-18-card:visited,
.projects-18-card:hover,
.projects-18-card:active {
  text-decoration: none;
  color: #fff;
}

@media (min-width: 1024px) {
  .projects-18-card {
    padding: 6rem 3rem; /* lg:px-12 lg:py-24 */
  }
}

.projects-18-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgb(0 0 0 / 0.8);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

@media (hover: hover) {
  .projects-18-overlay {
    transition:
      background 0.3s ease,
      backdrop-filter 0.3s ease;
  }

  .projects-18-card:hover .projects-18-overlay {
    background: rgb(0 0 0 / 0.5);
    backdrop-filter: none;
  }
}

.projects-18-card-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.75rem; /* gap-7 */
  color: rgba(255, 255, 255, 0.8);
}

@media (hover: hover) {
  .projects-18-card-inner {
    transition: color 0.3s ease;
  }

  .projects-18-card:hover .projects-18-card-inner {
    color: #fff;
  }
}

@media (min-width: 1024px) {
  .projects-18-card-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

.projects-18-num {
  display: flex;
  gap: 0.25rem;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  line-height: 1.2;
}

.projects-18-head {
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* gap-2.5 */
}

@media (min-width: 1024px) {
  .projects-18-head {
    flex: 1;
    min-width: 0;
  }
}

.projects-18-card-title {
  margin: 0;
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .projects-18-card-title {
    font-size: 2.25rem; /* lg:text-4xl */
  }
}

.projects-18-card-sub {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.projects-18-desc-wrap {
  flex: 1;
  min-width: 0;
}

.projects-18-desc {
  display: flex;
  flex-direction: column;
}

.projects-18-card-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.projects-18-reveal {
  margin-top: 0.625rem;
}

.projects-18-reveal-inner {
  display: block;
  padding-top: 0.25rem;
}

@media (hover: hover) {
  .projects-18-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .projects-18-card:hover .projects-18-reveal {
    max-height: 4rem;
  }

  .projects-18-reveal-inner {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .projects-18-card:hover .projects-18-reveal-inner {
    opacity: 1;
  }
}

/* "View project" — outline on dark (Button outline dark) */
.projects-18-btn--dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem; /* h-10 */
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: transparent;
  border: 1px solid color-mix(in srgb, white 85%, transparent);
  border-radius: var(--radius);
  cursor: default;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .projects-18-overlay,
  .projects-18-card-inner,
  .projects-18-reveal,
  .projects-18-reveal-inner {
    transition: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Experience1 — static port (ghost Download CV + timeline list) */
/* -------------------------------------------------------------------------- */
.experience-1 {
  padding: 8rem 0; /* py-32 */
  background: var(--background);
  color: var(--foreground);
  scroll-margin-top: 5rem; /* #experience */
}

.experience-1-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* space-y-10 */
}

@media (min-width: 1024px) {
  .experience-1-inner {
    gap: 5rem; /* lg:space-y-20 */
  }
}

.experience-1-header {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.experience-1-title {
  margin: 0;
  font-size: 3rem; /* text-5xl */
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .experience-1-title {
    font-size: 3.75rem; /* lg:text-6xl */
  }
}

/* Ghost button (shadcn Button variant="ghost" size="lg") */
.experience-1-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  color: var(--foreground);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.experience-1-cv-btn:hover {
  background: color-mix(in oklch, var(--foreground) 8%, transparent);
}

.experience-1-cv-btn:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--ring) 50%, transparent);
  outline-offset: 2px;
}

.experience-1-cv-icon {
  flex-shrink: 0;
  display: block;
}

.experience-1-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.experience-1-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0; /* py-10 */
  border-bottom: 1px solid var(--border);
}

.experience-1-item:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .experience-1-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.experience-1-period {
  max-width: 32rem; /* max-w-lg */
  font-size: 1.25rem; /* text-xl */
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .experience-1-period {
    flex: 0 0 33.333%;
    width: 33.333%;
  }
}

.experience-1-body {
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .experience-1-body {
    flex: 0 0 33.333%;
    width: 33.333%;
  }
}

.experience-1-role {
  margin: 0 0 1rem; /* mb-4 */
  font-size: 1.5rem; /* text-2xl */
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.experience-1-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: color-mix(in oklch, var(--foreground) 50%, transparent); /* text-foreground/50 */
}

.experience-1-company {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem; /* gap-3 */
  text-align: left;
}

@media (min-width: 768px) {
  .experience-1-company {
    flex: 0 0 25%;
    width: 25%;
    justify-content: flex-end;
    text-align: right;
  }
}

.experience-1-logo {
  width: 1.5rem;
  height: 1.5rem; /* size-6 */
  flex-shrink: 0;
  object-fit: contain;
  filter: invert(var(--logo-invert));
}

.experience-1-company-name {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
}

/* -------------------------------------------------------------------------- */
/* Integration8 — logo marquee (magicui Marquee → CSS) */
/* -------------------------------------------------------------------------- */
.integration-8 {
  padding: 8rem 0; /* py-32 */
  color: var(--foreground);
}

.integration-8-inner {
  padding-top: 8rem; /* container pt-32 */
}

.integration-8-title {
  margin: 0;
  text-align: center;
  font-size: 3rem; /* text-5xl */
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em; /* tracking-tight */
}

@media (min-width: 768px) {
  .integration-8-title {
    font-size: 4.5rem; /* md:text-7xl */
  }
}

.integration-8-lede {
  margin: 1rem auto 0;
  max-width: 36rem; /* max-w-xl */
  text-align: center;
  letter-spacing: -0.025em;
  color: color-mix(in oklch, var(--muted-foreground) 80%, transparent);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .integration-8-lede {
    font-size: 1.125rem; /* md:text-lg */
  }
}

.integration-8-marquee-wrap {
  position: relative;
  margin-top: 3rem; /* mt-12 */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.integration-8-marquee {
  overflow: hidden;
  width: 100%;
}

.integration-8-marquee-track {
  display: flex;
  width: max-content;
  animation: integration-marquee-scroll 20s linear infinite;
}

.integration-8-marquee--rtl .integration-8-marquee-track {
  animation-direction: reverse;
}

.integration-8-marquee:hover .integration-8-marquee-track {
  animation-play-state: paused; /* pauseOnHover */
}

@media (prefers-reduced-motion: reduce) {
  .integration-8-marquee-track {
    animation: none;
  }
}

@keyframes integration-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.integration-8-marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem; /* gap-4 between pills */
}

.integration-8-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--muted);
  padding: 0.5rem 1.25rem; /* py-2 px-5 */
}

.integration-8-pill-icon {
  width: 1.25rem; /* size-5 */
  height: 1.25rem;
  object-fit: contain;
}

.integration-8-pill-name {
  margin: 0;
  font-size: 1.125rem; /* text-lg */
  line-height: 1.5;
  color: var(--foreground);
}

.integration-8-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9rem; /* w-36 */
  pointer-events: none;
  z-index: 1;
}

.integration-8-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--background), transparent);
}

.integration-8-fade--right {
  right: 0;
  background: linear-gradient(to left, var(--background), transparent);
}

/* -------------------------------------------------------------------------- */
/* Cta20 — eyebrow + separators + primary CTA */
/* -------------------------------------------------------------------------- */
.cta-20 {
  padding: 8rem 0; /* py-32 */
  color: var(--foreground);
}

.cta-20-inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-20-text {
  margin: 0;
  text-align: center;
  font-size: 0.875rem; /* text-sm */
  line-height: 1.5;
  color: var(--muted-foreground);
}

.cta-20-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; /* gap-4 */
  margin-top: 1rem; /* mt-4 */
}

.cta-20-sep {
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--border);
}

.cta-20-btn {
  flex-shrink: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.cta-20-btn:hover {
  background: color-mix(in oklch, var(--primary) 88%, var(--foreground));
}

/* -------------------------------------------------------------------------- */
/* Case study page + CaseStudy3 */
/* -------------------------------------------------------------------------- */
.page-case-study {
  background: var(--background);
}

.case-study-shell {
  min-height: 100%;
}

.case-study-3 {
  padding: 8rem 0;
  color: var(--foreground);
}

.case-study-3-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .case-study-3-hero {
    flex-direction: row;
    max-width: none;
    align-items: flex-start;
  }
}

.case-study-3-hero-text {
  flex: 1;
  min-width: 0;
}

.case-study-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.case-study-breadcrumb-list a {
  color: inherit;
  text-decoration: none;
}

.case-study-breadcrumb-list a:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-study-breadcrumb-sep {
  opacity: 0.7;
}

.case-study-3-title {
  margin: 2.5rem 0 0;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 600;
  text-wrap: balance;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .case-study-3-title {
    font-size: 4.5rem;
  }
}

.case-study-3-hero-meta {
  margin-top: 4rem;
}

.case-study-3-hero-meta-label {
  margin: 0;
  font-weight: 500;
}

.case-study-3-hero-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.case-study-3-hero-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  object-fit: cover;
}

.case-study-3-hero-name {
  margin: 0;
  font-weight: 600;
}

.case-study-3-hero-role {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.case-study-3-hero-img {
  width: 100%;
  max-height: 524px;
  border-radius: 0.75rem;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .case-study-3-hero-img {
    width: auto;
    max-width: min(50%, 560px);
  }
}

.case-study-3-body {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 5rem;
}

@media (min-width: 1024px) {
  .case-study-3-body {
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

.case-study-3-aside {
  width: 100%;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .case-study-3-aside {
    position: sticky;
    top: 2.5rem;
    max-width: 16rem;
    margin: 0;
    flex-shrink: 0;
  }
}

.case-study-3-aside-logo {
  height: 1.5rem;
  width: auto;
  display: block;
  filter: invert(var(--logo-invert));
}

.case-study-3-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .case-study-3-meta-grid {
    grid-template-columns: 1fr;
  }
}

.case-study-3-meta-span2 {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .case-study-3-meta-span2 {
    grid-column: span 1;
  }
}

.case-study-3-meta-h {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.case-study-3-meta-p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.case-study-3-share {
  margin-top: 2.5rem;
}

.case-study-3-share-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.case-study-3-share-icons {
  display: flex;
  gap: 1rem;
}

.case-study-3-share-link {
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.case-study-3-share-link:hover {
  color: var(--primary);
}

.case-study-3-main-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .case-study-3-main-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

.case-study-3-main {
  flex: 1;
  min-width: 0;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .case-study-3-main {
    max-width: 56rem;
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

.case-study-3-pao {
  display: grid;
  gap: 1.75rem 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
}

@media (min-width: 1024px) {
  .case-study-3-pao {
    grid-template-columns: 1fr 1fr;
    border: none;
    padding: 0;
    gap-y: 2.5rem;
  }
}

.case-study-3-pao-h {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.case-study-3-pao-p {
  margin: 0.75rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.case-study-3-pao-sep {
  height: 1px;
  background: var(--border);
  border: 0;
}

@media (min-width: 1024px) {
  .case-study-3-pao-sep {
    display: none;
  }
}

.case-study-3-pao-outcomes {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .case-study-3-pao-outcomes {
    grid-column: 1 / -1;
  }
}

.case-study-3-outcomes-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem 2.5rem;
}

@media (min-width: 1024px) {
  .case-study-3-outcomes-list {
    grid-template-columns: 1fr 1fr;
  }
}

.case-study-3-outcomes-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.case-study-3-check {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--foreground);
}

.case-study-3-outcomes-list li p {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}

.case-study-3-article {
  margin-top: 5rem;
}

.case-study-prose {
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.case-study-prose h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.case-study-prose p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.case-study-prose p:last-child {
  margin-bottom: 0;
}

.case-study-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-study-prose blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted-foreground);
}

.case-study-prose ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
}

.case-study-prose li {
  margin-bottom: 0.35rem;
}

.case-study-3-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.case-study-3-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.case-study-3-table th,
.case-study-3-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.case-study-3-table thead th {
  font-weight: 600;
  color: var(--foreground);
}

.case-study-3-table tbody tr:nth-child(even) {
  background: color-mix(in oklch, var(--muted-foreground) 8%, transparent);
}

.case-study-3-alert {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 100%, transparent);
}

.case-study-3-alert-icon {
  flex-shrink: 0;
  color: var(--foreground);
}

.case-study-3-alert-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
}

.case-study-3-alert-desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.case-study-3-toc {
  display: none;
  flex-shrink: 0;
  width: 11rem;
  position: sticky;
  top: 2rem;
  height: fit-content;
}

@media (min-width: 1024px) {
  .case-study-3-toc {
    display: block;
  }
}

.case-study-3-toc-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.case-study-toc {
  margin-top: 0.5rem;
}

.case-study-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.case-study-toc-link {
  display: block;
  padding: 0.25rem 0;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.case-study-toc-link:hover {
  color: var(--primary);
}

.case-study-toc-link.is-active {
  font-weight: 600;
  color: var(--primary);
}
