:root {
  --paper: #f3efe8;
  --paper-2: #ebe5dc;
  --ink: #111111;
  --ink-2: #343036;
  --muted: #7a727c;
  --line: rgba(17,17,17,.16);
  --purple: #6f42c1;
  --purple-2: #9d76dd;
  --purple-soft: #ddd0f3;
  --green: #b8ff83;
  --white: #fffdf9;
  --radius: 28px;
  --gutter: clamp(20px, 4vw, 68px);
  --max: 1440px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 12%, rgba(111,66,193,.12), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--purple);
  color: white;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--purple);
}

.cursor-orb {
  position: fixed;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  border-radius: 50%;
  background: rgba(111,66,193,.08);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .3s ease;
}

.section-shell,
.site-header,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.site-header {
  height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243,239,232,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

.site-header.is-scrolled { border-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: .08em;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -.03em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding-block: 8px;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--ink);
  transition: right .35s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after { right: 0; }

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

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  display: flex;
  background: rgba(255,255,255,.28);
}

.lang-switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 9px;
  cursor: pointer;
  font: 500 10px/1 "DM Mono", monospace;
}

.lang-switch button.is-active {
  background: var(--ink);
  color: white;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-button span {
  position: absolute;
  width: 16px;
  height: 1px;
  background: var(--ink);
  left: 12px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}

.menu-button span:first-child { top: 17px; }
.menu-button span:last-child { top: 23px; }

.menu-button[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 82px 0 0 0;
  z-index: 90;
  background: var(--paper);
  padding: 40px var(--gutter);
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 700;
  letter-spacing: -.05em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-nav.is-open { display: flex; }

.hero {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding-top: clamp(44px, 7vh, 90px);
  padding-bottom: clamp(52px, 9vh, 110px);
}

.eyebrow,
.section-index,
.meta-label,
.case-topline,
.capability-number,
.timeline-period,
.timeline-company,
.learning-card > span,
.portrait-index,
.visual-label {
  font: 500 11px/1.4 "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--purple);
  margin: 0 0 24px;
}

.hero-title,
.section-heading h2,
.statement h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(52px, 6.4vw, 108px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 700;
  max-width: 10ch;
}

.hero-title span,
.hero-title em,
.section-heading h2 span,
.section-heading h2 em,
.statement h2 span,
.statement h2 em,
.about h2 span,
.about h2 em,
.contact h2 span,
.contact h2 em {
  display: block;
}

.hero-title em,
.section-heading h2 em,
.statement h2 em,
.about h2 em,
.contact h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: var(--purple);
}

.hero-lead {
  margin: 32px 0 0;
  max-width: 620px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.6;
  letter-spacing: -.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--ink);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--ink); color: white; }
.button-light { background: transparent; }
.button-light:hover { background: var(--white); }

.hero-meta {
  margin-top: 54px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero-meta > div { display: grid; gap: 6px; }

.meta-label { color: var(--muted); }
.hero-meta strong { font-size: 13px; }

.hero-visual {
  position: relative;
  min-height: 680px;
}

.portrait-frame {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  overflow: hidden;
  background: #d8d2ca;
  box-shadow: 0 40px 100px rgba(29,19,37,.15);
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(100%) contrast(.96);
  transform: scale(1.015);
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(16,12,18,.7) 100%),
    linear-gradient(120deg, rgba(111,66,193,.08), transparent 40%);
}

.portrait-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #30b66d;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(48,182,109,.14);
}

.portrait-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: white;
  background: rgba(17,17,17,.52);
  border-radius: 999px;
  padding: 8px 10px;
  backdrop-filter: blur(9px);
}

.hero-orbit {
  position: absolute;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: var(--green);
  right: -30px;
  top: 11%;
  display: grid;
  place-items: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 24px 55px rgba(0,0,0,.12);
}

.hero-orbit::after {
  content: "→";
  font-size: 32px;
  transform: rotate(45deg);
}

.hero-orbit span {
  position: absolute;
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: .05em;
}

.hero-orbit span:nth-child(1) { top: 18px; }
.hero-orbit span:nth-child(2) { right: 13px; top: 80px; transform: rotate(90deg); }
.hero-orbit span:nth-child(3) { bottom: 18px; }
.hero-orbit span:nth-child(4) { left: 15px; top: 80px; transform: rotate(-90deg); }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.statement {
  padding-top: 130px;
  padding-bottom: 150px;
  border-top: 1px solid var(--line);
}

.section-index {
  margin: 0 0 48px;
  color: var(--muted);
}

.statement-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}

.statement h2 {
  max-width: 12ch;
  font-size: clamp(46px, 5.7vw, 88px);
}

