:root {
  --navy-950: #03131f;
  --navy-900: #071a2b;
  --navy-800: #123247;
  --navy-700: #24485c;
  --glacier-500: #78c7d6;
  --glacier-300: #a8dde7;
  --glacier-100: #e6f4f6;
  --stone-50: #f5f8f7;
  --stone-100: #e8eeec;
  --stone-300: #c8d2cf;
  --stone-600: #596965;
  --ink: #15262d;
  --burgundy: #a63d4f;
  --burgundy-dark: #812a3b;
  --white: #ffffff;
  --font-sans: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-code: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --container: 1240px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-soft: 0 22px 60px rgba(3, 19, 31, 0.12);
  --shadow-dark: 0 30px 90px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--glacier-300);
  color: var(--navy-950);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--glacier-500);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 3rem), var(--container));
  min-height: 80px;
  margin-inline: auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  color: var(--glacier-300);
  font-family: var(--font-serif);
  font-size: 0.83rem;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 1px;
  background: var(--glacier-300);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--white);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(4, 17, 29, 0.28);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.45);
}

.language-switch button {
  padding: 0.2rem;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  color: var(--glacier-300);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 790px;
  overflow: hidden;
  align-items: center;
  color: var(--white);
  isolation: isolate;
}

.hero-landscape,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-landscape {
  z-index: -3;
  object-fit: cover;
  object-position: 52% center;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 14, 24, 0.94) 0%, rgba(4, 18, 30, 0.82) 43%, rgba(7, 26, 43, 0.28) 72%, rgba(7, 26, 43, 0.44) 100%),
    linear-gradient(0deg, rgba(3, 14, 24, 0.7) 0%, transparent 32%);
}

.hero::after {
  position: absolute;
  right: -8%;
  bottom: -20%;
  z-index: -1;
  width: 54vw;
  height: 54vw;
  border: 1px solid rgba(185, 232, 239, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(185, 232, 239, 0.035),
    0 0 0 180px rgba(185, 232, 239, 0.025);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: 9.5rem 7rem;
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--glacier-300);
}

.availability-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--glacier-500);
  box-shadow: 0 0 0 6px rgba(121, 206, 223, 0.13);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin-top: 0.55rem;
  color: var(--glacier-300);
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 650px;
  margin: 1.8rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--glacier-300);
  color: var(--navy-950);
}

.button-primary:hover {
  background: var(--white);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--glacier-300);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: flex;
  max-width: 650px;
  margin: 3rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  list-style: none;
}

.hero-facts li {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding-right: 1rem;
}

.hero-facts strong {
  color: var(--glacier-300);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}

.portrait-card {
  position: relative;
  width: min(100%, 330px);
  margin: 0;
  justify-self: end;
}

.portrait-card::before {
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 1px solid rgba(185, 232, 239, 0.3);
  border-radius: var(--radius-lg);
  content: "";
}

.portrait-frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  box-shadow: var(--shadow-dark);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  filter: saturate(0.82) contrast(1.04);
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--glacier-300);
}

.section {
  padding-block: clamp(5rem, 10vw, 8.5rem);
}

.intro-section {
  position: relative;
  overflow: hidden;
  background: var(--stone-50);
}

.intro-section::after {
  position: absolute;
  top: 50%;
  right: -280px;
  width: 700px;
  height: 700px;
  background: none;
  opacity: 0.25;
  pointer-events: none;
  content: "";
  transform: translateY(-50%);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(3rem, 10vw, 8rem);
}

.intro-grid h2,
.section-heading h2,
.ai-intro h2,
.education-grid h2,
.contact-content h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.intro-copy {
  max-width: 650px;
  color: #40505b;
  font-size: 1.06rem;
}

.intro-copy > p:first-child {
  margin-top: 0;
}

.pull-quote {
  margin: 2.2rem 0 0;
  padding: 1.1rem 0 1.1rem 1.5rem;
  border-left: 3px solid var(--burgundy);
  color: var(--navy-800);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.experience-section {
  position: relative;
  isolation: isolate;
  background: var(--stone-50);
}

.experience-section::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: none;
  opacity: 0.32;
  content: "";
  pointer-events: none;
}

.experience-heading {
  margin-bottom: 2rem;
}

.journey-caption {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.6rem;
  color: var(--navy-700);
  font-size: 0.8rem;
}

.journey-caption > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--stone-300);
  border-radius: 50%;
  color: var(--burgundy);
}

.experience-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 2rem 0 0;
  list-style: none;
}

.experience-timeline::before {
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--stone-300) 0 7px, transparent 7px 13px);
  content: "";
}

.experience-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  padding: 1.7rem;
  border: 1px solid rgba(13, 42, 61, 0.13);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(4, 17, 29, 0.05);
}

.experience-card::before {
  position: absolute;
  top: -2.35rem;
  left: 1.7rem;
  width: 12px;
  height: 12px;
  border: 4px solid var(--stone-50);
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 1px var(--stone-300);
  content: "";
  box-sizing: content-box;
}

.experience-card-current {
  border-color: rgba(121, 206, 223, 0.58);
  background: linear-gradient(145deg, var(--white), var(--glacier-100));
}

.experience-card-current::before {
  background: var(--navy-700);
  box-shadow: 0 0 0 1px var(--navy-700), 0 0 0 5px var(--glacier-100);
}

.experience-period {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--stone-600);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.experience-period span {
  color: var(--burgundy);
  font-family: var(--font-serif);
}

.experience-period strong {
  text-align: right;
}

