/* ============================================================
   Point Origin — Design System
   Warm Technical Minimalism / Cool Teal Palette
   ============================================================ */

/* --- 1. External Imports --- */
@import url("https://unpkg.com/open-props@1.7.8/easings.min.css");
@import url("https://unpkg.com/open-props@1.7.8/sizes.min.css");
@import url("https://unpkg.com/open-props@1.7.8/animations.min.css");

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

/* --- 2. Design Tokens --- */
:root {
  /* Colors */
  --color-bg:         #FAFBFC;
  --color-bg-alt:     #F1F5F9;
  --color-surface:    #FFFFFF;
  --color-text:       #0F172A;
  --color-text-muted: #64748B;
  --color-border:     #E2E8F0;
  --color-accent:     #0D9488;
  --color-accent-hover:#0F766E;
  --color-accent-light:#CCFBF1;
  --color-dark:       #0F172A;
  --color-dark-muted: #1E293B;

  /* Secondary colors */
  --color-indigo:     #6366F1;
  --color-violet:     #8B5CF6;

  /* Gradients */
  --gradient-accent:       linear-gradient(135deg, var(--color-accent), var(--color-indigo));
  --gradient-accent-rev:   linear-gradient(135deg, var(--color-indigo), var(--color-accent));
  --gradient-card-border:  linear-gradient(135deg, var(--color-accent), var(--color-indigo));
  --gradient-text:         linear-gradient(135deg, var(--color-accent), var(--color-indigo), var(--color-violet));
  --gradient-hero-mesh-1:  radial-gradient(ellipse 80% 50% at 20% 40%, rgba(13,148,136,0.3), transparent 70%);
  --gradient-hero-mesh-2:  radial-gradient(ellipse 60% 80% at 80% 20%, rgba(99,102,241,0.25), transparent 70%);
  --gradient-hero-mesh-3:  radial-gradient(ellipse 50% 60% at 50% 80%, rgba(139,92,246,0.2), transparent 70%);

  /* Glow shadows */
  --shadow-glow-sm:     0 0 15px rgba(13,148,136,0.25);
  --shadow-glow-md:     0 0 30px rgba(13,148,136,0.2);
  --shadow-glow-lg:     0 4px 30px rgba(13,148,136,0.25);
  --shadow-glow-accent: 0 4px 20px rgba(13,148,136,0.4);
  --shadow-glow-indigo: 0 0 20px rgba(99,102,241,0.3);
  --shadow-glow-white:  0 0 30px rgba(255,255,255,0.3);

  /* Easings */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1280px;
  --max-prose: 720px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:  0 4px 12px rgba(15,23,42,0.06);
  --shadow-lg:  0 8px 24px rgba(15,23,42,0.08);
  --shadow-xl:  0 12px 40px rgba(15,23,42,0.10);

  /* Borders */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;

  /* Transitions */
  --transition-fast: 150ms var(--ease-3);
  --transition-base: 250ms var(--ease-3);
  --transition-slow: 400ms var(--ease-3);
}

/* --- 3. CSS Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --- Text Selection Branding --- */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: inherit;
}

.hero ::selection,
.page-hero ::selection,
.cta-band ::selection {
  background: rgba(13, 148, 136, 0.35);
  color: #fff;
}

/* --- 4. Film Grain Texture --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Scroll Progress Indicator --- */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-indigo));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  z-index: 9998;
  pointer-events: none;
  transition: transform 100ms linear;
}