.statement-grid > p {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.8;
  max-width: 54ch;
}

.work,
.capabilities,
.experience,
.other-work,
.learning {
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: .34fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 72px;
}

.section-heading .section-index { margin: 10px 0 0; }

.section-heading h2 {
  font-size: clamp(48px, 5.5vw, 84px);
  max-width: 12ch;
}

.section-intro {
  max-width: 58ch;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 16px;
  margin: 24px 0 0;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  min-height: 660px;
  border-top: 1px solid var(--line);
  padding: 28px 0 74px;
  gap: clamp(34px, 6vw, 90px);
}

.case + .case { margin-top: 18px; }

.case-copy {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.case-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.case h3 {
  font-size: clamp(38px, 4.2vw, 66px);
  letter-spacing: -.055em;
  line-height: .98;
  margin: 44px 0 0;
}

.case-description {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  margin: 24px 0 0;
  max-width: 54ch;
}

.case-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.case-points li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
  display: flex;
  gap: 10px;
}

.case-points li::before {
  content: "↳";
  color: var(--purple);
  font-family: "DM Mono", monospace;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 26px;
}

.chip-row span,
.capability-tags span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 8px 10px;
  font: 500 10px/1 "DM Mono", monospace;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: auto;
  padding-top: 34px;
}

.text-link {
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.case-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 560px;
  background: #e2d8f2;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}

a.case-visual:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 80px rgba(42,27,55,.15);
}

.visual-label {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--ink);
  color: white;
  border-radius: 999px;
  padding: 10px 12px;
}

.datapulse-visual {
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.7), transparent 30%),
    #dcd0ef;
}

.datapulse-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(30,17,45,.18);
  transition: transform .6s var(--ease);
}

.datapulse-visual:hover img { transform: scale(1.025) rotate(-.4deg); }

.foodloop-visual {
  background:
    radial-gradient(circle at 75% 20%, rgba(255,255,255,.34), transparent 22%),
    #dae9d3;
  display: grid;
  place-items: center;
  padding: 34px;
}

.phone-shell {
  width: min(74%, 430px);
  background: #fbfff9;
  border: 8px solid #171d16;
  border-radius: 34px;
  padding: 22px;
  box-shadow: 0 30px 70px rgba(30,52,28,.18);
  transition: transform .6s var(--ease);
}

.foodloop-visual:hover .phone-shell { transform: translateY(-7px) rotate(1deg); }

.phone-head {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.phone-head img { width: 30px; height: 30px; }
.phone-head strong { font-size: 15px; }

.food-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.food-stats div {
  background: #edf5e9;
  border-radius: 14px;
  padding: 12px 10px;
  display: grid;
  gap: 6px;
}

.food-stats small,
.food-card small {
  font-size: 8px;
  color: #6b7667;
}

.food-stats strong { font-size: 19px; }

.food-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #dae2d7;
  padding: 13px 2px;
}

.food-icon { font-size: 22px; }
.food-card div { display: grid; gap: 2px; }
.food-card strong { font-size: 12px; }

.food-pill {
  font: 600 8px/1 "DM Mono", monospace;
  padding: 7px 8px;
  border-radius: 999px;
  background: #d5f1c8;
  color: #24591f;
}

.food-pill.warning { background: #ffe5aa; color: #795a0a; }

.case-dark {
  background: var(--ink);
  color: white;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-top: 58px;
  border: 0;
  border-radius: 36px;
  min-height: 640px;
}

.case-dark .case-description,
.case-dark .case-topline { color: rgba(255,255,255,.62); }

.case-dark .case-points li { border-color: rgba(255,255,255,.14); }
.case-dark .chip-row span { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }

.systems-visual {
  background: #1f1c22;
  border: 1px solid rgba(255,255,255,.12);
  color: white;
  display: grid;
  place-items: center;
  padding: 42px;
}

.system-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: center;
}