.experience-company {
  margin: 2rem 0 1.25rem;
}

.experience-company h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.experience-company p,
.experience-card > p {
  color: var(--stone-600);
}

.experience-employer {
  display: inline-block;
  min-height: 44px;
  padding-block: 0.3rem;
  text-decoration: underline;
  text-decoration-color: var(--stone-300);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.experience-employer:hover {
  color: var(--burgundy);
}

.experience-employer-name {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
}

.experience-company p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-card > p {
  margin: 0 0 1.5rem;
  font-size: 0.91rem;
  line-height: 1.7;
}

.experience-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: auto;
}

.experience-stack span {
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: var(--stone-100);
  color: var(--navy-700);
  font-size: 0.65rem;
  font-weight: 700;
}

.current-badge {
  position: absolute;
  top: -0.72rem;
  right: 1rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.projects-section {
  background: var(--stone-100);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.section-heading > p {
  max-width: 440px;
  margin: 0 0 0.5rem auto;
  color: var(--stone-600);
}

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

.project-card {
  display: flex;
  grid-column: span 6;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(13, 42, 61, 0.12);
  border-radius: var(--radius-md);
  background: var(--stone-50);
  box-shadow: 0 12px 36px rgba(4, 17, 29, 0.06);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card-featured {
  display: grid;
  grid-column: span 12;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.project-card:hover {
  border-color: rgba(126, 39, 67, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.project-media {
  position: relative;
  display: grid;
  min-height: 290px;
  overflow: hidden;
  background: var(--navy-900);
  place-items: center;
}

.project-card-featured .project-media {
  min-height: 390px;
}

.project-capture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.project-card:hover .project-capture img {
  transform: scale(1.035);
}

.project-visual-market {
  padding: clamp(1.4rem, 4vw, 3rem);
  background: radial-gradient(circle at 88% 16%, rgba(126, 39, 67, 0.44), transparent 34%), linear-gradient(150deg, #122e42, #071a2b);
}

.product-window,
.capture-window {
  width: min(100%, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #f7f8f6;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
}

.window-bar {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  background: #e6e9e8;
}

.window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa5a9;
}

.window-bar span {
  margin-left: auto;
  color: #53646d;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.market-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.market-copy strong {
  width: 38%;
  height: 13px;
  border-radius: 4px;
  background: var(--navy-800);
}

.market-preview {
  min-height: 278px;
  padding: 22px;
  background: linear-gradient(150deg, #f8f5f2, #e9f2f2);
}

.market-nav b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
}

.market-nav span {
  width: 42%;
  height: 8px;
  border-radius: 5px;
  background: #c9d4d4;
}

.market-nav i {
  width: 22px;
  height: 22px;
  border: 2px solid var(--navy-700);
  border-radius: 50%;
}

.market-copy {
  display: grid;
  gap: 12px;
  margin: 37px 0 28px;
}

.market-copy strong {
  width: 55%;
  height: 20px;
}

.market-copy span {
  width: 38%;
  height: 8px;
  border-radius: 5px;
  background: #aab8b9;
}

.market-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.market-products i {
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--glacier-300), #ffffff 64%);
  box-shadow: 0 8px 20px rgba(13, 42, 61, 0.08);
}

.project-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.55rem, 3vw, 2.2rem);
}

.project-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--stone-600);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-kicker span {
  color: var(--burgundy);
  font-family: var(--font-serif);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-meta span {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--glacier-100);
  color: var(--navy-700);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.project-body h3 {
  margin: 1rem 0 0.65rem;
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.22;
}

.project-body p {
  margin: 0 0 1rem;
  color: var(--stone-600);
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-points {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  color: var(--stone-600);
  font-size: 0.8rem;
  line-height: 1.55;
}

.project-points li + li {
  margin-top: 0.35rem;
}

.project-points li::marker {
  color: var(--burgundy);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.3rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.project-case {
  width: 100%;
  margin-top: 1.5rem;
  border-top: 1px solid var(--stone-300);
}

.project-case summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-block: 0.9rem;
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.project-case summary::-webkit-details-marker {
  display: none;
}

.case-toggle-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

details[open] > summary .case-toggle-icon {
  transform: rotate(45deg);
}

.project-case dl {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 0.5rem;
  padding: 0.6rem 0 0.5rem 1rem;
  border-left: 2px solid var(--glacier-500);
}

.project-case dt {
  margin-bottom: 0.3rem;
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 700;
}

.project-case dd {
  margin: 0;
  color: var(--stone-600);
  font-size: 0.84rem;
  line-height: 1.65;
}

.demo-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.demo-heading .eyebrow {
  margin-bottom: 0.7rem;
}

.demo-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.demo-heading > p {
  margin: 0;
  color: #40505b;
  font-size: 0.9rem;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  background: var(--navy-800);
  color: var(--white);
}

.demo-toolbar > strong {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.demo-toolbar > strong > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--glacier-300);
  color: var(--navy-900);
  font-size: 0.7rem;
}

.demo-badge {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(185, 232, 239, 0.3);
  border-radius: 999px;
  color: var(--glacier-300);
  font-size: 0.66rem;
}

.demo-reset {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--stone-300);
  border-radius: 8px;
  background: var(--stone-50);
  color: var(--burgundy);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-reset:hover {
  background: var(--stone-100);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--burgundy);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--burgundy-dark);
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.project-capture-api {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: linear-gradient(145deg, #0b2436, #143d54);
}

.capture-window img {
  display: block;
  aspect-ratio: 16 / 10;
  padding: 0.8rem;
  background: var(--white);
}

.project-visual-api {
  padding: clamp(1.6rem, 4vw, 3rem);
  background: radial-gradient(circle at 80% 12%, rgba(142, 216, 232, 0.28), transparent 30%), var(--navy-900);
}

.api-preview {
  width: min(100%, 430px);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.api-preview header,
.api-preview > div {
  display: grid;
  grid-template-columns: 58px 1fr 35%;
  align-items: center;
  gap: 10px;
}

.api-preview header {
  grid-template-columns: 1fr 54px;
  margin-bottom: 1rem;
  color: var(--navy-800);
  font-size: 0.65rem;
  font-weight: 700;
}

.api-preview header i,
.api-preview > div i,
.api-preview > div span {
  height: 7px;
  border-radius: 5px;
  background: #d5ddde;
}

.api-preview > div {
  margin-top: 8px;
  padding: 0.7rem;
  border: 1px solid #dce3e3;
  border-radius: 7px;
}

.api-preview > div b {
  color: #2b756c;
  font-size: 0.57rem;
}

.api-preview > div:last-child b {
  color: var(--burgundy);
}

.project-capture-phone {
  display: flex;
  gap: 1.5rem;
  background: linear-gradient(145deg, var(--glacier-100), #9dd4df);
}

.phone-shell {
  position: relative;
  height: 240px;
  padding: 9px;
  border: 5px solid var(--navy-900);
  border-radius: 24px;
  background: var(--navy-900);
  box-shadow: 0 18px 35px rgba(4, 17, 29, 0.25);
}

.phone-shell > span {
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 1;
  width: 34px;
  height: 5px;
  border-radius: 9px;
  background: var(--navy-900);
  transform: translateX(-50%);
}

.phone-shell img {
  display: block;
  width: auto;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
}

.phone-caption {
  display: grid;
  gap: 11px;
}

.phone-caption i {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(13, 42, 61, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.project-capture-ocr {
  background: linear-gradient(145deg, #e7e1da, #f8f6f2);
}

.project-capture-ocr > img {
  z-index: 1;
  width: 58%;
  height: 70%;
  filter: drop-shadow(0 16px 20px rgba(4, 17, 29, 0.18));
}

.ocr-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(13, 42, 61, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 42, 61, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.scan-line {
  position: absolute;
  z-index: 2;
  right: 16%;
  left: 16%;
  height: 2px;
  background: var(--burgundy);
  box-shadow: 0 0 12px rgba(126, 39, 67, 0.5);
}

.stack-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
}

.stack-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(121, 206, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 206, 223, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to right, black, transparent 75%);
}

.stack-section .container {
  position: relative;
}

.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light > p {
  color: rgba(255, 255, 255, 0.61);
}

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

.stack-card {
  padding: 1.8rem;
  border: 1px solid rgba(185, 232, 239, 0.15);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.stack-index {
  color: var(--glacier-500);
  font-family: var(--font-serif);
  font-size: 0.78rem;
}

.stack-card h3 {
  margin: 1rem 0 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.stack-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-card li {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.ai-section {
  position: relative;
  overflow: hidden;
  background: var(--stone-50);
}

.ai-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--stone-300);
  content: "";
}

.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4rem, 10vw, 8rem);
}

.ai-intro {
  align-self: start;
  position: sticky;
  top: 8rem;
}

.ai-intro > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--stone-600);
  font-size: 1.05rem;
}

.ai-statement {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  margin-top: 2.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-300);
  color: var(--burgundy);
}

.ai-statement > span {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
}

.ai-statement p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  font-weight: 600;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 42px 1fr 52px;
  align-items: start;
  gap: 1rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--stone-300);
}

.workflow-list li:first-child {
  padding-top: 0;
}

.workflow-mark {
  color: var(--burgundy);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
}

.workflow-list h3 {
  margin: 0 0 0.35rem;
  color: var(--navy-900);
  font-size: 1.02rem;
}

.workflow-list p {
  margin: 0;
  color: var(--stone-600);
  font-size: 0.88rem;
}

.workflow-tool {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--glacier-500);
  border-radius: 50%;
  color: var(--navy-700);
  font-family: var(--font-serif);
  font-size: 0.62rem;
  font-weight: 700;
}

.education-section {
  background: var(--glacier-100);
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(3rem, 9vw, 7rem);
}

.education-grid > div:first-child > p:last-child {
  max-width: 460px;
  color: var(--stone-600);
}

.credentials {
  overflow: hidden;
  border: 1px solid rgba(13, 42, 61, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.credential-main,
.credentials > a {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(13, 42, 61, 0.12);
}

.credential-main {
  grid-template-columns: minmax(90px, 0.32fr) 1fr;
  background: var(--navy-900);
  color: var(--white);
}

.credential-main > span,
.credentials > a > span {
  color: var(--glacier-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.credential-main h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.credential-main p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.credentials > a {
  color: var(--navy-900);
  text-decoration: none;
  transition: background 0.2s ease;
}

.credentials > a:last-child {
  border-bottom: 0;
}

.credentials > a:hover {
  background: rgba(255, 255, 255, 0.85);
}

.credentials > a i {
  color: var(--burgundy);
  font-style: normal;
}

.contact-section {
  position: relative;
  display: flex;
  min-height: 590px;
  overflow: hidden;
  align-items: center;
  color: var(--white);
  isolation: isolate;
}

.contact-landscape {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 17, 29, 0.94), rgba(7, 26, 43, 0.62)),
    url("../img/IMG_20230310_113859179.jpg") center 62% / cover;
}

.contact-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4, 17, 29, 0.8), transparent 70%);
  content: "";
}

.contact-content {
  padding-block: 6rem;
}

.contact-content h2 {
  max-width: 820px;
  font-size: clamp(2.7rem, 7vw, 6rem);
}

.contact-content > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

.site-footer {
  padding-block: 1.4rem;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.site-footer .container > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  justify-self: end;
  color: var(--glacier-300);
  text-decoration: none;
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  font-size: 0.65rem;
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: calc(88px + env(safe-area-inset-top));
  }

  .site-header {
    position: relative;
    padding-top: env(safe-area-inset-top);
    background: var(--navy-900);
    box-shadow: 0 4px 20px rgba(4, 17, 29, 0.12);
  }

  .navigation-ready .site-header {
    position: fixed;
  }

  .container,
  .nav-shell {
    width: auto;
    margin-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto auto;
    min-height: 72px;
    gap: 0.8rem;
  }

  .brand {
    min-height: 44px;
    min-width: 44px;
  }

  .language-switch {
    grid-column: 4;
    gap: 0;
    padding: 0;
  }

  .language-switch button {
    min-width: 44px;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.8);
  }

  .menu-toggle {
    grid-column: 3;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(4, 17, 29, 0.32);
    cursor: pointer;
    place-content: center;
  }

  .navigation-ready .menu-toggle {
    display: grid;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 2.5px 0;
    background: var(--white);
  }

  .nav-menu {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid rgba(185, 232, 239, 0.2);
    border-radius: var(--radius-md);
    background: rgba(4, 17, 29, 0.97);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(16px);
  }

  .navigation-ready .nav-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: max(1rem, env(safe-area-inset-right));
    left: max(1rem, env(safe-area-inset-left));
    display: none;
    max-height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .navigation-ready .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    min-height: 44px;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 0;
  }

  .hero-grid {
    padding-block: 8rem 4rem;
  }

  .text-link,
  .site-footer a {
    min-height: 44px;
    padding-block: 0.5rem;
  }

  .site-footer a {
    display: inline-flex;
    align-items: center;
  }

  .project-actions {
    gap: 0.5rem 1rem;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr minmax(230px, 0.42fr);
    gap: 2.5rem;
  }

  .experience-timeline {
    grid-template-columns: 1fr;
  }

  .experience-timeline::before {
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--stone-300) 0 7px, transparent 7px 13px);
  }

  .experience-card {
    min-height: 0;
    margin-left: 2rem;
  }

  .experience-card::before {
    top: 1.6rem;
    left: calc(-2rem - 2px);
  }

  .project-card-featured {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  }
}

