.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
}

.site-header .navbar {
  min-height: 78px;
  padding: 0;
  --bs-navbar-color: var(--theme-muted);
  --bs-navbar-hover-color: var(--theme-text);
  --bs-navbar-active-color: var(--theme-text);
  --bs-navbar-brand-color: var(--theme-text);
  --bs-navbar-brand-hover-color: var(--theme-text);
  --bs-navbar-toggler-border-color: var(--theme-line);
}

.site-header .navbar-brand {
  margin-right: auto;
}

.site-header .navbar-nav {
  gap: clamp(0.75rem, 1.35vw, 1.35rem);
  margin-right: 1rem;
}

.site-header .nav-link {
  position: relative;
  padding: 27px 0;
  color: var(--theme-muted);
  font-weight: 500;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--theme-text);
}

.site-header .nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 11px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
}

.navbar-toggler {
  width: 42px;
  height: 42px;
  padding: 0.45rem;
  border-radius: 50%;
  box-shadow: none !important;
}

.nav-cv-item {
  display: flex;
  align-items: center;
  margin-left: 0.25rem;
}

.nav-cv {
  min-height: 42px;
  padding: 0.62rem 1rem;
  border-radius: 6px;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.site-header .nav-cv:hover,
.site-header .nav-cv:focus-visible {
  border-color: var(--red);
  color: #fff;
}

.card {
  color: var(--theme-text);
}

.card .actions {
  margin-top: auto;
  padding-top: 1rem;
}

.hero-identity {
  position: relative;
  display: inline-block;
  isolation: isolate;
  white-space: nowrap;
  will-change: transform, filter;
}

.hero-identity::before,
.hero-identity::after {
  position: absolute;
  inset: 0;
  content: attr(data-glitch);
  opacity: 0;
  pointer-events: none;
}

.hero-identity.glitching {
  animation: hero-glitch-main 0.42s steps(2, end);
}

.hero-identity.glitching::before {
  color: #7df9ff;
  opacity: 0.7;
  clip-path: inset(0 0 58% 0);
  text-shadow: -2px 0 rgba(125, 249, 255, 0.45);
  animation: hero-glitch-top 0.18s steps(2, end) 2;
}

.hero-identity.glitching::after {
  color: var(--red);
  opacity: 0.6;
  clip-path: inset(46% 0 16% 0);
  text-shadow: 2px 0 rgba(241, 79, 68, 0.4);
  animation: hero-glitch-middle 0.16s steps(2, end) 2;
}

.glitch-scan {
  position: absolute;
  top: 50%;
  right: -2%;
  left: -2%;
  height: 0.13em;
  background: linear-gradient(90deg, transparent, #7df9ff, var(--red), transparent);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-identity.glitching .glitch-scan {
  animation: hero-glitch-scan 0.34s linear;
}

.prose-content {
  max-width: 900px;
  margin-bottom: 5rem;
  color: var(--theme-muted);
}

.prose-content h2,
.prose-content h3 {
  margin-top: 2.2rem;
  color: var(--theme-text);
}

.prose-content pre {
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid var(--theme-line);
  border-radius: 9px;
  background: var(--theme-surface);
}

.prose-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.section-heading-row .section-title {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.home-showcase,
.home-blog {
  padding-top: 4rem;
}

.credential-strip + .home-showcase {
  padding-top: 1.75rem;
}

.home-showcase:last-child {
  padding-bottom: 4rem;
}

.services-hero {
  max-width: 980px;
}

.services-heading-copy {
  max-width: 520px;
  margin: 0;
  color: var(--theme-muted);
}

.service-card-link {
  display: block;
  height: 100%;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.service-card-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red) 82%, white);
  outline-offset: 5px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--red) 10%, transparent), transparent 38%),
    linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  box-shadow: var(--theme-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.service-card-link:hover {
  color: inherit;
}

.service-card-link:hover .service-card,
.service-card-link:focus-visible .service-card {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--red) 78%, var(--theme-line));
  box-shadow: 0 24px 70px color-mix(in srgb, var(--red) 13%, transparent);
}

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-number {
  color: var(--red);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.service-code {
  padding: 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--red) 60%, var(--theme-line));
  border-radius: 6px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.service-description {
  min-height: 5rem;
  margin: 0 0 1.4rem;
  color: var(--theme-muted);
}

.service-block {
  padding: 1.15rem 0;
  border-top: 1px solid var(--theme-line);
}

.service-block h4 {
  margin: 0 0 0.8rem;
  color: var(--theme-text);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.service-block ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  color: var(--theme-muted);
  font-size: 0.9rem;
  list-style: none;
}

.service-block li {
  position: relative;
  padding-left: 1rem;
}

.service-block li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: var(--red);
}

.service-deliverables {
  margin-bottom: 0.5rem;
}

.service-link {
  width: fit-content;
  margin-top: auto;
  padding: 0.8rem 1.2rem;
  pointer-events: none;
}

