/* ============================================================
 * jofravicode.dev  — Liquid Glass Design System
 * Inspired by Apple Liquid Glass / Glassmorphism
 * Author: José Francisco Aguirre Villarroel
 * ============================================================ */

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:          #050B12;
  --color-bg-2:        #081322;
  --color-surface:     rgba(255, 255, 255, 0.06);
  --color-surface-md:  rgba(255, 255, 255, 0.10);
  --color-surface-hi:  rgba(255, 255, 255, 0.16);
  --color-border:      rgba(255, 255, 255, 0.12);
  --color-border-hi:   rgba(255, 255, 255, 0.24);

  --color-text:        #F2F7FA;
  --color-text-2:      rgba(242, 247, 250, 0.65);
  --color-text-3:      rgba(242, 247, 250, 0.55);

  --color-accent:      var(--brand-green);
  --color-accent-2:    var(--brand-green);
  --brand-green: #0CE259;
  --brand-green-rgb: 12, 226, 89;
  --color-interaction: var(--brand-green);
  --color-brand-green: var(--brand-green);
  --color-interaction-deep: var(--brand-green);
  --color-cyan-soft:   var(--brand-green);
  --color-green-deep:  var(--brand-green);
  --color-bg-3:        #0B1829;
  --color-danger:      #f56e6e;
  --color-success:     var(--brand-green);
  --color-warning:     #f5d96e;

  /* Glass */
  --blur:              saturate(180%) blur(20px);
  --blur-sm:           saturate(150%) blur(12px);
  --blur-lg:           saturate(200%) blur(36px);
  --glass-bg:          rgba(8, 19, 34, 0.72);
  --glass-bg-card:     rgba(255, 255, 255, 0.05);
  --glass-border:      rgba(255, 255, 255, 0.10);
  --glass-shadow:      0 8px 32px rgba(0, 0, 0, 0.48);
  --glass-shadow-sm:   0 2px 12px rgba(0, 0, 0, 0.32);

  /* Typography */
  --font-sans:   "SF Pro Display", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:   "SF Mono", "Fira Mono", "Cascadia Code", Menlo, monospace;
  --size-xs:     0.75rem;
  --size-sm:     0.875rem;
  --size-base:   1rem;
  --size-lg:     1.125rem;
  --size-xl:     1.25rem;
  --size-2xl:    1.5rem;
  --size-3xl:    1.875rem;
  --size-4xl:    2.25rem;
  --size-5xl:    3rem;
  --size-hero:   clamp(2.5rem, 6vw, 4.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;

  /* Transitions */
  --t-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-ios:  650ms cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-ambient: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-highlight: 0 18px 44px rgba(var(--brand-green-rgb), 0.18);

  /* iOS safe areas */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);

  /* Layout */
  --nav-height: 72px;
  --content-max: 1200px;
}

/* Light theme */
@media (prefers-color-scheme: light) {
  :root {
    --color-bg:         #050B12;
    --color-bg-2:       #0B1829;
    --color-surface:    rgba(255, 255, 255, 0.06);
    --color-surface-md: rgba(255, 255, 255, 0.10);
    --color-surface-hi: rgba(255, 255, 255, 0.16);
    --color-border:     rgba(255, 255, 255, 0.12);
    --color-border-hi:  rgba(255, 255, 255, 0.24);
    --color-text:       #F2F7FA;
    --color-text-2:     rgba(242, 247, 250, 0.65);
    --color-text-3:     rgba(242, 247, 250, 0.55);
    --glass-bg:         rgba(11, 24, 41, 0.78);
    --glass-bg-card:    rgba(255, 255, 255, 0.05);
    --glass-border:     rgba(255, 255, 255, 0.10);
    --glass-shadow:     0 8px 32px rgba(0, 0, 0, 0.48);
    --glass-shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.32);
  }
}

.dark {
  --color-bg:          #050B12;
  --color-bg-2:        #081322;
  --color-surface:     rgba(255, 255, 255, 0.06);
  --color-text:        #F2F7FA;
  --color-text-2:      rgba(242, 247, 250, 0.65);
  --glass-bg:          rgba(8, 19, 34, 0.72);
  --glass-bg-card:     rgba(255, 255, 255, 0.05);
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(var(--brand-green-rgb), 0.28) 0%, transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(var(--brand-green-rgb), 0.18) 0%, transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(var(--brand-green-rgb), 0.14) 0%, transparent 42%),
    linear-gradient(180deg, #050B12 0%, #081322 38%, #0B1829 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.skip-link {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background: #f5fbff;
  color: #050B12;
  transform: translateY(-160%);
  transition: transform var(--t-base);
  box-shadow: var(--shadow-ambient);
}

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

.site-chrome {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.site-chrome__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: ambientFloat 18s ease-in-out infinite;
}

.site-chrome__glow--one {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -120px;
  background: rgba(var(--brand-green-rgb), 0.18);
}

.site-chrome__glow--two {
  width: 360px;
  height: 360px;
  top: 14%;
  right: -120px;
  background: rgba(var(--brand-green-rgb), 0.14);
  animation-delay: -6s;
}

.site-chrome__glow--three {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: 32%;
  background: rgba(255, 255, 255, 0.08);
  animation-delay: -10s;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  background:
    radial-gradient(circle at 20% 15%, rgba(var(--brand-green-rgb), 0.2) 0%, transparent 26%),
    radial-gradient(circle at 80% 25%, rgba(var(--brand-green-rgb), 0.16) 0%, transparent 22%),
    rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity var(--t-base), transform var(--ease-ios);
}

body.is-transitioning .page-transition {
  opacity: 1;
  transform: scale(1);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, [role="button"] { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

/* ─── Glass utility ──────────────────────────────────────────── */
.glass {
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.glass-sm {
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow-sm);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: calc(var(--safe-top) + var(--space-3));
  left: var(--space-3);
  right: var(--space-3);
  z-index: 1200;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)), var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-ambient);
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 40%, rgba(var(--brand-green-rgb), 0.08));
  pointer-events: none;
}

.nav__logo,
.nav__links,
.nav__cta,
.nav__hamburger {
  position: relative;
  z-index: 5;
}

.nav__links,
.nav__cta {
  display: none;
}

.nav.scrolled {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  margin-right: var(--space-3);
  padding: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-text-2);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-base), box-shadow var(--t-base);
  min-height: 44px;
}

.nav__link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav__link.active {
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.18), rgba(var(--brand-green-rgb), 0.14));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-highlight);
}

.nav__cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  border-radius: var(--radius-full);
  font-size: var(--size-sm);
  font-weight: 600;
  color: #fff;
  min-height: 44px;
  box-shadow: var(--shadow-highlight);
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.nav__cta:hover {
  opacity: 0.96;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(var(--brand-green-rgb), 0.24);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  margin-left: auto;
  align-items: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  transition: transform var(--t-base), background var(--t-base), border-color var(--t-base);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--t-base), opacity var(--t-fast), width var(--t-base);
  transform-origin: center;
}

.nav__hamburger:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 8, 15, 0.55);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  will-change: opacity;
}

/* Fallback when backdrop-filter not supported */
@supports not (backdrop-filter: blur(1px)) {
  .nav__backdrop {
    background: rgba(4, 8, 15, 0.88);
  }
}

.nav__backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Mobile drawer ──────────────────────────────────────────── */
/*
 * Positioned below the nav bar, never overlaps it.
 * z-index 1150 = above backdrop (1100), below nav (1200).
 * Panel is centered horizontally, top-aligned to fit without scroll.
 */
.nav__drawer {
  display: flex;
  position: fixed;
  top: calc(var(--nav-height) + var(--safe-top) + var(--space-3) + var(--space-2));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1150;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--space-3) max(var(--safe-bottom), var(--space-4));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.nav__drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.nav__drawer-panel {
  width: min(100%, 420px);
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: calc(100dvh - var(--nav-height) - var(--safe-top) - var(--space-3) - var(--space-6));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(9, 14, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius-xl) + 2px);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    var(--shadow-highlight);

  /* Entry animation — iPhone-like bounce */
  transform: scale(0.8);
  opacity: 0;
  animation: none;
  will-change: transform, opacity;
}

/* Fallback when backdrop-filter not supported */
@supports not (backdrop-filter: blur(1px)) {
  .nav__drawer-panel {
    background: rgba(9, 14, 22, 0.97);
  }
}

.nav__drawer.open .nav__drawer-panel {
  animation: menuPanelIn 420ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav__drawer.is-closing .nav__drawer-panel {
  animation: menuPanelOut 280ms ease forwards;
}

/* ─── Keyframes: Panel ───────────────────────────────────────── */
@keyframes menuPanelIn {
  0%   { transform: scale(0.8);   opacity: 0; }
  60%  { transform: scale(1.03);  opacity: 1; }
  80%  { transform: scale(0.985); opacity: 1; }
  100% { transform: scale(1);     opacity: 1; }
}

@keyframes menuPanelOut {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(0.92); opacity: 0; }
}

/* ─── Keyframes: Items ───────────────────────────────────────── */
@keyframes menuItemIn {
  0%   { transform: translateY(14px) scale(0.95); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.01); opacity: 1; }
  100% { transform: translateY(0) scale(1);       opacity: 1; }
}

