/* ==========================================================================
   PORTFOLIO 2 — GLOBAL THEME CONTROLLER & MASTER VARIABLES
   ==========================================================================
   Easily change or customize the entire portfolio theme via these global variables!
   
   To change the theme:
     1. Edit the `--theme-*` custom properties in `:root` below, OR
     2. Set `data-theme-preset="<preset-name>"` on the <html> element, OR
     3. Use the JavaScript API: `window.setPortfolioTheme('<preset-name>')`
   
   Available Presets:
     - "supermemory-blue" (Active: Clean Light Blue inspired by supermemory.ai)
     - "wine-red"         (Classic Off-white & Dark Red)
   ========================================================================== */

:root {
  /* Global Theme Controller Variable */
  --current-theme: "supermemory-blue";

  /* ------------------------------------------------------------------------
     Supermemory.ai Inspired Light Blue Palette Tokens
     ------------------------------------------------------------------------ */
  --theme-primary: #0284C7;                /* Supermemory Vibrant Sky Blue (Tailwind Sky 600) */
  --theme-primary-hover: #0369A1;          /* Deep Sky Blue for hover (Tailwind Sky 700) */
  --theme-primary-soft: rgba(2, 132, 199, 0.10);  /* Soft Sky Blue Tint */
  --theme-primary-soft-2: rgba(2, 132, 199, 0.18);/* Medium Sky Blue Tint */
  --theme-primary-soft-3: rgba(2, 132, 199, 0.32);/* Highlight Sky Blue Tint */
  --theme-secondary: #0EA5E9;              /* Cyan / Electric Sky (Tailwind Sky 500) */
  --theme-secondary-soft: rgba(14, 165, 233, 0.12);
  --theme-accent: #38BDF8;                 /* Bright Cyan Highlight */
  --theme-bg: #F0F7FF;                     /* Supermemory Clean Ice-Blue Background */
  --theme-surface: #FFFFFF;                /* Crisp White Card Surface */
  --theme-surface-2: #F8FAFC;              /* Clean Off-White Neutral Surface */
  --theme-surface-3: #E0F2FE;              /* Soft Light Blue Tint Surface */
  --theme-ink: #0B192C;                    /* Deep Slate/Navy Heading Color */
  --theme-text: #1E293B;                   /* High-contrast Slate Body Text */
  --theme-muted: #475569;                  /* Slate Muted Text */
  --theme-faint: #64748B;                  /* Slate Tertiary Text */
  --theme-border: rgba(2, 132, 199, 0.14); /* Light Blue Border */
  --theme-border-strong: rgba(2, 132, 199, 0.28);
  --theme-focus-ring: #0284C7;
  --theme-header-bg: #0369A1;              /* Rich Sky Blue Sticky Header */
  --theme-header-bg-solid: #0284C7;        /* Vibrant Sky Blue Scrolled Header */
  --theme-header-text: #FFFFFF;
  --theme-header-cta-bg: #FFFFFF;
  --theme-header-cta-text: #0284C7;
  --theme-footer-bg: #FFFFFF;
  --theme-footer-text: #0B192C;
  --theme-cta-bg-1: #0A1E3F;
  --theme-cta-bg-2: #0284C7;
  --theme-glow: 0 18px 40px -18px rgba(2, 132, 199, 0.38);
  --theme-glow-hover: 0 22px 46px -18px rgba(2, 132, 199, 0.50);

  /* Typography */
  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-brand: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;

  /* Mapped Standard Design Tokens */
  --color-bg: var(--theme-bg);
  --color-surface: var(--theme-surface);
  --color-surface-2: var(--theme-surface-2);
  --color-surface-3: var(--theme-surface-3);
  --color-ink: var(--theme-ink);
  --color-text: var(--theme-text);
  --color-muted: var(--theme-muted);
  --color-faint: var(--theme-faint);
  --color-primary: var(--theme-primary);
  --color-secondary: var(--theme-secondary);
  --color-link: var(--theme-primary);
  --color-green: #16A34A;
  --color-amber: #D97706;
  --color-danger: #DC2626;
  --gradient-brand: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
  --gradient-button: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
  --border: var(--theme-border);
  --border-strong: var(--theme-border-strong);
  --shadow-sm: 0 1px 3px rgba(11, 25, 44, 0.05);
  --shadow-md: 0 12px 32px -16px rgba(11, 25, 44, 0.10);
  --shadow-lg: 0 28px 64px -30px rgba(11, 25, 44, 0.14);
  --shadow-glow: var(--theme-glow);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 76rem;
  --gutter: clamp(1.15rem, 4vw, 2.25rem);
  --header-height: 4.75rem;
  --transition: 180ms cubic-bezier(0.2, 0.65, 0.3, 1);
  --focus-ring: var(--theme-focus-ring);
  --header-bg: var(--theme-header-bg);
  --header-bg-solid: var(--theme-header-bg-solid);
  --footer-bg: var(--theme-footer-bg);
  --footer-text: var(--theme-footer-text);
  --hero-image-opacity: 0;
}