.service-card-link:hover .service-link,
.service-card-link:focus-visible .service-link {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.service-method {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
}

.service-method .section-copy {
  margin-bottom: 0;
}

.service-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--theme-line);
}

.service-steps li:first-child {
  padding-top: 0;
}

.service-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-steps li > span {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.service-steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.service-steps p {
  margin: 0;
  color: var(--theme-muted);
}

.service-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid color-mix(in srgb, var(--red) 65%, var(--theme-line));
  border-radius: 12px;
  background: radial-gradient(circle at 82% 50%, color-mix(in srgb, var(--red) 23%, transparent), transparent 48%), var(--theme-surface);
}

.service-boundary h2 {
  margin: 0.5rem 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.service-boundary p {
  max-width: 830px;
  margin: 0;
  color: var(--theme-muted);
}

.detail-back {
  display: inline-flex;
  margin-top: 2.25rem;
  color: var(--theme-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.detail-back:hover {
  color: var(--red);
}

.service-detail-hero,
.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.service-detail-hero h1,
.course-hero h1 {
  max-width: 920px;
  margin: 1.15rem 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.course-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.course-level {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--theme-line);
  border-radius: 6px;
  background: var(--theme-surface-2);
  color: var(--theme-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.engagement-panel,
.risk-panel,
.training-terminal,
.course-summary {
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--red) 17%, transparent), transparent 46%),
    linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  box-shadow: var(--theme-shadow);
}

.engagement-kicker {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.engagement-panel h2 {
  margin: 1rem 0;
  font-size: 1.3rem;
}

.engagement-panel ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.engagement-panel li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.7rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--theme-line);
  color: var(--theme-muted);
}

.engagement-panel li:last-child {
  border-bottom: 0;
}

.engagement-panel li span,
.detail-card-code {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-section {
  padding: 3.25rem 0;
  scroll-margin-top: 100px;
}

.detail-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
}

.detail-card h3 {
  margin: 0.9rem 0 0.65rem;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0;
  color: var(--theme-muted);
}

.detail-card .tags {
  margin-bottom: 0;
}

.detail-method {
  margin-top: 1.5rem;
}

.deliverable-section {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.deliverable-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: var(--theme-surface);
  overflow: hidden;
}

.deliverable-list > div {
  min-height: 170px;
  padding: 1.4rem;
  border-right: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
}

.deliverable-list > div:nth-child(2n) {
  border-right: 0;
}

.deliverable-list > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.deliverable-list span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.deliverable-list strong {
  display: block;
  font-size: 1.05rem;
}

.deliverable-list p {
  margin: 0.35rem 0 0;
  color: var(--theme-muted);
  font-size: 0.9rem;
}

.detail-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0 4rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid color-mix(in srgb, var(--red) 65%, var(--theme-line));
  border-radius: 12px;
  background: radial-gradient(circle at 82% 50%, color-mix(in srgb, var(--red) 24%, transparent), transparent 48%), var(--theme-surface);
}

.detail-cta h2 {
  margin: 0.45rem 0;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

.detail-cta p {
  max-width: 760px;
  margin: 0;
  color: var(--theme-muted);
}

.risk-panel {
  display: grid;
  gap: 0;
}

.risk-score {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--theme-line);
}

.risk-score:last-child {
  border-bottom: 0;
}

.risk-score strong {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
}

.risk-score span {
  color: var(--theme-muted);
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.consulting-context {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin: 2rem 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
}

.consulting-context h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
}

.consulting-context p {
  margin: 0 0 1rem;
  color: var(--theme-muted);
}

.consulting-context p:last-child {
  margin-bottom: 0;
}

.training-terminal {
  padding: 0;
  background: var(--theme-bg);
}

.training-terminal-bar {
  display: flex;
  gap: 0.45rem;
  padding: 1rem;
  border-bottom: 1px solid var(--theme-line);
}

.training-terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--theme-line);
}

.training-terminal code,
.training-terminal p {
  display: block;
  margin-inline: 1.4rem;
}

.training-terminal code {
  margin-top: 1.35rem;
  padding: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.9rem;
}