@keyframes menuItemOut {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(8px) scale(0.96); opacity: 0; }
}

/* Reduced motion — skip all animations */
@media (prefers-reduced-motion: reduce) {
  .nav__drawer-panel,
  .nav__drawer.open .nav__drawer-panel,
  .nav__drawer.is-closing .nav__drawer-panel,
  .nav__drawer-item {
    animation: none !important;
    transition: opacity 150ms ease !important;
    transform: none !important;
  }

  .nav__drawer.open .nav__drawer-panel,
  .nav__drawer.open .nav__drawer-item {
    opacity: 1;
  }

  .nav__drawer.is-closing .nav__drawer-panel {
    opacity: 0;
  }

  .nav__backdrop {
    transition: opacity 150ms ease;
  }
}

.nav__drawer-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__drawer-eyebrow {
  font-size: var(--size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-3);
}

.nav__drawer-title {
  font-family: var(--font-heading);
  font-size: var(--size-lg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.nav__drawer-menu {
  display: grid;
  gap: var(--space-2);
}

.nav__drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--size-base);
  font-weight: 500;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-base);
}

.nav__drawer-item {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* Hidden by default — animated in via keyframes */
  opacity: 0;
  transform: translateY(14px) scale(0.95);
}

.nav__drawer-item::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: var(--space-3);
  transform: translateY(-50%);
  font-size: var(--size-lg);
  color: var(--color-text-3);
  transition: transform var(--t-base), color var(--t-fast);
}

/* Staggered entry animation — 60ms per item */
.nav__drawer.open .nav__drawer-item {
  animation: menuItemIn 380ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.nav__drawer.open .nav__drawer-item:nth-child(1) { animation-delay:  60ms; }
.nav__drawer.open .nav__drawer-item:nth-child(2) { animation-delay: 120ms; }
.nav__drawer.open .nav__drawer-item:nth-child(3) { animation-delay: 180ms; }
.nav__drawer.open .nav__drawer-item:nth-child(4) { animation-delay: 240ms; }
.nav__drawer.open .nav__drawer-item:nth-child(5) { animation-delay: 300ms; }

/* Staggered exit animation */
.nav__drawer.is-closing .nav__drawer-item {
  animation: menuItemOut 200ms ease forwards;
}
.nav__drawer.is-closing .nav__drawer-item:nth-child(5) { animation-delay:  0ms; }
.nav__drawer.is-closing .nav__drawer-item:nth-child(4) { animation-delay: 30ms; }
.nav__drawer.is-closing .nav__drawer-item:nth-child(3) { animation-delay: 60ms; }
.nav__drawer.is-closing .nav__drawer-item:nth-child(2) { animation-delay: 90ms; }
.nav__drawer.is-closing .nav__drawer-item:nth-child(1) { animation-delay: 120ms; }

.nav__drawer-item-label {
  font-family: var(--font-heading);
  font-size: var(--size-sm);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.nav__drawer-item-meta {
  font-size: var(--size-xs);
  color: var(--color-text-2);
  line-height: 1.3;
}

.nav__drawer-link:hover,
.nav__drawer-link.active {
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.16), rgba(var(--brand-green-rgb), 0.12));
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.nav__drawer-item:hover::after,
.nav__drawer-item.active::after {
  transform: translate(2px, -50%);
  color: var(--color-text);
}

.nav__drawer-utility {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.nav__drawer-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-2);
  transition: transform var(--t-base), background var(--t-base), color var(--t-fast), border-color var(--t-fast);
}

.nav__drawer-secondary:hover,
.nav__drawer-secondary:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--color-text);
}

.nav__drawer-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.nav__drawer-action,
.nav__drawer-action-form,
.nav__drawer-action-form .nav__drawer-action {
  width: 100%;
}

.nav__drawer-action {
  justify-content: center;
}

.nav__drawer-action--ghost {
  border-radius: var(--radius-full);
}

@media (max-width: 420px) {
  .nav__drawer {
    padding-inline: var(--space-2);
  }

  .nav__drawer-panel {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .nav__drawer-item {
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
  }
}

@media (min-width: 769px) {
  .nav {
    top: calc(var(--safe-top) + var(--space-4));
    left: clamp(var(--space-3), 3vw, var(--space-6));
    right: clamp(var(--space-3), 3vw, var(--space-6));
    padding-inline: clamp(var(--space-4), 3vw, var(--space-6));
  }

  .nav__logo { font-size: var(--size-xl); }
  .nav__links,
  .nav__cta { display: inline-flex; }
  .nav__links { display: flex; }
  .nav__hamburger,
  .nav__backdrop,
  .nav__drawer { display: none; }
}

/* ─── Page wrapper ───────────────────────────────────────────── */
.page {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--safe-top) + var(--space-8));
  min-height: 100dvh;
  opacity: 1;
  transform: none;
  transition: opacity var(--ease-ios), transform var(--ease-ios);
  will-change: opacity, transform;
}

body.is-ready .page {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.is-transitioning .page {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ─── Section ────────────────────────────────────────────────── */
.section {
  padding-block: var(--space-20);
}

.section--sm { padding-block: var(--space-12); }
.section--lg { padding-block: clamp(var(--space-20), 8vw, var(--space-24)); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  display: grid;
  align-items: center;
  min-height: calc(100dvh - var(--nav-height));
  padding-block: var(--space-16);
}

.hero--home {
  position: relative;
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(var(--brand-green-rgb), 0.12);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--size-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero__title .accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(var(--size-lg), 2.2vw, var(--size-xl));
  color: var(--color-text-2);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
  margin-bottom: var(--space-6);
}

.hero__actions .btn {
  width: 100%;
}

.section-dock {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.section-dock__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-2);
  transition: transform var(--t-base), background var(--t-base), border-color var(--t-base), color var(--t-fast), box-shadow var(--t-fast);
}

.section-dock__item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 0 16px rgba(var(--brand-green-rgb), 0.4);
}

.section-dock__item:hover,
.section-dock__item.active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  box-shadow: var(--shadow-highlight);
}

.hero-showcase {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-showcase__panel {
  position: relative;
  width: 100%;
  max-width: none;
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  overflow: hidden;
}

.hero-showcase__panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-green-rgb), 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-showcase__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--size-2xl), 3vw, var(--size-4xl));
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}

.hero-showcase__body {
  color: var(--color-text-2);
  font-size: var(--size-base);
  line-height: 1.7;
}

.hero-showcase__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-stat {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat__label {
  display: block;
  font-size: var(--size-xs);
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.hero-stat__value {
  display: block;
  font-size: var(--size-sm);
  color: var(--color-text);
  font-weight: 700;
}

.hero-floating {
  position: static;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  width: 100%;
  max-width: none;
  box-shadow: var(--shadow-highlight);
  animation: none;
}

.hero-floating__label {
  font-size: var(--size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-3);
}

.hero-floating strong {
  font-size: var(--size-sm);
  line-height: 1.4;
}

.hero-floating--one {
  top: auto;
  left: auto;
}

.hero-floating--two {
  right: auto;
  bottom: auto;
  animation-delay: 0s;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--size-base);
  font-weight: 600;
  min-height: 48px;
  min-width: 44px;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn:hover    { transform: translateY(-2px); }
.btn:active   { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(var(--brand-green-rgb), 0.24);
}
.btn-primary:hover { box-shadow: 0 20px 42px rgba(var(--brand-green-rgb), 0.28); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--color-border-hi); }

.btn-ghost {
  color: var(--color-accent);
  background: rgba(var(--brand-green-rgb), 0.08);
  border: 1px solid rgba(var(--brand-green-rgb), 0.20);
}
.btn-ghost:hover { background: rgba(var(--brand-green-rgb), 0.14); }

.btn-danger {
  background: var(--color-danger);
  color: #fff;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--size-sm);
  min-height: 38px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--size-lg);
  min-height: 56px;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  position: relative;
  isolation: isolate;
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 36%, transparent 68%, rgba(var(--brand-green-rgb), 0.08));
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  border-color: var(--color-border-hi);
}

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

.card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-surface);
}

.card__body {
  padding: var(--space-5) var(--space-6);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--size-xs);
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card__title {
  font-size: var(--size-xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.card__excerpt {
  font-size: var(--size-sm);
  color: var(--color-text-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Post grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--size-xs);
  color: var(--color-text-3);
}

.breadcrumbs__link {
  color: var(--color-text-2);
  transition: color var(--t-fast);
}

.breadcrumbs__link:hover,
.breadcrumbs__link.is-current {
  color: var(--color-text);
}

.breadcrumbs__separator {
  color: var(--color-text-3);
}

.chip-nav {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-6);
  scrollbar-width: none;
}

.chip-nav::-webkit-scrollbar {
  display: none;
}

.chip-nav__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-2);
  transition: transform var(--t-base), background var(--t-base), border-color var(--t-base), color var(--t-fast);
}

.chip-nav__item:hover,
.chip-nav__item.active {
  color: var(--color-text);
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.16), rgba(var(--brand-green-rgb), 0.12));
  border-color: rgba(255, 255, 255, 0.16);
}

.chip-nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.3rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.blog-search {
  margin-bottom: var(--space-8);
}