@media (max-width: 760px) {
  .container,
  .nav-shell {
    width: auto;
  }

  .nav-shell {
    min-height: 72px;
    gap: 0.7rem;
  }

  .brand-name {
    display: none;
  }

  .menu-toggle {
    grid-column: 3;
  }

  .language-switch {
    grid-column: 4;
  }

  .hero {
    min-height: auto;
  }

  .hero-landscape {
    object-position: 57% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 14, 24, 0.94), rgba(4, 18, 30, 0.72)),
      linear-gradient(0deg, rgba(3, 14, 24, 0.82), transparent 50%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: calc(6.5rem + env(safe-area-inset-top)) 3rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }

  .hero-lead {
    margin-top: 1.2rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 1.5rem;
  }

  .hero-facts {
    margin-top: 1.75rem;
  }

  .portrait-card {
    width: min(45%, 180px);
    justify-self: start;
  }

  .portrait-frame {
    aspect-ratio: 1;
  }

  .portrait-frame img {
    object-position: center 38%;
  }

  .section {
    padding-block: clamp(3.5rem, 8vw, 5rem);
  }

  .project-body {
    padding: 1.25rem;
  }

  .project-points,
  .project-case dd {
    font-size: 0.9rem;
  }

  .project-meta span,
  .project-kicker {
    font-size: 0.75rem;
  }

  .scroll-cue {
    display: none;
  }

  .intro-grid,
  .section-heading,
  .demo-heading,
  .ai-layout,
  .education-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .section-heading > p {
    margin-left: 0;
  }

  .intro-section::after,
  .ai-section::before {
    display: none;
  }

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

  .project-card,
  .project-card-featured {
    grid-column: span 12;
  }

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

  .project-card-featured .project-media,
  .project-media {
    min-height: 300px;
  }

  .ai-intro {
    position: static;
  }

  .credentials {
    min-width: 0;
  }

  .site-footer .container {
    grid-template-columns: 1fr auto;
  }

  .site-footer .container > p {
    display: none;
  }
}