.training-terminal p {
  margin-top: 0.55rem;
  margin-bottom: 1.35rem;
  color: var(--theme-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

.training-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.training-course-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--red) 13%, transparent), transparent 42%),
    linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  box-shadow: var(--theme-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.training-course-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

.training-course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.course-index {
  color: var(--red);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.training-course-card > .service-code {
  width: fit-content;
}

.training-course-card h3 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.training-course-card > p {
  color: var(--theme-muted);
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.course-meta.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-line);
}

.course-meta span {
  display: grid;
  gap: 0.3rem;
  color: var(--theme-text);
  font-size: 0.9rem;
}

.course-meta small {
  color: var(--theme-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.training-course-card .card-link {
  margin-top: 1.5rem;
}

.training-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 3rem 0;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: var(--theme-surface);
}

.training-principles > div {
  padding: 1.4rem;
  border-right: 1px solid var(--theme-line);
}

.training-principles > div:last-child {
  border-right: 0;
}

.training-principles span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.training-principles strong {
  display: block;
  margin-bottom: 0.4rem;
}

.training-principles p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.88rem;
}

.course-page {
  padding-top: 0.1rem;
}

.course-hero {
  padding-top: 2.5rem;
}

.course-summary {
  display: grid;
  align-content: start;
  min-height: 310px;
}

.course-summary-index {
  margin-bottom: auto;
  color: color-mix(in srgb, var(--red) 72%, var(--theme-text));
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
  opacity: 0.45;
}

.course-summary strong {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.course-summary p {
  margin: 0.65rem 0 1.2rem;
  color: var(--theme-muted);
}

.course-summary-status {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-line);
  color: var(--theme-muted);
  font-size: 0.86rem;
}

.course-summary-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.course-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.course-content-layout > main {
  min-width: 0;
}

.course-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--theme-line);
}

.course-section h2 {
  margin: 0.55rem 0 1.5rem;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.outcome-grid > div {
  min-height: 145px;
  padding: 1.2rem;
  border: 1px solid var(--theme-line);
  border-radius: 9px;
  background: var(--theme-surface);
}

.outcome-grid span,
.course-program > li > span {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.outcome-grid p {
  margin: 1rem 0 0;
  color: var(--theme-muted);
}

.course-program {
  margin: 0;
  padding: 0;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: var(--theme-surface);
  list-style: none;
  overflow: hidden;
}

.course-program li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--theme-line);
}

.course-program li:last-child {
  border-bottom: 0;
}

.course-program strong {
  display: block;
}

.course-program p {
  margin: 0.35rem 0 0;
  color: var(--theme-muted);
}

.course-practice {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.course-practice h2,
.course-practice p {
  margin-bottom: 0;
}

.course-practice p {
  color: var(--theme-muted);
}

.course-sidebar {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: var(--theme-surface);
}

.course-sidebar section {
  padding: 1.2rem;
  border-bottom: 1px solid var(--theme-line);
}

.course-sidebar section:last-child {
  border-bottom: 0;
}

.course-sidebar h2 {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.course-sidebar p,
.course-sidebar ul {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.88rem;
}

.course-sidebar ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1rem;
}

.blog-hero {
  max-width: 900px;
}

.blog-browser {
  padding-top: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: start;
}

.blog-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 105px;
}

.blog-results-head .section-title {
  margin-bottom: 0;
}

.blog-results-head > span {
  color: var(--theme-muted);
  font-size: 0.9rem;
}

.blog-sidebar {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 1rem;
}

.blog-sidebar-content {
  display: grid;
  gap: 1rem;
}

.sidebar-panel {
  padding: 1.2rem;
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
}

.sidebar-panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.blog-search {
  display: grid;
  gap: 0.5rem;
  color: var(--theme-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-search input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--theme-line);
  border-radius: 7px;
  outline: none;
  background: var(--theme-bg);
  color: var(--theme-text);
  text-transform: none;
}

.blog-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
}

.sidebar-reset {
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.sidebar-reset:hover {
  color: var(--red);
}

.sidebar-list {
  display: grid;
}

.sidebar-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--theme-line);
  background: transparent;
  color: var(--theme-muted);
  text-align: left;
  cursor: pointer;
}

.sidebar-filter:last-child {
  border-bottom: 0;
}

.sidebar-filter:hover,
.sidebar-filter.active {
  color: var(--theme-text);
}

.sidebar-filter.active span {
  color: var(--red);
}

.sidebar-filter b {
  min-width: 1.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--theme-surface-2);
  color: var(--red);
  font-size: 0.72rem;
  text-align: center;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tags .tag {
  cursor: pointer;
}

.sidebar-tags .tag:hover,
.sidebar-tags .tag.active {
  border-color: var(--red);
  color: var(--theme-text);
}

.sidebar-tags .tag span {
  color: var(--red);
}

.sidebar-recent {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-recent li {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--theme-line);
}

.sidebar-recent li:first-child {
  padding-top: 0;
}

.sidebar-recent li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-recent a {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.sidebar-recent a:hover {
  color: var(--red);
}

.sidebar-recent time {
  color: var(--theme-muted);
  font-size: 0.75rem;
}

.sidebar-rss {
  border-color: color-mix(in srgb, var(--red) 55%, var(--theme-line));
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--red) 24%, transparent), transparent 60%), var(--theme-surface);
}

.sidebar-rss h2 {
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.sidebar-rss p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.88rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  color: var(--theme-text);
  text-decoration: none;
}

.blog-card-footer,
.post-meta,
.post-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.blog-card-footer,
.post-meta,
.post-back {
  color: var(--theme-muted);
  font-size: 0.84rem;
}