.blog-search__inner {
  display: grid;
  gap: var(--space-3);
}

.blog-search__submit {
  width: 100%;
}

/* ─── Section heading ────────────────────────────────────────── */
.section-heading {
  margin-bottom: var(--space-10);
}

.section-heading__label {
  display: inline-block;
  font-size: var(--size-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section-heading__title {
  font-size: clamp(var(--size-2xl), 3.5vw, var(--size-4xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.section-heading__subtitle {
  font-size: var(--size-lg);
  color: var(--color-text-2);
  max-width: 56ch;
}

/* ─── Badge / Tag ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-full);
  font-size: var(--size-xs);
  font-weight: 600;
  background: var(--color-surface-md);
  color: var(--color-text-2);
  border: 1px solid var(--glass-border);
  transition: background var(--t-fast);
}

.badge:hover { background: var(--color-surface-hi); }

.badge--accent {
  background: rgba(var(--brand-green-rgb), 0.15);
  color: var(--color-accent);
  border-color: rgba(var(--brand-green-rgb), 0.25);
}

.badge--success {
  background: rgba(var(--brand-green-rgb), 0.15);
  color: var(--color-success);
  border-color: rgba(var(--brand-green-rgb), 0.25);
}

/* ─── Form elements ──────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-text-2);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--size-base);
  min-height: 48px;
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--brand-green-rgb), 0.20);
  background: var(--color-surface-md);
  outline: none;
}

.form-control::placeholder { color: var(--color-text-3); }

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-hint {
  font-size: var(--size-xs);
  color: var(--color-text-3);
}

.form-error {
  font-size: var(--size-xs);
  color: var(--color-danger);
}

/* ─── Alert / Flash ──────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--size-sm);
  border: 1px solid transparent;
  animation: slideDown var(--t-slow) var(--t-spring) both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert--success {
  background: rgba(var(--brand-green-rgb), 0.10);
  border-color: rgba(var(--brand-green-rgb), 0.25);
  color: var(--color-success);
}

.alert--error {
  background: rgba(245, 110, 110, 0.10);
  border-color: rgba(245, 110, 110, 0.25);
  color: var(--color-danger);
}

.alert--info {
  background: rgba(110, 158, 245, 0.10);
  border-color: rgba(110, 158, 245, 0.25);
  color: var(--color-accent-2);
}

/* ─── Article / Post content ─────────────────────────────────── */
.prose {
  font-size: var(--size-lg);
  line-height: 1.75;
  color: var(--color-text);
  max-width: 72ch;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.25em; }
.prose h4 { font-size: 1.1em; }

.prose p { margin-bottom: 1.2em; }

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: rgba(var(--brand-green-rgb), 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast);
}
.prose a:hover { text-decoration-color: var(--color-accent); }

.prose ul, .prose ol {
  padding-left: 1.6em;
  margin-bottom: 1.2em;
  list-style: revert;
}

.prose li { margin-bottom: 0.4em; }

.prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.2em;
  margin: 1.4em 0;
  font-style: italic;
  color: var(--color-text-2);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-surface-md);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.prose pre {
  background: var(--color-bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  overflow-x: auto;
  margin-bottom: 1.4em;
  font-family: var(--font-mono);
  font-size: var(--size-sm);
  line-height: 1.65;
}

.prose pre code {
  background: none;
  padding: 0;
  color: var(--color-text);
}

.prose img {
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  margin-block: 1.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
  font-size: var(--size-sm);
}

.prose th, .prose td {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--glass-border);
}

.prose th {
  background: var(--color-surface);
  font-weight: 600;
  text-align: left;
}

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-10);
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--size-sm);
  font-weight: 600;
  color: var(--color-text-2);
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  transition: background var(--t-fast), color var(--t-fast);
}

.pagination__item:hover { background: var(--color-surface-md); color: var(--color-text); }
.pagination__item.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.pagination__item.disabled { opacity: 0.35; pointer-events: none; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  padding-top: var(--space-16);
  padding-bottom: calc(var(--space-8) + var(--safe-bottom));
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand-name {
  font-size: var(--size-xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-3);
}

.footer__brand-desc {
  font-size: var(--size-sm);
  color: var(--color-text-2);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  max-width: 32ch;
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-md);
  border: 1px solid var(--glass-border);
  color: var(--color-text-2);
  color: var(--color-accent);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.footer__social-link img {
  display: block;
  width: 20px;
  height: 20px;
}

.footer__social-link:hover {
  background: rgba(var(--brand-green-rgb), 0.14);
  color: var(--color-text);
  border-color: rgba(var(--brand-green-rgb), 0.62);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--brand-green-rgb), 0.12);
}

.footer__social-link:focus-visible,
.phase-more a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.footer__social-link:active {
  transform: translateY(0) scale(0.96);
}

.footer__col-title {
  font-size: var(--size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--size-sm);
  color: rgba(242, 247, 250, 0.82);
  transition: color var(--t-fast);
  padding-block: var(--space-1);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.footer__link:hover { color: var(--color-brand-green); }

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--size-xs);
  color: var(--color-text-3);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.post-sidebar {
  position: static;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.post-nav__item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}

.post-nav__item:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hi);
}

.post-nav__item--next {
  text-align: left;
}

.post-nav__eyebrow {
  font-size: var(--size-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-3);
}

.post-nav__title {
  font-size: var(--size-lg);
  line-height: 1.35;
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* ─── Avatar ─────────────────────────────────────────────────── */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
  font-weight: 700;
}

.avatar--sm  { width: 32px; height: 32px; font-size: var(--size-xs); }
.avatar--md  { width: 48px; height: 48px; font-size: var(--size-base); }
.avatar--lg  { width: 72px; height: 72px; font-size: var(--size-xl); }
.avatar--xl  { width: 104px; height: 104px; font-size: var(--size-3xl); }

.avatar img  { width: 100%; height: 100%; object-fit: cover; }

/* ─── Skill bar ──────────────────────────────────────────────── */
.skill-bar {
  margin-bottom: var(--space-4);
}

.skill-bar__header {
  display: flex;
  justify-content: space-between;
  font-size: var(--size-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.skill-bar__track {
  height: 8px;
  background: var(--color-surface-md);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  transform-origin: left;
  transition: transform 1s var(--t-spring);
}

/* ─── Skills grid (sobre-mi) ─────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.skill-card {
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ─── Certifications grid ────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}

/* ─── Progress ring (LMS) ────────────────────────────────────── */
.progress-ring {
  --size: 64px;
  --stroke: 5;
  --radius: 28;
  width: var(--size);
  height: var(--size);
  position: relative;
  display: inline-grid;
  place-items: center;
}

.progress-ring svg { transform: rotate(-90deg); }

.progress-ring__bg { fill: none; stroke: var(--color-surface-md); stroke-width: var(--stroke); }
.progress-ring__fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: var(--stroke);
  stroke-linecap: round;
  stroke-dasharray: 175.9;
  stroke-dashoffset: 175.9;
  transition: stroke-dashoffset 1s var(--t-spring);
}

.progress-ring__label {
  position: absolute;
  font-size: var(--size-xs);
  font-weight: 700;
  color: var(--color-text);
}

/* ─── Admin sidebar ──────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100dvh - var(--nav-height));
}

.admin-sidebar {
  position: sticky;
  top: var(--nav-height);
  height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border-right: 1px solid var(--glass-border);
  padding: var(--space-5);
  scrollbar-width: thin;
}

.admin-sidebar__title {
  font-size: var(--size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-3);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--size-sm);
  font-weight: 500;
  color: var(--color-text-2);
  transition: background var(--t-fast), color var(--t-fast);
}

.admin-sidebar__link:hover,
.admin-sidebar__link.active {
  background: rgba(var(--brand-green-rgb), 0.12);
  color: var(--color-accent);
}

.admin-content {
  padding: var(--space-8);
  overflow-x: hidden;
}

/* ─── Stat card (admin) ──────────────────────────────────────── */
.stat-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}

.stat-card__value {
  font-size: var(--size-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card__label {
  font-size: var(--size-sm);
  color: var(--color-text-2);
  margin-top: var(--space-1);
}

/* ─── Loading spinner ────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-surface-md);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

@keyframes loaderPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.82; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes loaderOrbit {
  to { transform: rotate(360deg); }
}

@keyframes ambientFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -24px, 0) scale(1.06); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ─── Scroll-reveal ──────────────────────────────────────────── */
[data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity var(--ease-ios), transform var(--ease-ios), filter var(--ease-ios);
  transition-delay: calc(var(--delay, 0) * 90ms);
}

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

/* Staggered children */
[data-reveal-group] > * { --delay: 0; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 641px) {
  .container {
    padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

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

  .blog-search__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .blog-search__submit {
    width: auto;
  }

  .comment-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 769px) {
  .page {
    padding-top: calc(var(--nav-height) + var(--safe-top) + var(--space-10));
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero__actions .btn {
    width: auto;
  }

  .section-dock {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section-dock__item {
    width: auto;
  }

  .hero-showcase__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); }
  .hero-showcase { min-height: 440px; display: grid; place-items: center; }
  .hero-showcase__panel { width: min(100%, 430px); max-width: 430px; }
  .hero-floating {
    position: absolute;
    width: auto;
    max-width: 220px;
    animation: floatCard 8s ease-in-out infinite;
  }
  .hero-floating--one {
    top: 8%;
    left: -2%;
  }
  .hero-floating--two {
    right: 0;
    bottom: 10%;
    animation-delay: -4s;
  }
  .footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: var(--space-10); }
  .post-sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-6)); }
  .post-nav { grid-template-columns: 1fr 1fr; }
  .post-nav__item--next { text-align: right; }
}

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-surface-hi);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ─── Selection ──────────────────────────────────────────────── */
::selection {
  background: rgba(var(--brand-green-rgb), 0.28);
  color: var(--color-text);
}

