
:root {
  --navy: #071c2c;
  --navy-2: #0d2c45;
  --ink: #102235;
  --muted: #5f6d78;
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --orange: #f28a20;
  --blue: #62b5e5;
  --line: rgba(16, 34, 53, .12);
  --shadow: 0 24px 70px rgba(7, 28, 44, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 28, 44, .88);
  color: white;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 750; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ffb051);
  color: var(--navy); font-weight: 900;
}
.nav { display: flex; gap: 25px; font-size: .93rem; }
.nav a { opacity: .7; transition: .25s ease; }
.nav a:hover { opacity: 1; color: #ffd39a; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(70px, 8vw, 110px) clamp(22px, 7vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, .98fr);
  align-items: center;
  gap: 40px;
  background: var(--navy);
  color: white;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/zaragoza-hero.webp") center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 10s ease-out both;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,19,31,.96) 0%, rgba(4,19,31,.87) 36%, rgba(7,28,44,.68) 60%, rgba(7,28,44,.78) 100%),
    linear-gradient(0deg, rgba(4,19,31,.85), transparent 55%);
}
.hero-copy { position: relative; z-index: 4; max-width: 780px; }
.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 850;
  color: #ffd39a;
}
.eyebrow.orange { color: var(--orange); }
.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.6vw, 7rem);
  line-height: .93;
  letter-spacing: -.065em;
}
.hero-subtitle {
  margin: 22px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.9rem);
  color: #a8d7f3;
  font-weight: 700;
}
.hero-text {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.72;
  color: rgba(255,255,255,.78);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 780;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: white; box-shadow: 0 12px 28px rgba(242,138,32,.25); }
.button-secondary { border: 1px solid rgba(255,255,255,.28); color: white; background: rgba(255,255,255,.05); }

.executive-system {
  --sys-size: min(44vw, 610px);
  position: relative;
  z-index: 4;
  width: var(--sys-size);
  height: var(--sys-size);
  margin-left: auto;
  top: -28px;
}
.system-halo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.17);
  pointer-events: none;
}
.halo-outer { inset: 1%; }
.halo-inner { inset: 15%; border-color: rgba(98,181,229,.24); }

.portrait-wrap {
  position: absolute;
  inset: 21%;
  border-radius: 44% 44% 47% 47%;
  overflow: hidden;
  background: rgba(7,28,44,.9);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 35px 80px rgba(0,0,0,.38);
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  filter: saturate(.88) contrast(1.05);
  transform: scale(1.04);
}
.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,19,31,.94), rgba(4,19,31,0) 43%);
}
.portrait-label {
  display: none;
}
.portrait-label strong { font-size: .88rem; }
.portrait-label span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #a8d7f3; }

.pillar {
  position: absolute;
  z-index: 8;
  width: 145px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(7,28,44,.76);
  color: white;
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  transition: .28s ease;
}
.pillar span, .pillar strong { display: block; }
.pillar span { font-size: .67rem; color: #a8d7f3; line-height: 1.2; }
.pillar strong { font-size: .78rem; line-height: 1.18; margin-top: 2px; }
.pillar:hover, .pillar:focus-visible, .pillar.active {
  transform: scale(1.045);
  border-color: rgba(242,138,32,.8);
  background: rgba(14,48,74,.94);
  box-shadow: 0 0 0 5px rgba(242,138,32,.09), 0 16px 34px rgba(0,0,0,.28);
}
.pillar-top { top: 13%; left: 50%; transform: translate(-50%, -50%); }
.pillar-right { right: -1%; top: 50%; transform: translate(0, -50%); }
.pillar-bottom { bottom: 3%; left: 50%; transform: translate(-50%, 0); }
.pillar-left { left: -1%; top: 50%; transform: translate(0, -50%); }
.pillar-top:hover, .pillar-top.active { transform: translate(-50%, -50%) scale(1.045); }
.pillar-right:hover, .pillar-right.active { transform: translate(0, -50%) scale(1.045); }
.pillar-bottom:hover, .pillar-bottom.active { transform: translate(-50%, 0) scale(1.045); }
.pillar-left:hover, .pillar-left.active { transform: translate(0, -50%) scale(1.045); }

.skill-orbit { position: absolute; inset: 0; pointer-events: none; }
.skill-node {
  position: absolute;
  z-index: 6;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  font-size: .68rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity .32s ease, transform .32s ease;
}
.skill-node.visible { opacity: 1; transform: none; }
.skill-1 { top: 1%; left: 8%; }
.skill-2 { top: 9%; right: 5%; }
.skill-3 { bottom: 13%; right: -2%; }
.skill-4 { bottom: 3%; left: 10%; }
.skill-5 { top: 45%; left: 1%; }

.system-caption {
  position: absolute;
  left: 50%;
  bottom: -3%;
  transform: translateX(-50%);
  width: 68%;
  text-align: center;
  color: white;
}
.system-caption span {
  display: block; color: #ffd39a; text-transform: uppercase;
  letter-spacing: .13em; font-size: .62rem; font-weight: 850;
}
.system-caption strong {
  display: block; margin-top: 4px;
  font-size: .75rem; line-height: 1.35;
  color: rgba(255,255,255,.74);
}

.section {
  padding: clamp(64px, 7vw, 96px) clamp(22px, 7vw, 110px) clamp(80px, 9vw, 130px);
}
.section-intro { max-width: 860px; margin-bottom: 48px; }
.section-intro h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  letter-spacing: -.055em;
  line-height: .98;
}
.section-intro p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 1.08rem; max-width: 680px; }