/* ==========================================================================
   THEME PRESET: WINE RED (Off-White & Dark Red)
   Activate via: document.documentElement.setAttribute('data-theme-preset', 'wine-red')
   ========================================================================== */
:root[data-theme-preset="wine-red"],
[data-theme="wine-red"] {
  --current-theme: "wine-red";
  --theme-primary: #8B1A1A;
  --theme-primary-hover: #6B1414;
  --theme-primary-soft: rgba(139, 26, 26, 0.10);
  --theme-primary-soft-2: rgba(139, 26, 26, 0.18);
  --theme-primary-soft-3: rgba(139, 26, 26, 0.32);
  --theme-secondary: #6B1414;
  --theme-secondary-soft: rgba(107, 20, 20, 0.12);
  --theme-accent: #FF6B6B;
  --theme-bg: #F8F4F0;
  --theme-surface: #FDFAF8;
  --theme-surface-2: #FDFCFA;
  --theme-surface-3: #EDE8E3;
  --theme-ink: #1A0A0A;
  --theme-text: #2A1010;
  --theme-muted: #6B3838;
  --theme-faint: #9E7070;
  --theme-border: rgba(139, 26, 26, 0.12);
  --theme-border-strong: rgba(139, 26, 26, 0.22);
  --theme-focus-ring: #8B1A1A;
  --theme-header-bg: #6B1414;
  --theme-header-bg-solid: #540F0F;
  --theme-header-text: #F8F4F0;
  --theme-header-cta-bg: #F8F4F0;
  --theme-header-cta-text: #6B1414;
  --theme-footer-bg: #FDFAF8;
  --theme-footer-text: #1A0A0A;
  --theme-cta-bg-1: #2B150D;
  --theme-cta-bg-2: #452316;
  --theme-glow: 0 18px 40px -18px rgba(139, 26, 26, 0.40);
  --theme-glow-hover: 0 22px 46px -18px rgba(139, 26, 26, 0.50);
}

[data-theme="dark"] {
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-bg) !important;
  background: var(--color-bg) !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg) !important;
  background: var(--color-bg) !important;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

hr {
  width: 100%;
  height: 1px;
  margin: 1.5rem 0;
  border: 0;
  background: var(--border);
}