/* ─── Focus visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-loader,
  .page-transition {
    display: none;
  }

  .page,
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Contact Cards (Liquid Glass Premium) */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-7);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  background: var(--glass-bg-card);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 40px -8px rgba(0, 0, 0, 0.28);
  transition:
    transform var(--t-spring),
    box-shadow var(--t-spring),
    border-color var(--t-base);
  overflow: hidden;
  position: relative;
}

/* top-edge shine */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}

/* brand glow on hover */
.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, var(--icon-color, var(--color-accent)), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -16px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.contact-card:hover::after {
  opacity: 0.06;
}

.contact-card__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-5);
  color: var(--icon-color, var(--color-accent));
  background:
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 6px 16px rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform var(--t-spring), box-shadow var(--t-base), background var(--t-base);
}

.contact-card__icon svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.12) rotate(-4deg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 12px 28px rgba(0, 0, 0, 0.25),
    0 0 0 4px color-mix(in srgb, var(--icon-color, var(--color-accent)) 15%, transparent);
}

.contact-card__title {
  position: relative;
  z-index: 1;
  font-size: var(--size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.contact-card__desc {
  position: relative;
  z-index: 1;
  font-size: var(--size-sm);
  color: var(--color-text-2);
  line-height: 1.6;
  margin: 0;
  max-width: 22ch;
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .contact-card {
    padding: var(--space-6) var(--space-4);
  }
  .contact-card__icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
  }
  .contact-card__title {
    font-size: var(--size-base);
  }
  .contact-card__desc {
    font-size: var(--size-xs);
  }
}

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

/* ─── Restored premium visual components ─────────────────────── */
.nav__logo {
  display: inline-flex;
  align-items: center;
}

.nav__logo-img,
.footer__brand-img {
  width: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.24));
}

.nav__logo-img {
  height: clamp(44px, 4.2vw, 54px);
}

.footer__brand-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-4);
}

.footer__brand-img {
  height: clamp(52px, 5.5vw, 64px);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1vw, 0.7rem) clamp(0.95rem, 1.8vw, 1.2rem);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(10, 15, 22, 0.58);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 36%, rgba(var(--brand-green-rgb), 0.12));
  pointer-events: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -58%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-green-rgb), 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.brand-mark--nav {
  min-height: 58px;
}

.brand-mark--footer {
  min-height: 70px;
  padding-inline: clamp(1rem, 2vw, 1.4rem);
}

.split-feature {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: center;
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  overflow: hidden;
}

.split-feature::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -8%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-green-rgb), 0.18) 0%, transparent 72%);
  pointer-events: none;
}

.hero-photo,
.about-photo,
.profile-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(9, 14, 22, 0.52);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 64px rgba(0, 0, 0, 0.34);
}

.hero-photo::before,
.about-photo::before,
.profile-photo::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 40%, rgba(var(--brand-green-rgb), 0.08));
  pointer-events: none;
}

.hero-photo {
  display: grid;
  place-items: center;
  min-height: min(72vw, 520px);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  border-radius: calc(var(--radius-2xl) + 2px);
  animation: floatCard 8s ease-in-out infinite;
}

.hero-photo__img,
.about-photo__img,
.profile-photo__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.3));
}

.hero-photo__img {
  max-width: 420px;
}

.about-photo,
.profile-photo {
  display: grid;
  place-items: center;
  padding: var(--space-4);
  border-radius: calc(var(--radius-xl) + 6px);
}

.about-photo {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1.08;
  justify-self: center;
}

.profile-photo {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.profile-intro {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 16px rgba(0, 0, 0, 0.15);
  font-size: 28px;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--t-spring), background var(--t-base), box-shadow var(--t-base), border-color var(--t-base), color var(--t-base);
}

.skill-card:hover .skill-icon {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.2), rgba(var(--brand-green-rgb), 0.15));
  border-color: rgba(var(--brand-green-rgb), 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 24px rgba(var(--brand-green-rgb), 0.2);
  color: #fff;
}

.skill-card__content {
  display: grid;
  gap: var(--space-2);
}

.contact-card__icon svg {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

@media (min-width: 769px) {
  .split-feature {
    grid-template-columns: minmax(0, 1.15fr) auto;
  }

  .profile-intro {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-showcase {
    align-items: center;
    justify-content: center;
  }

  .hero-photo {
    width: min(100%, 460px);
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .split-feature,
  .profile-intro {
    text-align: center;
  }

  .brand-mark--nav {
    min-height: 52px;
    padding: 0.45rem 0.9rem;
  }

  .brand-mark--footer {
    min-height: 62px;
  }

  .hero-photo {
    min-height: auto;
  }
}



/* --- Premium Desktop Adjustments (=1200px) --- */
@media (min-width: 1200px) {
  .container {
    padding-inline: clamp(var(--space-8), 6vw, var(--space-12));
    max-width: 1300px;
  }
  .hero-content {
    padding-right: var(--space-12);
  }
  p {
    line-height: 1.8;
  }
  .section--large {
    padding-block: var(--space-20);
  }
}



/* --- About Teaser Responsive Updates (Teaser PRD) --- */
@media (min-width: 1200px) {
  .split-feature {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-20);
    padding: clamp(var(--space-12), 8vw, var(--space-16));
  }
  .about-photo {
    width: 100%;
    max-width: 420px;
    aspect-ratio: auto;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .split-feature {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-10);
    padding: var(--space-10);
  }
  .about-photo {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .split-feature {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: var(--space-8);
  }
  .split-feature > div:last-child {
    order: -1;
  }
  .about-photo {
    width: min(100%, 240px);
    margin-inline: auto;
  }
}



/* --- Profile Hero (Sobre m� PRD) --- */
.profile-hero {
  position: relative;
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

@media (min-width: 1200px) {
  .profile-hero {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-20);
    padding: clamp(var(--space-16), 10vw, var(--space-24));
  }
  .profile-photo {
    width: min(100%, 240px);
    height: auto;
    aspect-ratio: 1;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .profile-hero {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
    padding: var(--space-12);
  }
  .profile-photo {
    width: min(100%, 200px);
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 767px) {
  .profile-hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--space-10);
    padding: clamp(var(--space-8), 6vw, var(--space-10));
  }
  .profile-photo {
    width: min(100%, 180px);
    height: auto;
    aspect-ratio: 1;
    margin-inline: auto;
  }
}



/* --- Contact Premium Updates --- */
.contact-page .section-heading {
  margin-bottom: var(--space-20);
}

.contact-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 1200px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-12);
    padding-inline: var(--space-12);
  }
  .contact-card {
    padding: var(--space-10) var(--space-8);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-10);
    padding-inline: var(--space-8);
  }
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
    gap: var(--space-8);
  }
}


/* Navigation remains usable when JavaScript is unavailable. */
@media (max-width: 768px) {
  html:not(.js) .nav { position: relative; height: auto; min-height: var(--nav-height); }
  html:not(.js) .nav__links { display: flex; flex-wrap: wrap; }
  html:not(.js) .nav__hamburger { display: none; }
  .nav__hamburger { margin-left: auto; }
}

/* Fase B — Elegant Liquid Glass. Lectura primero. */
.site-chrome__glow {
  opacity: 0.16;
  animation: none;
}