.interactive-section { background: var(--cream); }
.focus-shell {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 24px;
  align-items: stretch;
}
.focus-tabs { display: flex; flex-direction: column; gap: 10px; }
.focus-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  padding: 20px 22px;
  border-radius: 18px;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: .3s ease;
  font-weight: 780;
}
.focus-tab span { display: inline-block; width: 44px; color: var(--orange); }
.focus-tab:hover { transform: translateX(5px); border-color: rgba(242,138,32,.45); }
.focus-tab.active {
  background: var(--navy);
  color: white;
  transform: translateX(10px);
  box-shadow: var(--shadow);
}
.focus-stage {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(98,181,229,.15), transparent 45%),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.focus-panel {
  position: absolute; inset: 0;
  padding: clamp(34px, 5vw, 64px);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  pointer-events: none;
  transition: opacity .34s ease, transform .34s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.focus-panel.active { opacity: 1; transform: none; pointer-events: auto; }
.panel-kicker {
  color: var(--orange);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.focus-panel h3, .journey-detail h3 {
  margin: 6px 0 16px;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.focus-panel p:not(.panel-kicker), .journey-detail p:not(.panel-kicker) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 760px;
}
.tag-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.tag-row span {
  padding: 9px 12px; border-radius: 999px;
  background: #eaf4fa; color: #16466a;
  font-size: .86rem; font-weight: 700;
}


.journey-section {
  background: white;
}
.journey-intro {
  margin-bottom: 18px;
  max-width: 1200px;
}
.journey-intro .eyebrow {
  margin-bottom: 9px;
}
.journey-intro h2 {
  font-size: clamp(2.55rem, 3.65vw, 4.05rem);
  max-width: none;
  white-space: nowrap;
  line-height: .98;
}

.journey-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--navy);
  color: white;
  padding: 16px 20px 18px;
}
.journey-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(255,255,255,.2);
}
.journey-point {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 12px;
  cursor: pointer;
  text-align: center;
  opacity: .5;
  transition: .3s ease;
}
.journey-point:hover, .journey-point.active { opacity: 1; }
.journey-point.active .dot {
  transform: scale(1.25);
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(242,138,32,.14);
}
.dot {
  display: block;
  width: 11px; height: 11px;
  margin: 7px auto 9px;
  border-radius: 50%;
  background: white;
  transition: .3s ease;
}
.journey-point strong, .journey-point small { display: block; }
.journey-point strong { font-size: .86rem; }
.journey-point small {
  margin-top: 3px;
  font-size: .64rem;
  line-height: 1.25;
  color: #b9d5e8;
}

.evolution {
  padding: 10px 28px 13px;
  background: #eef6fa;
  border-bottom: 1px solid var(--line);
}
.evolution-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
}
.evolution-line::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 6px;
  height: 2px;
  background: #ccdde7;
  border-radius: 999px;
}
.evolution-progress {
  position: absolute;
  left: 6%; top: 6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 999px;
  transition: width .42s ease;
}
.evolution-stop {
  position: relative;
  z-index: 2;
  padding-top: 17px;
  text-align: center;
  font-size: .60rem;
  color: #6b7984;
  line-height: 1.15;
  transition: .3s ease;
}
.evolution-stop::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #ccdde7;
  border: 2px solid #eef6fa;
  box-shadow: 0 0 0 1px #b7ccd8;
  transition: .3s ease;
}
.evolution-stop.active {
  color: var(--ink);
  font-weight: 800;
}
.evolution-stop.active::before {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,138,32,.14);
}

