/**
 * pdiaz_modern — estilo minimalista tipo blog técnico moderno
 */

:root,
[data-theme="white"] {
  --accent: #ff007f;
  --accent-hover: #e0006f;
  --hero-start: #2d1b69;
  --hero-end: #c026d3;
  --text: #333333;
  --text-muted: #777777;
  --heading: #000000;
  --surface: #ffffff;
  --page-bg: #ffffff;
  --bg-alt: #f7f7f7;
  --input-bg: #f0f0f0;
  --border: #e8e8e8;
  --header-bg: rgba(255, 255, 255, 0.98);
  --header-text: rgba(0, 0, 0, 0.6);
  --header-text-hover: #000000;
  --top-bar-bg: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08));
  --top-bar-text: #64748b;
  --landing-bg: #f8fafc;
  --landing-text: #0f172a;
  --landing-muted: rgba(15, 23, 42, 0.68);
  --landing-kicker: #64748b;
  --landing-pill-bg: rgba(15, 23, 42, 0.04);
  --landing-pill-border: rgba(15, 23, 42, 0.12);
  --landing-pill-desc: rgba(15, 23, 42, 0.55);
  --home-strip-bg: #f1f5f9;
  --home-strip-text: #0f172a;
  --home-strip-muted: rgba(15, 23, 42, 0.62);
  --home-subscribe-bg: #f1f5f9;
  --home-subscribe-text: #0f172a;
  --home-subscribe-muted: rgba(15, 23, 42, 0.62);
  --home-subscribe-form-bg: #ffffff;
  --home-subscribe-form-border: rgba(15, 23, 42, 0.12);
  --footer-home-bg: #f7f7f7;
  --top-bar-height: 40px;
  --max: 1120px;
  --narrow: 760px;
  --radius-pill: 999px;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme="black"] {
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --heading: #ffffff;
  --surface: #0a0a0a;
  --page-bg: #000000;
  --bg-alt: #141414;
  --input-bg: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(0, 0, 0, 0.92);
  --header-text: rgba(255, 255, 255, 0.72);
  --header-text-hover: #ffffff;
  --top-bar-bg: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  --top-bar-text: #a3a3a3;
  --landing-bg: #0a0a0b;
  --landing-text: #ffffff;
  --landing-muted: rgba(255, 255, 255, 0.68);
  --landing-kicker: rgba(255, 255, 255, 0.5);
  --landing-pill-bg: rgba(255, 255, 255, 0.06);
  --landing-pill-border: rgba(255, 255, 255, 0.14);
  --landing-pill-desc: rgba(255, 255, 255, 0.55);
  --home-strip-bg: #111113;
  --home-strip-text: #ffffff;
  --home-strip-muted: rgba(255, 255, 255, 0.62);
  --home-subscribe-bg: #111113;
  --home-subscribe-text: #ffffff;
  --home-subscribe-muted: rgba(255, 255, 255, 0.62);
  --home-subscribe-form-bg: rgba(255, 255, 255, 0.08);
  --home-subscribe-form-border: rgba(255, 255, 255, 0.14);
  --footer-home-bg: #0a0a0a;
}

[data-theme="ocai"] {
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --heading: #f8fafc;
  --surface: #0c1222;
  --page-bg: #050810;
  --bg-alt: rgba(12, 18, 34, 0.85);
  --input-bg: rgba(0, 0, 0, 0.35);
  --border: rgba(148, 163, 184, 0.12);
  --header-bg: rgba(5, 8, 16, 0.92);
  --header-text: rgba(241, 245, 249, 0.72);
  --header-text-hover: #f8fafc;
  --top-bar-bg: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  --top-bar-text: #94a3b8;
  --landing-bg: #050810;
  --landing-text: #f8fafc;
  --landing-muted: rgba(241, 245, 249, 0.68);
  --landing-kicker: rgba(148, 163, 184, 0.9);
  --landing-pill-bg: rgba(59, 130, 246, 0.1);
  --landing-pill-border: rgba(148, 163, 184, 0.2);
  --landing-pill-desc: rgba(148, 163, 184, 0.85);
  --home-strip-bg: #0c1222;
  --home-strip-text: #f8fafc;
  --home-strip-muted: rgba(148, 163, 184, 0.9);
  --home-subscribe-bg: #0c1222;
  --home-subscribe-text: #f8fafc;
  --home-subscribe-muted: rgba(148, 163, 184, 0.9);
  --home-subscribe-form-bg: rgba(15, 23, 42, 0.7);
  --home-subscribe-form-border: rgba(148, 163, 184, 0.18);
  --footer-home-bg: #0c1222;
}

[data-theme="ocean"] {
  --text: #ecfeff;
  --text-muted: #99f6e4;
  --heading: #f0fdfa;
  --surface: #062a32;
  --page-bg: #031a1f;
  --bg-alt: rgba(6, 42, 50, 0.78);
  --input-bg: rgba(0, 0, 0, 0.3);
  --border: rgba(45, 212, 191, 0.18);
  --header-bg: rgba(3, 26, 31, 0.92);
  --header-text: rgba(236, 254, 255, 0.72);
  --header-text-hover: #f0fdfa;
  --top-bar-bg: linear-gradient(90deg, rgba(20, 184, 166, 0.14), rgba(34, 211, 238, 0.12));
  --top-bar-text: #99f6e4;
  --landing-bg: #031a1f;
  --landing-text: #f0fdfa;
  --landing-muted: rgba(236, 254, 255, 0.68);
  --landing-kicker: rgba(153, 246, 228, 0.85);
  --landing-pill-bg: rgba(20, 184, 166, 0.12);
  --landing-pill-border: rgba(45, 212, 191, 0.22);
  --landing-pill-desc: rgba(153, 246, 228, 0.8);
  --home-strip-bg: #062a32;
  --home-strip-text: #f0fdfa;
  --home-strip-muted: rgba(153, 246, 228, 0.85);
  --home-subscribe-bg: #062a32;
  --home-subscribe-text: #f0fdfa;
  --home-subscribe-muted: rgba(153, 246, 228, 0.85);
  --home-subscribe-form-bg: rgba(6, 42, 50, 0.78);
  --home-subscribe-form-border: rgba(45, 212, 191, 0.22);
  --footer-home-bg: #062a32;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 9999;
  width: auto; height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 40px, 42rem);
}