.phase-hero {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.phase-page {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.phase-section,
.phase-close {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.phase-hero__grid,
.phase-story,
.phase-offer,
.phase-certs,
.phase-index {
  display: grid;
  gap: 1.25rem;
}
.phase-hero__grid { gap: clamp(1.75rem, 4vw, 3.5rem); }

.phase-kicker {
  color: var(--brand-green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.phase-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.phase-page h1,
.phase-heading h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.phase-close h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.phase-lead,
.phase-card p,
.phase-work p,
.phase-prose p,
.phase-note {
  color: #D5DEE6;
  line-height: 1.65;
  max-width: 62ch;
}
.phase-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.phase-heading { margin-bottom: 1.75rem; }
.phase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.phase-card,
.phase-work,
.phase-form,
.phase-channels {
  background: rgba(8, 19, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
.phase-card,
.phase-work { padding: 1.5rem; }
.phase-card h2,
.phase-card h3,
.phase-work h2,
.phase-work h3 { margin-bottom: 0.5rem; }
.phase-work p,
.phase-card p { margin-bottom: 0; }
.phase-work .phase-note { margin-top: 0.75rem; }

.phase-portrait {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #081322;
  max-width: 440px;
  justify-self: end;
}
.phase-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 424;
  object-fit: cover;
  object-position: center top;
}
.phase-portrait--quiet img { aspect-ratio: 1 / 1; }

.phase-more { margin-top: 1.25rem; }
.phase-more a,
.phase-channels a,
.breadcrumbs a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.phase-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(var(--brand-green-rgb), 0.18);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(var(--brand-green-rgb), 0.08), rgba(8, 19, 34, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phase-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(var(--brand-green-rgb), 0.24);
  border-radius: 12px;
  background: rgba(5, 11, 18, 0.38);
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), color var(--t-fast);
}

.phase-more a:hover {
  background: rgba(var(--brand-green-rgb), 0.12);
  border-color: rgba(var(--brand-green-rgb), 0.58);
  color: var(--color-text);
  transform: translateY(-1px);
}

.phase-more a:active { transform: translateY(0); }

.phase-more a img {
  width: 18px;
  height: 18px;
  color: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .footer__social-link,
  .phase-more a { transition: none; }
  .footer__social-link:hover,
  .phase-more a:hover { transform: none; }
}
.phase-note { margin-top: 1.5rem; }
.phase-prose { display: grid; gap: 0.75rem; margin: 2rem 0; }
.phase-prose h2 { font-size: 1.35rem; margin-top: 0.75rem; }

.phase-certs img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #050B12;
  border-radius: 12px;
}
.phase-certs figcaption { color: #D5DEE6; }

.phase-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.phase-field { display: grid; gap: 0.4rem; }
.phase-field label { font-weight: 650; }
.phase-field input,
.phase-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #050B12;
  color: #F2F7FA;
  font: inherit;
}
.phase-field input:focus-visible,
.phase-field textarea:focus-visible { border-color: var(--brand-green); }
.phase-field textarea { min-height: 160px; resize: vertical; }
.phase-form .btn { justify-self: start; }

.phase-channels {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  max-width: 720px;
}
.phase-channels li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.phase-channels li:last-child { padding-bottom: 0; border-bottom: 0; }
.phase-channels span {
  color: var(--brand-green);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.phase-channels a { color: #F2F7FA; }
.phase-contact { max-width: 780px; margin-inline: auto; }

.phase-close { text-align: center; }
.phase-close h2 { margin-inline: auto; margin-bottom: 1.25rem; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #D5DEE6;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: #D5DEE6;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.breadcrumbs a:hover { color: var(--brand-green); }

/* Botones: sólidos, sin halo. Texto oscuro sobre el degradado claro. */
.btn-primary {
  color: #050B12;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  filter: brightness(1.03);
}

/* Blog — una sola columna de lectura. */
.post-hero { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.post-reading { max-width: 720px; }
.post-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.post-excerpt {
  font-size: 1.15rem;
  color: #D5DEE6;
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 1.25rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  color: rgba(242, 247, 250, 0.55);
  font-size: 0.9rem;
}
.post-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  margin: 1.5rem 0 2.5rem;
}

@media (min-width: 800px) {
  .phase-hero__grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .phase-work {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .phase-work .phase-actions { margin-top: 0; flex-shrink: 0; }
  .phase-offer,
  .phase-story,
  .phase-certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-nav { grid-template-columns: 1fr 1fr; }
  .post-nav__item--next { text-align: right; }
}

@media (min-width: 1000px) {
  .phase-offer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .phase-story,
  .phase-certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 799px) {
  .phase-title { max-width: none; }
  .phase-page h1,
  .phase-heading h2,
  .phase-close h2 { max-width: none; }
  .phase-portrait { justify-self: start; max-width: 100%; }
  .nav__logo-img { max-width: min(168px, 52vw); height: auto; }
}

@media (max-width: 600px) {
  .phase-actions .btn,
  .phase-form .btn {
    width: 100%;
    justify-content: center;
  }
  .phase-card,
  .phase-work { padding: 1.25rem; }
  .phase-channels li { align-items: flex-start; }
  .post-title { font-size: clamp(1.75rem, 8vw, 2.4rem); }
}

/* Ajustes editoriales finales. */
.phase-page h1,
.phase-heading h2,
.phase-close h2 { text-wrap: balance; }
.phase-lead,
.phase-card p,
.phase-work p { text-wrap: pretty; }

.phase-page .phase-story { margin-top: clamp(3rem, 6vw, 5rem); align-items: start; }
.phase-card p + p { margin-top: 1rem; }

.phase-work--featured {
  padding: 2rem 1.75rem;
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.10), rgba(var(--brand-green-rgb), 0.05)), rgba(11, 24, 41, 0.92);
  border-color: rgba(var(--brand-green-rgb), 0.45);
}
.phase-work--featured h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.phase-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-green-rgb), 0.5);
  color: var(--brand-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.phase-attrib {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #F2F7FA;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Citas textuales (Trabajos). */
.phase-quote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(var(--brand-green-rgb), 0.45);
  color: #F2F7FA;
  line-height: 1.65;
}
.phase-work p + p { margin-top: 0.6rem; }
.phase-work a:not(.btn) { color: var(--brand-green); text-decoration: underline; text-underline-offset: 0.18em; }
html { scroll-padding-top: 7rem; }

/* ─── Premium finishing layer ───────────────────────────────── */
/* Cyan remains the brand signal; restrained green carries interaction. */
.nav__link:hover,
.footer__link:hover,
.prose a:hover,
.breadcrumbs a:hover,
.phase-work a:not(.btn):hover {
  color: var(--color-interaction);
}

.nav__link.active {
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.13), rgba(var(--brand-green-rgb), 0.15));
  box-shadow: inset 0 0 0 1px rgba(var(--brand-green-rgb), 0.18), 0 8px 24px rgba(var(--brand-green-rgb), 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--color-interaction-deep) 100%);
  box-shadow: 0 10px 28px rgba(var(--brand-green-rgb), 0.15);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(var(--brand-green-rgb), 0.22);
}

.btn-ghost {
  color: var(--color-interaction);
  background: rgba(var(--brand-green-rgb), 0.07);
  border-color: rgba(var(--brand-green-rgb), 0.22);
}

.btn-ghost:hover {
  background: rgba(var(--brand-green-rgb), 0.13);
  border-color: rgba(var(--brand-green-rgb), 0.44);
}

.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--brand-green-rgb), 0.08), transparent 28rem),
    linear-gradient(180deg, rgba(8, 19, 34, 0.9), rgba(5, 11, 18, 0.96));
  border-top-color: rgba(var(--brand-green-rgb), 0.18);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-green-rgb), 0.6), rgba(var(--brand-green-rgb), 0.45), transparent);
  opacity: 0.7;
}

.footer__grid {
  position: relative;
  z-index: 1;
}

.footer__social {
  gap: 0.55rem;
  padding-top: 0.75rem;
}

.social-icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(242, 247, 250, 0.9);
  box-shadow: none;
}

.footer__social-link:hover {
  background: rgba(var(--brand-green-rgb), 0.08);
  border-color: var(--color-brand-green);
  color: var(--color-brand-green);
  box-shadow: 0 0 0 4px rgba(var(--brand-green-rgb), 0.08);
}

.footer__social-link:focus-visible {
  outline: 2px solid var(--color-brand-green);
  outline-offset: 3px;
}

.footer__profile {
  gap: 0.6rem;
}

.footer__profile .social-icon {
  width: 18px;
  height: 18px;
  color: rgba(242, 247, 250, 0.9);
  transition: color var(--t-fast);
}

.footer__profile:hover .social-icon,
.footer__profile:focus-visible .social-icon {
  color: var(--color-brand-green);
}

.footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.14);
  color: rgba(242, 247, 250, 0.74);
}