.blog-card:focus-visible {
  border-color: var(--red);
  outline: 3px solid color-mix(in srgb, var(--red) 28%, transparent);
  outline-offset: 3px;
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--theme-line);
  background: var(--theme-surface-2);
}

.blog-card-image > img:not(.blog-card-placeholder-logo) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.blog-card:hover .blog-card-image > img:not(.blog-card-placeholder-logo) {
  transform: scale(1.035);
}

.blog-card-image-placeholder {
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(color-mix(in srgb, var(--theme-line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-line) 55%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--red) 16%, transparent), transparent 56%);
  background-size: 32px 32px, 32px 32px, auto;
}

.blog-card-placeholder-logo {
  width: 62px;
  height: 68px;
  object-fit: contain;
  opacity: 0.9;
}

.blog-card-category,
.blog-card-image time {
  position: absolute;
  top: 0.85rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--red) 60%, var(--theme-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
}

.blog-card-category {
  left: 0.85rem;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-image time {
  right: 0.85rem;
  border-color: var(--theme-line);
  color: var(--theme-muted);
}

.blog-card-pin {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: color-mix(in srgb, var(--theme-bg) 90%, transparent);
  color: var(--theme-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.blog-card-pin svg {
  width: 14px;
  height: 14px;
  fill: var(--red);
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.blog-card h3 {
  margin: 0 0 0.75rem;
}

.blog-card:hover h3,
.post-back:hover {
  color: var(--red);
}

.blog-card-content > p {
  margin-bottom: 0;
}

.blog-card-content .tags {
  margin-top: 1.25rem;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--theme-line);
}

.blog-reading-time {
  white-space: nowrap;
}

.blog-card-button {
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  color: #fff;
  font-size: 0.8rem;
  pointer-events: none;
}

.blog-no-results {
  margin-top: 1.5rem;
}

.blog-pagination,
.blog-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.blog-pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-line);
}

.blog-page-numbers {
  flex-wrap: wrap;
}

.blog-page-button {
  min-width: 42px;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--theme-line);
  border-radius: 7px;
  background: var(--theme-surface);
  color: var(--theme-muted);
  font-weight: 700;
  cursor: pointer;
}

.blog-page-button:hover,
.blog-page-button.active {
  border-color: var(--red);
  color: var(--theme-text);
}

.blog-page-button.active {
  background: color-mix(in srgb, var(--red) 18%, var(--theme-surface));
}

.blog-page-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.blog-page-direction {
  min-width: 112px;
}

.project-back {
  display: block;
  width: fit-content;
  margin: 2.5rem 0 1.5rem;
  color: var(--theme-muted);
  font-size: 0.88rem;
}

.project-back:hover {
  color: var(--red);
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: 102px;
  padding: 1.4rem;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  box-shadow: var(--theme-shadow);
}

.project-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-sidebar-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--red);
  border-radius: 10px;
  color: var(--red);
  font-weight: 800;
}

.project-sidebar h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.project-facts {
  margin: 0;
}

.project-facts > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--theme-line);
}

.project-facts dt {
  color: var(--theme-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: var(--theme-text);
  font-size: 0.9rem;
}

.project-sidebar-section {
  margin-top: 1.4rem;
}

.project-sidebar-section h3 {
  margin: 0 0 0.75rem;
  color: var(--theme-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-sidebar-section .tags {
  margin: 0;
}

.project-sidebar-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.project-sidebar-links .btn {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
}

.project-header {
  padding: 0.4rem 0 2rem;
}

.project-header h1 {
  margin: 0.12em 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.project-content .prose-content {
  max-width: 850px;
  margin-bottom: 2.5rem;
}

.project-gallery {
  padding-top: 1rem;
  border-top: 1px solid var(--theme-line);
}

.project-shot {
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  background: var(--theme-surface);
}

.project-shot a {
  display: block;
  overflow: hidden;
}

.project-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-shot a:hover img {
  transform: scale(1.025);
}

.project-shot figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--theme-line);
  color: var(--theme-muted);
  font-size: 0.84rem;
}

.post-shell {
  max-width: 1180px;
  margin-inline: auto;
}

.post-header {
  max-width: 980px;
}

.post-cover {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 2rem;
  overflow: hidden;
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
}

.post-cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.post-main {
  grid-column: 1 / 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.post-header h1 {
  margin-top: 0.22em;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
}

.post-back {
  display: block;
  width: fit-content;
  margin-bottom: 2.25rem;
}

.post-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.post-meta > * + *::before {
  margin-right: 1rem;
  color: var(--red);
  content: "•";
}

.post-tags {
  margin-bottom: 0;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, calc(100% - 250px - 4rem)) 250px;
  column-gap: 4rem;
  row-gap: 2rem;
  align-items: start;
}

.post-aside {
  position: sticky;
  top: 105px;
  grid-column: 2 / 3;
  grid-row: 1;
  width: 100%;
  max-width: 250px;
  display: grid;
  padding: 1.25rem;
  border: 1px solid var(--theme-line);
  border-radius: 9px;
  background: var(--theme-surface);
}

.post-aside p {
  margin: 0.75rem 0 0;
  color: var(--theme-muted);
}

.writeup-layout {
  grid-template-columns: 280px minmax(0, calc(100% - 280px - 3.5rem));
  column-gap: 3.5rem;
}

.writeup-layout .writeup-toc {
  grid-column: 1 / 2;
  grid-row: 1;
}

.writeup-layout .post-main {
  grid-column: 2 / 3;
  grid-row: 1;
}

.writeup-toc {
  max-width: 280px;
  max-height: calc(100vh - 130px);
  align-content: start;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-line) transparent;
}

.writeup-toc-title {
  display: block;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--theme-line);
  color: var(--theme-text);
  font-size: 1rem;
}