::selection {
  background: var(--theme-primary-soft-3);
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.container.narrow {
  max-width: 55rem;
}

.section {
  position: relative;
  padding-block: clamp(4.25rem, 8vw, 7rem);
}

.section--soft {
  background: var(--color-surface-2);
  border-block: 1px solid var(--border);
}

.section--white {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-block: 1px solid var(--border);
}

.section--warm {
  background-color: var(--color-bg) !important;
  background: var(--color-bg) !important;
  border-block: 1px solid var(--border);
}

.section--white .service-card,
.section--white .testimonial-card,
.section--white .mini-feature {
  background: var(--color-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.section--warm .project-card,
.section--warm .capability-card,
.section--warm .toolbelt-panel,
.section--warm .post-card {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.section--warm .toolbelt .chip {
  background: #FDFAF8;
  border: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-heading > div {
  max-width: 47rem;
}

.section-heading h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

.section-heading p {
  max-width: 42rem;
  margin-top: 0.85rem;
  color: var(--color-muted);
}

.section-heading .link-arrow {
  flex: none;
  margin-bottom: 0.3rem;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

.section-heading--center > div {
  max-width: 44rem;
}

.section-heading--center p {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-link);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__line {
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--light,
.cta-panel .eyebrow {
  color: #FDBA74;
}

.lede {
  color: var(--color-muted);
  font-size: clamp(1.06rem, 0.6vw + 0.94rem, 1.22rem);
  line-height: 1.72;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-surface);
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript-banner {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(180, 83, 9, 0.25);
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-ink);
  font-size: 0.82rem;
  text-align: center;
}

.noscript-banner strong {
  color: var(--color-amber);
}

.sample-note {
  max-width: 75ch;
  margin-top: 1.35rem;
  color: var(--color-faint);
  font-size: 0.78rem;
  line-height: 1.6;
}

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.demo-note i {
  flex: none;
  margin-top: 0.12rem;
  color: var(--color-amber);
  font-size: 1rem;
}

.demo-note p {
  margin: 0;
}

.demo-note--large {
  padding: 1.15rem 1.25rem;
  font-size: 0.86rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--demo {
  border-color: var(--border-strong);
  background: var(--theme-primary-soft);
  color: var(--color-primary);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.meta-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.16);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--color-green);
  opacity: 0;
  animation: status-pulse 3.2s ease-out infinite;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  background: var(--theme-primary-soft);
  color: var(--color-link);
  font-size: 1.35rem;
}

.icon-tile--sm {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  font-size: 1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--color-surface-2);
  color: var(--color-muted);
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.5;
}

.chip-list--large .chip {
  padding: 0.4rem 0.72rem;
  background: var(--color-surface);
  font-size: 0.78rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn i {
  font-size: 1.05rem;
  transition: transform var(--transition);
}

.btn:hover i {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--gradient-button);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--theme-glow-hover, 0 22px 46px -18px rgba(2, 132, 199, 0.5));
}

.btn--ghost {
  border-color: var(--border-strong);
  background: var(--color-surface);
  color: var(--color-ink);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-link);
  transform: translateY(-2px);
}

.btn--light {
  background: #ffffff;
  color: #23150D;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.25);
}

.btn--light:hover {
  transform: translateY(-2px);
  background: var(--color-surface);
  color: var(--color-primary);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 2.35rem;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.btn--lg {
  min-height: 3.25rem;
  padding: 0.9rem 1.45rem;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-link);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.link-arrow i {
  transition: transform var(--transition);
}

.link-arrow:hover i {
  transform: translateX(4px);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 1.08rem;
  transition: transform var(--transition), color var(--transition), border-color var(--transition), background var(--transition);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.social-link--placeholder {
  border-style: dashed;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: clip;
  padding-block: clamp(2.5rem, 5vw, 4.25rem) 1.25rem;
}

.hero__backdrop {
  display: none !important;
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: var(--hero-image-opacity);
  filter: saturate(0.65) contrast(1.05);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 86%);
}

[data-theme="dark"] .hero__backdrop img {
  mix-blend-mode: luminosity;
}

.hero__orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__orb--one {
  top: 7%;
  right: 4%;
  width: 25rem;
  height: 25rem;
  background: var(--theme-primary-soft);
}

.hero__orb--two {
  bottom: 2%;
  left: 2%;
  width: 20rem;
  height: 20rem;
  background: var(--theme-secondary-soft, rgba(14, 165, 233, 0.1));
}

[data-theme="dark"] .hero__orb--one {
  background: var(--theme-primary-soft-2);
}

[data-theme="dark"] .hero__orb--two {
  background: var(--theme-secondary-soft, rgba(14, 165, 233, 0.12));
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero__copy {
  max-width: 42rem;
}

.availability--hero {
  padding: 0.42rem 0.8rem 0.42rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 76%, transparent);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
}

.hero__title {
  margin-top: 1.35rem;
  font-size: clamp(2.75rem, 6.2vw, 5.1rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.05rem;
  color: var(--color-link);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__role span {
  color: var(--color-faint);
  font-weight: 400;
}

.hero__lead {
  max-width: 38rem;
  margin-top: 1.2rem;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 0.6vw + 0.94rem, 1.2rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__socials-label {
  color: var(--color-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  color: var(--color-faint);
  font-size: 0.78rem;
}

.hero__spec {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__portrait-wrap {
  position: relative;
  width: clamp(16rem, 30vw, 25rem);
  aspect-ratio: 1;
}

.hero__portrait-ring {
  position: absolute;
  inset: -1.1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  animation: ring-spin 60s linear infinite;
}

.hero__portrait-ring::before,
.hero__portrait-ring::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px var(--theme-primary-soft-2);
}

.hero__portrait-ring::before {
  top: 12%;
  left: 12%;
}

.hero__portrait-ring::after {
  right: 8%;
  bottom: 20%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 5px var(--theme-secondary-soft, rgba(14, 165, 233, 0.16));
}

.hero__portrait {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--color-surface);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  animation: float-soft 7s ease-in-out infinite;
}

.float-card strong,
.float-card small {
  display: block;
}

.float-card strong {
  color: var(--color-ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.float-card small {
  color: var(--color-faint);
  font-size: 0.67rem;
  line-height: 1.4;
}

.float-card__icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--theme-primary-soft-2);
  color: var(--color-link);
  font-size: 1rem;
}

.float-card--experience {
  top: 5%;
  left: -16%;
}

.float-card--stack {
  top: 43%;
  right: -15%;
  animation-delay: -2.4s;
}

.float-card--status {
  bottom: 1%;
  left: 3%;
  animation-delay: -4.6s;
}

.float-card--status .status-dot {
  margin-left: 0.2rem;
}

.hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__scroll i {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  animation: scroll-bob 2.4s ease-in-out infinite;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-faint);
  font-size: 0.73rem;
  text-align: right;
}

/* Page intro */
.page-intro {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.75rem, 5vw, 4.75rem) clamp(3.25rem, 6vw, 5rem);
}

.page-intro::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -8rem;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--theme-primary-soft-2), transparent 66%);
  pointer-events: none;
}

.page-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(17rem, 0.62fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.page-intro__copy h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.35rem, 4.8vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.042em;
}

.page-intro__copy .lede {
  max-width: 43rem;
  margin-top: 1.3rem;
}

.page-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.85rem;
}