.phase-more {
  border-color: rgba(var(--brand-green-rgb), 0.2);
  background: linear-gradient(110deg, rgba(var(--brand-green-rgb), 0.08), rgba(8, 19, 34, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 42px rgba(0, 0, 0, 0.12);
}

.phase-more a {
  color: var(--color-interaction);
  border-color: rgba(var(--brand-green-rgb), 0.22);
  background: rgba(5, 11, 18, 0.42);
}

.phase-more a:hover {
  background: rgba(var(--brand-green-rgb), 0.1);
  border-color: rgba(var(--brand-green-rgb), 0.6);
  color: var(--color-brand-green);
  box-shadow: 0 8px 22px rgba(var(--brand-green-rgb), 0.14);
}

.phase-profiles {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.phase-profiles__title {
  margin: 0 0 0.25rem;
  color: var(--color-text-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-profile {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.phase-profile .social-icon {
  width: 22px;
  height: 22px;
  color: var(--color-text);
  transition: color var(--t-fast);
}

.phase-profile__name {
  font-weight: 700;
  font-size: 1.02rem;
}

.phase-profile__handle {
  color: var(--color-text-2);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.phase-profile:hover,
.phase-profile:focus-visible {
  color: var(--color-brand-green);
  border-bottom-color: var(--color-brand-green);
}

.phase-profile:hover .social-icon,
.phase-profile:focus-visible .social-icon {
  color: var(--color-brand-green);
}

.phase-profile:focus-visible {
  outline: 2px solid var(--color-brand-green);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  .phase-profile { grid-template-columns: 24px minmax(0, 1fr); }
  .phase-profile__handle { grid-column: 2; text-align: left; }
}

.phase-certs {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.phase-certs .phase-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #0B1829;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.phase-certs .phase-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 1;
  background: var(--color-brand-green);
  pointer-events: none;
}

.phase-certs .phase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-green-rgb), 0.5);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(var(--brand-green-rgb), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phase-certs .phase-card img {
  position: relative;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #FFFFFF;
}

.phase-certs figcaption {
  padding: 1rem 1.15rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #F2F7FA;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .phase-certs .phase-card { transition: none; }
  .phase-certs .phase-card:hover { transform: none; }
}

/* Contacto: puntos de contacto con el mismo sistema que pie y perfiles. */
.contact-channels__title {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1rem);
  margin-top: 1rem;
}

.contact-channel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 210px;
  padding: 1.35rem 1.25rem 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-green-rgb), 0.1), transparent 46%),
    linear-gradient(180deg, rgba(11, 24, 41, 0.92), rgba(5, 11, 18, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.28);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.contact-channel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.contact-channel__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.contact-channel__icon .social-icon { width: 24px; height: 24px; }

.contact-channel__label {
  color: var(--color-text-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-channel__value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.contact-channel__action {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--brand-green);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0.85;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.contact-channel:hover,
.contact-channel:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-green-rgb), 0.55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(var(--brand-green-rgb), 0.12), 0 0 36px rgba(var(--brand-green-rgb), 0.14);
}

.contact-channel:hover::before,
.contact-channel:focus-visible::before { transform: scaleX(1); }

.contact-channel:hover .contact-channel__icon,
.contact-channel:focus-visible .contact-channel__icon {
  color: var(--brand-green);
  border-color: rgba(var(--brand-green-rgb), 0.5);
  background: rgba(var(--brand-green-rgb), 0.08);
  box-shadow: 0 0 22px rgba(var(--brand-green-rgb), 0.2);
}

.contact-channel:hover .contact-channel__action,
.contact-channel:focus-visible .contact-channel__action { opacity: 1; transform: translateX(3px); }

.contact-channel:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 4px; }

@media (max-width: 768px) {
  .contact-channels { grid-template-columns: 1fr; }
  .contact-channel {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 1rem;
    min-height: 0;
    align-items: center;
  }
  .contact-channel__icon { grid-row: span 3; margin-bottom: 0; }
  .contact-channel__action { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-channel,
  .contact-channel::before,
  .contact-channel__action { transition: none; }
  .contact-channel:hover,
  .contact-channel:focus-visible,
  .contact-channel:hover .contact-channel__action { transform: none; }
}

/* Contacto: formulario con la misma superficie y foco que los canales. */
.phase-form {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-green-rgb), 0.08), transparent 42%),
    linear-gradient(180deg, rgba(11, 24, 41, 0.92), rgba(5, 11, 18, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.phase-field label {
  color: var(--color-text-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phase-field input,
.phase-field textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 11, 18, 0.72);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.phase-field input:hover,
.phase-field textarea:hover { border-color: rgba(var(--brand-green-rgb), 0.35); }

.phase-field input:focus-visible,
.phase-field textarea:focus-visible {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(var(--brand-green-rgb), 0.14);
}

/* Certificados: disparador y visor modal. */
.cert-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}

.cert-trigger img {
  transition: filter var(--t-base);
}

.cert-trigger__hint {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(var(--brand-green-rgb), 0.5);
  border-radius: 999px;
  background: rgba(5, 11, 18, 0.82);
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-base), transform var(--t-base);
  pointer-events: none;
}

.cert-trigger:hover .cert-trigger__hint,
.cert-trigger:focus-visible .cert-trigger__hint {
  opacity: 1;
  transform: none;
}

.cert-trigger:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 4px; }

.cert-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1120px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 24, 41, 0.98), rgba(5, 11, 18, 0.99));
  color: var(--color-text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(var(--brand-green-rgb), 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1), overlay 0.28s allow-discrete, display 0.28s allow-discrete;
}

.cert-modal[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .cert-modal[open] { opacity: 0; transform: translateY(14px) scale(0.98); }
}

.cert-modal::backdrop {
  background: rgba(3, 7, 12, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.28s ease;
}

.cert-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100dvh - 2rem);
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.cert-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cert-modal__kicker {
  margin: 0 0 0.25rem;
  color: var(--color-text-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-modal__title {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  letter-spacing: -0.02em;
}

.cert-modal__close,
.cert-modal__nav,
.cert-modal__zoom button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}

.cert-modal__close { width: 44px; min-height: 44px; padding: 0; flex: none; }

.cert-modal__close:hover,
.cert-modal__nav:hover,
.cert-modal__zoom button:hover {
  border-color: rgba(var(--brand-green-rgb), 0.6);
  color: var(--brand-green);
  background: rgba(var(--brand-green-rgb), 0.08);
  box-shadow: 0 0 22px rgba(var(--brand-green-rgb), 0.16);
}

.cert-modal__close:focus-visible,
.cert-modal__nav:focus-visible,
.cert-modal__zoom button:focus-visible,
.cert-modal__stage:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
}

.cert-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.75rem);
  min-height: 0;
  overflow: hidden;
}

.cert-modal__stage {
  position: relative;
  height: min(68vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0A1424;
  overscroll-behavior: contain;
  cursor: zoom-in;
  scrollbar-width: thin;
}

.cert-modal__stage img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  user-select: none;
  transition: width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cert-modal__stage img.is-zoomed { cursor: zoom-out; margin: 0; max-width: none; }
.cert-modal__stage.is-dragging { cursor: grabbing; }
.cert-modal__stage:has(img.is-zoomed) { cursor: grab; }

.cert-modal__info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 0;
  overflow: auto;
  padding: 0.25rem 0.25rem 0.25rem 0;
}

.cert-modal__label {
  margin: 0;
  color: var(--brand-green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-modal__summary {
  margin: 0;
  color: var(--color-text);
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 600;
}

.cert-modal__info [data-cert-info] {
  display: grid;
  gap: 0.9rem;
}

.cert-modal__outcomes {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-modal__outcomes li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--color-text-2);
  font-size: 0.93rem;
  line-height: 1.55;
}

.cert-modal__outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 10px rgba(var(--brand-green-rgb), 0.5);
}

.cert-modal__date {
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-2);
  font-size: 0.86rem;
}

.cert-modal__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cert-modal__zoom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-2);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.cert-modal__zoom button { min-width: 44px; }
.cert-modal__zoom span { min-width: 4.5rem; text-align: center; }

@media (max-width: 860px) {
  .cert-modal__body { grid-template-columns: 1fr; overflow: auto; }
  .cert-modal__stage { height: 56vh; }
  .cert-modal__info { overflow: visible; padding: 0; }
}

@media (max-width: 520px) {
  .cert-modal__nav { padding: 0 0.7rem; }
  .cert-modal__zoom button:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cert-modal,
  .cert-modal::backdrop,
  .cert-modal__stage img,
  .cert-trigger__hint { transition: none; }
}

/* Inicio: producto propio, cursos y publicaciones. */
.home-product__card {
  position: relative;
  overflow: hidden;
  display: grid;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-green-rgb), 0.12), transparent 44%),
    linear-gradient(180deg, rgba(11, 24, 41, 0.92), rgba(5, 11, 18, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 50px rgba(0, 0, 0, 0.3);
}

.home-product__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--brand-green);
}

.home-product__copy { max-width: 46rem; }

.home-product__name {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.03em;
}

.home-product__what {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 600;
}

.home-product__status {
  margin: 0 0 1.5rem;
  color: var(--color-text-2);
}

.home-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.home-course {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-green-rgb), 0.08), transparent 42%),
    linear-gradient(180deg, rgba(11, 24, 41, 0.92), rgba(5, 11, 18, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.home-course:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-green-rgb), 0.45);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.36), 0 0 36px rgba(var(--brand-green-rgb), 0.1);
}

.home-course__eyebrow {
  margin: 0;
  color: var(--brand-green);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-course__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.home-course__text {
  margin: 0;
  color: var(--color-text-2);
  line-height: 1.65;
}

.home-course__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-course__modules li {
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--color-text-2);
  font-size: 0.82rem;
}

.home-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.home-track li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(5, 11, 18, 0.5);
}

.home-track__step {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(var(--brand-green-rgb), 0.5);
  border-radius: 50%;
  color: var(--brand-green);
  font-size: 0.8rem;
  font-weight: 700;
}

.home-track strong { font-size: 0.95rem; }
.home-track span:last-child { color: var(--color-text-2); font-size: 0.82rem; line-height: 1.4; }

.home-course__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-course__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
  font-weight: 700;
  transition: color var(--t-fast);
}

.home-course__link .social-icon { width: 20px; height: 20px; }

.home-course__link:hover,
.home-course__link:focus-visible { color: var(--brand-green); }

.home-course__link:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 4px; border-radius: 6px; }

.home-course__meta { color: var(--color-text-2); font-size: 0.85rem; }