/* --- 5. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl);  }
h4 { font-size: var(--text-lg);  }

p {
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.overline::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

.mono {
  font-family: var(--font-mono);
}

/* --- 6. Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-5xl);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section + .section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--color-border), transparent) 1;
}

.section__header {
  max-width: var(--max-prose);
  margin-bottom: var(--space-3xl);
}

.section__header h2 {
  margin-bottom: var(--space-md);
}

.section__header p {
  font-size: var(--text-lg);
}

/* --- 7. Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-lg);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base), backdrop-filter var(--transition-base);
}

.header--transparent {
  background: transparent;
  border-bottom-color: transparent;
}

.header--scrolled {
  background: rgba(255,255,255,0.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgba(226,232,240,0.5);
  box-shadow: var(--shadow-sm);
  padding-block: var(--space-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
}

.header--transparent .header__logo {
  color: var(--color-surface);
}

.header--scrolled .header__logo {
  color: var(--color-text);
}

.header__logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.header__logo svg circle {
  transition: transform 0.4s var(--ease-expo-out), opacity 0.4s var(--ease-expo-out);
  transform-origin: 16px 16px;
}

.header__logo:hover svg circle:nth-child(1) {
  transform: scale(1.05);
  opacity: 0.7;
}

.header__logo:hover svg circle:nth-child(2) {
  transform: scale(1.1) rotate(10deg);
}

.header__logo:hover svg circle:nth-child(3) {
  transform: scale(1.15);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
}

.header__link:hover,
.header__link--active {
  color: var(--color-text);
}

.header__link:hover::after,
.header__link--active::after {
  width: 100%;
}

.header--transparent .header__link {
  color: rgba(255,255,255,0.7);
}

.header--transparent .header__link:hover,
.header--transparent .header__link--active {
  color: #fff;
}

.header--scrolled .header__link {
  color: var(--color-text-muted);
}

.header--scrolled .header__link:hover,
.header--scrolled .header__link--active {
  color: var(--color-text);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.header__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-sm);
}

/* --- 8. Mobile Nav --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.header--transparent .hamburger__line {
  background: #fff;
}

.header--scrolled .hamburger__line {
  background: var(--color-text);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  background: var(--color-surface);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-overlay--open {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay__link {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-overlay__link:hover {
  color: var(--color-accent);
}

.mobile-overlay--open .mobile-overlay__link {
  opacity: 1;
  transform: translateY(0);
  transition: color var(--transition-fast), opacity 0.4s var(--ease-expo-out), transform 0.4s var(--ease-expo-out);
}

.mobile-overlay--open .mobile-overlay__link:nth-child(1) { transition-delay: 0ms; }
.mobile-overlay--open .mobile-overlay__link:nth-child(2) { transition-delay: 50ms; }
.mobile-overlay--open .mobile-overlay__link:nth-child(3) { transition-delay: 100ms; }
.mobile-overlay--open .mobile-overlay__link:nth-child(4) { transition-delay: 150ms; }

/* --- 9. Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-5xl) var(--space-xl);
  background: var(--color-dark);
  overflow: hidden;
  text-align: center;
}

/* Animated mesh gradient (interactive via --hmx/hmy vars) */
.hero::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at calc(20% + var(--hmx1, 0%)) calc(40% + var(--hmy1, 0%)), rgba(13,148,136,0.3), transparent 70%),
    radial-gradient(ellipse 60% 80% at calc(80% + var(--hmx2, 0%)) calc(20% + var(--hmy2, 0%)), rgba(99,102,241,0.25), transparent 70%),
    radial-gradient(ellipse 50% 60% at calc(50% + var(--hmx3, 0%)) calc(80% + var(--hmy3, 0%)), rgba(139,92,246,0.2), transparent 70%);
  animation: hero-mesh 20s ease-in-out infinite;
  pointer-events: none;
}

/* Glow orb */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%) scale(1);
  background: radial-gradient(circle, rgba(13,148,136,0.15), transparent 70%);
  z-index: 1;
  animation: hero-glow 8s ease-in-out infinite;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero .overline {
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.hero .overline::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gradient-accent-rev);
  flex-shrink: 0;
}

/* Title shimmer */
.hero__title {
  font-size: var(--text-6xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 40%,
    var(--color-accent) 50%,
    var(--color-indigo) 60%,
    #fff 70%,
    #fff 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 8s ease-in-out infinite;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-normal);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-accent);
}

.hero__cta:hover::before {
  opacity: 1;
}

.hero__cta:active {
  transform: translateY(0) scale(0.98);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-fast);
  text-decoration: none;
  z-index: 2;
}