.writeup-toc-nav {
  margin-top: 0.75rem;
}

.writeup-toc-list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.writeup-toc-list a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid transparent;
  color: var(--theme-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.writeup-toc-list .toc-level-h3 a {
  padding-left: 1.35rem;
  font-size: 0.78rem;
}

.writeup-toc-list a:hover,
.writeup-toc-list a.active {
  border-left-color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--theme-text);
}

.writeup-toc-list a.active {
  font-weight: 700;
}

.writeup-toc-empty {
  font-size: 0.84rem;
}

.writeup-toc-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-line);
}

.writeup-toc-footer .card-link {
  margin-top: 0;
  font-size: 0.82rem;
}

.prose-content h2[id],
.prose-content h3[id] {
  scroll-margin-top: 115px;
}

.post-pagination {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--theme-line);
}

.post-pagination a {
  display: grid;
  max-width: 46%;
  gap: 0.35rem;
}

.post-pagination small {
  color: var(--red);
}

.post-pagination a:hover strong {
  color: var(--red);
}

.prose-content {
  font-size: 1.05rem;
}

.prose-content p,
.prose-content ul,
.prose-content ol {
  margin-bottom: 1.25rem;
}

.prose-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose-content blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--red);
  color: var(--theme-text);
}

.prose-content code {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: var(--theme-surface-2);
  color: var(--theme-text);
}

.prose-content pre code {
  padding: 0;
  background: transparent;
}

.prose-content table {
  width: 100%;
  margin: 1.75rem 0;
  border-collapse: collapse;
}

.prose-content th,
.prose-content td {
  padding: 0.75rem;
  border: 1px solid var(--theme-line);
  text-align: left;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--theme-line);
  color: var(--theme-muted);
  font-size: 0.82rem;
}

.footer-legal a:hover {
  color: var(--red);
}

.legal-shell {
  max-width: 980px;
  margin-inline: auto;
}

.legal-shell h1 {
  max-width: none;
}

.legal-updated {
  color: var(--theme-muted);
  font-size: 0.88rem;
}

.legal-warning {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--red);
  border-radius: 9px;
  background: color-mix(in srgb, var(--red) 10%, var(--theme-surface));
}

.legal-warning strong {
  display: block;
  margin-bottom: 0.3rem;
}

.legal-details {
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid var(--theme-line);
  border-radius: 10px;
  background: var(--theme-surface);
}

.legal-details > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) 1fr;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--theme-line);
}

.legal-details > div:last-child {
  border-bottom: 0;
}

.legal-details dt {
  color: var(--theme-muted);
  font-weight: 600;
}

.legal-details dd {
  margin: 0;
  color: var(--theme-text);
}

.legal-missing {
  color: var(--red);
  font-weight: 800;
}

.legal-table-wrap {
  overflow-x: auto;
}

.privacy-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin-bottom: 0.75rem;
  color: var(--theme-muted);
  font-size: 0.86rem;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--red);
}

.privacy-consent a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@keyframes hero-glitch-main {
  0%, 100% { transform: translateX(0); filter: none; }
  12% { transform: translateX(-1px); filter: contrast(1.08); }
  24% { transform: translateX(2px); }
  36% { transform: translateX(-2px); }
  52% { transform: translateX(1px) skewX(2deg); }
  70% { transform: translateX(-1px); }
}

@keyframes hero-glitch-top {
  0%, 100% { transform: translate(0); clip-path: inset(0 0 58% 0); }
  25% { transform: translate(-3px, -1px); clip-path: inset(0 0 66% 0); }
  50% { transform: translate(2px, 0); clip-path: inset(0 0 54% 0); }
  75% { transform: translate(-2px, 1px); }
}

@keyframes hero-glitch-middle {
  0%, 100% { transform: translate(0); }
  30% { transform: translate(3px, 0); }
  55% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, -1px); }
}

@keyframes hero-glitch-scan {
  0% { opacity: 0; transform: translateY(-0.9em); }
  18% { opacity: 0.95; }
  52% { opacity: 0.55; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0.95em); }
}