.page-intro__note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: 42rem;
  margin-top: 1.25rem;
  color: var(--color-faint);
  font-size: 0.76rem;
  line-height: 1.6;
}

.page-intro__note i {
  flex: none;
  margin-top: 0.12rem;
}

.page-intro__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.split--story {
  align-items: start;
}

.split__media {
  position: relative;
  margin: 0;
}

.split__media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.split__media::before {
  content: "";
  position: absolute;
  inset: auto -0.9rem -0.9rem auto;
  z-index: -1;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  opacity: 0.14;
}

.split__media-card {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.split__media-card strong,
.split__media-card small {
  display: block;
}

.split__media-card strong {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #0f172a;
}

.split__media-card small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.45;
}

.split__media-card .icon-tile {
  border-color: var(--border-strong);
  background: var(--theme-primary-soft);
  color: var(--color-primary);
}

.split__content h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
}

.split__content .lede {
  margin-top: 1.15rem;
}

.split__content > p:not(.eyebrow):not(.lede) {
  margin-top: 1rem;
  color: var(--color-muted);
}

.split__content .link-arrow {
  margin-top: 1.5rem;
}

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

.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.mini-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.mini-feature > i {
  flex: none;
  margin-top: 0.15rem;
  color: var(--color-link);
  font-size: 1.1rem;
}