.container--wide {
  width: min(100% - 40px, 56rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-sm { padding: 9px 18px; font-size: 0.8125rem; }

/* Top bar — selector de fondo */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 210;
  background: var(--top-bar-bg);
  border-bottom: 1px solid var(--border);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--top-bar-height);
  padding: 6px 0;
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.theme-switcher__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--top-bar-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.35rem;
}

.theme-btn {
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.15rem 0.3rem;
  border-radius: 6px;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  line-height: 1;
}

.theme-btn:hover { opacity: 0.9; transform: scale(1.08); }

.theme-btn--active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 0, 127, 0.2);
}

.theme-btn--ocai { color: #3b82f6; }
.theme-btn--black { color: #171717; }
.theme-btn--white { color: #e2e8f0; }
.theme-btn--ocean { color: #14b8a6; }

[data-theme="white"] .theme-btn--white { color: #0f172a; }
[data-theme="black"] .theme-btn--black { color: #f5f5f5; }
[data-theme="ocai"] .theme-btn--ocai { color: #93c5fd; }
[data-theme="ocean"] .theme-btn--ocean { color: #5eead4; }

/* Header */
.site-header {
  position: sticky;
  top: var(--top-bar-height);
  z-index: 200;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 16px 24px;
  min-height: 52px;
}

.site-branding {
  align-self: center;
}

.site-branding .custom-logo-link img,
.site-branding img.custom-logo {
  max-height: 48px;
  width: auto;
}

.site-logo-text {
  display: inline-flex;
  align-items: center;
  color: var(--heading);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 2px solid var(--heading);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--heading);
  margin: 5px 0;
}

.primary-navigation {
  justify-self: center;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu > li {
  display: flex;
  align-items: stretch;
}

.primary-menu a,
.footer-menu a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--header-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.primary-menu > li > a {
  position: relative;
  min-height: 52px;
}

.primary-menu > li > a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--heading);
  transform: scaleX(0);
  transition: transform 0.15s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .is-active > a {
  color: var(--header-text-hover);
}

.primary-menu > li > a:hover::before,
.primary-menu > .current-menu-item > a::before,
.primary-menu > .is-active > a::before {
  transform: scaleX(1);
}

.primary-menu > .menu-item-has-children {
  position: relative;
}

.primary-menu > .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  transform: translateY(1px);
}

.primary-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.primary-menu > .menu-item-has-children > .sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 200px;
  max-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}

.primary-menu > .menu-item-has-children:hover > .sub-menu,
.primary-menu > .menu-item-has-children:focus-within > .sub-menu,
.primary-menu > .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  display: block;
  padding: 10px 16px;
  min-height: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.68);
  white-space: nowrap;
}

.primary-menu .sub-menu a::before,
.primary-menu .sub-menu a::after {
  display: none;
}

.primary-menu .sub-menu a:hover {
  background: #f3f2ef;
  color: var(--heading);
}

.primary-menu .menu-item-cta > a {
  padding: 0 18px;
  margin-left: 4px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-pill);
}

.primary-menu .menu-item-cta > a::before {
  display: none;
}

.primary-menu .menu-item-cta > a:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}

.lang-switcher__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher__link:hover {
  background: #f3f2ef;
  color: var(--heading);
}

.lang-switcher__item.is-active .lang-switcher__link {
  background: #eef3f8;
  color: var(--heading);
  box-shadow: inset 0 0 0 1px var(--border);
}

.lang-switcher__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-switcher__flag-img {
  display: block;
  width: 18px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-switcher__code {
  font-size: 0.6875rem;
}

.lang-switcher--footer {
  margin-bottom: 12px;
}

.header-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}
.header-link:hover { color: var(--heading); }

/* Hero */
.hero-banner {
  background: linear-gradient(90deg, var(--hero-start) 0%, var(--hero-end) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 0;
}

.hero-banner__inner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.hero-banner h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-transform: none;
}

.hero-banner p {
  margin: 0 0 28px;
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.hero-subscribe-note {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
}

.hero-subscribe,
.subscribe-form {
  display: flex;
  align-items: stretch;
  max-width: 480px;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--radius-pill);
  overflow: hidden;
  padding: 4px;
}

.hero-subscribe input,
.subscribe-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  min-width: 0;
}

.hero-subscribe .btn,
.subscribe-form .btn {
  flex-shrink: 0;
  border-radius: var(--radius-pill);
}

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-alt); }

.section-label {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-heading {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--heading);
  text-transform: none;
}

.section-cta { text-align: center; margin-top: 36px; }

.hline {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0 24px;
}

/* Post grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.posts-grid--related { margin-top: 24px; }

.post-card {
  margin: 0;
}

.post-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.post-card__link:hover .post-card__title {
  color: var(--accent);
}

.post-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 16px;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.post-card__link:hover .post-card__thumb img {
  transform: scale(1.03);
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3b49df 0%, #5046e5 100%);
}

.post-card__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
  text-transform: none;
  transition: color .2s;
}

.post-card__excerpt {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.post-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.post-meta strong { color: var(--text); font-weight: 600; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8e8;
  display: block;
  color: #fff;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-item span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-item--blue { background: linear-gradient(135deg, #196497, #0d3d5c); }
.portfolio-item--dark { background: linear-gradient(135deg, #333, #111); }

/* Categories */
.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-strip a {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
}

.cat-strip a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-strip .count {
  opacity: 0.6;
  margin-left: 4px;
}