.hero__scroll:hover {
  color: rgba(255,255,255,0.8);
}

/* Scroll indicator pulse */
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* Motif rotation */
.hero__motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
  animation: motif-rotate 120s linear infinite;
}

/* Hero entrance — choreographed cascade */
.hero[data-hero-animate] .hero__content > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-expo-out), transform 0.8s var(--ease-expo-out);
}

.hero[data-hero-animate].hero--entered .hero__content > * {
  opacity: 1;
  transform: translateY(0);
}

.hero[data-hero-animate].hero--entered .hero__content > *:nth-child(1) { transition-delay: 0s; }
.hero[data-hero-animate].hero--entered .hero__content > *:nth-child(2) { transition-delay: 0.15s; }
.hero[data-hero-animate].hero--entered .hero__content > *:nth-child(3) { transition-delay: 0.3s; }
.hero[data-hero-animate].hero--entered .hero__content > *:nth-child(4) { transition-delay: 0.5s; }

/* --- 10. Hero Keyframes --- */
@keyframes hero-mesh {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, -3%) scale(1.05); }
  50% { transform: translate(-3%, 5%) scale(1.02); }
  75% { transform: translate(3%, 2%) scale(1.08); }
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes title-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes motif-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scroll-pulse {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* --- 11. Page Hero (sub-pages — dark) --- */
.page-hero {
  position: relative;
  padding: calc(var(--space-5xl) + 80px) var(--space-xl) var(--space-4xl);
  background: var(--color-dark);
  text-align: center;
  overflow: hidden;
}

/* Gradient blobs */
.page-hero::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(13,148,136,0.2), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(99,102,241,0.15), transparent 70%);
  pointer-events: none;
}

/* Dot-grid overlay */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .overline {
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.page-hero .overline::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gradient-accent-rev);
  flex-shrink: 0;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.page-hero p {
  font-size: var(--text-lg);
  max-width: 600px;
  margin-inline: auto;
  color: rgba(255,255,255,0.7);
}

/* --- 12. Cards & Bento Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: box-shadow 500ms var(--ease-expo-out), transform 500ms var(--ease-expo-out), border-color 500ms var(--ease-expo-out);
}

/* Gradient top accent */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-card-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 500ms var(--ease-expo-out);
  z-index: 1;
}

/* Card spotlight glow (follows mouse via --mouse-x/y) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(13,148,136,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 500ms var(--ease-expo-out);
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(13,148,136,0.1);
  transform: translateY(-6px);
  border-color: rgba(13,148,136,0.2);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

/* Gradient card numbers */
.card__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-md);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card h3 {
  margin-bottom: var(--space-md);
}

.card p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.card:hover .tag {
  border-color: rgba(13,148,136,0.4);
  background: rgba(13,148,136,0.1);
}

/* --- 13. About Page --- */
.about-narrative {
  max-width: var(--max-prose);
  margin-inline: auto;
  margin-bottom: var(--space-4xl);
}

.about-narrative p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

/* --- 14. Contact Form --- */
.form {
  max-width: 640px;
  margin-inline: auto;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15), 0 0 15px rgba(13,148,136,0.1);
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
}

.form__submit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.form__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.form__submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-accent);
}

.form__submit:hover::before {
  opacity: 1;
}

.form__submit:active {
  transform: translateY(0) scale(0.98);
}

/* --- 15. CTA Band --- */
.cta-band {
  position: relative;
  padding-block: var(--space-4xl);
  background: var(--color-dark);
  text-align: center;
  overflow: hidden;
}

/* Background glow orb */
.cta-band::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(13,148,136,0.15), rgba(99,102,241,0.1), transparent 70%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-band p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.cta-band__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-dark);
  background: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.cta-band__btn:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-white);
}