.mini-feature strong,
.mini-feature span {
  display: block;
}

.mini-feature strong {
  color: var(--color-ink);
  font-size: 0.8rem;
  line-height: 1.4;
}

.mini-feature span {
  margin-top: 0.15rem;
  color: var(--color-faint);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Intro cards and panels */
.profile-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.profile-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
}

.profile-card__body {
  padding: 1.25rem;
}

.profile-card__name {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.profile-card__role {
  margin-top: 0.1rem;
  color: var(--color-faint);
  font-size: 0.8rem;
}

.profile-card__body .availability {
  margin-top: 0.85rem;
}

.profile-card__facts {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-card__facts li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-muted);
  font-size: 0.76rem;
}

.profile-card__facts i {
  color: var(--color-link);
}

.aside-note {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.aside-note > i {
  color: var(--color-link);
  font-size: 1.15rem;
}

.aside-note p {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.aside-note .link-arrow {
  margin-top: 0.6rem;
  font-size: 0.78rem;
}

.aside-panel,
.contact-summary {
  padding: clamp(1.25rem, 3vw, 1.7rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.aside-panel > .eyebrow,
.contact-summary > .eyebrow {
  margin-bottom: 0.85rem;
}

.aside-panel .check-list {
  margin-top: 1rem;
}

.aside-panel__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 0.7rem;
  color: var(--color-muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.aside-panel__meta i {
  flex: none;
  margin-top: 0.12rem;
  color: var(--color-link);
}

.aside-panel__stat {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.aside-panel__stat:last-of-type {
  border-bottom: 0;
}

.aside-panel__stat strong {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.aside-panel__stat span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.aside-panel--quote {
  position: relative;
  overflow: hidden;
  background: var(--gradient-button);
  color: #ffffff;
}

.aside-panel--quote::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.aside-panel--quote .eyebrow,
.aside-panel--quote .aside-panel__meta {
  color: rgba(255, 255, 255, 0.68);
}

.aside-panel__quote-icon {
  color: rgba(255, 255, 255, 0.3);
  font-size: 2.1rem;
}

.aside-panel--quote blockquote {
  margin: 0.5rem 0 1rem;
}

.aside-panel--quote blockquote p {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.stat__value {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.stat__label {
  display: block;
  margin-top: 0.3rem;
  color: var(--color-faint);
  font-size: 0.72rem;
  line-height: 1.5;
}

/* CTA */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 0%, var(--theme-primary-soft-3), transparent 55%),
    linear-gradient(135deg, var(--theme-cta-bg-1, #0A1E3F) 0%, var(--theme-cta-bg-2, #0284C7) 100%);
  border: 1px solid var(--theme-border-strong);
  box-shadow: 0 24px 50px -20px var(--theme-glow);
  color: #ffffff;
}

.cta-panel__glow {
  position: absolute;
  top: -8rem;
  right: -4rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: var(--theme-primary-soft-3);
  filter: blur(70px);
  pointer-events: none;
}

.cta-panel > div {
  position: relative;
}

.cta-panel h2 {
  max-width: 38rem;
  margin-top: 0.55rem;
  color: #ffffff;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}

.cta-panel p:not(.eyebrow) {
  max-width: 38rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.cta-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Utilities */
.check-list {
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "\eb7b";
  position: absolute;
  top: 0.05rem;
  left: 0;
  color: var(--color-link);
  font-family: "remixicon";
  font-size: 0.95rem;
}

.grid-full {
  grid-column: 1 / -1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@keyframes status-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

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

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes scroll-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