@media (max-width: 991.98px) {
  .site-header .navbar {
    min-height: 68px;
  }

  .site-header .navbar-collapse {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    padding: 0.7rem 1.4rem 1rem;
    border-bottom: 1px solid var(--theme-line);
    background: var(--theme-bg);
  }

  .site-header .navbar-nav {
    gap: 0;
    margin-right: 0;
  }

  .nav-cv-item {
    margin: 0.5rem 0 0;
  }

  .nav-cv {
    width: 100%;
  }

  .site-header .nav-link {
    padding: 0.75rem 0;
  }

  .site-header .nav-link.active::after {
    right: auto;
    bottom: 0.45rem;
    width: 42px;
  }

  .hero-identity {
    white-space: normal;
  }

  .blog-layout,
  .post-layout,
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
    display: contents;
  }

  .blog-search-panel {
    order: -1;
  }

  .blog-sidebar-content {
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .blog-main {
    order: 0;
    margin-top: 1rem;
  }

  .post-aside {
    position: static;
    grid-column: 1;
    grid-row: auto;
    max-width: none;
  }

  .writeup-toc {
    max-height: none;
    overflow: visible;
  }

  .writeup-layout .writeup-toc,
  .writeup-layout .post-main {
    grid-column: 1;
    grid-row: auto;
  }

  .project-sidebar {
    position: static;
  }

  .service-method,
  .service-boundary {
    grid-template-columns: 1fr;
  }

  .service-detail-hero,
  .course-hero,
  .deliverable-section,
  .consulting-context,
  .course-content-layout {
    grid-template-columns: 1fr;
  }

  .consulting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-principles > div:nth-child(2) {
    border-right: 0;
  }

  .training-principles > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--theme-line);
  }

  .course-sidebar {
    position: static;
  }

  .service-boundary .btn {
    width: fit-content;
  }
}

@media (max-width: 575.98px) {
  .section-heading-row,
  .blog-card-footer,
  .post-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-pagination a {
    max-width: 100%;
  }

  .post-pagination .text-end {
    text-align: left !important;
  }

  .blog-sidebar-content {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-page-direction {
    width: 100%;
  }

  .footer-legal {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .legal-details > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .services-heading-copy {
    max-width: none;
  }

  .service-description {
    min-height: 0;
  }

  .service-boundary .btn {
    width: 100%;
  }

  .service-detail-hero h1,
  .course-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .consulting-grid,
  .training-course-grid,
  .deliverable-list,
  .training-principles,
  .outcome-grid,
  .course-meta,
  .course-meta.compact,
  .course-practice {
    grid-template-columns: 1fr;
  }

  .deliverable-list > div,
  .deliverable-list > div:nth-child(2n),
  .deliverable-list > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--theme-line);
  }

  .deliverable-list > div:last-child {
    border-bottom: 0;
  }

  .training-principles > div,
  .training-principles > div:nth-child(2),
  .training-principles > div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--theme-line);
  }

  .training-principles > div:last-child {
    border-bottom: 0;
  }

  .detail-cta {
    grid-template-columns: 1fr;
  }

  .detail-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-identity,
  .hero-identity::before,
  .hero-identity::after,
  .glitch-scan {
    animation: none !important;
  }
}

/* Sobre mí */
.about-page main {
  overflow: hidden;
}

.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  min-height: 570px;
  padding: 5.5rem 0 4.5rem;
}

.about-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 44% 0 -120px;
  content: "";
  background-image:
    linear-gradient(color-mix(in srgb, var(--theme-line) 40%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--theme-line) 40%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent),
    linear-gradient(0deg, transparent, #000 30%, #000 70%, transparent);
}

.about-hero h1 {
  max-width: 850px;
  margin: 0 0 1.35rem;
  font-size: clamp(3rem, 5.35vw, 5.25rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.about-hero h1 span {
  color: var(--red);
}

.about-role {
  margin-bottom: 1.25rem;
  color: var(--theme-text);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.about-lead {
  max-width: 730px;
  margin-bottom: 1.8rem;
  color: var(--theme-muted);
  font-size: 1.08rem;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  margin-bottom: 1.7rem;
  color: var(--theme-muted);
  font-weight: 650;
}

.about-meta span::before {
  margin-right: 0.5rem;
  color: var(--red);
  content: "●";
  font-size: 0.72rem;
}

.about-profile {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--theme-line);
  border-radius: 13px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  box-shadow: var(--theme-shadow);
}

.about-profile::before {
  position: absolute;
  top: 0;
  right: 1.75rem;
  left: 1.75rem;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.about-profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--theme-line);
}

.about-profile-mark {
  width: 74px;
  height: 82px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: var(--theme-surface-2);
}

.about-profile-mark img {
  width: 52px;
  height: 58px;
  object-fit: contain;
}

.about-profile-head strong,
.about-profile-head span {
  display: block;
}

.about-profile-head strong {
  font-size: 1.24rem;
}

.about-profile-head span {
  color: var(--theme-muted);
}

.about-credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.about-credential-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--theme-line);
  border-radius: 16px;
  background: var(--theme-surface);
}