.blog-categories {
  margin: 0 0 2.5em;
}

.cat-strip--blog {
  margin-top: 16px;
}

.blog-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.blog-cat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.blog-cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--text);
}

.blog-cat-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted, #f3f4f6);
}

.blog-cat-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-cat-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.blog-cat-card__name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-cat-card__count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section-heading--sm {
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Single post / page — readable prose */
.single-page,
.single-post {
  padding-bottom: 24px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header .post-meta {
  display: block;
  margin-top: 8px;
}

.single-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading);
  margin: 0 0 12px;
  text-transform: none;
}

.single-featured {
  margin-bottom: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.single-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Personal statement — compact avatar */
.page-header--avatar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.page-header--avatar .page-header__main {
  flex: 1;
  min-width: 0;
}

.page-header--avatar .single-title {
  margin-bottom: 12px;
}

.page-header--avatar .hline {
  margin: 0;
}

.personal-statement-page .single-featured--compact {
  width: 112px;
  margin: 0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.personal-statement-page .single-featured--compact img {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 480px) {
  .page-header--avatar {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-header--avatar .hline {
    margin-inline: auto;
    width: 100%;
  }
}

.entry-content {
  color: #3a3a3a;
  font-size: 1.125rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > p:first-of-type {
  font-size: 1.1875rem;
  line-height: 1.8;
  color: #2c2c2c;
}

.entry-content p {
  margin: 0 0 1.5em;
  font-weight: 400;
}

.entry-content p strong,
.entry-content p b,
.entry-content li strong,
.entry-content li b {
  font-weight: 600;
  color: #1a1a1a;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: -0.01em;
}

.entry-content h2 {
  font-size: 1.5rem;
  margin: 2.5em 0 0.75em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}

.entry-content h3 {
  font-size: 1.25rem;
  margin: 2em 0 0.65em;
}

.entry-content h4 {
  font-size: 1.0625rem;
  margin: 1.5em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5em 1.25em;
  padding: 0;
}

.entry-content li {
  margin-bottom: 0.65em;
  line-height: 1.75;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--accent-hover);
}

.entry-content em,
.entry-content i {
  font-style: italic;
}

.entry-content blockquote {
  margin: 1.75em 0;
  padding: 1em 1.25em;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #444;
}

.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

.entry-content pre {
  overflow-x: auto;
  margin: 1.5em 0;
  padding: 1.25em;
  background: #1e1e2e;
  color: #e8e8e8;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.is-skills-page .entry-content table {
  display: none;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.entry-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* Contact forms — Spectra (UAGB) + genéricos */
.entry-content .uagb-forms-main-form,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 34rem;
  margin: 2em 0 2.5em;
  font-family: var(--font);
}

.entry-content .uagb-forms-main-form > div,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) > p,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.entry-content .uagb-forms-main-form > div > div:first-child,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--heading);
  line-height: 1.4;
}

.entry-content .uagb-forms-input,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input[type="text"],
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input[type="email"],
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input[type="tel"],
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input[type="url"],
.entry-content form:not(.subscribe-form):not([action*="paypal"]) textarea,
.child-pd-contact-form input,
.child-pd-contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

.entry-content .uagb-forms-input::placeholder,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input::placeholder,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) textarea::placeholder {
  color: #9a9a9a;
  font-weight: 400;
}

.entry-content .uagb-forms-textarea-input,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) textarea {
  min-height: 148px;
  resize: vertical;
}

.entry-content .uagb-forms-input:focus,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input:focus,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) textarea:focus,
.child-pd-contact-form input:focus,
.child-pd-contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 0, 127, 0.14);
}

.entry-content .uagb-forms-main-submit-button,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) button[type="submit"],
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input[type="submit"],
.child-pd-contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 6px;
  padding: 14px 30px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff !important;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}

.entry-content .uagb-forms-main-submit-button:hover,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) button[type="submit"]:hover,
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input[type="submit"]:hover,
.child-pd-contact-form button:hover {
  background: var(--accent-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.entry-content .uagb-forms-main-submit-button div {
  font: inherit;
  color: inherit;
}

.entry-content .uagb-forms-main-form input[type="hidden"],
.entry-content form:not(.subscribe-form):not([action*="paypal"]) input[type="hidden"] {
  display: none;
}

.child-pd-contact-form-wrap,
.pdiaz-contact-form-wrap {
  margin-top: 2em;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.child-pd-contact-form,
.pdiaz-contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
}

.pdiaz-contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-intro__lead {
  margin: 0 0 24px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--heading);
}

.contact-page .entry-content h2 {
  margin: 28px 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
}

.contact-intro__topics,
.contact-intro__channels {
  margin: 0 0 20px;
  padding-left: 1.25rem;
  line-height: 1.65;
}

.contact-intro__topics li,
.contact-intro__channels li {
  margin-bottom: 8px;
}

.contact-intro__note {
  margin: 0 0 28px;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: #f7f7f8;
  border-radius: 8px;
}

.contact-page .pdiaz-contact-form {
  margin-top: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}

.contact-notice {
  margin: 0 0 1.25em;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-notice.is-success {
  background: #ecfdf3;
  color: #0b7a30;
  border: 1px solid #abefc6;
}

.contact-notice.is-error {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.75em;
}

.content-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #444;
  line-height: 1.4;
}

/* CV skills cards */
.cv-skills {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 2em 0;
}

.cv-skill-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  align-items: start;
}

.cv-skill-card__icon img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 14px;
  margin: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cv-skill-card__title {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
}

.cv-skill-card__body ul {
  margin: 0;
  padding-left: 1.2em;
}

.cv-skill-card__body li {
  margin-bottom: 0.45em;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .cv-skill-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cv-skill-card__icon img {
    width: 96px;
    height: 96px;
  }
}