.system-node {
  border: 1px solid rgba(255,255,255,.2);
  min-height: 150px;
  border-radius: 20px;
  padding: 20px;
  font: 500 10px/1.5 "DM Mono", monospace;
  color: rgba(255,255,255,.56);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.system-node strong {
  color: white;
  font-size: 14px;
  line-height: 1.3;
}

.system-node.model { background: var(--purple); border-color: var(--purple); }
.system-node.output { background: var(--green); color: #234018; border-color: var(--green); }
.system-node.output strong { color: #14280e; }

.system-line {
  height: 1px;
  background: rgba(255,255,255,.25);
  position: relative;
}

.system-line::after {
  content: "›";
  position: absolute;
  right: -3px;
  top: -10px;
  color: rgba(255,255,255,.5);
}

.system-footer {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 42px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  font: 500 9px/1 "DM Mono", monospace;
  color: rgba(255,255,255,.55);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-card {
  min-height: 360px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background .4s var(--ease), transform .4s var(--ease);
}

.capability-card:hover {
  background: var(--white);
  transform: translateY(-3px);
}

.capability-number { color: var(--muted); }

.capability-card h3 {
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.045em;
  margin: 52px 0 16px;
}

.capability-card p {
  max-width: 46ch;
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}

.capability-tags {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: .28fr 1fr .52fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-period,
.timeline-company { color: var(--muted); }

.timeline-main h3 {
  margin: 8px 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.045em;
}

.timeline-main p:last-child {
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0;
  font-size: 14px;
}

.timeline-tech {
  font: 500 11px/1.7 "DM Mono", monospace;
  color: var(--muted);
  align-self: end;
}

.about {
  padding-top: 130px;
  padding-bottom: 140px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(42px, 8vw, 120px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%);
  border-radius: 30px;
}

.about-media span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: white;
  background: rgba(17,17,17,.58);
  border-radius: 999px;
  padding: 9px 11px;
  font: 500 9px/1 "DM Mono", monospace;
  backdrop-filter: blur(8px);
}

.about-copy .section-index { margin-bottom: 28px; }

.about h2 {
  font-size: clamp(44px, 5.2vw, 80px);
  max-width: 12ch;
}

.about-lead {
  margin: 34px 0 18px;
  font-size: 18px !important;
  line-height: 1.7 !important;
}

.about-copy > p:not(.section-index) {
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.8;
  font-size: 15px;
}

.about-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.about-links a {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.compact-heading { margin-bottom: 48px; }

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 60px 1fr .5fr 36px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease), background .35s var(--ease);
}

.project-row:hover {
  padding-left: 16px;
  padding-right: 16px;
  background: var(--white);
}

.project-id {
  font: 500 11px/1 "DM Mono", monospace;
  color: var(--purple);
}

.project-row h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -.035em;
}

.project-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.project-stack {
  font: 500 10px/1.5 "DM Mono", monospace;
  color: var(--muted);
}

.project-arrow {
  font-size: 24px;
  transition: transform .3s var(--ease);
}

.project-row:hover .project-arrow { transform: translate(4px,-4px); }

.learning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.learning-card {
  min-height: 250px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.learning-card > span { color: var(--purple); }

.learning-card h3 {
  margin: 42px 0 8px;
  font-size: 22px;
  letter-spacing: -.035em;
}

.learning-card p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}

.learning-card a {
  margin-top: auto;
  padding-top: 24px;
  font-size: 11px;
  font-weight: 700;
}

.contact {
  background: var(--purple);
  color: white;
  border-radius: 38px 38px 0 0;
  padding-top: 100px;
  padding-bottom: 100px;
  margin-top: 70px;
}

.contact .section-index { color: rgba(255,255,255,.6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: end;
}

.contact h2 {
  font-size: clamp(52px, 6.3vw, 94px);
  max-width: 10ch;
}

.contact h2 em { color: #d9ff7d; }

.contact-grid > div:first-child > p {
  color: rgba(255,255,255,.78);
  max-width: 54ch;
  line-height: 1.7;
  font-size: 16px;
  margin: 30px 0 0;
}

.contact-actions {
  border-top: 1px solid rgba(255,255,255,.25);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.25);
  font-size: 15px;
  font-weight: 700;
}

.contact-link span:last-child {
  transition: transform .3s var(--ease);
}

.contact-link:hover span:last-child { transform: translate(4px,-4px); }

.site-footer {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: rgba(255,255,255,.65);
  font: 500 9px/1.4 "DM Mono", monospace;
  width: min(100%, var(--max));
}

.site-footer span:nth-child(2) { justify-self: center; }
.site-footer a { justify-self: end; color: white; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 12px; }

  .hero {
    grid-template-columns: .9fr 1.1fr;
    gap: 44px;
  }

  .hero-visual { min-height: 580px; }
  .case { grid-template-columns: 1fr; min-height: auto; }
  .case-visual { min-height: 520px; }
  .case-dark { margin-inline: 0; }
  .learning-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }

  .hero-copy { order: 1; }
  .hero-visual { order: 2; min-height: 680px; margin-top: 24px; }
  .hero-orbit { right: 12px; }

  .statement-grid,
  .section-heading,
  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading { gap: 18px; }
  .section-heading .section-index { margin-bottom: 16px; }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-tech { align-self: auto; }

  .about-media img { height: 600px; }

  .project-row {
    grid-template-columns: 42px 1fr 28px;
  }

  .project-stack { grid-column: 2; }
  .project-arrow { grid-column: 3; grid-row: 1 / span 2; }

  .contact { margin-inline: 0; border-radius: 28px 28px 0 0; }

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

  .site-footer span:nth-child(2) { display: none; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; --radius: 22px; }

  .site-header { height: 72px; }
  .mobile-nav { inset: 72px 0 0 0; }

  .brand-name { display: none; }

  .hero { padding-top: 46px; padding-bottom: 80px; }
  .hero-title { font-size: clamp(50px, 16vw, 72px); }
  .hero-lead { font-size: 16px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-visual { min-height: 530px; }
  .portrait-frame { border-radius: 26px; }
  .hero-orbit { width: 126px; height: 126px; right: -3px; top: 8%; }
  .hero-orbit span:nth-child(2),
  .hero-orbit span:nth-child(4) { top: 58px; }

  .statement,
  .work,
  .capabilities,
  .experience,
  .other-work,
  .learning,
  .about {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .section-index { margin-bottom: 30px; }

  .statement h2,
  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .case { padding-bottom: 58px; }
  .case h3 { font-size: 42px; }
  .case-visual { min-height: 410px; }

  .datapulse-visual,
  .foodloop-visual { padding: 18px; }

  .phone-shell { width: 88%; padding: 16px; border-width: 6px; }

  .case-dark { border-radius: 24px; padding: 34px 20px 54px; }
  .systems-visual { min-height: 440px; padding: 22px; }
  .system-grid { grid-template-columns: 1fr; gap: 10px; }
  .system-line { width: 1px; height: 18px; justify-self: center; }
  .system-line::after { content: "⌄"; top: 4px; right: -6px; }
  .system-node { min-height: 86px; }
  .system-footer { left: 22px; right: 22px; bottom: 18px; flex-wrap: wrap; gap: 8px; }

  .capability-card { min-height: 310px; padding: 24px; }

  .about-media img { height: 500px; }

  .project-row {
    grid-template-columns: 32px 1fr 24px;
    gap: 12px;
  }

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

  .contact { padding-top: 76px; padding-bottom: 76px; margin-top: 30px; }
  .contact-grid { gap: 48px; }

  .site-footer {
    min-height: 110px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
  }

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

@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-orb { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-orb { display: none; }
}

/* === Dataconale-inspired hero: original implementation, Cristina content === */
.site-header {
  background: rgba(243,239,232,.92);
  border-bottom: 1px solid rgba(17,17,17,.08);
}
.site-header:not(.is-scrolled) {
  background: rgba(243,239,232,.72);
  border-bottom-color: transparent;
}
.hero.hero-reference {
  display: block;
  position: relative;
  min-height: calc(100svh - 82px);
  padding-top: 0;
  padding-bottom: 0;
  overflow: clip;
  isolation: isolate;
}
.hero-reference .hero-ghost {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: clamp(76px, 13svh, 135px);
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  font-size: clamp(96px, 17vw, 285px);
  line-height: .8;
  font-weight: 800;
  letter-spacing: -.07em;
  color: transparent;
  -webkit-text-stroke: 1.15px rgba(111,66,193,.28);
  user-select: none;
  animation: heroGhostIn 1.7s var(--ease) both .08s;
}
@keyframes heroGhostIn {
  from { opacity: 0; letter-spacing: -.01em; }
  to { opacity: 1; letter-spacing: -.07em; }
}
.hero-reference .hero-stage {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -1px;
  height: min(93%, 800px);
  aspect-ratio: 520 / 673;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: heroStageIn 1.4s var(--ease) both;
}
.hero-reference .hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
@keyframes heroStageIn {
  from { opacity: 0; transform: translate(-50%, 26px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.hero-reference-copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: clamp(84px, 10svh, 126px);
  width: min(37vw, 530px);
}
.hero-kicker {
  margin: 0 0 18px;
  font: 500 11px/1.45 "DM Mono", monospace;
  letter-spacing: .055em;
  color: var(--muted);
}
.hero-reference-title {
  margin: 0;
  font-size: clamp(52px, 5.45vw, 90px);
  line-height: .84;
  letter-spacing: -.065em;
  font-weight: 800;
}
.hero-reference-title span,
.hero-reference-title em { display: block; }
.hero-reference-title em {
  margin-top: 5px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.08em;
  line-height: .88;
  font-weight: 400;
  color: var(--purple);
}
.hero-reference-roles {
  margin: 21px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-reference-roles i {
  margin-inline: 8px;
  color: var(--muted);
  font-style: normal;
}
.hero-reference-lead {
  margin: 10px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.hero-reference-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.hero-reference-actions .button { min-width: 0; }
.hero-down {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  border: 1px solid rgba(17,17,17,.35);
  display: grid;
  place-items: center;
  font-size: 23px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.hero-down:hover { transform: translateY(4px); background: var(--white); }
.hero-reference-side {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  bottom: clamp(78px, 9.5svh, 118px);
  width: 240px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-play {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 3px;
  background: var(--purple);
  color: white;
  font-size: 14px;
  box-shadow: 0 0 0 1px rgba(111,66,193,.15), 0 14px 30px rgba(111,66,193,.15);
  transition: transform .4s var(--ease);
}
.hero-play:hover { transform: scale(1.06); }
.hero-side-label {
  margin: 22px 0 5px;
  font: 500 10px/1.3 "DM Mono", monospace !important;
  letter-spacing: .08em;
  color: var(--muted) !important;
}
.hero-reference-side > p:not(.hero-side-label) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.hero-reference .hero-scroll {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto 1px 16px;
  align-items: center;
  gap: 12px;
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .08em;
  color: var(--muted);
}
.hero-reference .hero-scroll i {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: var(--line);
}
.hero-reference .hero-scroll i::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 1px;
  height: 40%;
  background: var(--ink);
  animation: heroDrip 2.1s var(--ease) infinite;
}
.hero-reference .hero-scroll b {
  font-size: 20px;
  color: var(--ink);
  font-weight: 400;
}
@keyframes heroDrip { to { top: 100%; } }
.hero-reference-footer {
  position: absolute;
  z-index: 4;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(17,17,17,.28);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 9px/1 "DM Mono", monospace;
  letter-spacing: .1em;
  color: var(--muted);
}
.hero-reference-footer > div { display: flex; align-items: center; gap: 15px; }
.hero-reference-footer i { width: 44px; height: 1px; background: var(--muted); }
.hero-reference-footer b {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple-2);
}
@media (max-width: 1050px) {
  .hero-reference-copy { width: min(43vw, 470px); }
  .hero-reference-title { font-size: clamp(48px, 6.2vw, 72px); }
  .hero-reference .hero-stage { height: min(84%, 700px); }
  .hero-reference-side { width: 190px; }
}
@media (max-width: 860px) {
  .hero.hero-reference {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 38px;
    padding-bottom: 26px;
  }
  .hero-reference .hero-ghost {
    top: 58px;
    font-size: clamp(82px, 25vw, 170px);
  }
  .hero-reference .hero-stage {
    position: relative;
    left: auto;
    bottom: auto;
    order: 1;
    transform: none;
    margin: 0 auto;
    width: min(86vw, 520px);
    height: auto;
    aspect-ratio: 520 / 673;
    animation-name: heroStageMobile;
  }
  @keyframes heroStageMobile {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
  .hero-reference-copy {
    position: relative;
    left: auto;
    bottom: auto;
    order: 2;
    width: auto;
    margin-top: -34px;
    padding: 0 2px;
  }
  .hero-reference-title { font-size: clamp(49px, 13vw, 76px); }
  .hero-reference-side { display: none; }
  .hero-reference-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    order: 3;
    margin-top: 48px;
  }
}
@media (max-width: 620px) {
  .hero.hero-reference { padding-top: 18px; }
  .hero-reference .hero-stage { width: 100%; }
  .hero-kicker { font-size: 9px; }
  .hero-reference-roles,
  .hero-reference-lead { font-size: 12px; }
  .hero-reference-footer > div:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reference .hero-ghost,
  .hero-reference .hero-stage { animation: none; }
  .hero-reference .hero-scroll i::after { animation: none; }
}

.hero-reference .hero-stage { mix-blend-mode: normal !important; }
.hero-reference .hero-stage img {
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* === Hero composition correction === */
@media (min-width: 1060px) {
  .hero.hero-reference {
    min-height: calc(100svh - 82px);
  }

  .hero-reference .hero-stage {
    width: clamp(300px, 24vw, 390px) !important;
    height: auto !important;
    aspect-ratio: 360 / 630 !important;
    left: 53% !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    overflow: visible !important;
  }

  .hero-reference .hero-stage img {
    width: 100% !important;
    height: auto !important;
    max-height: calc(100svh - 104px) !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    display: block !important;
  }

  .hero-reference .hero-ghost {
    top: clamp(95px, 15svh, 150px) !important;
    font-size: clamp(120px, 15.6vw, 250px) !important;
  }

  .hero-reference-copy {
    left: var(--gutter) !important;
    bottom: clamp(96px, 11svh, 132px) !important;
    width: min(34vw, 500px) !important;
  }

  .hero-reference-title {
    font-size: clamp(54px, 4.8vw, 82px) !important;
  }

  .hero-reference-side {
    right: var(--gutter) !important;
    bottom: clamp(92px, 10svh, 124px) !important;
  }
}

@media (min-width: 861px) and (max-width: 1059px) {
  .hero-reference .hero-stage {
    width: clamp(270px, 32vw, 340px) !important;
    height: auto !important;
    aspect-ratio: 360 / 630 !important;
    left: 54% !important;
    bottom: 0 !important;
  }

  .hero-reference .hero-stage img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .hero-reference-copy {
    width: min(41vw, 430px) !important;
  }
}


/* === V2 quality + motion refinement === */
.hero-reference .hero-stage {
  --hero-x: 0px;
  --hero-y: 0px;
  --hero-scroll-y: 0px;
  will-change: transform;
  transition: filter .35s ease;
}

.hero-reference .hero-stage img {
  width: min(100%, 340px) !important;
  max-width: 340px !important;
  height: auto !important;
  margin-inline: auto;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (min-width: 1060px) {
  .hero-reference .hero-stage {
    width: 340px !important;
    max-width: 340px !important;
    left: 53% !important;
    bottom: 0 !important;
    transform:
      translateX(calc(-50% + var(--hero-x)))
      translateY(calc(var(--hero-y) + var(--hero-scroll-y))) !important;
  }

  .hero-reference .hero-stage img {
    max-height: calc(100svh - 96px) !important;
  }
}

@media (min-width: 861px) and (max-width: 1059px) {
  .hero-reference .hero-stage {
    width: 300px !important;
    max-width: 300px !important;
    transform:
      translateX(calc(-50% + var(--hero-x)))
      translateY(calc(var(--hero-y) + var(--hero-scroll-y))) !important;
  }

  .hero-reference .hero-stage img {
    width: 300px !important;
    max-width: 300px !important;
  }
}

.hero-reference-copy,
.hero-reference-side,
.hero-reference-footer,
.hero-reference .hero-ghost {
  will-change: transform, opacity;
}

body.hero-motion-ready .hero-reference-copy {
  animation: heroCopyReveal .9s var(--ease) both .12s;
}

body.hero-motion-ready .hero-reference-side {
  animation: heroSideReveal .9s var(--ease) both .24s;
}

body.hero-motion-ready .hero-reference-footer {
  animation: heroFooterReveal .8s var(--ease) both .38s;
}

body.hero-motion-ready .hero-reference .hero-ghost {
  animation: heroGhostQualityReveal 1.15s var(--ease) both;
}

body.hero-motion-ready .hero-reference .hero-stage {
  animation: heroPersonReveal 1.05s var(--ease) both .1s;
}

@keyframes heroPersonReveal {
  from {
    opacity: 0;
    transform:
      translateX(calc(-50% + var(--hero-x)))
      translateY(calc(34px + var(--hero-y) + var(--hero-scroll-y))) !important;
  }
  to {
    opacity: 1;
    transform:
      translateX(calc(-50% + var(--hero-x)))
      translateY(calc(var(--hero-y) + var(--hero-scroll-y))) !important;
  }
}

@keyframes heroCopyReveal {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroSideReveal {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroFooterReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroGhostQualityReveal {
  from { opacity: 0; transform: translateX(-50%) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.hero-reference .hero-play {
  animation: heroPlayPulse 2.8s ease-in-out infinite;
}

@keyframes heroPlayPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(111,66,193,.16), 0 14px 30px rgba(111,66,193,.15); }
  50% { box-shadow: 0 0 0 10px rgba(111,66,193,0), 0 18px 36px rgba(111,66,193,.22); }
}

@media (max-width: 860px) {
  .hero-reference .hero-stage {
    --hero-x: 0px !important;
    --hero-y: 0px !important;
    --hero-scroll-y: 0px !important;
    transform: none !important;
  }

  .hero-reference .hero-stage img {
    width: min(78vw, 320px) !important;
    max-width: 320px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reference .hero-stage,
  .hero-reference-copy,
  .hero-reference-side,
  .hero-reference-footer,
  .hero-reference .hero-ghost,
  .hero-reference .hero-play {
    animation: none !important;
    transition: none !important;
  }

  .hero-reference .hero-stage {
    --hero-x: 0px !important;
    --hero-y: 0px !important;
    --hero-scroll-y: 0px !important;
  }
}


/* Accessibility: skip link + visible keyboard focus */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px;
}


/* Recommendations */
.testimonials {
  padding-top: 120px;
  padding-bottom: 120px;
  border-top: 1px solid var(--line);
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.quote-card {
  margin: 0;
  min-height: 380px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: background .4s var(--ease), transform .4s var(--ease);
}

.quote-card:hover {
  background: var(--white);
  transform: translateY(-3px);
}

.quote-number {
  color: var(--purple);
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: .08em;
}

.quote-card blockquote { margin: 44px 0 0; }

.quote-card blockquote p {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
}

.quote-featured { background: var(--ink); color: var(--white); }
.quote-featured:hover { background: var(--ink); }
.quote-featured blockquote p {
  color: var(--white);
  font-size: clamp(28px, 2.6vw, 40px);
}
.quote-featured .quote-number { color: var(--green); }

.quote-card figcaption {
  margin-top: auto;
  padding-top: 36px;
  display: grid;
  gap: 4px;
}

.quote-card figcaption strong {
  font-size: 15px;
  letter-spacing: -.02em;
}

.quote-card figcaption span {
  font-size: 12px;
  color: var(--ink-2);
}

.quote-card figcaption small {
  margin-top: 6px;
  color: var(--purple);
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quote-featured figcaption span { color: rgba(255,253,249,.72); }
.quote-featured figcaption small { color: var(--green); }

.quote-source {
  margin: 28px 0 0;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .quote-featured { grid-column: 1 / -1; min-height: 320px; }
}

@media (max-width: 620px) {
  .testimonials { padding-top: 84px; padding-bottom: 84px; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-card { min-height: 0; padding: 24px; }
  .quote-card blockquote { margin-top: 28px; }
}


/* Tarjeta "perfil técnico" (Sobre mí) */
.id-card-wrap { margin: 30px 0 4px; perspective: 1200px; max-width: 460px; }
.id-card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.id-inner { display: grid; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.id-card.is-flipped .id-inner { transform: rotateY(180deg); }
.id-card:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; border-radius: 24px; }
.id-face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 24px 26px; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 24px 50px -28px rgba(34,24,46,.35); }
.id-front { background: var(--white); border: 1px solid var(--line); }
.id-back { background: var(--ink); color: var(--white); transform: rotateY(180deg); }
.id-label { font: 500 10px/1 "DM Mono", monospace; letter-spacing: .12em; color: var(--purple); }
.id-back .id-label { color: var(--purple-2); }
.id-name { margin-top: 8px; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.id-name em { font-family: "Instrument Serif", serif; font-weight: 400; font-style: italic; color: var(--purple); letter-spacing: 0; }
.id-role { font-size: 15px; font-weight: 600; }
.id-company { font-size: 13px; color: var(--muted); }
.id-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.id-tags span { font: 500 11px/1 "DM Mono", monospace; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.id-hint { font: 500 10px/1 "DM Mono", monospace; letter-spacing: .1em; color: var(--muted); }
.id-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.id-item { display: grid; grid-template-columns: 26px 1fr; gap: 6px; font-size: 13px; line-height: 1.5; }
.id-item b { font: 500 11px/1.9 "DM Mono", monospace; color: var(--purple-2); }
@media (prefers-reduced-motion: reduce) { .id-inner { transition: none; } }
@media (max-width: 560px) { .id-face { min-height: 280px; padding: 22px; } }

/* ===== Recorrido: cronograma horizontal ===== */
.tl-shell { position: relative; }
.timeline-h { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 40px calc(100% - min(560px, 78%) - 22px) 8px 0; border-top: 0; cursor: grab; outline: none; }
.timeline-h::-webkit-scrollbar { display: none; }
.timeline-h.is-drag { cursor: grabbing; scroll-snap-type: none; }
.timeline-h::before { content: none; }
.timeline-h .timeline-item { flex: 0 0 min(560px, 78%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 30px 32px; background: var(--white); border: 1px solid var(--line); border-radius: 26px; border-bottom: 1px solid var(--line); position: relative; opacity: .5; transform: scale(.985); transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .35s; }
.timeline-h .timeline-item.is-active { opacity: 1; transform: none; border-color: rgba(111,66,193,.45); }
.timeline-h .timeline-item::before { content: ""; position: absolute; top: -29px; left: 32px; width: 13px; height: 13px; border-radius: 50%; background: #f3efe9; box-shadow: inset 0 0 0 2px var(--muted); transition: all .3s; }
.timeline-h .timeline-item.is-active::before { background: var(--purple); box-shadow: 0 0 0 6px rgba(111,66,193,.18); }
.timeline-h .timeline-item::after { content: ""; position: absolute; top: -23px; left: 45px; right: -22px; height: 1px; background: var(--line); }
.timeline-h .timeline-item:last-child::after { right: 0; }
.timeline-dot { display: none; }
.timeline-h .timeline-period { color: var(--purple); display: flex; align-items: center; gap: 10px; }
.timeline-h .is-now .timeline-period::after { content: "● ACTUAL"; font-size: 9px; letter-spacing: .1em; color: #1f7a4d; }
.timeline-h .timeline-main h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 6px 0 12px; }
.timeline-h .timeline-main p:last-child { font-size: 14px; max-width: none; }
.timeline-h .timeline-tech { align-self: auto; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.tl-controls { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.tl-count { font: 500 12px/1 "DM Mono", monospace; color: var(--ink); min-width: 52px; }
.tl-bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl-bar i { display: block; height: 100%; width: 33.3%; background: var(--purple); transition: width .3s var(--ease); }
.tl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; transition: all .2s; }
.tl-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-btn:disabled { opacity: .35; cursor: default; }
.tl-btn:focus-visible, .timeline-h:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
@media (max-width: 900px) {
  .timeline-h { padding-right: calc(100% - 86% - 22px); }
  .timeline-h .timeline-item { flex-basis: 86%; padding: 24px; }
  .timeline-h .timeline-item::before { left: 24px; }
  .timeline-h .timeline-item::after { left: 37px; }
}
@media (prefers-reduced-motion: reduce) { .timeline-h .timeline-item, .tl-bar i { transition: none; } }

/* ===== Herramientas con pruebas ===== */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; vertical-align: middle; }
.d-ok { background: #1f7a4d; } .d-part { background: var(--purple); } .d-wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.tools-sec { padding-top: 120px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.tool-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.tool-groups { display: grid; gap: 28px; }
.tool-groups h3 { margin: 0 0 12px; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn { font: 600 14px/1 inherit; font-family: inherit; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 12px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 9px; transition: border-color .2s, background .2s, color .2s; }
.tool-btn:hover { border-color: var(--purple); }
.tool-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.tool-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tool-proof { background: var(--ink); color: #fff; border-radius: 24px; padding: 28px; position: sticky; top: 90px; }
.tool-proof .k { font: 500 10px/1 "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: #cdb8ff; }
.tool-proof h4 { margin: 12px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.tool-proof p { margin: 0 0 16px; color: #d8d2de; font-size: 14.5px; line-height: 1.55; }
.tool-proof ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tool-proof li { border-top: 1px solid rgba(255,255,255,.16); padding: 11px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tool-proof li a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tool-proof li span { font: 500 11px/1.3 "DM Mono", monospace; color: #b9b1c2; white-space: nowrap; }
.tool-proof li.is-soon { color: #b9b1c2; }
.tool-legend { display: flex; flex-wrap: wrap; gap: 22px; margin: 28px 0 0; font: 500 11px/1 "DM Mono", monospace; color: var(--muted); }
.tool-legend > span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) {
  .tool-wrap { grid-template-columns: 1fr; }
  .tool-proof { position: static; }
  .tools-sec { padding-top: 80px; padding-bottom: 80px; }
}

/* ===== Credenciales y estado de proyectos ===== */
.creds { padding-top: 0; padding-bottom: 72px; }
.creds-head { display: grid; grid-template-columns: .34fr 1fr; gap: 40px; align-items: start; margin-bottom: 36px; }
.creds-head .section-index { margin: 14px 0 0; }
.creds-title { font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -.045em; margin: 0; max-width: 18ch; line-height: 1.02; }
.creds-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds-list li { padding: 24px 24px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.creds-list li:last-child { border-right: 0; }
.creds-list strong { font-size: 18px; letter-spacing: -.03em; margin-top: 10px; }
.creds-list em { font-style: normal; color: var(--muted); font-size: 12px; }
.creds-list a { margin-top: 10px; font-size: 11px; font-weight: 700; }
.creds-state, .status { font: 500 10px/1 "DM Mono", monospace; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 7px; }
.creds-state::before, .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.st-ok { color: #1f7a4d; } .st-ok::before { background: #1f7a4d; }
.st-part, .st-wip { color: var(--purple); } .st-part::before, .st-wip::before { background: var(--purple); }
.st-wait { color: var(--muted); } .st-wait::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.st-lab { color: var(--muted); }
.project-stack { display: flex; flex-direction: column; gap: 8px; }
.project-stack > span:not(.status) { color: var(--muted); }
.project-soon { opacity: .78; }
.project-soon:hover { padding-left: 0; padding-right: 0; background: transparent; }
@media (max-width: 900px) {
  .creds-head { grid-template-columns: 1fr; gap: 14px; }
  .creds-list { grid-template-columns: repeat(2, 1fr); }
  .creds-list li:nth-child(2) { border-right: 0; }
  .creds-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .creds-list { grid-template-columns: 1fr; }
  .creds-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .creds-list li:last-child { border-bottom: 0; }
}
.creds-title { font-weight: 700; line-height: .95; }
.creds-title span, .creds-title em { display: block; }
.creds-title em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; color: var(--purple); letter-spacing: -.03em; font-size: 1.12em; }