.home-posts__list {
  display: grid;
  margin: clamp(2rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-post {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-fast), padding var(--t-base);
}

.home-post__date {
  color: var(--color-text-2);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.home-post__title {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-post__excerpt {
  grid-column: 2;
  color: var(--color-text-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-post__arrow {
  color: var(--brand-green);
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.home-post:hover,
.home-post:focus-visible {
  color: var(--brand-green);
  border-bottom-color: var(--brand-green);
  padding-left: 0.6rem;
}

.home-post:hover .home-post__arrow,
.home-post:focus-visible .home-post__arrow { opacity: 1; transform: none; }

.home-post:focus-visible { outline: 2px solid var(--brand-green); outline-offset: 2px; }

@media (max-width: 860px) {
  .home-courses { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-track { grid-template-columns: 1fr; }
  .home-post { grid-template-columns: 1fr; gap: 0.25rem; }
  .home-post__excerpt { grid-column: 1; }
  .home-post__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-course,
  .home-post,
  .home-post__arrow,
  .home-course__link { transition: none; }
  .home-course:hover { transform: none; }
}

.home-learning .phase-heading .phase-lead { margin-top: 1.25rem; }

/* ─── Inicio: presentación en video ─────────────────────────── */
.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;
}

.home-film {
  position: relative;
}

.home-film__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(1.5rem, 2.6vw, 2.25rem);
}

.home-film__head h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.home-film__intro {
  justify-self: end;
  max-width: 34rem;
}

.home-film__intro .phase-lead {
  margin: 0;
  color: #D5DEE6;
}

.home-film__meta,
.film-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text-3);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.home-film__meta { margin-top: 1rem; }

.home-film__dot,
.film-modal__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-green);
  opacity: 0.8;
}

.film-card {
  --film-radius: 26px;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--film-radius);
  background: #081322;
  color: var(--color-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}

.film-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 90px rgba(5, 11, 18, 0.34);
  pointer-events: none;
}

.film-card__media,
.film-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.film-card__media img {
  object-fit: cover;
  transform: scale(1.001);
  filter: saturate(1.02) contrast(1.01);
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
}

.film-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 11, 18, 0.5), rgba(5, 11, 18, 0) 26%),
    linear-gradient(to top, rgba(5, 11, 18, 0.62), rgba(5, 11, 18, 0) 34%);
  pointer-events: none;
}

.film-card__brand {
  position: absolute;
  top: clamp(0.8rem, 2vw, 1.4rem);
  left: clamp(0.9rem, 2vw, 1.5rem);
  opacity: 0.92;
}

.film-card__brand img {
  display: block;
  width: clamp(74px, 8vw, 112px);
  height: auto;
}

.film-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(64px, 7.2vw, 84px);
  height: clamp(64px, 7.2vw, 84px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(5, 11, 18, 0.38);
  color: #FFFFFF;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.film-card__play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: border-color 0.3s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.film-card__play svg { margin-left: 3px; }

.film-card__hint {
  position: absolute;
  top: calc(50% + clamp(52px, 6vw, 68px));
  left: 50%;
  padding: 0.35rem 0.7rem;
  transform: translate(-50%, 6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 11, 18, 0.66);
  color: rgba(242, 247, 250, 0.9);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.film-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--brand-green-rgb), 0.34);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--brand-green-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.film-card:hover .film-card__media img,
.film-card:focus-visible .film-card__media img {
  transform: scale(1.014);
  filter: saturate(1.06) contrast(1.02) brightness(1.02);
}

.film-card:hover .film-card__play,
.film-card:focus-visible .film-card__play {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #04150B;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42), 0 0 30px rgba(var(--brand-green-rgb), 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.film-card:hover .film-card__play::after,
.film-card:focus-visible .film-card__play::after {
  border-color: rgba(var(--brand-green-rgb), 0.45);
  transform: scale(1.04);
}

.film-card:hover .film-card__hint,
.film-card:focus-visible .film-card__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.film-card:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 5px;
}

/* Modal cinematográfico */
body.film-open { overflow: hidden; }

.film-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1120px, calc(100vw - 2rem), calc((100dvh - 13rem) * 16 / 9));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, #0A1626 0%, #050B12 100%);
  color: var(--color-text);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(var(--brand-green-rgb), 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

.film-modal[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .film-modal[open] { opacity: 0; transform: translateY(12px) scale(0.985); }
}

.film-modal::backdrop {
  background:
    radial-gradient(ellipse at 50% 44%, rgba(var(--brand-green-rgb), 0.07), transparent 56%),
    rgba(2, 6, 10, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  transition: background 0.3s ease;
}

.film-modal__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.film-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0 clamp(1rem, 2vw, 1.35rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.film-modal__identity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.film-modal__mark {
  display: block;
  width: 82px;
  height: auto;
  opacity: 0.92;
}

.film-modal__rule {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.16);
}

.film-modal__eyebrow {
  margin: 0;
  overflow: hidden;
  color: var(--color-text-3);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.film-modal__eyebrow span { color: rgba(var(--brand-green-rgb), 0.9); }

.film-modal__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-2);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.film-modal__close:hover {
  border-color: rgba(var(--brand-green-rgb), 0.55);
  background: rgba(var(--brand-green-rgb), 0.08);
  color: var(--brand-green);
}

.film-modal__close:active { transform: scale(0.96); }

.film-modal__close:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
}

.film-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.film-player__video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.film-player__wash {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(to top, rgba(2, 6, 10, 0.8), rgba(2, 6, 10, 0.3) 52%, transparent);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.film-player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 50%, rgba(3, 8, 13, 0.42), rgba(3, 8, 13, 0.26));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.film-player.is-paused.is-started:not(.is-ended)::after { opacity: 1; }


.film-player__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  color: #FFFFFF;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s;
}

.film-player__center-ring {
  display: grid;
  place-items: center;
  width: clamp(62px, 7vw, 78px);
  height: clamp(62px, 7vw, 78px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(5, 11, 18, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.film-player__center-ring svg { margin-left: 3px; }

.film-player__center-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  color: rgba(242, 247, 250, 0.9);
}

.film-player__center:hover .film-player__center-ring {
  transform: scale(1.04);
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #04150B;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.44), 0 0 30px rgba(var(--brand-green-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.film-player__center:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 5px;
  border-radius: 16px;
}

.film-player.is-playing .film-player__center,
.film-player.is-ended .film-player__center {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.96);
  pointer-events: none;
}

.film-player__controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  padding: 2rem clamp(0.8rem, 2vw, 1.15rem) 0.75rem;
  background: linear-gradient(to top, rgba(2, 6, 10, 0.9), rgba(2, 6, 10, 0.58) 56%, transparent);
  transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.film-player.is-idle .film-player__controls {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.film-timeline {
  position: relative;
  display: flex;
  align-items: center;
  height: 22px;
  border-radius: 999px;
  cursor: pointer;
}

.film-timeline__track,
.film-timeline__buffer,
.film-timeline__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  pointer-events: none;
}

.film-timeline__track {
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.2s ease, height 0.2s ease;
}

.film-timeline__buffer {
  width: 0;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.25s linear;
}

.film-timeline__fill {
  width: 0;
  background: var(--brand-green);
  box-shadow: 0 0 12px rgba(var(--brand-green-rgb), 0.38);
  transition: width 0.09s linear;
}

.film-timeline__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.film-timeline__input::-webkit-slider-runnable-track {
  height: 22px;
  background: transparent;
  border: 0;
}

.film-timeline__input::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  margin-top: 5.5px;
  border: 2px solid var(--brand-green);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(5, 11, 18, 0.55), 0 0 12px rgba(var(--brand-green-rgb), 0.35);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.film-timeline__input::-moz-range-track {
  height: 3px;
  background: transparent;
  border: 0;
}

.film-timeline__input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid var(--brand-green);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(5, 11, 18, 0.55), 0 0 12px rgba(var(--brand-green-rgb), 0.35);
  transition: transform 0.18s ease;
}

.film-timeline:hover .film-timeline__input::-webkit-slider-thumb,
.film-timeline__input:focus-visible::-webkit-slider-thumb { transform: scale(1.18); }

.film-timeline:hover .film-timeline__input::-moz-range-thumb,
.film-timeline__input:focus-visible::-moz-range-thumb { transform: scale(1.18); }

.film-timeline:hover .film-timeline__track { height: 4px; }

.film-timeline__input:focus-visible { outline: none; }

.film-timeline:focus-within .film-timeline__track {
  box-shadow: 0 0 0 4px rgba(var(--brand-green-rgb), 0.18);
}

.film-controls__row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.film-control {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(242, 247, 250, 0.82);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.film-control:hover {
  background: rgba(var(--brand-green-rgb), 0.1);
  color: var(--brand-green);
}

.film-control:active { transform: scale(0.95); }

.film-control:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

.film-control--play {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.film-control--play:hover {
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #04150B;
}

.film-icon {
  display: grid;
  place-items: center;
}

.film-icon[hidden] { display: none !important; }

.film-controls__time {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0 0 0 0.45rem;
  color: rgba(242, 247, 250, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.film-controls__sep { color: rgba(242, 247, 250, 0.34); }

.film-controls__spacer {
  flex: 1 1 auto;
  min-width: 0.25rem;
}

.film-volume {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.film-volume__range {
  --vol: 100%;
  width: 62px;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.film-volume__range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--brand-green) var(--vol), rgba(255, 255, 255, 0.22) var(--vol));
}

.film-volume__range::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(var(--brand-green-rgb), 0.35);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.18s ease;
}

.film-volume__range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.film-volume__range::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: var(--brand-green);
}

.film-volume__range::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
}