.about-credential-card strong {
  color: var(--red);
  font-size: clamp(1.65rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.about-credential-card span {
  margin-top: 0.55rem;
  color: var(--theme-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.about-section {
  padding: 4.9rem 0;
}

.about-section + .about-section {
  border-top: 1px solid color-mix(in srgb, var(--theme-line) 75%, transparent);
}

.about-section h2,
.about-availability h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.about-section-intro {
  max-width: 760px;
  margin-bottom: 2rem;
  color: var(--theme-muted);
  font-size: 1.04rem;
}

.about-identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: stretch;
}

.about-identity-copy,
.about-manifesto {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
}

.about-identity-copy p {
  color: var(--theme-muted);
  font-size: 1.05rem;
}

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

.about-manifesto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: color-mix(in srgb, var(--red) 58%, var(--theme-line));
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--red) 16%, transparent), transparent 48%),
    linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
}

.about-manifesto blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.about-manifesto blockquote::before {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--red);
  content: "//";
  font: 800 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.about-strength-grid,
.about-specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.about-strength-card,
.about-specialty-card,
.about-evidence-card {
  position: relative;
  min-height: 230px;
  padding: 1.45rem;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  color: var(--theme-text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.about-strength-card:hover,
.about-specialty-card:hover,
.about-evidence-card:hover,
.about-evidence-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--theme-text);
  color: var(--theme-text);
}

.about-strength-card h3,
.about-specialty-card h3,
.about-evidence-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.12rem;
}

.about-strength-card p,
.about-specialty-card p,
.about-evidence-card p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.94rem;
}

.about-card-index {
  display: block;
  margin-bottom: 2rem;
  color: var(--red);
  font: 800 0.82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
}

.about-timeline-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}

.about-timeline {
  padding: 0.4rem 0 0.4rem 1.2rem;
}

.about-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 1.5rem;
  padding: 0 0 2.7rem 2.2rem;
  border-left: 1px solid var(--theme-line);
}

.about-timeline-item:last-child {
  padding-bottom: 0;
}

.about-timeline-item::before {
  position: absolute;
  top: 0.18rem;
  left: -7px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--theme-bg);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 1px var(--red);
  content: "";
}

.about-timeline-period {
  color: var(--red);
  font: 800 0.83rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.about-timeline-content {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--theme-line);
}

.about-timeline-content h3 {
  margin-bottom: 0.6rem;
}

.about-timeline-content p {
  margin: 0;
  color: var(--theme-muted);
}

.about-timeline-content small {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--theme-muted);
  font-weight: 700;
}

.about-trajectory-aside {
  align-self: start;
  padding: 1.6rem;
  border: 1px solid var(--theme-line);
  border-radius: 11px;
  background: var(--theme-surface);
}

.about-trajectory-aside > strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.about-trajectory-aside p {
  color: var(--theme-muted);
}

.about-trajectory-aside ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--theme-line);
  list-style: none;
}

.about-trajectory-aside li::before {
  margin-right: 0.65rem;
  color: var(--red);
  content: "›";
  font-weight: 900;
}

.about-specialty-card {
  min-height: 245px;
}

.about-specialty-code {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--theme-line);
  border-radius: 9px;
  background: var(--theme-surface-2);
  color: var(--red);
  font: 850 0.82rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.about-stack-section {
  padding-bottom: 6.4rem;
}

.about-stack-carousel {
  position: relative;
  padding-inline: 3.25rem;
}

.about-stack-carousel .carousel-inner {
  overflow: hidden;
}

.about-stack-carousel .carousel-item {
  padding: 0.25rem 0.15rem;
}

.about-stack-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid var(--theme-line);
  border-radius: 18px;
  background: var(--theme-surface);
  box-shadow: var(--theme-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-stack-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--red) 32%, var(--theme-line));
}

.about-stack-logo {
  width: 54px;
  height: 54px;
  display: block;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.about-stack-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--red);
  font-size: 1.35rem;
}

.about-stack-card h3 {
  margin: 0 0 0.25rem;
  color: var(--theme-text);
  font-size: 1.22rem;
  font-weight: 800;
}

.about-stack-card p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.92rem;
}

.about-stack-carousel .carousel-indicators {
  bottom: -3.4rem;
  margin-bottom: 0;
}

.about-stack-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0 6px;
  border: 0;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--theme-text) 25%, transparent);
  opacity: 1;
}

.about-stack-carousel .carousel-indicators .active {
  background-color: var(--red);
}

.about-stack-carousel .carousel-control-prev,
.about-stack-carousel .carousel-control-next {
  width: 42px;
  height: 42px;
  top: 50%;
  bottom: auto;
  border: 1px solid var(--theme-line);
  border-radius: 50%;
  background: var(--theme-surface);
  opacity: 1;
  transform: translateY(-50%);
}