.cta-band__sub {
  display: block;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

/* --- 16. Footer --- */
.footer {
  position: relative;
  padding-block: var(--space-2xl);
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(13,148,136,0.04), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(99,102,241,0.03), transparent 70%);
  pointer-events: none;
}

.footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13,148,136,0.4), rgba(99,102,241,0.4), transparent);
  pointer-events: none;
}

.footer p {
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- 17. Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-expo-out), transform 0.8s var(--ease-expo-out), filter 0.8s var(--ease-expo-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-expo-out), transform 0.8s var(--ease-expo-out), filter 0.8s var(--ease-expo-out);
}

.reveal-stagger.reveal--visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.reveal--visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.reveal--visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.reveal--visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.reveal--visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.reveal--visible > *:nth-child(6) { transition-delay: 500ms; }

.reveal-stagger.reveal--visible > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- 18. Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero[data-hero-animate] .hero__content > * {
    opacity: 1;
    transform: none;
  }

  .hero__title {
    -webkit-text-fill-color: #fff;
    background: none;
  }

  .hero__motif {
    animation: none;
  }

  /* Word-split: show immediately */
  .section__header h2 .word {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Scroll progress: no transition */
  body::after {
    transition: none;
  }

  /* Custom cursor: hidden */
  .cursor {
    display: none !important;
  }

  /* Mobile overlay: instant */
  .mobile-overlay__link {
    opacity: 1;
    transform: none;
  }
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-expo-out), height 0.3s var(--ease-expo-out),
              background-color 0.3s var(--ease-expo-out), border-color 0.3s var(--ease-expo-out),
              opacity 0.3s var(--ease-expo-out), scale 0.15s var(--ease-expo-out);
  will-change: left, top;
  opacity: 0;
}

.cursor--visible {
  opacity: 1;
}

.cursor--hover {
  width: 48px;
  height: 48px;
  background-color: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.5);
}

.cursor--click {
  scale: 0.85;
}

/* --- Word-Split Entrance --- */
.section__header h2 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 0.6s var(--ease-expo-out), transform 0.6s var(--ease-expo-out), filter 0.6s var(--ease-expo-out);
}

.reveal--visible .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal--visible .word:nth-child(1)  { transition-delay: 0ms; }
.reveal--visible .word:nth-child(2)  { transition-delay: 60ms; }
.reveal--visible .word:nth-child(3)  { transition-delay: 120ms; }
.reveal--visible .word:nth-child(4)  { transition-delay: 180ms; }
.reveal--visible .word:nth-child(5)  { transition-delay: 240ms; }
.reveal--visible .word:nth-child(6)  { transition-delay: 300ms; }
.reveal--visible .word:nth-child(7)  { transition-delay: 360ms; }
.reveal--visible .word:nth-child(8)  { transition-delay: 420ms; }
.reveal--visible .word:nth-child(9)  { transition-delay: 480ms; }
.reveal--visible .word:nth-child(10) { transition-delay: 540ms; }

/* --- 19. Utilities --- */
.text-center { text-align: center; }

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

/* --- 20. Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  .hero__title { font-size: var(--text-5xl); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-5xl: 5rem;
    --space-4xl: 3.5rem;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .hero__title { font-size: var(--text-4xl); }

  .header__nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  .container {
    padding-inline: var(--space-lg);
  }

  .section {
    padding-block: var(--space-4xl);
  }

  .page-hero {
    padding-top: calc(var(--space-4xl) + 80px);
  }

  /* Smaller glow orbs on mobile */
  .hero::after {
    width: 300px;
    height: 300px;
  }

  .cta-band::before {
    width: 300px;
    height: 200px;
  }

  .page-hero::after {
    background-size: 20px 20px;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }
}

/* Card tilt disabled on touch / coarse pointer */
@media (pointer: coarse) {
  .card {
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  }

  .cursor {
    display: none !important;
  }
}