.film-volume__range:hover::-webkit-slider-thumb,
.film-volume__range:focus-visible::-webkit-slider-thumb { transform: scale(1.2); }

.film-volume__range:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
  border-radius: 999px;
}

/* Estado final: CTA discreto sobre el último fotograma */
.film-player.is-ended::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(3, 8, 13, 0.52);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.film-player__end {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: min(380px, calc(100% - 1.5rem));
  padding: clamp(1rem, 2vw, 1.25rem);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(5, 11, 18, 0.78);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  animation: filmEndIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.film-player__end[hidden] { display: none; }

.film-player__end-kicker {
  margin: 0;
  color: var(--brand-green);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.film-player__end-title {
  margin: 0.4rem 0 0.9rem;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.film-player__end-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.film-end-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}

.film-end-link:hover {
  border-color: rgba(var(--brand-green-rgb), 0.5);
  background: rgba(var(--brand-green-rgb), 0.1);
  color: var(--brand-green);
}

.film-end-link--primary {
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #04150B;
}

.film-end-link--primary:hover {
  border-color: var(--brand-green);
  background: #22F06D;
  color: #04150B;
}

.film-end-link:focus-visible,
.film-player__replay:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
}

.film-player__replay {
  margin-top: 0.75rem;
  padding: 0.25rem;
  border: 0;
  background: none;
  color: var(--color-text-3);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-fast);
}

.film-player__replay:hover { color: var(--brand-green); }

@keyframes filmEndIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.film-modal__foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(0.8rem, 1.6vw, 1.1rem) clamp(1rem, 2vw, 1.35rem) clamp(0.9rem, 1.8vw, 1.2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.012);
}

.film-modal__copy { min-width: 0; }

.film-modal__title {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.film-modal__desc {
  max-width: 58ch;
  margin: 0.3rem 0 0;
  color: var(--color-text-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

.film-modal__meta {
  flex: none;
  justify-content: flex-end;
  padding-top: 0.2rem;
  white-space: nowrap;
}

/* Pantalla completa: el reproductor conserva sus controles. */
.film-player:fullscreen,
.film-player:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
}

.film-player:fullscreen .film-player__video,
.film-player:-webkit-full-screen .film-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.film-player:fullscreen .film-player__controls,
.film-player:-webkit-full-screen .film-player__controls {
  position: absolute;
  inset: auto 0 0;
  height: auto;
  padding: 2rem clamp(0.8rem, 2vw, 1.15rem) 0.75rem;
  border: 0;
  background: linear-gradient(to top, rgba(2, 6, 10, 0.9), rgba(2, 6, 10, 0.58) 56%, transparent);
}

.film-player:fullscreen .film-player__center,
.film-player:fullscreen .film-player__end,
.film-player:-webkit-full-screen .film-player__center,
.film-player:-webkit-full-screen .film-player__end {
  top: 50%;
}

.film-player:fullscreen .film-player__center-label,
.film-player:-webkit-full-screen .film-player__center-label {
  display: block;
}

@media (max-width: 900px) {
  .home-film__head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .home-film__intro {
    justify-self: start;
    max-width: 42rem;
  }

  .film-card { --film-radius: 22px; }
  .film-card__hint { display: none; }

  .film-modal__foot { gap: 1rem; }
  .film-modal__meta { display: none; }
}

@media (max-width: 640px) {
  .home-film__meta { margin-top: 0.8rem; }

  .film-card {
    --film-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .film-card__play {
    top: auto;
    bottom: 12px;
    width: 54px;
    height: 54px;
    transform: translateX(-50%);
  }

  .film-card:hover .film-card__play,
  .film-card:focus-visible .film-card__play {
    transform: translateX(-50%) scale(1.03);
  }

  .film-modal {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 18px;
  }

  .film-modal__panel { max-height: calc(100dvh - 1rem); }

  .film-modal__head {
    min-height: 50px;
    padding: 0 0.85rem;
  }

  .film-modal__mark { width: 70px; }
  .film-modal__eyebrow { font-size: 0.62rem; }

  .film-player {
    --film-bar: 66px;
    aspect-ratio: auto;
  }

  .film-player__video {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .film-player__wash { display: none; }

  .film-player__controls {
    position: static;
    height: var(--film-bar);
    padding: 4px 8px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(11, 24, 41, 0.96), rgba(5, 11, 18, 0.99));
  }

  .film-player.is-idle .film-player__controls {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .film-player.is-ended::before { inset: 0 0 var(--film-bar); }

  .film-player__end { top: calc((100% - var(--film-bar)) / 2); }

  .film-player__center {
    top: auto;
    left: auto;
    right: 12px;
    bottom: calc(var(--film-bar) + 12px);
    transform: none;
  }

  .film-player__center-label { display: none; }

  .film-timeline { height: 20px; }
  .film-timeline__input { height: 20px; }
  .film-timeline__input::-webkit-slider-runnable-track { height: 20px; }
  .film-timeline__input::-webkit-slider-thumb { margin-top: 4.5px; }
  .film-controls__row { margin-top: 2px; }

  .film-controls__row { gap: 0.12rem; }

  .film-control {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .film-control--play { width: 36px; height: 36px; }

  .film-controls__time {
    margin-left: 0.3rem;
    font-size: 0.66rem;
    gap: 0.2rem;
  }

  .film-volume__range { width: 46px; }

  .film-player__center-ring {
    width: 58px;
    height: 58px;
  }

  .film-modal__foot {
    padding: 0.75rem 0.85rem 0.8rem;
    gap: 0.75rem;
  }

  .film-modal__title { font-size: 1rem; }
  .film-modal__desc { font-size: 0.78rem; line-height: 1.45; }

  .film-player__end {
    top: auto;
    bottom: calc(var(--film-bar) + 8px);
    width: calc(100% - 1rem);
    padding: 0.65rem 0.75rem;
    transform: translateX(-50%);
    border-radius: 14px;
    text-align: left;
    animation: filmEndInMobile 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .film-player__end-kicker { font-size: 0.6rem; }
  .film-player__end-title { margin: 0.2rem 0 0.55rem; font-size: 0.88rem; }
  .film-player__end-links { justify-content: flex-start; gap: 0.35rem; }
  .film-end-link { min-height: 30px; padding: 0 0.6rem; font-size: 0.7rem; }
  .film-player__replay { margin-top: 0.4rem; font-size: 0.66rem; }
}

@keyframes filmEndInMobile {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 380px) {
  .film-volume__range { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .film-card,
  .film-card__media img,
  .film-card__play,
  .film-card__play::after,
  .film-card__hint,
  .film-modal,
  .film-modal::backdrop,
  .film-player__center,
  .film-player__center-ring,
  .film-player__controls,
  .film-timeline__fill,
  .film-timeline__buffer,
  .film-player__end { transition: none; animation: none; }

  .film-card:hover { transform: none; }
  .film-player__end { animation: none; }
}

/* ─── Studio Blocks · artículos por bloques ───────────────────── */
.studio-blocks {
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 4vw, 3.2rem);
}

.studio-block { margin: 0; }

.studio-block__text > :first-child { margin-top: 0; }
.studio-block__text > :last-child { margin-bottom: 0; }

.studio-block--image img,
.studio-block--gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: transform var(--t-slow, 0.5s) ease, box-shadow var(--t-slow, 0.5s) ease;
}

.studio-block--image.is-wide {
  margin-inline: calc(50% - 50vw);
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.studio-block--image:hover img,
.studio-block__tile:hover img {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(var(--brand-green-rgb), 0.12);
}

.studio-block figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-text-2);
  text-align: center;
  letter-spacing: 0.01em;
}

.studio-block__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 1rem);
}

.studio-block--gallery[data-count="1"] .studio-block__gallery { grid-template-columns: 1fr; }

.studio-block--gallery[data-count="3"] .studio-block__tile:first-child { grid-column: 1 / -1; }

.studio-block__tile {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.studio-block__tile img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.studio-block--video .studio-block__video {
  width: 100%;
}

.studio-block--quote blockquote {
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.2rem, 3vw, 2.4rem);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.08), rgba(255, 255, 255, 0.02));
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.studio-block--quote figcaption {
  text-align: left;
  padding-left: clamp(1.2rem, 3vw, 2.4rem);
  font-size: 0.9rem;
  color: var(--color-text-2);
}

.studio-block--divider {
  display: flex;
  justify-content: center;
  padding: 0.6rem 0;
}

.studio-block--divider span {
  display: block;
  width: min(220px, 40%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-green-rgb), 0.7), transparent);
}

.studio-block--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 22px;
  border: 1px solid var(--color-border-hi);
  background: linear-gradient(135deg, rgba(var(--brand-green-rgb), 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.studio-block--cta h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  letter-spacing: -0.02em;
}

.studio-block--cta p {
  margin: 0;
  color: var(--color-text-2);
}

@media (max-width: 720px) {
  .studio-block--image.is-wide { margin-inline: 0; padding-inline: 0; }
  .studio-block--cta { flex-direction: column; align-items: flex-start; }
}