.journey-detail {
  min-height: 286px;
  padding: clamp(24px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 34px;
  align-items: center;
  background: linear-gradient(120deg, #f5fafd, #fffdf9);
  transition: opacity .2s ease, transform .2s ease;
}
.journey-detail.switching {
  opacity: .15;
  transform: translateY(8px);
}
.journey-copy h3 {
  margin: 5px 0 10px;
  font-size: clamp(1.68rem, 2.35vw, 2.48rem);
  line-height: 1.03;
}
.journey-copy p:not(.panel-kicker) {
  max-width: 720px;
  font-size: .98rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.journey-visual {
  padding-left: 26px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.company-logos {
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 2px 0 4px;
}
.company-logo {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 2px;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--navy);
}
.company-logo.nttdata {
  color: #0072bc;
  letter-spacing: -.055em;
  font-size: 1.7rem;
}
.company-logo.hpe { color: #00b388; }
.company-logo.eds {
  color: #5f6d78;
  letter-spacing: .04em;
}
.company-logo.velpia { color: #ef7d00; }
.company-logo.barrabes { color: #141414; }
.company-logo.iasoft { color: #1976b8; }

.visual-group { display: block; }
.visual-group.compact { margin-top: -1px; }
.visual-label {
  margin: 0 0 7px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .59rem;
  font-weight: 850;
}

.journey-visual .visual-group + .visual-group {
  margin-top: 13px;
}

.client-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 11px;
}
.client-logo-card {
  min-width: 0;
  min-height: 70px;
  padding: 7px 7px 6px;
  border-radius: 11px;
  border: 1px solid #dfe8ee;
  background: rgba(255,255,255,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--navy);
}
.client-logo-frame {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.client-logo-frame img {
  display: block;
  max-width: 94%;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-logo-fallback {
  min-width: 34px;
  min-height: 34px;
  padding: 0 7px;
  border-radius: 9px;
  background: #edf4f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.client-name {
  max-width: 100%;
  font-size: .52rem;
  line-height: 1.08;
  font-weight: 760;
  text-align: center;
  color: #536674;
  overflow-wrap: anywhere;
}
.client-note {
  margin: 6px 0 0 !important;
  max-width: 520px !important;
  color: #72818c !important;
  font-size: .61rem !important;
  line-height: 1.35 !important;
}

.ecosystem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ecosystem-item {
  min-height: 36px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .69rem;
  font-weight: 800;
  color: var(--navy);
}
.ecosystem-item img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}
.brand-fallback {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  background: #e6eef4;
  color: #17425f;
  font-size: .55rem;
  font-weight: 900;
}
.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.capability-row span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #eaf4fa;
  color: #16466a;
  font-size: .65rem;
  font-weight: 750;
}

@media (max-width: 1180px) {
  .nav { gap: 18px; font-size: .88rem; }
  .journey-intro h2 { white-space: normal; }
  .journey-detail { grid-template-columns: 1fr; }
  .journey-visual {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px 0 0;
  }
}

@media (max-width: 900px) {
  .journey-track { grid-template-columns: 1fr; gap: 8px; }
  .journey-track::before { display: none; }
  .journey-point {
    display: grid;
    grid-template-columns: 26px 92px 1fr;
    align-items: center;
    text-align: left;
  }
  .dot { margin: 0; }
  .journey-point small { margin: 0; }
  .evolution {
    padding: 12px 20px 14px;
    overflow-x: auto;
  }
  .evolution-line { min-width: 630px; }
}

@media (max-width: 620px) {
  .journey-intro h2 { font-size: clamp(2.15rem, 10vw, 3.1rem); }
  .company-logos { gap: 10px 16px; }
  .company-logo { font-size: 1.35rem; }
}

.achievements-section {
  background: var(--cream);
  padding-top: clamp(56px, 6vw, 82px);
  padding-bottom: clamp(66px, 7vw, 96px);
}
.achievements-section .section-intro { margin-bottom: 32px; }
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.achievement-card {
  min-height: 198px;
  padding: 18px 22px 20px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.achievement-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(242,138,32,.28);
}
.achievement-no {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .02em;
}
.achievement-card h3 {
  margin: 15px 0 8px;
  max-width: 22ch;
  font-size: clamp(1.28rem, 1.5vw, 1.58rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.achievement-card p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.52;
  font-size: .94rem;
}

/* v0.14 — Education & credentials */
.credentials-section {
  background: var(--paper);
}
.credentials-section .section-intro {
  margin-bottom: 34px;
}
.credentials-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.credential-feature {
  min-height: 235px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(98,181,229,.10), rgba(255,255,255,.96) 46%, rgba(242,138,32,.06));
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 28px;
}
.credential-mark {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  letter-spacing: -.055em;
  box-shadow: 0 18px 45px rgba(7,28,44,.14);
}
.credential-mark-degree {
  background: var(--navy);
  font-size: 2.3rem;
}
.credential-mark-language {
  background: var(--orange);
  font-size: 3.3rem;
}
.credential-label, .credentials-subhead {
  display: block;
  color: var(--orange);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 850;
}
.credential-copy h3 {
  margin: 9px 0 9px;
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.credential-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}
.credential-copy strong {
  color: var(--navy-2);
  font-size: .92rem;
}
.credentials-core-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.credential-core {
  min-height: 118px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  gap: 20px;
}
.credential-core-mark {
  flex: 0 0 auto;
  color: #ffd39a;
  font-size: 1.48rem;
  font-weight: 900;
  letter-spacing: -.025em;
}
.credential-core div { display: grid; gap: 5px; }
.credential-core strong { font-size: 1.02rem; }
.credential-core span:not(.credential-core-mark) {
  color: rgba(255,255,255,.66);
  font-size: .82rem;
  line-height: 1.35;
}
.credentials-current {
  margin-top: 34px;
}
.credentials-current-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.credential-tech {
  min-height: 132px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
}
.credential-tech-logo, .credential-tech-wordmark {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.credential-tech-logo img {
  max-width: 88px;
  max-height: 52px;
  object-fit: contain;
}
.credential-tech-wordmark {
  color: var(--navy);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.03em;
}
.credential-tech div:last-child { display: grid; gap: 6px; }
.credential-tech strong { font-size: .92rem; }
.credential-tech span { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.credentials-history {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.credentials-history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.credentials-history-row span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #eef5f8;
  color: #345164;
  font-size: .78rem;
  font-weight: 750;
}

.bring-section {
  background:
    linear-gradient(145deg, rgba(98,181,229,.11), transparent 36%),
    var(--cream);
  padding-top: clamp(58px, 6vw, 82px);
  padding-bottom: clamp(70px, 7vw, 104px);
}
.bring-section .section-intro {
  max-width: 980px;
  margin-bottom: 34px;
}
.bring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bring-card {
  position: relative;
  min-height: 278px;
  padding: 26px 30px 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: 0 14px 38px rgba(7,28,44,.055);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bring-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), rgba(98,181,229,.65));
  opacity: .9;
}
.bring-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(242,138,32,.26);
}
.bring-no {
  display: block;
  color: var(--orange);
  font-weight: 900;
  letter-spacing: .03em;
  margin-bottom: 22px;
}
.bring-card h3 {
  margin: 0;
  font-size: clamp(1.38rem, 1.7vw, 1.78rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.bring-card strong {
  display: block;
  margin-top: 10px;
  color: var(--navy-2);
  font-size: 1.02rem;
  line-height: 1.42;
}
.bring-card p {
  margin: 14px 0 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.contact-section {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(64px, 7vw, 100px) clamp(22px, 7vw, 110px) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 40px;
  background: var(--navy);
  color: white;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,19,31,.98), rgba(4,19,31,.88) 45%, rgba(7,28,44,.62)),
    url("../assets/zaragoza-hero.webp") center / cover no-repeat;
  opacity: .9;
}
.contact-copy { position: relative; z-index: 2; max-width: 760px; }
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  letter-spacing: -.055em;
  line-height: 1;
}
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.contact-photo {
  position: relative;
  z-index: 2;
  align-self: end;
  height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.contact-photo img {
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center 14%;
  border-radius: 34px 34px 0 0;
  filter: saturate(.86) contrast(1.02);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

footer {
  padding: 26px clamp(22px, 7vw, 110px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #04131f;
  color: rgba(255,255,255,.45);
  font-size: .84rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s ease, transform .72s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .executive-system { width: min(84vw, 620px); height: min(84vw, 620px); margin: 30px auto 0; }
  .achievement-grid { grid-template-columns: repeat(2,1fr); }
  .credentials-current-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav a:nth-child(3), .nav a:nth-child(4), .nav a:nth-child(5) { display: none; }
  .focus-shell { grid-template-columns: 1fr; }
  .focus-tab.active { transform: none; }
  .journey-track { grid-template-columns: 1fr; gap: 10px; }
  .journey-track::before { display: none; }
  .journey-point {
    display: grid;
    grid-template-columns: 28px 96px 1fr;
    align-items: center;
    text-align: left;
  }
  .dot { margin: 0; }
  .journey-point small { margin: 0; }
  .journey-detail { grid-template-columns: 1fr; gap: 28px; }
  .journey-brands { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .credentials-feature-grid { grid-template-columns: 1fr; }
  .credentials-core-grid { grid-template-columns: 1fr; }
  .bring-grid { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; padding-bottom: 0; }
  .contact-photo { height: 460px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 64px; }
  .brand-name { display: none; }
  .nav { gap: 14px; font-size: .84rem; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .executive-system {
    width: 92vw; height: 92vw;
    min-height: 390px;
    top: -12px;
    transform: scale(.94);
    transform-origin: center;
  }
  .pillar { width: 118px; min-height: 52px; padding: 8px 9px; }
  .pillar span { font-size: .58rem; }
  .pillar strong { font-size: .67rem; }
  .skill-node { font-size: .58rem; padding: 6px 8px; }
  .system-caption { width: 78%; bottom: -8%; }
  .focus-stage { min-height: 500px; }
  .evolution { padding: 12px 22px 18px; overflow-x: auto; }
  .evolution-line { min-width: 660px; }
  .achievement-grid { grid-template-columns: 1fr; }
  .bring-card { min-height: 0; padding: 24px 24px 26px; }
  .bring-no { margin-bottom: 18px; }
  .credential-feature { grid-template-columns: 96px 1fr; padding: 24px; min-height: 190px; gap: 20px; }
  .credential-mark { width: 92px; height: 92px; }
  .credential-mark-degree { font-size: 1.55rem; }
  .credential-mark-language { font-size: 2.2rem; }
  .credentials-current-grid { grid-template-columns: 1fr; }
  .credential-tech { grid-template-columns: 80px 1fr; }
  .bring-grid { grid-template-columns: 1fr; }
  .contact-photo { height: 400px; }
  footer { flex-direction: column; }
}

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

@media (max-width: 720px) {
  .client-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* v0.8 — logo-first client gallery */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.client-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 11px;
}

.client-logo-card {
  min-width: 0;
  min-height: 82px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dfe8ee;
  background: rgba(255,255,255,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.client-logo-frame {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.client-logo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 54px;
  object-fit: contain;
}

.client-name,
.client-logo-fallback { display: none !important; }

@media (max-width: 1180px) {
  .client-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .client-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo-card { min-height: 74px; padding: 8px 10px; }
  .client-logo-frame { height: 50px; }
  .client-logo-frame img { max-height: 46px; }
}


/* v0.9 — all-local logo system */
.company-logos {
  min-height: 62px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 0 0 7px;
}
.company-logo-card {
  height: 54px;
  max-width: 190px;
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}
.company-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.client-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 11px;
}
.client-logo-card {
  min-width: 0;
  min-height: 88px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid #dbe5ec;
  background: rgba(255,255,255,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.client-logo-frame {
  width: 100%;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.client-logo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 96%;
  max-height: 62px;
  object-fit: contain;
}

.ecosystem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.partner-logo-card {
  min-width: 94px;
  height: 54px;
  padding: 6px 10px;
  border-radius: 11px;
  border: 1px solid #dbe5ec;
  background: rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 112px;
  max-height: 42px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .client-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .client-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo-card { min-height: 78px; padding: 7px 8px; }
  .client-logo-frame { height: 56px; }
  .client-logo-frame img { max-height: 52px; }
  .company-logo-card { height: 46px; max-width: 145px; }
  .company-logo-card img { max-height: 44px; }
  .partner-logo-card { min-width: 82px; height: 48px; }
  .partner-logo-card img { max-width: 96px; max-height: 36px; }
}


/* v0.9.1 — normalized logo system + cache-safe build */

/* Employers: same visual language as client cards */
.company-logos {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 0 0 8px;
}

.company-logo-card {
  width: 172px;
  height: 78px;
  max-width: none;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dbe5ec;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.company-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 52px;
  object-fit: contain;
}

/* Clients: logo-first, uniform cards */
.client-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.client-logo-card {
  min-width: 0;
  min-height: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbe5ec;
  background: rgba(255,255,255,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.client-logo-frame {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 56px;
  object-fit: contain;
}

/* Partners: real logos only, no textual initials */
.ecosystem-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.partner-logo-card {
  min-width: 120px;
  width: 120px;
  height: 58px;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1px solid #dbe5ec;
  background: rgba(255,255,255,.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 44px;
  object-fit: contain;
}

/* Make the NTT DATA employer card breathe like the others */
.company-logo-card[title="NTT DATA"] img {
  max-width: 88%;
  max-height: 48px;
}

/* Barrabés is intentionally constrained to the same visual weight */
.company-logo-card[title="Barrabés"] img {
  max-width: 88%;
  max-height: 42px;
}

@media (max-width: 1180px) {
  .client-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .company-logo-card {
    width: 155px;
  }
}

@media (max-width: 760px) {
  .client-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-logo-card {
    width: calc(50% - 5px);
    height: 70px;
  }
  .partner-logo-card {
    width: 108px;
    min-width: 108px;
    height: 54px;
  }
}


/* v0.9.2 — compact employer and partner cards */

/* Employers: allow three logos on one row in desktop layouts */
.company-logo-card {
  width: 142px;
  height: 72px;
  padding: 8px 10px;
}

.company-logo-card img {
  max-width: 90%;
  max-height: 46px;
}

/* Partners: allow four logos on one row */
.partner-logo-card {
  width: 102px;
  min-width: 102px;
  height: 54px;
  padding: 6px 8px;
}

.partner-logo-card img {
  max-width: 92%;
  max-height: 40px;
}

@media (max-width: 1180px) {
  .company-logo-card {
    width: 132px;
  }

  .partner-logo-card {
    width: 96px;
    min-width: 96px;
  }
}

@media (max-width: 760px) {
  .company-logo-card {
    width: calc(50% - 5px);
    height: 68px;
  }

  .partner-logo-card {
    width: 96px;
    min-width: 96px;
    height: 52px;
  }
}


/* v0.10 — rebalance Journey: employers move to the narrative side */
.journey-detail {
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 30px;
}

.journey-copy,
.journey-visual {
  align-self: flex-start;
  justify-content: flex-start;
}

.journey-copy {
  display: flex;
  flex-direction: column;
}

.employer-strip {
  margin: 0 0 18px;
}

.employer-strip .company-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  min-height: 0;
}

/* Employers get slightly more visual weight than client logos */
.employer-strip .company-logo-card {
  width: 150px;
  height: 76px;
  padding: 9px 10px;
  border: 1px solid #d6e1e8;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
}

.employer-strip .company-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 50px;
  object-fit: contain;
}

/* A sole employer (NTT DATA stages) can carry more weight */
.employer-strip .company-logo-card:only-child {
  width: 176px;
  height: 80px;
}

.employer-strip .company-logo-card:only-child img {
  max-width: 90%;
  max-height: 52px;
}

/* Clients remain visually strong, but slightly subordinate */
.client-logo-card {
  min-height: 80px;
}

.client-logo-frame {
  height: 54px;
}

.client-logo-frame img {
  max-height: 48px;
}

/* Keep both columns aligned to the same top baseline */
.journey-visual {
  margin-top: 0;
  padding-top: 0;
}

.journey-copy .panel-kicker {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .employer-strip .company-logo-card {
    width: 138px;
  }

  .employer-strip .company-logo-card:only-child {
    width: 164px;
  }
}

@media (max-width: 760px) {
  .journey-detail {
    padding-top: 26px;
    padding-bottom: 28px;
  }

  .employer-strip {
    margin-bottom: 18px;
  }

  .employer-strip .company-logo-card,
  .employer-strip .company-logo-card:only-child {
    width: calc(50% - 5px);
    height: 68px;
  }
}


/* v0.10.2 — stronger personal brand in the header */
.brand {
  gap: 13px;
}

.brand-name {
  display: inline-block;
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  transition: width .3s ease, height .3s ease, box-shadow .3s ease;
}

.brand-initials,
.brand-avatar {
  position: absolute;
  inset: 0;
  transition: opacity .28s ease, transform .35s ease;
}

.brand-initials {
  display: grid;
  place-items: center;
  opacity: 1;
  transform: scale(1);
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.86);
}

/* Once the hero is left behind, reveal the alternate portrait. */
.site-header.is-content-header .brand-initials {
  opacity: 0;
  transform: scale(.78);
}

.site-header.is-content-header .brand-avatar {
  opacity: 1;
  transform: scale(1);
}

.site-header.is-content-header .brand-mark {
  box-shadow: 0 0 0 2px rgba(255,255,255,.14);
}

@media (max-width: 760px) {
  .brand-name {
    display: none;
  }
}


/* v0.10.3 — compact CV download menu in the hero */
.cv-menu-wrap {
  position: relative;
  display: inline-flex;
}

.cv-menu-trigger {
  min-width: 68px;
  cursor: pointer;
}

.cv-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 238px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(10, 31, 47, .97);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.cv-menu[hidden] {
  display: none;
}

.cv-menu a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: white;
  transition: background .18s ease, transform .18s ease;
}

.cv-menu a:hover,
.cv-menu a:focus-visible {
  background: rgba(255,255,255,.09);
  transform: translateY(-1px);
  outline: none;
}

.cv-menu strong {
  font-size: .86rem;
  line-height: 1.15;
}

.cv-menu span {
  color: rgba(255,255,255,.62);
  font-size: .68rem;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .cv-menu {
    left: auto;
    right: 0;
    width: 220px;
  }
}


/* v0.12 — Focus content refresh + consistent top alignment */
.focus-panel {
  justify-content: flex-start;
}

/* v0.12.1 — Focus layout refinements */
.interactive-section .section-intro {
  max-width: 1180px;
}

.focus-panel {
  padding-top: 28px;
}


/* v0.12.2 — Focus card height + kicker alignment + copy refinement */
.focus-stage {
  min-height: 475px;
}

.focus-panel {
  padding-top: 18px;
}

@media (max-width: 700px) {
  .focus-stage {
    min-height: 560px;
  }
}

/* v0.12.3 — Focus geometry refinement */
/* Bring the interactive block closer to the section headline. */
.interactive-section .section-intro {
  margin-bottom: 26px;
}

/* Give more horizontal room to the narrative panel while keeping tabs readable. */
.focus-shell {
  grid-template-columns: minmax(360px, .68fr) minmax(0, 1.32fr);
  gap: 20px;
}

/* Extra vertical safety for two rows of capability chips. */
.focus-stage {
  min-height: 505px;
}

/* Align the kicker deliberately with the first tab label. */
.focus-panel {
  padding-top: 28px;
  padding-bottom: 34px;
}

.focus-panel .panel-kicker {
  margin: 0 0 4px;
}

@media (max-width: 1180px) {
  .focus-shell {
    grid-template-columns: minmax(330px, .76fr) minmax(0, 1.24fr);
  }
}

@media (max-width: 900px) {
  .interactive-section .section-intro {
    margin-bottom: 34px;
  }
  .focus-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .focus-stage {
    min-height: 540px;
  }
}

@media (max-width: 700px) {
  .focus-stage {
    min-height: 590px;
  }
  .focus-panel {
    padding-top: 24px;
    padding-bottom: 30px;
  }
}


/* v0.12.4 — Focus paragraph rhythm */
.focus-panel > p:not(.panel-kicker) {
  margin: 0;
}

.focus-panel > p:not(.panel-kicker) + p:not(.panel-kicker) {
  margin-top: 10px;
}

.focus-panel > .tag-row {
  margin-top: 22px;
}

/* v0.14.2 — compact, logo-led Education & Credentials */
.credentials-section {
  padding-top: clamp(54px, 5.2vw, 74px);
  padding-bottom: clamp(62px, 6.2vw, 88px);
}
.credentials-section .section-intro {
  margin-bottom: 24px;
}
.credentials-feature-grid {
  gap: 14px;
}
.credential-feature {
  min-height: 178px;
  padding: 22px 26px;
  grid-template-columns: 112px 1fr;
  align-items: start;
  gap: 22px;
}
.credential-mark {
  width: 108px;
  height: 108px;
  margin-top: 0;
  box-shadow: 0 12px 30px rgba(7,28,44,.11);
}
.credential-mark-image {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(21,70,106,.10);
  padding: 10px;
}
.credential-mark-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.credential-mark-language {
  background: var(--orange);
}
.credential-mark-flag img {
  width: 68px;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.15));
}
.credential-copy {
  padding-top: 1px;
}
.credential-label {
  line-height: 1;
}
.credential-copy h3 {
  margin: 7px 0 6px;
  font-size: clamp(1.42rem, 1.8vw, 1.92rem);
}
.credential-copy p {
  margin: 0 0 7px;
  line-height: 1.42;
}
.credentials-core-grid {
  gap: 12px;
  margin-top: 14px;
}
.credential-core {
  min-height: 104px;
  padding: 18px 22px;
}
.credentials-current {
  margin-top: 25px;
}
.credentials-current-grid {
  gap: 10px;
  margin-top: 10px;
}
.credential-tech {
  min-height: 118px;
  padding: 15px 16px 16px;
  grid-template-columns: 82px 1fr;
  gap: 12px;
}
.credential-tech-logo,
.credential-tech-wordmark {
  height: 58px;
}
.credential-tech-logo img {
  max-width: 80px;
  max-height: 46px;
}
.credential-tech-logo-openai img {
  max-width: 50px;
  max-height: 50px;
}
.credentials-history {
  margin-top: 20px;
  padding-top: 18px;
}
.credentials-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.credential-history-card {
  min-height: 100px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
}
.credential-history-logo {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.credential-history-logo img {
  max-width: 88px;
  max-height: 44px;
  object-fit: contain;
}
.credential-history-card > div:last-child {
  display: grid;
  gap: 4px;
}
.credential-history-card strong {
  color: var(--navy);
  font-size: .86rem;
}
.credential-history-card span {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.32;
}

@media (max-width: 1180px) {
  .credentials-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .credential-feature { min-height: 164px; }
  .credentials-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .credentials-section { padding-top: 48px; padding-bottom: 62px; }
  .credential-feature {
    grid-template-columns: 82px 1fr;
    padding: 20px;
    min-height: 156px;
    gap: 16px;
  }
  .credential-mark { width: 80px; height: 80px; }
  .credential-mark-image { padding: 7px; }
  .credential-mark-flag img { width: 52px; }
  .credential-copy h3 { font-size: 1.34rem; }
  .credentials-history-grid { grid-template-columns: 1fr; }
  .credential-history-card { grid-template-columns: 82px 1fr; }
}

/* v0.14.3 — tighter technical credentials + circular feature marks */
.credential-mark-image,
.credential-mark-flag {
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
}
.credential-mark-image {
  background: white;
  border: 1px solid rgba(21,70,106,.12);
}
.credential-mark-image img {
  width: auto;
  height: 132%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}
.credential-mark-flag {
  background: transparent;
  border: 1px solid rgba(7,28,44,.08);
}
.credential-mark-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: none;
}

.credentials-current {
  margin-top: 22px;
}
.credential-tech {
  min-height: 94px;
  padding: 11px 14px;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}
.credential-tech-logo,
.credential-tech-wordmark {
  height: 46px;
}
.credential-tech-logo img {
  max-width: 70px;
  max-height: 40px;
}
.credential-tech-logo-openai img {
  max-width: 42px;
  max-height: 42px;
}
.credential-tech-wordmark {
  font-size: 1.12rem;
}
.credential-tech div:last-child {
  gap: 4px;
}
.credential-tech strong {
  font-size: .88rem;
}
.credential-tech span {
  font-size: .74rem;
  line-height: 1.28;
}

.credentials-history {
  margin-top: 16px;
  padding-top: 15px;
}
.credentials-history-grid {
  gap: 9px;
  margin-top: 9px;
}
.credential-history-card {
  min-height: 80px;
  padding: 9px 12px;
  grid-template-columns: 74px 1fr;
  gap: 9px;
}
.credential-history-logo {
  height: 40px;
}
.credential-history-logo img {
  max-width: 72px;
  max-height: 36px;
}
.credential-history-card > div:last-child {
  gap: 3px;
}
.credential-history-card strong {
  font-size: .82rem;
}
.credential-history-card span {
  font-size: .69rem;
  line-height: 1.25;
}

@media (max-width: 700px) {
  .credential-mark-image img {
    height: 136%;
  }
  .credential-tech {
    min-height: 88px;
    grid-template-columns: 66px 1fr;
  }
  .credential-history-card {
    min-height: 76px;
    grid-template-columns: 68px 1fr;
  }
}

/* v0.14.4 — final Credentials density and alignment tuning */
.credentials-section {
  padding-top: clamp(64px, 6.2vw, 86px);
}

/* Keep the hero credentials dominant, but remove unused vertical air. */
.credential-feature {
  min-height: 160px;
  padding: 18px 24px;
  grid-template-columns: 98px 1fr;
  gap: 20px;
}
.credential-mark {
  width: 94px;
  height: 94px;
}

/* University seal: visible inside the circular crop instead of over-zoomed. */
.credential-mark-image img {
  width: auto;
  height: 110%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

/* Current cloud & digital credentials: tighter, same readable type. */
.credential-tech {
  min-height: 80px;
  padding: 8px 12px;
  grid-template-columns: 64px 1fr;
  gap: 8px;
}
.credential-tech-logo,
.credential-tech-wordmark {
  height: 38px;
}
.credential-tech-logo img {
  max-width: 62px;
  max-height: 34px;
}
.credential-tech-logo-openai img {
  max-width: 36px;
  max-height: 36px;
}
.credential-tech div:last-child {
  gap: 3px;
}

/* Earlier technical certifications: compact visual strip. */
.credential-history-card {
  min-height: 68px;
  padding: 7px 10px;
  grid-template-columns: 62px 1fr;
  gap: 8px;
}
.credential-history-logo {
  height: 34px;
}
.credential-history-logo img {
  max-width: 60px;
  max-height: 30px;
}
.credential-history-card > div:last-child {
  gap: 2px;
}

@media (max-width: 700px) {
  .credentials-section { padding-top: 54px; }
  .credential-feature {
    min-height: 148px;
    grid-template-columns: 78px 1fr;
    padding: 18px;
    gap: 14px;
  }
  .credential-mark { width: 76px; height: 76px; }
  .credential-mark-image img { height: 110%; }
  .credential-tech {
    min-height: 76px;
    grid-template-columns: 60px 1fr;
  }
  .credential-history-card {
    min-height: 66px;
    grid-template-columns: 58px 1fr;
  }
}

/* v0.14.6 — credentials cleanup after v0.14.5 malformed override */
/* University mark: show the complete emblem inside the circle. */
.credential-mark-image {
  background: #fff;
  padding: 7px;
}
.credential-mark-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Keep the two feature cards prominent, but tighter. */
.credential-feature {
  min-height: 136px;
  padding: 12px 20px;
  grid-template-columns: 78px 1fr;
  gap: 16px;
}
.credential-mark {
  width: 76px;
  height: 76px;
}
.credential-copy h3 {
  margin: 5px 0 5px;
}
.credential-copy p {
  margin: 0 0 6px;
  line-height: 1.38;
}

/* PMP / ITIL / DevOps: same visual height as the current technical credentials. */
.credentials-core-grid {
  gap: 10px;
  margin-top: 12px;
}
.credential-core {
  min-height: 68px;
  padding: 7px 14px;
  gap: 14px;
  border-radius: 16px;
}
.credential-core-mark {
  font-size: 1.34rem;
}
.credential-core div {
  gap: 2px;
}
.credential-core strong {
  font-size: .96rem;
  line-height: 1.15;
}
.credential-core span:not(.credential-core-mark) {
  font-size: .76rem;
  line-height: 1.24;
}

/* Cloud & digital credentials: compact strip. */
.credentials-current {
  margin-top: 14px;
}
.credentials-current-grid {
  margin-top: 7px;
  gap: 8px;
}
.credential-tech {
  min-height: 68px;
  padding: 5px 9px;
  grid-template-columns: 56px 1fr;
  gap: 7px;
}
.credential-tech-logo,
.credential-tech-wordmark {
  height: 30px;
}
.credential-tech-logo img {
  max-width: 54px;
  max-height: 28px;
}
.credential-tech-logo-openai img {
  max-width: 29px;
  max-height: 29px;
}
.credential-tech-wordmark {
  font-size: .98rem;
}
.credential-tech div:last-child {
  gap: 1px;
}
.credential-tech strong {
  font-size: .86rem;
}
.credential-tech span {
  font-size: .72rem;
  line-height: 1.22;
}

/* Earlier certifications: no divider, even more compact. */
.credentials-history {
  margin-top: 10px;
  padding-top: 0;
  border-top: none !important;
}
.credentials-history-grid {
  margin-top: 6px;
  gap: 8px;
}
.credential-history-card {
  min-height: 52px;
  padding: 4px 8px;
  grid-template-columns: 50px 1fr;
  gap: 6px;
}
.credential-history-logo {
  height: 25px;
}
.credential-history-logo img {
  max-width: 49px;
  max-height: 24px;
}
.credential-history-card > div:last-child {
  gap: 0;
}
.credential-history-card strong {
  font-size: .80rem;
}
.credential-history-card span {
  font-size: .67rem;
  line-height: 1.18;
}

@media (max-width: 700px) {
  .credential-feature {
    min-height: 132px;
    grid-template-columns: 68px 1fr;
    padding: 12px 15px;
    gap: 12px;
  }
  .credential-mark {
    width: 66px;
    height: 66px;
  }
  .credential-mark-image { padding: 6px; }
  .credential-core {
    min-height: 66px;
    padding: 7px 12px;
  }
  .credential-tech {
    min-height: 64px;
    grid-template-columns: 52px 1fr;
  }
  .credential-history-card {
    min-height: 50px;
    grid-template-columns: 46px 1fr;
  }
}


/* v0.15.1 — What I bring order + headline refinement */
.bring-section .section-intro {
  max-width: none;
}
.bring-section .section-intro h2 {
  font-size: clamp(2.55rem, 3.7vw, 4.35rem);
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .bring-section .section-intro h2 {
    white-space: normal;
    font-size: clamp(2.35rem, 5.1vw, 4rem);
  }
}


/* v0.16 — contact finale: larger portrait blended into Zaragoza */
.contact-section {
  min-height: 690px;
  padding: clamp(66px, 6.4vw, 96px) clamp(22px, 7vw, 110px) clamp(86px, 8vw, 116px);
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 28px;
  align-items: center;
}

.contact-bg {
  opacity: 1;
  background:
    linear-gradient(90deg,
      rgba(4,19,31,.99) 0%,
      rgba(4,19,31,.95) 28%,
      rgba(4,19,31,.74) 49%,
      rgba(4,19,31,.36) 72%,
      rgba(4,19,31,.20) 100%),
    linear-gradient(180deg,
      rgba(7,28,44,.08) 0%,
      rgba(7,28,44,.05) 62%,
      rgba(4,19,31,.72) 100%),
    url("../assets/zaragoza-hero.webp") center / cover no-repeat;
}

.contact-copy {
  z-index: 4;
  max-width: 740px;
  align-self: center;
}

.contact-copy h2 {
  max-width: 12.5ch;
  font-size: clamp(2.9rem, 4.65vw, 4.9rem);
  line-height: .99;
}

.contact-copy > p:not(.eyebrow) {
  margin-top: 18px;
}

.contact-photo {
  position: absolute;
  z-index: 3;
  top: 0;
  right: -1.5%;
  bottom: 0;
  width: 53%;
  height: 100%;
  display: block;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 8%, rgba(0,0,0,.78) 22%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 8%, rgba(0,0,0,.78) 22%, #000 38%, #000 100%);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(.92) contrast(1.03) brightness(.97);
  -webkit-mask-image: none;
  mask-image: none;
}

.contact-photo::before,
.contact-photo::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.contact-photo::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,19,31,.48) 0%, transparent 24%),
    linear-gradient(180deg, rgba(7,28,44,.08) 0%, transparent 38%);
}

.contact-photo::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(4,19,31,.96) 0%, rgba(4,19,31,.58) 28%, transparent 100%);
}

@media (max-width: 1180px) {
  .contact-section {
    min-height: 650px;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  }
  .contact-photo { width: 50%; }
  .contact-copy h2 { max-width: 11.5ch; }
}

@media (max-width: 900px) {
  .contact-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .contact-copy {
    max-width: none;
    padding-bottom: 24px;
  }
  .contact-copy h2 { max-width: 13ch; }
  .contact-photo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: calc(100% + 44px);
    height: 520px;
    margin-left: -22px;
    margin-right: -22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  }
  .contact-photo img {
    object-position: 50% 15%;
  }
  .contact-photo::before {
    background: linear-gradient(180deg, rgba(4,19,31,.28) 0%, transparent 24%);
  }
  .contact-photo::after {
    height: 32%;
  }
}

@media (max-width: 700px) {
  .contact-photo { height: 430px; }
}


/* v0.17 - mobile-only release candidate refinements. Desktop remains unchanged. */
.mobile-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  padding: 0;
}

@media (max-width: 760px) {
  #focus,
  #journey,
  #achievements,
  #bring,
  #credentials,
  #contact {
    scroll-margin-top: 76px;
  }

  .site-header {
    min-height: 64px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    display: inline-block;
    max-width: 176px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .82rem;
    letter-spacing: .025em;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 52;
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 51;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(7,28,44,.98);
    box-shadow: 0 18px 44px rgba(0,0,0,.3);
    backdrop-filter: blur(18px);
  }

  .site-header.menu-open .nav {
    display: flex;
  }

  .nav a,
  .nav a:nth-child(3),
  .nav a:nth-child(4),
  .nav a:nth-child(5) {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .92rem;
    opacity: .88;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255,255,255,.07);
    opacity: 1;
  }

  .executive-system {
    width: 86vw;
    height: 86vw;
    min-height: 0;
    top: -4px;
    transform: none;
  }

  .pillar {
    width: 108px;
    min-height: 48px;
    padding: 7px 8px;
  }
  .pillar span { font-size: .56rem; }
  .pillar strong { font-size: .64rem; }
  .skill-node { font-size: .54rem; padding: 5px 7px; }
  .system-caption { width: 86%; bottom: -10%; }

  .evolution {
    padding: 12px 16px 14px;
    overflow: visible;
  }

  .evolution-line {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .evolution-line::before,
  .evolution-progress {
    display: none;
  }

  .evolution-stop {
    min-height: 38px;
    padding: 9px 8px 9px 24px;
    border: 1px solid rgba(16,34,53,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.54);
    text-align: left;
    font-size: .64rem;
    line-height: 1.18;
  }

  .evolution-stop::before {
    top: 50%;
    left: 9px;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    border-width: 1px;
  }

  .evolution-stop:last-child {
    grid-column: 1 / -1;
  }
}

/* v0.19 final — compact Credentials fills the full desktop viewport so the next section never peeks through behind the sticky header. */
@media (min-width: 761px) {
  .credentials-section {
    min-height: 100vh;
  }
}

/* v0.20 — restore breathing room to desktop credential rows without changing mobile. */
@media (min-width: 761px) {
  .credential-core {
    min-height: 82px;
    padding: 10px 16px;
  }

  .credential-tech {
    min-height: 76px;
    padding: 8px 11px;
  }

  .credential-history-card {
    min-height: 60px;
    padding: 6px 10px;
  }
}