/* Work history / experience timeline */
.work-history-page__intro {
  max-width: 42rem;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.involved-projects-page__intro {
  max-width: 42rem;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.involved-projects {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52rem;
}

.involved-project__client {
  display: block;
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.involved-project__client--confidential {
  font-style: italic;
  color: #6b6b6b;
}

.involved-project__link {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.involved-project__link a {
  color: var(--accent);
  text-decoration: none;
}

.involved-project__link a:hover {
  text-decoration: underline;
}

.involved-projects__note {
  max-width: 52rem;
  margin: 32px 0 0;
  padding: 16px 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: #f7f7f8;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

/* Skills map */
.skills-map-section__header {
  max-width: 42rem;
  margin-bottom: 28px;
}

.skills-map-section__intro {
  margin: 12px 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.skills-map-figure {
  margin: 0 auto 32px;
  max-width: 1024px;
  text-align: center;
}

.skills-map-figure__link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.skills-map-figure__link:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.skills-map-figure__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1024px;
  margin: 0 auto;
  image-rendering: auto;
}

.skills-map-figure__caption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.skills-map-lines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.skills-map-line {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.skills-map-line__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--heading);
}

.skills-map-line__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.skills-map-line__desc {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

.skills-map-line__items {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.skills-map-hubs {
  max-width: 42rem;
  margin-bottom: 24px;
  padding: 20px 22px;
  background: #f7f7f8;
  border-radius: 10px;
}

.skills-map-hubs__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.skills-map-hubs__list {
  margin: 0;
  padding-left: 1.2em;
}

.skills-map-hubs__list li {
  margin-bottom: 0.45em;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #3a3a3a;
}

.skills-map-section__cta {
  margin: 8px 0 0;
}

.skills-map-attribution {
  margin: 0 0 28px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
}

.skills-map-secondary {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
}

.skills-map-secondary__toggle {
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}

.skills-map-secondary__toggle::-webkit-details-marker {
  display: none;
}

.skills-map-secondary__toggle::before {
  content: '▸ ';
  color: var(--accent);
}

.skills-map-secondary[open] .skills-map-secondary__toggle::before {
  content: '▾ ';
}

.skills-map-secondary__body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.skills-map-secondary__intro {
  margin: 16px 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.skills-map-figure--secondary .skills-map-figure__link {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.skills-map-section--cv {
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

/* Company carousel */
.company-carousel {
  margin: 0 0 40px;
}

.company-carousel__wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
}

.company-carousel__track::-webkit-scrollbar {
  display: none;
}

.company-carousel__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 96px;
  text-align: center;
}

.company-carousel__item img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.company-carousel__item span {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
}

.company-carousel__btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.company-carousel__btn:hover {
  background: var(--bg-alt);
  border-color: #ccc;
}

/* Work history accordion */
.work-history-details {
  margin-top: 8px;
}

.work-history-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}

.work-history-accordion__summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  color: var(--heading);
}

.work-history-accordion__summary::-webkit-details-marker {
  display: none;
}

.work-history-accordion__summary::after {
  content: ' +';
  color: var(--accent);
  font-weight: 800;
}

.work-history-accordion[open] .work-history-accordion__summary::after {
  content: ' −';
}

.work-history-accordion__panel {
  padding: 0 20px 24px;
  border-top: 1px solid var(--border);
}

.work-history-accordion__body {
  padding: 0 20px 24px;
  border-top: 1px solid var(--border);
}

.work-history-unlock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}

.work-history-unlock p {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.work-history-unlock input[type="password"] {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

.work-history-unlock__error {
  color: #b42318 !important;
  font-weight: 600;
}

.recommendations-page .lead {
  margin-bottom: 20px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.recommendations-lang-bar {
  margin: 0 0 20px;
}

.recommendations-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.recommendations-lang-toggle:hover,
.recommendations-lang-toggle[aria-pressed="true"] {
  background: var(--bg-alt);
  border-color: #ccc;
  color: var(--accent);
}

.recommendations-carousel-wrap {
  margin: 0 0 28px;
}

.recommendations-carousel__wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recommendations-carousel__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.recommendations-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.45s ease;
  will-change: transform;
}

.recommendations-carousel__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--heading);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.recommendations-carousel__btn:hover {
  background: var(--bg-alt);
  border-color: color-mix(in srgb, var(--heading) 20%, var(--border));
  color: var(--accent);
}

.recommendations-carousel__status {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.recommendation-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.recommendation-slide__head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px 16px;
  align-items: center;
}

.recommendation-slide__icon img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recommendation-slide__company {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--heading);
}

.recommendation-slide__author {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.recommendations-carousel .recommendation-slide__quote {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  color: inherit;
}

.recommendation-slide__quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.recommendation-slide__quote p::before {
  content: "\201C";
  color: var(--accent);
  font-weight: 700;
  margin-right: 2px;
}

.recommendations-note {
  max-width: 42rem;
  margin: 0 0 28px;
  padding: 14px 16px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .recommendations-carousel__track {
    transition: none;
  }
}

@media (max-width: 640px) {
  .recommendation-slide__head {
    grid-template-columns: 1fr;
  }

  .recommendations-carousel__btn {
    width: 36px;
    height: 36px;
  }
}

.work-history {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 52rem;
}

.experience-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.experience-card:first-child {
  padding-top: 0;
}

.experience-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.experience-card__icon img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.experience-card__title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
}

.experience-card__meta {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.experience-card__desc ul {
  margin: 0 0 14px;
  padding-left: 1.15em;
}

.experience-card__desc li {
  margin-bottom: 0.4em;
  font-size: 1rem;
  line-height: 1.65;
  color: #3a3a3a;
}

.experience-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-card__skills .content-tag {
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .experience-card {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .experience-card__icon img {
    width: 56px;
    height: 56px;
  }
}

.entry-footer {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.tag {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.read-more { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }

/* Subscribe footer section */
.subscribe-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.subscribe-inner h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: none;
}

.subscribe-inner p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.subscribe-form {
  max-width: 480px;
  margin-inline: auto;
  background: var(--input-bg);
}

/* Footer */
.site-footer {
  background: var(--surface);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--border);
}

.footer-social a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.social-links__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}

.social-links__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.social-links--home .social-links__link {
  border-color: var(--landing-pill-border);
  background: var(--landing-pill-bg);
  color: var(--landing-text);
  backdrop-filter: blur(8px);
}

.social-links--home .social-links__link:hover {
  border-color: color-mix(in srgb, var(--landing-text) 28%, transparent);
  color: var(--landing-text);
}

.social-links__link--static {
  cursor: default;
  opacity: 0.72;
}

.social-links__link--static:hover {
  transform: none;
  border-color: var(--border);
  color: var(--text);
}

.social-links--home .social-links__link--static:hover {
  border-color: var(--landing-pill-border);
  color: var(--landing-text);
}

.home-landing__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.lang-switcher--home .lang-switcher__list {
  justify-content: center;
}

.lang-switcher--home .lang-switcher__link {
  border-color: var(--landing-pill-border);
  background: var(--landing-pill-bg);
  color: var(--landing-text);
  backdrop-filter: blur(8px);
}

.lang-switcher--home .lang-switcher__item.is-active .lang-switcher__link {
  border-color: color-mix(in srgb, var(--landing-text) 35%, transparent);
  background: color-mix(in srgb, var(--landing-text) 10%, var(--landing-pill-bg));
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0 32px;
}

.footer-menu { justify-content: center; flex-wrap: wrap; }

.footer-menu a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: right;
}

.site-logo-text--footer .logo-mark {
  width: 32px; height: 32px;
  font-size: 0.75rem;
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-numbers {
  display: grid;
  place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.not-found { text-align: center; padding: 80px 0; }

/* Responsive */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .primary-menu > li > a {
    padding: 0 10px;
    font-size: 0.8125rem;
  }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .site-branding { grid-column: 1; }
  .nav-toggle { display: block; grid-column: 2; grid-row: 1; }
  .header-actions { display: none; }

  .primary-navigation {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
  }

  .primary-navigation.is-open {
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 16px;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .primary-menu > li > a {
    min-height: 0;
    padding: 12px 4px;
    justify-content: space-between;
  }

  .primary-menu > li > a::before {
    display: none;
  }

  .primary-menu a { white-space: normal; }

  .primary-menu > .menu-item-has-children > .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--accent);
    margin: 0 0 8px 12px;
    padding: 0;
    display: none;
    min-width: unset;
  }

  .primary-menu > .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .primary-menu .sub-menu a { white-space: normal; padding: 10px 12px; }

  .primary-menu .menu-item-cta > a { display: block; text-align: center; margin-top: 8px; }

  .posts-grid,
  .portfolio-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copy { text-align: center; }

  .hero-subscribe,
  .subscribe-form {
    flex-direction: column;
    border-radius: var(--radius);
    padding: 8px;
  }

  .hero-subscribe .btn,
  .subscribe-form .btn { width: 100%; }

  .roles-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .ai-section { grid-template-columns: 1fr; }
}

/* Hero extras */
.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.section--compact { padding-top: 32px; padding-bottom: 32px; }

/* Roles */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.role-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
  border-top: 3px solid var(--accent);
}

.role-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.role-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: none;
}

.role-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* AI section */
.section--ai {
  background: linear-gradient(135deg, #1a1035 0%, #2d1b69 45%, #4a044e 100%);
  color: #fff;
}

.ai-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.section-heading--light { color: #fff; }

.ai-section p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 16px;
}

.ai-list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: rgba(255,255,255,0.9);
}

.ai-list li { margin-bottom: 8px; }

.ai-section__visual img {
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.ai-section .section-label { color: #f0abfc; }

/* Featured projects */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 1100px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card__kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}

.featured-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  color: inherit;
}

.featured-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

.featured-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.featured-card:hover .featured-card__thumb img { transform: scale(1.03); }

.featured-card__body { padding: 20px; }

.featured-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: none;
}

.featured-card__body p {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.featured-card__link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.portfolio-page__intro {
  max-width: 42rem;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.portfolio-page .page-header {
  margin-bottom: 36px;
}

.single-project__lead {
  max-width: 42rem;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.single-featured--project {
  max-width: 640px;
  margin-bottom: 32px;
}

.single-featured--project img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

/* Subscribe notices */
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.content-tag--stack {
  font-size: 0.8125rem;
}

.project-gallery {
  margin: 32px 0;
}

.project-gallery h2,
.project-dossiers h2,
.project-related h2 {
  font-size: 1.125rem;
  margin: 0 0 16px;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.project-gallery__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.project-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.project-gallery__item figcaption {
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.project-dossiers {
  margin: 28px 0;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 10px;
}

.project-dossiers__intro {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.project-dossiers__intro--unlocked {
  color: #166534;
  font-weight: 600;
}

.project-dossiers__subscribe,
.project-dossiers__gate {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.project-dossiers__subscribe h3,
.project-dossiers__gate h3 {
  margin: 0 0 12px;
  font-size: 0.9375rem;
}

.project-dossiers__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
}

.project-dossiers__locked-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0.72;
}

.project-dossier-previews {
  margin: 28px 0;
}

.project-dossier-previews__note {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.project-dossier-previews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.project-dossier-previews__item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.project-dossier-previews__item img {
  display: block;
  width: 100%;
  height: auto;
}

.project-dossier-previews__item figcaption {
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.project-dossiers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.project-dossiers__list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.project-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.single-project__external {
  margin-top: 32px;
}

/* Subscribe notices */
.subscribe-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.subscribe-notice.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.subscribe-notice.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Masters IA guide */
.masters-guide-page__intro,
.masters-home__intro {
  max-width: 42rem;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.masters-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 32px;
  padding: 14px 16px;
  background: #f7f7f8;
  border-radius: 10px;
  position: sticky;
  top: 72px;
  z-index: 10;
}

.masters-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border);
}

.masters-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.masters-section {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
}

.masters-section--alt {
  padding: 28px 24px;
  background: #fafafa;
  border-radius: 12px;
}

.masters-section h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.masters-section h3 {
  margin: 28px 0 12px;
  font-size: 1.125rem;
}

.masters-axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.masters-axes article {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.masters-axes strong {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
}

.masters-axes span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.masters-decision {
  margin-bottom: 24px;
}

.masters-decision__tree {
  margin: 0;
  padding: 16px 20px;
  background: #1a1a2e;
  color: #e8e8f0;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.masters-decision__tree code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre;
}

.masters-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.masters-compare-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.masters-compare-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.masters-compare-card ul {
  margin: 0;
  padding-left: 1.15em;
}

.masters-compare-card li {
  margin-bottom: 0.4em;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.masters-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.masters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.masters-table th,
.masters-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.masters-table th {
  background: #f3f3f5;
  font-weight: 700;
  font-size: 0.8125rem;
  white-space: nowrap;
}

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

.masters-table tbody tr:hover {
  background: #fafafa;
}

.masters-highlights {
  display: grid;
  gap: 16px;
}

.masters-highlights article {
  padding: 16px 18px;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.masters-highlights h4 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.masters-highlights p {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.masters-checklists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.masters-checklists ul {
  margin: 0;
  padding-left: 1.15em;
}

.masters-checklists li {
  margin-bottom: 0.45em;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.masters-disclaimer {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.masters-attribution {
  margin-top: 40px;
  padding: 20px 24px;
  background: #1a1a2e;
  color: #e8e8f0;
  border-radius: 12px;
}

.masters-attribution__legend {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.masters-attribution__author {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}

.masters-home__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.masters-home-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.masters-home-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.masters-home-card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  color: var(--heading);
}

.masters-home-card p {
  flex: 1;
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.masters-home-card span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.masters-home__cta {
  margin: 8px 0 0;
}

@media (max-width: 768px) {
  .masters-nav {
    position: static;
  }

  .masters-table thead {
    display: none;
  }

  .masters-table tr {
    display: block;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
  }

  .masters-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eee;
  }

  .masters-table td::before {
    content: attr(data-label);
    font-weight: 700;
    flex-shrink: 0;
  }
}

/* Involved projects — public summary */
.involved-projects-summary {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  max-width: 52rem;
  display: grid;
  gap: 12px;
}

.involved-projects-summary li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px 20px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
}

.involved-projects-summary li strong {
  color: var(--heading);
}

.involved-projects-summary__period {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.involved-project-accordion {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.involved-project-accordion__summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.involved-project-accordion__summary::-webkit-details-marker {
  display: none;
}

.involved-project-accordion__title {
  display: block;
  font-weight: 700;
  color: var(--heading);
}

.involved-project-accordion__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.involved-project-accordion__body {
  padding: 0 12px 12px;
  border-top: 1px solid var(--border);
}

.involved-projects--detailed {
  max-width: 52rem;
}

/* Private details password gate */
.private-details-accordion {
  margin-top: 24px;
  max-width: 52rem;
}

.private-details-note {
  margin: 16px 0 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.private-details-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.private-details-form label {
  font-weight: 600;
  font-size: 0.875rem;
}

.private-details-form input[type="password"] {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

/* Roadmap IA courses */
.roadmap-page__intro {
  max-width: 42rem;
  margin: 0 0 8px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.roadmap-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.roadmap-count {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.roadmap-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.roadmap-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.roadmap-card__thumb {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, #1a1a2e 0%, #4a148c 50%, #7b1fa2 100%);
}

.roadmap-card__badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

.roadmap-card__body {
  padding: 16px 18px 20px;
}

.roadmap-card__title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--heading);
}

.roadmap-card__title a {
  color: inherit;
  text-decoration: none;
}

.roadmap-card__title a:hover {
  color: var(--accent);
}

.roadmap-card__desc {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
}

.roadmap-card__outcomes {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.roadmap-card__outcomes strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.roadmap-card__link {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.roadmap-card__link a {
  color: var(--accent);
  text-decoration: none;
}

.roadmap-card__link a:hover {
  text-decoration: underline;
}

.roadmap-card__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.roadmap-note {
  margin: 28px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .involved-projects-summary li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .involved-projects-summary__period {
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Personal statement / CV blocks */
.personal-statement-page .cv-block {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.personal-statement-page .cv-block h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: var(--heading);
}

.personal-statement-page .cv-block h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.personal-statement-page .cv-block p,
.personal-statement-page .cv-block li {
  font-size: 1rem;
  line-height: 1.7;
  color: #3a3a3a;
}

.personal-statement-page .cv-block ul {
  margin: 0;
  padding-left: 1.25em;
}

.personal-statement-page .cv-block li {
  margin-bottom: 0.4em;
}

.personal-statement-page .cv-links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.personal-statement-page .cv-links a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.personal-statement-page .cv-links a:hover {
  text-decoration: underline;
}

.portfolio-docs {
  max-width: 52rem;
  margin-top: 2.5rem;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.portfolio-docs h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.portfolio-docs__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.portfolio-docs__list li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.portfolio-docs__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}

.portfolio-docs__list a:hover strong {
  color: var(--accent);
}

.portfolio-docs__type {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eee;
  color: #555;
}

.portfolio-docs__list p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Home layout — exbyte.dev inspired
   ========================================================================== */

.home-page {
  --home-bg: #f8f9fb;
  --home-surface: #ffffff;
  --home-border: #e4e7ec;
  --home-muted: #667085;
  --home-code-bg: #0f172a;
  --home-code-fg: #e2e8f0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--home-border);
  border-radius: var(--radius-pill);
  background: var(--home-surface);
  color: var(--heading) !important;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: #c9cdd4;
  background: #f3f4f6;
  color: var(--heading) !important;
}

.btn-outline--dark {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff !important;
}

.btn-outline--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.home-hero {
  background: var(--home-bg);
  border-bottom: 1px solid var(--home-border);
  padding: clamp(48px, 7vw, 88px) 0;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.home-hero__kicker,
.home-section .section-label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-muted);
}

.home-hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.home-hero__lead {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #475467;
  max-width: 38rem;
}

.home-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.home-hero__badges li {
  font-size: 0.875rem;
  color: #344054;
}

.home-hero__badges strong {
  color: var(--heading);
  font-weight: 700;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.code-panel {
  background: var(--home-code-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-panel__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-panel__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.code-panel__bar span:nth-child(1) { background: #ef4444; }
.code-panel__bar span:nth-child(2) { background: #f59e0b; }
.code-panel__bar span:nth-child(3) { background: #22c55e; }

.code-panel__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-panel__body {
  margin: 0;
  padding: 20px 18px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--home-code-fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-x: auto;
}

.code-panel__body code { white-space: pre; }

.code-panel__body .tok-kw { color: #c084fc; }
.code-panel__body .tok-fn { color: #60a5fa; }
.code-panel__body .tok-type { color: #34d399; }
.code-panel__body .tok-str { color: #fbbf24; }
.code-panel__body .tok-num { color: #fb7185; }

.code-panel__caption {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 0.75rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.home-section__intro {
  margin: -8px 0 28px;
  max-width: 42rem;
  color: #475467;
}

.home-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.home-section__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
}

.home-section__link:hover { color: var(--accent); }

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-service-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-service-card:hover {
  border-color: #d0d5dd;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.home-service-card h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  color: var(--heading);
}

.home-service-card p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: #475467;
  line-height: 1.55;
}

.home-service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-service-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: #667085;
}

.home-service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.featured-grid--home {
  grid-template-columns: repeat(2, 1fr);
}

.posts-grid--home {
  grid-template-columns: repeat(3, 1fr);
}

.home-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-stack-group {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 22px;
}

.home-stack-group h3 {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: var(--heading);
}

.home-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-stack-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  border: 1px solid #eaecf0;
}

.home-about__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.home-about__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.home-about__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #475467;
}

.home-about__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.home-friends__intro {
  margin: -8px 0 28px;
  max-width: 40rem;
  color: #475467;
}

.friend-sites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.friend-site-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.friend-site-card:hover {
  border-color: #d0d5dd;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  color: inherit;
}

.friend-site-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.friend-site-card__name {
  font-size: 1rem;
  color: var(--heading);
}

.friend-site-card__desc {
  font-size: 0.8125rem;
  color: #667085;
  line-height: 1.45;
  flex: 1;
}

.friend-site-card__link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--heading);
  margin-top: 4px;
}

.home-cta {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
}

.home-cta__inner {
  text-align: center;
  max-width: 40rem;
}

.home-cta .section-heading {
  color: #fff;
}

.home-cta p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
}

.home-cta .home-hero__actions {
  justify-content: center;
}

/* Profile avatar — circular (This is me photo) */
.profile-avatar {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 3px solid #fff;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.14);
}

.profile-avatar--hero {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.profile-avatar--about {
  width: clamp(140px, 18vw, 200px);
  height: clamp(140px, 18vw, 200px);
}

.profile-avatar--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
}

.profile-avatar--placeholder span { line-height: 1; }

.personal-statement-page .single-featured--compact,
.personal-statement-page .single-featured--compact img {
  border-radius: 50%;
}

.personal-statement-page .single-featured--compact {
  width: 112px;
  overflow: hidden;
}

.personal-statement-page .single-featured--compact img {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
}

/* ==========================================================================
   Inner pages — brendanjowett.com inspired
   ========================================================================== */

.inner-hero {
  position: relative;
  overflow: hidden;
  background: var(--landing-bg);
  color: var(--landing-text);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

.inner-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
}

.inner-hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.inner-hero__kicker {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--landing-kicker);
}

.inner-hero__title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--landing-text);
  letter-spacing: -0.02em;
}

.inner-hero__subtitle {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--landing-muted);
}

.inner-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.inner-body {
  background: var(--surface);
}

.single-featured--inner {
  margin-bottom: 32px;
}

.pdiaz-inner-layout .site-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Responsive — home & inner */
@media (max-width: 1024px) {
  .home-services-grid,
  .home-stack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .friend-sites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .home-hero__visual {
    order: -1;
  }

  .home-services-grid,
  .home-stack-grid,
  .featured-grid--home,
  .posts-grid--home,
  .friend-sites-grid {
    grid-template-columns: 1fr;
  }

  .home-about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-about__photo {
    display: flex;
    justify-content: center;
  }

  .home-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-hero__canvas {
    display: none;
  }
}

/* ==========================================================================
   Home landing — brendanjowett.com inspired
   ========================================================================== */

.pdiaz-home-layout {
  background: var(--landing-bg);
}

.pdiaz-home-layout .site-header--landing {
  position: absolute;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  z-index: 300;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

[data-theme="white"] .pdiaz-home-layout .site-header--landing {
  position: sticky;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.pdiaz-home-layout .site-header--landing .logo-mark {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

[data-theme="white"] .pdiaz-home-layout .site-header--landing .logo-mark {
  border-color: var(--heading);
  color: var(--heading);
}

.pdiaz-home-layout .site-header--landing .primary-menu a,
.pdiaz-home-layout .site-header--landing .header-link,
.pdiaz-home-layout .site-header--landing .lang-switcher__link {
  color: rgba(255, 255, 255, 0.72);
}

[data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-menu a,
[data-theme="white"] .pdiaz-home-layout .site-header--landing .header-link,
[data-theme="white"] .pdiaz-home-layout .site-header--landing .lang-switcher__link {
  color: var(--header-text);
}

.pdiaz-home-layout .site-header--landing .primary-menu a:hover,
.pdiaz-home-layout .site-header--landing .primary-menu .current-menu-item > a,
.pdiaz-home-layout .site-header--landing .header-link:hover {
  color: #fff;
}

[data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-menu a:hover,
[data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-menu .current-menu-item > a,
[data-theme="white"] .pdiaz-home-layout .site-header--landing .header-link:hover {
  color: var(--header-text-hover);
}

.pdiaz-home-layout .site-header--landing .primary-menu > li > a::before {
  background: #fff;
}

[data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-menu > li > a::before {
  background: var(--heading);
}

.pdiaz-home-layout .site-header--landing .primary-menu .sub-menu a {
  color: rgba(0, 0, 0, 0.68);
}

.pdiaz-home-layout .site-header--landing .primary-menu .sub-menu a:hover,
.pdiaz-home-layout .site-header--landing .primary-menu .sub-menu .current-menu-item > a {
  background: #f3f2ef;
  color: var(--heading);
}

.pdiaz-home-layout .site-header--landing .nav-toggle {
  border-color: rgba(255, 255, 255, 0.25);
}

.pdiaz-home-layout .site-header--landing .nav-toggle span {
  background: #fff;
}

[data-theme="white"] .pdiaz-home-layout .site-header--landing .nav-toggle {
  border-color: var(--border);
}

[data-theme="white"] .pdiaz-home-layout .site-header--landing .nav-toggle span {
  background: var(--heading);
}

.home-page--brendan {
  color: var(--landing-text);
}

.home-landing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(96px, 12vw, 120px) 0 clamp(64px, 8vw, 88px);
  background: var(--landing-bg);
  overflow: hidden;
  text-align: center;
}

.home-landing__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.home-landing__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin-inline: auto;
}

.profile-avatar--landing {
  width: clamp(120px, 18vw, 156px);
  height: clamp(120px, 18vw, 156px);
  margin: 0 auto 24px;
  object-position: center center;
  border: 3px solid color-mix(in srgb, var(--landing-text) 22%, transparent);
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--landing-text) 4%, transparent),
    0 16px 48px rgba(0, 0, 0, 0.2);
}

.home-landing__kicker {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--landing-kicker);
}

.home-landing__title {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--landing-text);
}

.home-landing__subtitle {
  margin: 0 0 36px;
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--landing-muted);
}

.home-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.home-cta-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--landing-pill-border);
  background: var(--landing-pill-bg);
  color: var(--landing-text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
}

.home-cta-pill:hover {
  background: color-mix(in srgb, var(--landing-text) 8%, var(--landing-pill-bg));
  border-color: color-mix(in srgb, var(--landing-text) 28%, transparent);
  color: var(--landing-text);
  transform: translateY(-1px);
}

.home-cta-pill__label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-cta-pill__desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--landing-pill-desc);
}

.home-cta-pill:hover .home-cta-pill__desc {
  color: var(--landing-muted);
}

.home-contact-strip {
  background: var(--home-strip-bg);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
  color: var(--home-strip-text);
}

.home-contact-strip__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--home-strip-text);
}

.home-contact-strip__text {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  color: var(--home-strip-muted);
}

.home-contact-strip__email {
  margin: 0 0 18px;
  font-size: 1.0625rem;
}

.home-contact-strip__email a {
  color: var(--landing-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-contact-strip__copy {
  cursor: pointer;
}

.home-page--brendan .home-friends {
  background: var(--footer-home-bg);
  color: var(--text);
}

.home-page--brendan .home-friends .section-heading,
.home-page--brendan .home-friends .friend-site-card__name {
  color: var(--heading);
}

.pdiaz-home-layout .site-footer {
  background: var(--footer-home-bg);
}

@media (max-width: 768px) {
  .pdiaz-home-layout .site-header--landing .primary-navigation.is-open {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
  }

  [data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-navigation.is-open {
    background: var(--surface);
    border-color: var(--border);
  }

  .pdiaz-home-layout .site-header--landing .primary-menu .sub-menu {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
  }

  [data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-menu .sub-menu {
    background: #fff;
    border-color: var(--border);
  }

  .pdiaz-home-layout .site-header--landing .primary-menu .sub-menu a {
    color: rgba(255, 255, 255, 0.75);
  }

  [data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-menu .sub-menu a {
    color: rgba(0, 0, 0, 0.68);
  }

  .pdiaz-home-layout .site-header--landing .primary-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  [data-theme="white"] .pdiaz-home-layout .site-header--landing .primary-menu .sub-menu a:hover {
    background: #f3f2ef;
    color: var(--heading);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-landing__canvas {
    display: none;
  }
}

/* ==========================================================================
   Theme 2 — home subscribe + footer friends
   ========================================================================== */

.home-subscribe {
  background: var(--home-subscribe-bg);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 56px) 0;
  text-align: center;
  color: var(--home-subscribe-text);
}

.home-subscribe__inner {
  max-width: 32rem;
}

.home-subscribe h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--home-subscribe-text);
}

.home-subscribe p {
  margin: 0 0 18px;
  font-size: 0.9375rem;
  color: var(--home-subscribe-muted);
}

.home-subscribe .subscribe-form {
  max-width: 100%;
  margin-inline: auto;
  background: var(--home-subscribe-form-bg);
  border: 1px solid var(--home-subscribe-form-border);
}

.home-subscribe .subscribe-form input {
  color: #fff;
}

.home-subscribe .subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.home-subscribe .subscribe-notice {
  margin-bottom: 12px;
}

.footer-friends {
  padding: 20px 0 8px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-friends__label {
  margin: 0 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-friends__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0 16px 12px;
}

.footer-friends__list a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-friends__list a:hover {
  color: var(--accent);
}

.footer-theme-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.portfolio-page__head {
  margin-bottom: 8px;
}