.about-stack-carousel .carousel-control-prev {
  left: 0;
}

.about-stack-carousel .carousel-control-next {
  right: 0;
}

.about-stack-carousel .carousel-control-prev:hover,
.about-stack-carousel .carousel-control-next:hover {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--theme-surface));
}

.about-stack-carousel .carousel-control-prev-icon,
.about-stack-carousel .carousel-control-next-icon {
  width: 1rem;
  height: 1rem;
}

[data-bs-theme="light"] .about-stack-carousel .carousel-control-prev-icon,
[data-bs-theme="light"] .about-stack-carousel .carousel-control-next-icon {
  filter: invert(1) grayscale(100%);
}

.about-certification-grid {
  margin-top: 2.15rem;
}

.about-certification-card {
  position: relative;
  overflow: hidden;
  min-height: 205px;
  justify-content: flex-start;
  padding: 1.65rem;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--red) 10%, transparent), transparent 42%),
    linear-gradient(145deg, var(--theme-surface), var(--theme-bg));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.about-certification-card::before {
  position: absolute;
  top: 0;
  right: 1.55rem;
  left: 1.55rem;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 18%, transparent));
}

.about-certification-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--red) 60%, var(--theme-line));
}

.about-certification-card .about-certification-code {
  display: block;
  margin: 0 0 1rem;
  color: var(--red);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.035em;
}

.about-certification-card .about-certification-name {
  display: block;
  margin: 0;
  color: var(--theme-text);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  font-weight: 750;
  line-height: 1.45;
}

.about-certification-card .about-certification-detail {
  display: block;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--theme-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.about-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-evidence-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.about-status-label {
  align-self: flex-start;
  margin-bottom: 1.4rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--theme-line);
  border-radius: 5px;
  color: var(--theme-muted);
  font: 750 0.72rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.about-card-link {
  margin-top: auto;
  padding-top: 1.3rem;
  color: var(--red);
  font-weight: 800;
}

.about-availability {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  margin: 1rem 0 5rem;
  padding: clamp(1.7rem, 4vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--red) 64%, var(--theme-line));
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 25%, rgba(190, 47, 38, 0.38), transparent 42%),
    linear-gradient(145deg, #2a1514, #170f0f);
  color: #fff;
}

.about-availability h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.about-availability p {
  margin-bottom: 0;
  color: #d8d0cf;
}

.about-availability .actions {
  justify-content: flex-end;
}

.about-availability .btn:not(.btn-primary) {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .about-strength-grid,
  .about-specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .about-hero,
  .about-identity-grid,
  .about-timeline-shell {
    grid-template-columns: 1fr;
  }

  .about-hero {
    gap: 2.2rem;
    padding-top: 4rem;
  }

  .about-stack-carousel {
    padding-inline: 0;
  }

  .about-stack-carousel .carousel-control-prev,
  .about-stack-carousel .carousel-control-next {
    display: none;
  }

  .about-trajectory-aside {
    order: -1;
  }

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

  .about-availability .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .about-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .about-section {
    padding: 3.6rem 0;
  }

  .about-strength-grid,
  .about-specialty-grid,
  .about-certification-grid,
  .about-evidence-grid {
    grid-template-columns: 1fr;
  }

  .about-strength-card,
  .about-specialty-card,
  .about-certification-card,
  .about-evidence-card {
    min-height: 0;
  }

  .about-stack-card {
    min-height: 160px;
  }

  .about-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-left: 1.6rem;
  }

  .about-availability .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .about-credentials-grid {
    grid-template-columns: 1fr;
  }

  .about-credential-card {
    min-height: 128px;
  }
}




/* Áreas de trabajo
-------------------------------------------------- */

.about-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-work-card {
  position: relative;
  min-height: 265px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--theme-line);
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 100% 0,
      color-mix(in srgb, var(--red) 8%, transparent),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      var(--theme-surface),
      var(--theme-bg)
    );
  box-shadow: var(--theme-shadow);
}

.about-work-card::before {
  position: absolute;
  top: 0;
  left: 2rem;
  width: 112px;
  height: 2px;
  background: var(--red);
  content: "";
}

.about-work-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.about-work-category {
  color: var(--red);
  font: 800 0.78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-work-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 1.75rem;
}

.about-work-card h3 {
  margin: 0 0 0.65rem;
  color: var(--theme-text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.about-work-card p {
  max-width: 580px;
  margin: 0;
  color: var(--theme-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.about-work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: auto 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
}

.about-work-tags li {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--theme-line);
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--theme-surface-2) 80%,
    transparent
  );
  color: var(--theme-muted);
  font-size: 0.8rem;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .about-work-grid {
    grid-template-columns: 1fr;
  }

  .about-work-card {
    min-height: 235px;
  }
}

@media (max-width: 575.98px) {
  .about-work-card {
    min-height: 0;
  }

  .about-work-tags {
    margin-top: 1.4rem;
    padding-top: 0;
  }
}