@media (max-width: 520px) {

  .demo-heading {
    gap: 1rem;
  }

  .demo-toolbar {
    padding: 0.85rem 1rem;
  }

  .demo-toolbar > strong > span {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hero-facts li:last-child {
    grid-column: 1 / -1;
  }

  .experience-card {
    margin-left: 1.4rem;
    padding: 1.35rem;
  }

  .experience-card::before {
    left: calc(-1.4rem - 2px);
  }

  .project-card-featured .project-media,
  .project-media {
    min-height: 240px;
  }

  .product-window {
    transform: scale(0.92);
  }

  .phone-caption {
    display: none;
  }

  .workflow-list li {
    grid-template-columns: 34px 1fr;
  }

  .workflow-tool {
    display: none;
  }

  .credential-main,
  .credentials > a {
    grid-template-columns: 1fr auto;
  }

  .credential-main {
    grid-template-columns: 1fr;
  }

  .credentials > a > span {
    grid-column: 1 / -1;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .site-footer a {
    justify-self: start;
  }
}

@media (pointer: coarse) {
  .site-header {
    position: relative;
    padding-top: env(safe-area-inset-top);
    background: var(--navy-900);
  }

  .navigation-ready .site-header {
    position: fixed;
  }

  .language-switch button {
    min-width: 44px;
    min-height: 44px;
  }

  .nav-menu a,
  .text-link,
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

@media (hover: none) {
  .project-card:hover,
  .button:hover {
    transform: none;
  }
}

/* Progressive enhancement: print, reduced motion and no-JS keep content visible. */
@media screen and (prefers-reduced-motion: no-preference) {
  .scroll-reveal-pending {
    opacity: 0;
    translate: 0 24px;
  }

  .scroll-reveal-entering {
    animation: scroll-reveal 640ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms) both;
  }

  @keyframes scroll-reveal {
    from {
      opacity: 0;
      translate: 0 var(--reveal-distance, 24px);
    }

    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

@media screen and (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .scroll-reveal-pending,
  .scroll-reveal-entering {
    --reveal-distance: 16px;
  }

  .scroll-reveal-pending {
    translate: 0 16px;
  }

  .scroll-reveal-entering {
    animation-duration: 480ms;
  }
}

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

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



/* Rediseño 2026: mapa de sistemas. La única pieza expresiva vive en el hero;
   el resto de la página usa estructura, contraste y relaciones reales. */
body {
  background: var(--stone-50);
  letter-spacing: -0.008em;
}

.container {
  width: min(calc(100% - 4rem), var(--container));
}

.site-header {
  border-bottom-color: rgba(168, 221, 231, 0.2);
}

.nav-shell {
  width: min(calc(100% - 4rem), var(--container));
  min-height: 76px;
}

.brand {
  font-weight: 700;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: rgba(3, 19, 31, 0.36);
  color: var(--glacier-300);
  font-family: var(--font-sans);
  font-weight: 800;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-menu a::after {
  bottom: -0.35rem;
  background: var(--glacier-300);
}

.language-switch {
  border-radius: 2px;
  background: rgba(3, 19, 31, 0.42);
}

.hero {
  min-height: 820px;
  background: var(--navy-950);
}

.hero-landscape {
  object-position: 50% 48%;
  filter: saturate(0.58) contrast(1.07);
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 19, 31, 0.98) 0%, rgba(3, 19, 31, 0.9) 48%, rgba(7, 26, 43, 0.48) 76%, rgba(3, 19, 31, 0.62) 100%),
    linear-gradient(0deg, rgba(3, 19, 31, 0.84) 0%, transparent 46%);
}

.hero::before {
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -1;
  background:
    url("../img/topography.svg") right -110px center / 820px auto no-repeat,
    linear-gradient(90deg, transparent, rgba(168, 221, 231, 0.04));
  content: "";
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  right: 2rem;
  bottom: 2rem;
  width: min(42vw, 620px);
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 221, 231, 0.5));
  box-shadow: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(3.5rem, 7vw, 7.5rem);
  padding-block: 9rem 6.5rem;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  color: var(--burgundy);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow::before {
  width: 2.25rem;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
  content: "";
}

.hero .eyebrow::before {
  display: none;
}

.availability-dot {
  margin-right: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 5px rgba(120, 199, 214, 0.12);
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.6rem, 7.4vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.hero h1 em {
  margin-top: 1rem;
  padding-left: 0.1em;
  color: var(--glacier-300);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hero-lead {
  max-width: 620px;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.72;
}

.button {
  min-height: 52px;
  border-radius: 2px;
  font-size: 0.86rem;
  font-weight: 650;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: none;
}

.button-primary {
  background: var(--glacier-300);
}

.button-primary:hover {
  background: var(--white);
}

.button-ghost {
  border-color: rgba(168, 221, 231, 0.38);
}

.hero-facts {
  max-width: 610px;
  margin-top: 2.6rem;
  padding-top: 1.1rem;
}

.hero-facts li {
  gap: 0.18rem;
  border-left: 1px solid rgba(168, 221, 231, 0.25);
  padding-left: 1rem;
}

.hero-facts strong {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-facts span {
  font-size: 0.72rem;
}

.portrait-card {
  position: relative;
  width: min(100%, 470px);
  min-height: 560px;
  margin: 0;
  justify-self: end;
}

.portrait-card::before {
  display: none;
}

.portrait-frame {
  position: absolute;
  top: 118px;
  right: 72px;
  z-index: 2;
  width: 238px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(168, 221, 231, 0.5);
  border-radius: 3px;
  box-shadow: 26px 28px 0 rgba(3, 19, 31, 0.48);
  transform: rotate(2deg);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  border: 10px solid rgba(3, 19, 31, 0.16);
  content: "";
  pointer-events: none;
}

.portrait-frame img {
  filter: saturate(0.72) contrast(1.08);
}

.system-route {
  position: absolute;
  inset: 0;
}

.system-route svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.system-route path {
  fill: none;
  stroke: rgba(168, 221, 231, 0.62);
  stroke-dasharray: 3 10;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.system-route circle {
  fill: var(--glacier-300);
  stroke: rgba(3, 19, 31, 0.9);
  stroke-width: 6;
}

.route-node {
  position: absolute;
  z-index: 3;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(168, 221, 231, 0.38);
  border-radius: 2px;
  background: rgba(3, 19, 31, 0.84);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.67rem;
  font-weight: 500;
  white-space: nowrap;
}

.route-node-api {
  top: 8px;
  left: 8px;
}

.route-node-integrations {
  top: 226px;
  right: 0;
}

.route-node-quality {
  right: 16px;
  bottom: 20px;
}

.portrait-caption {
  position: absolute;
  bottom: 48px;
  left: 0;
  display: grid;
  z-index: 4;
  max-width: 235px;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.73rem;
  line-height: 1.55;
}

.portrait-caption > span:first-child {
  width: 8px;
  height: 8px;
  margin-top: 0.25rem;
  background: var(--burgundy);
}

.scroll-cue {
  left: auto;
  right: max(2rem, calc((100vw - var(--container)) / 2));
  letter-spacing: 0;
  text-transform: none;
  transform: none;
}

.section {
  padding-block: clamp(5.5rem, 10vw, 9rem);
}

.intro-section {
  background: var(--white);
}

.intro-section::after {
  right: -220px;
  width: 620px;
  height: 620px;
  opacity: 0.17;
}

.intro-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.ai-intro h2,
.education-grid h2,
.contact-content h2 {
  max-width: 900px;
  font-size: clamp(2.45rem, 5.3vw, 5.1rem);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.intro-copy {
  max-width: 610px;
  color: var(--stone-600);
  font-size: 1.03rem;
}

.pull-quote {
  margin-top: 2.4rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--stone-300);
  border-left: 0;
  color: var(--navy-800);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 650;
}

.experience-section {
  background: var(--stone-50);
}

.experience-section::before {
  background: url("../img/topography.svg") right -230px top -130px / 900px auto no-repeat;
  opacity: 0.2;
}

.experience-heading {
  margin-bottom: 3.5rem;
}

.journey-caption {
  margin-bottom: 1rem;
  color: var(--navy-700);
  font-size: 0.78rem;
}

.journey-caption > span:first-child {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
}

.experience-timeline {
  gap: 0;
  padding-top: 3.4rem;
}

.experience-timeline::before {
  top: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--burgundy), var(--glacier-500));
}

.experience-card {
  min-height: 350px;
  padding: 2rem clamp(1.4rem, 3vw, 2.4rem);
  border: 0;
  border-left: 1px solid var(--stone-300);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.experience-card:last-child {
  border-right: 1px solid var(--stone-300);
}

.experience-card::before {
  top: -2.6rem;
  left: 2rem;
  width: 9px;
  height: 9px;
  border: 5px solid var(--stone-50);
  background: var(--burgundy);
  box-shadow: 0 0 0 1px var(--burgundy);
}

.experience-card-current {
  background: linear-gradient(180deg, rgba(168, 221, 231, 0.24), transparent 78%);
}

.experience-card-current::before {
  background: var(--glacier-500);
  box-shadow: 0 0 0 1px var(--navy-700);
}

.experience-company {
  margin: 2.3rem 0 1.2rem;
}

.experience-company h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.experience-company p {
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.experience-stack span,
.project-meta span {
  border: 1px solid var(--stone-300);
  border-radius: 2px;
  background: transparent;
  font-weight: 600;
}

.current-badge {
  top: 0;
  right: 1.4rem;
  border-radius: 0 0 3px 3px;
  letter-spacing: 0;
  text-transform: none;
}

.projects-section {
  background: var(--stone-100);
}

.section-heading {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
  margin-bottom: 4.5rem;
}

.section-heading > p {
  padding-top: 2.3rem;
  line-height: 1.75;
}

.project-grid {
  gap: 2rem;
}

.project-card {
  border: 0;
  border-top: 2px solid var(--navy-800);
  border-radius: 0;
  background: var(--white);
  box-shadow: none;
  transition: border-color 180ms ease;
}

.project-card:hover {
  border-color: var(--burgundy);
  box-shadow: none;
  transform: none;
}

.project-card-featured {
  border-top: 0;
}

.project-card-featured .project-body {
  border-top: 2px solid var(--burgundy);
}

.project-media,
.project-card-featured .project-media {
  min-height: 310px;
}

.project-card-featured .project-media {
  min-height: 430px;
}

.project-visual-market {
  background:
    linear-gradient(rgba(168, 221, 231, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 221, 231, 0.05) 1px, transparent 1px),
    linear-gradient(145deg, #123247, #03131f);
  background-size: 34px 34px, 34px 34px, auto;
}

.product-window,
.capture-window,
.api-preview {
  border-radius: 3px;
}

.project-kicker {
  color: var(--stone-600);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.project-kicker span {
  display: none;
}

.project-body h3 {
  margin-top: 0.85rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.project-body p,
.project-points,
.project-case dd {
  color: var(--stone-600);
}

.project-case {
  border-top-color: var(--stone-300);
}

.project-case summary {
  color: var(--navy-800);
}

.project-case dl {
  border-left-color: var(--burgundy);
}

.demo-heading h3 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
}

.demo-toolbar {
  background: var(--navy-900);
}

.demo-toolbar > strong > span,
.demo-reset {
  border-radius: 2px;
}

.text-link {
  color: var(--burgundy);
}

.stack-section {
  background: var(--navy-950);
}

.stack-section::before {
  background-image:
    url("../img/topography.svg"),
    linear-gradient(rgba(168, 221, 231, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 221, 231, 0.04) 1px, transparent 1px);
  background-position: right -280px center, 0 0, 0 0;
  background-repeat: no-repeat, repeat, repeat;
  background-size: 880px auto, 48px 48px, 48px 48px;
  opacity: 0.7;
  mask-image: linear-gradient(to right, transparent, black 30%, black);
}

.stack-grid {
  gap: 0;
  border-top: 1px solid rgba(168, 221, 231, 0.24);
  border-bottom: 1px solid rgba(168, 221, 231, 0.24);
}

.stack-card {
  padding: 2rem clamp(1.4rem, 3vw, 2.4rem);
  border: 0;
  border-right: 1px solid rgba(168, 221, 231, 0.2);
  border-radius: 0;
  background: rgba(3, 19, 31, 0.35);
}

.stack-card:last-child {
  border-right: 0;
}

.stack-index {
  display: none;
}

.stack-card h3 {
  margin: 0 0 1.6rem;
  font-size: 1.35rem;
  font-weight: 650;
}

.stack-card li {
  border-radius: 2px;
}

.ai-section {
  background: var(--white);
}

.ai-section::before {
  left: calc(50% + 1rem);
}

.ai-statement {
  color: var(--navy-800);
}

.ai-statement > span,
.ai-statement p {
  font-family: var(--font-sans);
}

.workflow-list li {
  grid-template-columns: 38px 1fr 48px;
}

.workflow-mark {
  font-family: var(--font-code);
}

.workflow-tool {
  border-radius: 2px;
  font-family: var(--font-code);
}

.education-section {
  background: var(--glacier-100);
}

.credentials {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.42);
}

.credential-main,
.credentials > a {
  min-height: 98px;
}

.credential-main > span,
.credentials > a > span {
  letter-spacing: 0;
  text-transform: none;
}

.credential-main h3 {
  font-size: 1.16rem;
  font-weight: 650;
}

.contact-section {
  min-height: 650px;
  border-top: 8px solid var(--burgundy);
}

.contact-landscape {
  background:
    linear-gradient(90deg, rgba(3, 19, 31, 0.98), rgba(7, 26, 43, 0.54)),
    url("../img/IMG_20230310_113859179.jpg") center 62% / cover;
  filter: saturate(0.7);
}

.contact-section::after {
  background:
    url("../img/topography.svg") right -180px center / 800px auto no-repeat,
    linear-gradient(0deg, rgba(3, 19, 31, 0.9), transparent 78%);
  opacity: 0.82;
}

.contact-content h2 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.site-footer {
  background: #020e16;
}

@media (max-width: 1100px) {
  .container,
  .nav-shell {
    width: auto;
  }

  .nav-shell {
    min-height: 72px;
  }

  .menu-toggle,
  .nav-menu,
  .language-switch {
    border-radius: 2px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr);
    padding-block: 8rem 5rem;
  }

  .portrait-card {
    min-height: 520px;
  }

  .portrait-frame {
    right: 54px;
    width: 216px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
  }

  .portrait-card {
    min-height: 490px;
  }

  .portrait-frame {
    top: 108px;
    right: 42px;
    width: 190px;
  }

  .route-node-integrations {
    right: -4px;
  }

  .experience-timeline {
    gap: 0;
  }

  .experience-timeline::before {
    top: 0;
    left: 8px;
    height: auto;
    background: linear-gradient(180deg, var(--burgundy), var(--glacier-500));
  }

  .experience-card {
    margin-left: 2rem;
    border: 0;
    border-top: 1px solid var(--stone-300);
  }

  .experience-card:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--stone-300);
  }

  .experience-card::before {
    top: 2rem;
    left: calc(-2rem - 2px);
  }
}

@media (max-width: 760px) {
  .hero-landscape {
    transform: none;
  }

  .hero::before {
    inset: 0;
    background-position: right -320px center;
    opacity: 0.34;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: calc(6.8rem + env(safe-area-inset-top)) 3.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .portrait-card {
    width: min(100%, 420px);
    min-height: 410px;
    justify-self: stretch;
  }

  .portrait-frame {
    top: 74px;
    right: 18%;
    width: 158px;
  }

  .software-route svg {
    height: 410px;
  }

  .route-node-api {
    top: 2px;
  }

  .route-node-integrations {
    top: 176px;
    right: 2px;
  }

  .route-node-quality {
    right: 12px;
    bottom: 2px;
  }

  .portrait-caption {
    bottom: 18px;
    max-width: 210px;
  }

  .intro-grid,
  .section-heading,
  .demo-heading,
  .ai-layout,
  .education-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .section-heading > p {
    padding-top: 0;
  }

  .project-card-featured .project-media,
  .project-media {
    min-height: 290px;
  }

  .project-grid {
    gap: 1rem;
  }

  .stack-grid {
    border-bottom: 0;
  }

  .stack-card {
    border-right: 0;
    border-bottom: 1px solid rgba(168, 221, 231, 0.2);
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(2.85rem, 15vw, 4rem);
    line-height: 0.9;
  }

  .hero-facts {
    gap: 1.1rem 0.5rem;
  }

  .portrait-card {
    min-height: 370px;
  }

  .portrait-frame {
    top: 68px;
    right: 12%;
    width: 145px;
  }

  .software-route svg {
    height: 360px;
  }

  .route-node-integrations {
    top: 165px;
  }

  .route-node-quality {
    bottom: 0;
  }

  .portrait-caption {
    bottom: 4px;
    max-width: 178px;
    font-size: 0.68rem;
  }

  .experience-card {
    margin-left: 1.35rem;
    padding-inline: 1.15rem;
  }

  .experience-card::before {
    left: calc(-1.35rem - 2px);
  }

  .project-card-featured .project-media,
  .project-media {
    min-height: 235px;
  }

  .project-body {
    padding: 1.35rem;
  }
}


/* Patagonia viva: rutas de software. */
:root {
  --navy-950: #061b2a;
  --navy-900: #0a2534;
  --navy-800: #153b4a;
  --navy-700: #285e70;
  --glacier-500: #6cc4d6;
  --glacier-300: #a8dde7;
  --glacier-100: #e8f4f5;
  --stone-50: #f4f7f6;
  --stone-100: #e8eeec;
  --stone-300: #aab7b3;
  --stone-600: #52645e;
  --musgo: #537264;
  --ink: #061b2a;
  --burgundy: #b54252;
  --burgundy-dark: #8f3040;
  --white: #ffffff;
}

.route-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.route-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lenga, #b54252), var(--glacier-500));
  transform: scaleX(var(--route-progress, 0));
  transform-origin: left center;
  will-change: transform;
}

.software-route {
  position: absolute;
  inset: 0;
}

.software-route svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.software-route path {
  fill: none;
  stroke: rgba(168, 221, 231, 0.72);
  stroke-dasharray: 3 10;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.software-route circle {
  fill: var(--glacier-300);
  stroke: rgba(3, 19, 31, 0.9);
  stroke-width: 6;
}

.project-card {
  overflow: clip;
}

.project-card .project-media {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(70px, 12vw, 160px);
  height: 2px;
  background: var(--burgundy);
  content: "";
  transform: scaleX(0.16);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:nth-of-type(even) {
  border-top-color: var(--musgo, #537264);
}

.project-card:nth-of-type(3n) .project-media {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 18% 100%, 0 95%);
}

.project-card:nth-of-type(3n + 1) .project-media {
  clip-path: polygon(0 0, 100% 0, 100% 96%, 76% 92%, 42% 100%, 0 94%);
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-media {
    transform: translateY(-8px);
  }

  .project-card:hover::after {
    transform: scaleX(1);
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .route-ready .hero-landscape {
    animation: patagonia-landscape-in 700ms ease-out both;
  }

  .route-ready .hero-copy h1 {
    animation: patagonia-title-in 720ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .route-ready .software-route path {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: patagonia-route-draw 760ms 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .route-ready .software-route circle,
  .route-ready .route-node {
    opacity: 0;
    animation: patagonia-node-in 260ms 700ms ease-out forwards;
  }

  .route-ready .route-node-integrations {
    animation-delay: 780ms;
  }

  .route-ready .route-node-quality {
    animation-delay: 860ms;
  }

  .experience-card.scroll-reveal-pending {
    translate: 0 0;
  }

  .experience-card.scroll-reveal-entering {
    animation-name: patagonia-trail-in;
  }

  .project-card:nth-of-type(odd).scroll-reveal-pending {
    translate: -18px 0;
    clip-path: inset(0 100% 0 0);
  }

  .project-card:nth-of-type(even).scroll-reveal-pending {
    translate: 18px 0;
    clip-path: inset(0 0 0 100%);
  }

  .project-card.scroll-reveal-entering {
    animation-name: patagonia-territory-in;
  }
}

@keyframes patagonia-landscape-in {
  from { opacity: 0; transform: scale(1.055); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes patagonia-title-in {
  from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100%); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}

@keyframes patagonia-route-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes patagonia-node-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes patagonia-trail-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes patagonia-territory-in {
  from { opacity: 0; translate: var(--territory-x, -18px) 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; translate: 0 0; clip-path: inset(0); }
}

@media (max-width: 760px) {
  .container,
  .nav-shell {
    width: min(calc(100% - 2rem), var(--container));
  }

  .hero-grid,
  .hero-copy,
  .portrait-card {
    min-width: 0;
  }

  .hero-grid {
    width: calc(100vw - 2rem);
    max-width: var(--container);
    margin-inline: auto;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .hero h1 span {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .hero-lead,
  .hero-actions,
  .hero-facts {
    width: 100%;
    max-width: calc(100vw - 2rem);
    overflow-wrap: break-word;
  }

  .software-route svg {
    height: 410px;
  }

  .project-card:nth-of-type(n) .project-media {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 62% 100%, 0 96%);
  }
}

@media (max-width: 520px) {
  .container,
  .nav-shell {
    width: min(calc(100% - 2rem), var(--container));
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13.4vw, 3.25rem);
  }

  .software-route svg {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-landscape,
  .hero-copy h1,
  .software-route path,
  .software-route circle,
  .route-node,
  .experience-card,
  .project-card,
  .project-media {
    animation: none !important;
    opacity: 1 !important;
    translate: none !important;
    transform: none !important;
    clip-path: none !important;
  }
}
.market-shots {
  grid-column: 1 / -1;
  min-width: 0;
}

.market-shots h3 {
  margin: 0 0 1rem;
  color: var(--navy-900);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.market-shots ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-shots li {
  min-width: 0;
}

.market-shots figure {
  display: flex;
  height: 100%;
  margin: 0;
  flex-direction: column;
  gap: 0.6rem;
}

.market-shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--stone-300);
  border-radius: 3px;
  background: var(--white);
}

.market-shots figcaption {
  color: #40505b;
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .market-shots ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
