:root {
  color-scheme: dark;
  --bg: #090d10;
  --surface: #11171b;
  --surface-strong: #171f24;
  --text: #f4f7f8;
  --muted: #9ba8ae;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.22);
  --accent: #21d7ef;
  --accent-soft: rgba(33,215,239,.12);
  --green: #6beaaf;
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1360px;
  --header-height: 76px;
  --rail-height: 58px;
  --header-stack-height: calc(var(--header-height) + var(--rail-height));
}

/* Header search for the redesigned home page. */
.site-search{position:relative}.site-search-toggle{display:flex;align-items:center;gap:.38rem;padding:.48rem .65rem;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text);font:700 .72rem var(--display);letter-spacing:.04em;cursor:pointer}.site-search-toggle:hover,.site-search-toggle:focus-visible{border-color:var(--accent);color:var(--accent)}.site-search-toggle span[aria-hidden]{font-size:1.2rem;line-height:.7}.site-search-panel{position:fixed;z-index:2200;left:50%;top:calc(var(--header-stack-height) + 12px);width:min(680px,calc(100vw - 2rem));max-height:calc(100vh - var(--header-stack-height) - 32px);overflow:hidden;transform:translateX(-50%);border:1px solid var(--line-strong);border-radius:10px;background:rgba(9,13,16,.98);box-shadow:0 24px 80px rgba(0,0,0,.55);backdrop-filter:blur(18px)}.site-search-field{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;padding:.8rem 1rem;border-bottom:1px solid var(--line)}.site-search-field>span{color:var(--accent);font-size:1.45rem}.site-search-field input{width:100%;padding:.35rem 0;border:0;outline:0;background:transparent;color:var(--text);font:500 1rem var(--body)}.site-search-field input::placeholder{color:var(--muted)}.site-search-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:1.65rem;line-height:1;cursor:pointer}.site-search-close:hover,.site-search-close:focus-visible{background:var(--accent-soft);color:var(--text)}.site-search-status{padding:.65rem 1rem .35rem;color:var(--muted);font-size:.72rem}.site-search-results{max-height:calc(100vh - var(--header-stack-height) - 110px);overflow:auto;padding:.35rem}.site-search-result{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:1rem;align-items:center;padding:.85rem 1rem;border-radius:7px;color:inherit;text-decoration:none}.site-search-result:hover,.site-search-result:focus-visible{outline:0;background:var(--accent-soft)}.site-search-result-copy,.site-search-result-copy>span{display:block}.site-search-result-title{display:block;margin:0;color:var(--text);font:700 .95rem var(--display)}.site-search-result-copy>span{margin-top:.28rem;color:var(--muted);font-size:.78rem;line-height:1.45}.site-search-result-copy>span strong,.site-search-result-title strong{display:inline;color:var(--text);font:inherit;font-weight:800}.site-search-result img,.site-search-result-placeholder{display:block;width:84px;height:58px;margin:0;border-radius:5px;object-fit:cover;background:linear-gradient(135deg,var(--accent-soft),rgba(255,255,255,.04))}.site-search-open:before{content:"";position:fixed;z-index:2100;inset:0;background:rgba(0,0,0,.5)}
@media(max-width:1100px){.site-search-label{display:none}.site-search-toggle{padding:.5rem}}
@media(max-width:760px){.site-search-toggle{width:38px;height:38px;justify-content:center}.site-search-results{max-height:calc(100vh - var(--header-stack-height) - 100px)}}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-stack-height) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 12px;
  left: 12px;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  border-radius: 4px;
  background: var(--accent);
  color: #061012;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.home-shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.home-section { padding: clamp(6rem, 8vw, 8.5rem) 0; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); }
h1 { margin-bottom: 1.8rem; font-size: clamp(4.2rem, 7.5vw, 7.8rem); line-height: .87; letter-spacing: -.068em; }
h2 { margin-bottom: 0; font-size: clamp(3rem, 5vw, 5.6rem); line-height: .93; letter-spacing: -.06em; }
h3 { letter-spacing: -.025em; }

.site-header {
  position: fixed;
  z-index: 1200;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg,rgba(9,13,16,.94),rgba(9,13,16,.72));
  backdrop-filter: blur(18px);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(9,13,16,.94); }
.site-header__inner {
  display: flex;
  align-items: center;
  width: min(calc(100% - 48px), var(--shell));
  height: 100%;
  margin-inline: auto;
  gap: 1.5rem;
}
.site-logo { display: inline-flex; align-items: center; gap: .7rem; flex: 0 0 auto; text-decoration: none; white-space: nowrap; }
.site-logo span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(33,215,239,.45); color: var(--accent); font-size: .7rem; font-weight: 900; letter-spacing: .04em; }
.site-logo strong { font-size: .94rem; letter-spacing: -.02em; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.2rem); margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--muted); font-size: .82rem; font-weight: 750; text-decoration: none; transition: color .18s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-header__actions { display: flex; align-items: center; gap: .65rem; flex: 0 0 auto; }
.header-contact { display: inline-flex; align-items: center; min-height: 42px; padding: .65rem .9rem; background: var(--accent); color: #061012; font-size: .72rem; font-weight: 850; text-decoration: none; }
.header-contact:hover { background: #74edff; }
.locale-link { display: grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--line); color: var(--text); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-decoration: none; }
.locale-link:hover { border-color: var(--accent); color: var(--accent); }
.menu-button { display: none; place-items: center; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.menu-button span { display: block; width: 22px; height: 2px; margin: 2.5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.site-header.nav-open .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .menu-button span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-backdrop { display: none; position: fixed; z-index: 1100; inset: var(--header-height) 0 0; width: 100%; border: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); cursor: pointer; }

.portfolio-rail { position: sticky; z-index: 1050; top: var(--header-height); height: var(--rail-height); margin-top: var(--header-height); border-bottom: 1px solid var(--line); background: rgba(13,19,22,.94); backdrop-filter: blur(18px); }
.portfolio-rail__inner { display: flex; align-items: stretch; width: min(100%, var(--shell)); height: 100%; margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.portfolio-rail__inner::-webkit-scrollbar { display: none; }
.portfolio-rail a, .portfolio-rail button { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .55rem; padding: 0 1.15rem; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font: 760 .72rem var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .18s ease, color .18s ease; }
.portfolio-rail a:hover, .portfolio-rail button:hover { background: rgba(255,255,255,.035); color: var(--text); }
.portfolio-rail__home { color: var(--text) !important; font-weight: 850 !important; }
.portfolio-rail__home span, .portfolio-rail__link span { color: var(--accent); font: 750 .58rem ui-monospace,monospace; }
.portfolio-rail__links { display: contents; }
.portfolio-rail__search { margin-left: auto; border-left: 1px solid var(--line) !important; color: var(--accent) !important; }
.portfolio-rail__search span { font-size: 1.15rem; }
.portfolio-rail--global { position: fixed; inset: var(--header-height) 0 auto; width: 100%; margin-top: 0; }

.home-hero {
  position: relative;
  padding: clamp(5rem, 7vw, 7rem) 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 26%, rgba(33,215,239,.16), transparent 27%),
    radial-gradient(circle at 14% 0%, rgba(107,234,175,.07), transparent 28%),
    linear-gradient(135deg,#090d10 0%,#0c1216 55%,#0b1013 100%);
}
.home-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom,black,transparent 82%); }
.home-hero__grid { position: relative; z-index: 1; display: block; min-height: clamp(650px, calc(100svh - var(--header-stack-height)), 820px); }
.home-hero__copy { max-width: 1120px; }
.home-hero__summary { max-width: 790px; margin: 0 0 2rem; color: #b8c2c7; font-size: clamp(1.05rem, 1.65vw, 1.3rem); line-height: 1.7; }
.home-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 50px; padding: .8rem 1.2rem; border: 1px solid transparent; font-size: .8rem; font-weight: 850; letter-spacing: .025em; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--accent); color: #061012; }
.button--primary:hover { background: #74edff; }
.button--ghost { border-color: var(--line-strong); background: rgba(255,255,255,.025); }
.button--ghost:hover { border-color: var(--accent); color: var(--accent); }
.availability { display: flex; align-items: flex-start; gap: .65rem; max-width: 560px; margin: 1.5rem 0 0; color: var(--muted); font-size: .78rem; }
.hero-cv-link { display: inline-flex; gap: .4rem; margin-top: 1rem; color: var(--muted); font-size: .76rem; font-weight: 750; text-underline-offset: 5px; }
.hero-cv-link:hover { color: var(--accent); }
.availability > span { flex: 0 0 auto; width: 8px; height: 8px; margin-top: .42rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(107,234,175,.72); }
.neural-band { position: relative; padding: clamp(5.5rem,7vw,7.5rem) 0; border-block: 1px solid var(--line); overflow: hidden; background: radial-gradient(circle at 50% 52%,rgba(33,215,239,.1),transparent 30%),#0c1215; }
.neural-band::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle,rgba(33,215,239,.75) 1px,transparent 1.5px); background-size: 78px 78px; mask-image: linear-gradient(90deg,transparent,black 18%,black 82%,transparent); }
.home-hero__system { --system-glow: rgba(33,215,239,.08); position: relative; min-height: 560px; isolation: isolate; background: radial-gradient(circle at 50% 53%,var(--system-glow),transparent 28%); }
.system-caption { position: absolute; z-index: 2; top: 0; left: 0; max-width: 580px; margin: 0; }
.system-caption span, .system-caption strong, .system-caption small { display: block; }
.system-caption span { color: var(--accent); font: 750 .62rem ui-monospace,monospace; letter-spacing: .14em; text-transform: uppercase; }
.system-caption strong { margin-top: .55rem; font: 750 clamp(2.2rem,4vw,4.7rem) var(--display); letter-spacing: -.045em; line-height: .95; }
.system-caption small { max-width: 480px; margin-top: 1rem; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.signal { position: absolute; z-index: 3; width: min(270px,24%); padding: 1.15rem 1.25rem; border: 1px solid var(--line); background: rgba(17,23,27,.86); color: var(--text); text-align: left; backdrop-filter: blur(10px); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.signal:hover, .signal:focus-visible, .signal[aria-pressed="true"] { border-color: rgba(33,215,239,.7); background: rgba(20,32,36,.94); box-shadow: 0 0 32px rgba(33,215,239,.1); transform: translateY(-3px); }
.signal span { color: var(--accent); font: 700 .62rem ui-monospace, monospace; }
.signal strong, .signal small { display: block; }
.signal strong { margin-top: .35rem; font-size: 1rem; letter-spacing: .16em; }
.signal small { margin-top: .25rem; color: var(--muted); font-size: .68rem; }
.signal--data { top: 46%; left: 0; }
.signal--strategy { top: 46%; right: 0; }
.signal--creative { left: 50%; bottom: 0; transform: translateX(-50%); }
.signal--creative:hover, .signal--creative:focus-visible, .signal--creative[aria-pressed="true"] { transform: translateX(-50%) translateY(-3px); }
.system-core { position: absolute; z-index: 4; display: grid; place-items: center; align-content: center; inset: 49% auto auto 50%; width: 160px; aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid rgba(33,215,239,.48); border-radius: 50%; background: rgba(9,13,16,.94); color: var(--accent); letter-spacing: .12em; box-shadow: 0 0 80px rgba(33,215,239,.14); transition: box-shadow .2s ease, border-color .2s ease; }
.system-core small { color: var(--muted); font: 700 .52rem ui-monospace,monospace; }
.system-core > span { margin-top: .25rem; font: 850 .68rem ui-monospace,monospace; }
.system-core i { position: absolute; inset: 12px; border: 1px dashed rgba(33,215,239,.25); border-radius: inherit; animation: orbit 12s linear infinite; }
.system-core i::after { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.system-line { position: absolute; z-index: 1; height: 1px; transform-origin: left; background: linear-gradient(90deg,rgba(33,215,239,.08),rgba(33,215,239,.52),rgba(33,215,239,.08)); transition: filter .2s ease, opacity .2s ease; }
.system-line--one { top: 58%; left: 18%; width: 33%; transform: rotate(-10deg); }
.system-line--two { top: 58%; left: 50%; width: 33%; transform: rotate(10deg); }
.system-line--three { top: 61%; left: 50%; width: 17%; transform: rotate(90deg); }
.home-hero__system[data-active="data"] .system-line--one, .home-hero__system[data-active="strategy"] .system-line--two, .home-hero__system[data-active="creative"] .system-line--three { filter: drop-shadow(0 0 7px var(--accent)); opacity: 1; }
.home-hero__system[data-active] .system-core { border-color: var(--accent); box-shadow: 0 0 100px rgba(33,215,239,.22); }
.neural-spark { position: absolute; z-index: 0; width: 6px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); opacity: .55; }
.neural-spark--one { top: 30%; left: 29%; }
.neural-spark--two { top: 72%; left: 18%; }
.neural-spark--three { right: 19%; bottom: 24%; }
@keyframes orbit { to { transform: rotate(360deg); } }
.proof-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); margin-top: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--line); border-inline: 1px solid var(--line); }
.proof-strip div { min-width: 0; padding: 1.6rem; border-right: 1px solid var(--line); background: rgba(9,13,16,.72); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { color: var(--accent); font-family: var(--display); font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1; letter-spacing: -.04em; }
.proof-strip span { margin-top: .45rem; color: var(--muted); font-size: .7rem; }

.section-heading { max-width: 1050px; margin-bottom: clamp(3.5rem, 5vw, 5rem); }
.section-heading--split { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: clamp(2rem,7vw,7rem); align-items: end; max-width: none; }
.section-heading--split > p { margin: 0; color: var(--muted); font-size: 1rem; }
.capabilities { padding-block: clamp(7.5rem,10vw,11rem); background: #101619; }
.capability-grid { display: block; border-top: 1px solid var(--line-strong); }
.capability-card { display: grid; grid-template-columns: 72px minmax(280px,.8fr) minmax(0,1.2fr); gap: 2rem; align-items: center; min-width: 0; min-height: 190px; padding: 2rem 0; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.capability-card:hover { padding-inline: 1.25rem; background: rgba(33,215,239,.025); }
.capability-card > span { color: var(--accent); font: 700 .68rem ui-monospace, monospace; }
.capability-card h3 { margin: 0; font-size: clamp(2.2rem,3.5vw,3.7rem); line-height: .95; }
.capability-card p { justify-self: end; max-width: 540px; margin: 0; color: var(--muted); font-size: .98rem; }

.selected-work { background: #0b1013; }
.work-list { border-top: 1px solid var(--line); }
.work-card { display: grid; grid-template-columns: minmax(320px,.88fr) minmax(0,1.12fr); gap: clamp(2rem,4vw,4.5rem); padding: clamp(2.5rem,3.5vw,3.5rem) 0; border-bottom: 1px solid var(--line); align-items: center; }
.work-card:nth-child(even) .work-card__media { order: 2; }
.work-card__media { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #151b1f; text-decoration: none; }
.work-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #f5f7f7; filter: saturate(.82) contrast(1.02); transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.work-card:hover .work-card__media img { transform: scale(1.025); filter: saturate(1) contrast(1.04); }
.work-card__body { min-width: 0; }
.work-card__meta { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 1.1rem; }
.work-card__meta span { color: var(--accent); font: 700 .68rem ui-monospace, monospace; }
.work-card__meta p { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.work-card h3 { max-width: 720px; margin-bottom: 1.15rem; font-size: clamp(2.15rem,3.5vw,3.5rem); line-height: .98; }
.work-card__summary { max-width: 680px; margin: 0; color: #bac4c8; font-size: .96rem; }
.work-card__summary + .work-card__summary { margin-top: .7rem; }
.work-card__summary strong { color: var(--text); }
.work-card__metrics { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.6rem 0 1.8rem; padding: 0; list-style: none; }
.work-card__metrics li { padding: .42rem .65rem; border: 1px solid var(--line); color: #d4dde0; font-size: .68rem; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .78rem; font-weight: 850; text-underline-offset: 5px; }
.text-link:hover { color: #8cf2ff; }
.research-visual { position: relative; min-height: 330px; padding: 2rem; background: radial-gradient(circle at 70% 10%,rgba(33,215,239,.12),transparent 28%),#11171b; }
.research-visual__label { color: var(--accent); font: 700 .65rem ui-monospace,monospace; letter-spacing: .12em; }
.research-visual__plot { display: flex; align-items: end; gap: 5%; height: 210px; margin-top: 1.7rem; padding: 1.5rem 1rem 0; border-left: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.research-visual__plot i { flex: 1; height: var(--h); background: linear-gradient(180deg,var(--accent),rgba(33,215,239,.12)); }
.research-visual__axis { display: flex; justify-content: space-between; margin-top: .75rem; color: var(--muted); font: 600 .55rem ui-monospace,monospace; letter-spacing: .08em; }

.method { position: relative; padding-block: clamp(8rem,11vw,12rem); background: radial-gradient(circle at 85% 15%,rgba(33,215,239,.08),transparent 28%),var(--surface-strong); }
.method-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1.5rem,3vw,3rem); margin: 0; padding: 0; list-style: none; }
.method-grid::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 1px; background: linear-gradient(90deg,var(--accent),rgba(33,215,239,.12)); }
.method-grid li { position: relative; min-width: 0; min-height: 285px; padding: 0 1rem 0 0; }
.method-grid span { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; aspect-ratio: 1; border: 1px solid rgba(33,215,239,.5); border-radius: 50%; background: var(--surface-strong); color: var(--accent); font: 700 .68rem ui-monospace,monospace; }
.method-grid h3 { margin: 3.2rem 0 1rem; font-size: 2rem; }
.method-grid p { max-width: 280px; margin: 0; color: var(--muted); font-size: .9rem; }

.portfolio-library { border-block: 1px solid var(--line); background: #0d1316; }
.portfolio-search { margin-bottom: 2rem; }
.portfolio-search > label { display: block; margin-bottom: .7rem; color: var(--muted); font-size: .72rem; font-weight: 750; }
.portfolio-search > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; min-height: 76px; border: 1px solid var(--line-strong); background: #090d10; }
.portfolio-search > div > span { padding-left: 1.5rem; color: var(--accent); font-size: 1.65rem; }
.portfolio-search input { width: 100%; padding: 1rem 1.1rem; border: 0; outline: 0; background: transparent; color: var(--text); font: 520 1.1rem var(--body); }
.portfolio-search input::placeholder { color: #78868d; }
.portfolio-search button { align-self: stretch; padding: 0 1.6rem; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 820; cursor: pointer; }
.portfolio-search button:hover { background: var(--accent); color: #061012; }
.library-grid { display: grid; grid-template-columns: repeat(12,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.library-card { position: relative; display: flex; grid-column: span 3; min-width: 0; min-height: 250px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s ease, color .2s ease; overflow: hidden; }
.library-card--featured { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(220px,.75fr); grid-column: span 6; min-height: 430px; }
.library-card:hover { background: var(--accent-soft); }
.library-card__media { min-width: 0; overflow: hidden; background: #f2f4f4; }
.library-card__media img { width: 100%; height: 100%; object-fit: contain; filter: saturate(.72) contrast(1.04); transition: transform .45s ease, filter .3s ease; }
.library-card:hover .library-card__media img { transform: scale(1.025); filter: saturate(1); }
.library-card__copy { position: relative; display: flex; flex-direction: column; width: 100%; padding: 2rem; }
.library-card__index { color: var(--accent); font: 700 .65rem ui-monospace,monospace; letter-spacing: .08em; }
.library-card h3 { margin: auto 0 .65rem; font-size: 1.75rem; }
.library-card--featured h3 { font-size: 2.5rem; }
.library-card p { max-width: 390px; margin: 0; color: var(--muted); font-size: .86rem; }
.library-card__arrow { position: absolute; top: 1.8rem; right: 1.8rem; color: var(--accent); font-size: 1.1rem; }

.profile-band { border-top: 1px solid var(--line); background: #0e1417; }
.profile-band__grid, .contact-band__grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(4rem,8vw,9rem); align-items: start; }
.profile-band__grid > div:last-child > p, .contact-band__grid > div:last-child > p { margin: 0 0 2rem; color: #b8c3c7; font-size: clamp(1.05rem,1.8vw,1.35rem); line-height: 1.7; }
.profile-band__personal { margin: 2.5rem 0; padding: 2rem 0; border-block: 1px solid var(--line); }
.profile-band__personal .eyebrow { margin-bottom: .7rem !important; color: var(--accent) !important; font-size: .68rem !important; }
.profile-band__personal p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 1rem; }
.profile-facts { display: grid; grid-template-columns: repeat(3,1fr); margin: 0 0 2.5rem; padding: 0; }
.profile-facts div { padding: 0 1.25rem; border-left: 1px solid var(--line); }
.profile-facts div:first-child { padding-left: 0; border-left: 0; }
.profile-facts dt { color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-facts dd { margin: .45rem 0 0; color: var(--text); font-size: .82rem; line-height: 1.5; }
.contact-band { border-top: 1px solid var(--line); background: radial-gradient(circle at 85% 45%,rgba(33,215,239,.12),transparent 30%),#10171b; }
.contact-band h2 { max-width: 760px; }
.home-footer { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.home-footer .home-shell { display: flex; justify-content: space-between; gap: 1rem; }
.home-footer p, .home-footer a { margin: 0; color: var(--muted); font-size: .7rem; }
.home-footer a { text-underline-offset: 4px; }

@media (max-width: 1050px) {
  :root { --header-height: 70px; }
  .site-header__actions { margin-left: auto; }
  .site-nav { position: fixed; z-index: 1200; top: var(--header-height); right: 0; width: min(420px,88vw); height: calc(100svh - var(--header-height)); margin: 0; padding: 2rem; transform: translateX(102%); border-left: 1px solid var(--line); background: #10171b; transition: transform .24s ease; overflow-y: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 1rem .25rem; color: var(--text); font-size: 1.1rem; }
  .site-header.nav-open .site-nav { transform: translateX(0); }
  .site-header.nav-open + .menu-backdrop { display: block; }
  .menu-button { display: grid; }
  .portfolio-rail__search { margin-left: 0; }
  .home-hero__grid { min-height: 650px; }
  .home-hero__system { min-height: 500px; }
  .proof-strip { grid-template-columns: repeat(2,1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .library-grid { grid-template-columns: repeat(2,1fr); }
  .capability-card { grid-template-columns: 56px minmax(0,1fr); gap: 1.5rem; }
  .capability-card p { grid-column: 2; justify-self: start; max-width: 620px; }
  .library-card, .library-card--featured { grid-column: span 1; }
  .library-card--featured { grid-template-columns: 1fr; min-height: 500px; }
  .library-card__media { min-height: 260px; }
  .method-grid { grid-template-columns: repeat(2,1fr); }
  .method-grid::before { display: none; }
  .method-grid li { padding-top: 1.5rem; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .home-shell, .site-header__inner { width: min(calc(100% - 32px), var(--shell)); }
  .site-logo strong { font-size: .82rem; }
  h1 { font-size: clamp(3.35rem,15vw,5.2rem); }
  h2 { font-size: clamp(2.7rem,12vw,4.25rem); }
  .home-section { padding: 5rem 0; }
  .section-heading { margin-bottom: 3rem; }
  .home-hero { padding-top: 4.5rem; }
  .home-hero__grid { min-height: 0; }
  .neural-band { padding: 4.5rem 0; }
  .home-hero__system { min-height: 500px; margin-top: 0; }
  .signal { width: min(220px,61%); }
  .system-core { width: 128px; }
  .proof-strip { margin-top: 3rem; }
  .proof-strip div { padding: 1.25rem; }
  .section-heading--split, .profile-band__grid, .contact-band__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .library-grid, .method-grid { grid-template-columns: 1fr; }
  .library-card, .library-card--featured { grid-column: span 1; }
  .capability-card { grid-template-columns: 48px minmax(0,1fr); min-height: 0; padding: 2.25rem 0; }
  .capability-card:hover { padding-inline: .5rem; }
  .capability-card h3 { margin: 0; }
  .capability-card p { grid-column: 2; }
  .work-card { grid-template-columns: 1fr; gap: 2rem; }
  .work-card:nth-child(even) .work-card__media { order: 0; }
  .work-card__media img { aspect-ratio: 4/3; }
  .method-grid { gap: 2.75rem; }
  .method-grid::before { display: block; top: 28px; bottom: 28px; left: 28px; right: auto; width: 1px; height: auto; }
  .method-grid li { display: grid; grid-template-columns: 72px minmax(0,1fr); min-height: 0; padding: 0; border: 0; }
  .method-grid span { grid-row: 1 / 3; }
  .method-grid h3 { margin: .35rem 0 .8rem; }
  .method-grid p { grid-column: 2; }
  .profile-facts { grid-template-columns: 1fr; gap: 1.25rem; }
  .profile-facts div, .profile-facts div:first-child { padding: 0 0 1.25rem; border: 0; border-bottom: 1px solid var(--line); }
  .home-footer .home-shell { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header__inner { gap: .7rem; }
  .site-logo strong { display: none; }
  .header-contact { display: none; }
  .home-actions { flex-direction: column; }
  .button { width: 100%; }
  .portfolio-search > div { grid-template-columns: auto minmax(0,1fr); }
  .portfolio-search button { grid-column: 1 / -1; min-height: 56px; border-top: 1px solid var(--line); border-left: 0; }
  .home-hero__system { display: block; min-height: 580px; }
  .system-caption { max-width: 280px; }
  .system-caption strong { font-size: 2.1rem; }
  .signal { width: 158px; padding: .8rem; }
  .signal--data { top: 145px; }
  .signal--strategy { top: 285px; }
  .signal--creative { bottom: 1%; }
  .system-core { inset: 46% auto auto 50%; width: 108px; }
  .signal strong { font-size: .82rem; }
  .signal small { font-size: .6rem; }
  .proof-strip { grid-template-columns: repeat(2,1fr); border-bottom: 1px solid var(--line); }
  .proof-strip div { padding: 1rem; }
  .proof-strip div:nth-child(odd) { border-right: 1px solid var(--line); }
  .proof-strip div:nth-child(even) { border-right: 0; }
  .proof-strip div:nth-last-child(-n+2) { border-bottom: 0; }
  .work-card h3 { font-size: 2.3rem; }
  .work-card__metrics {
    display: grid;
    gap: 0;
    margin-block: 1.35rem 1.5rem;
    border-block: 1px solid var(--line);
  }
  .work-card__metrics li {
    position: relative;
    padding: .5rem .25rem .5rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    line-height: 1.35;
  }
  .work-card__metrics li:last-child { border-bottom: 0; }
  .work-card__metrics li::before {
    content: "";
    position: absolute;
    top: .85rem;
    left: .1rem;
    width: .35rem;
    height: .35rem;
    border-radius: 50%;
    background: var(--accent);
  }
  .research-visual { min-height: 270px; padding: 1.3rem; }
  .research-visual__plot { height: 170px; }
}

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

/* Homepage visual refinement: layered surfaces, clearer hierarchy and softer rhythm. */
:root { --radius-sm: 12px; --radius: 22px; --radius-lg: 34px; --shadow: 0 30px 80px rgba(0,0,0,.28); --rail-height: 0px; --display: Arial, "Helvetica Neue", sans-serif; }
h1 { letter-spacing: -.038em; }
h2 { letter-spacing: -.035em; }
.home-hero { padding-top: clamp(5.5rem,7vw,7.5rem); background: radial-gradient(circle at 82% 26%,rgba(33,215,239,.2),transparent 29%),radial-gradient(circle at 14% 0%,rgba(107,234,175,.07),transparent 28%),linear-gradient(135deg,#090d10 0%,#0c1216 55%,#0b1013 100%); }
.home-hero__grid { display: flex; align-items: center; min-height: clamp(590px,calc(100svh - var(--header-stack-height) - 80px),750px); }
.home-hero__grid::before { content: ""; position: absolute; z-index: -1; top: 3%; right: 0; width: min(39vw,520px); aspect-ratio: 1; border: 1px solid rgba(33,215,239,.2); border-radius: 50%; background: radial-gradient(circle,rgba(33,215,239,.18) 0 2px,transparent 3px),radial-gradient(circle,rgba(33,215,239,.06),transparent 62%); background-size: 34px 34px,auto; box-shadow: inset 0 0 0 55px rgba(9,13,16,.2),inset 0 0 0 56px rgba(33,215,239,.08),0 0 100px rgba(33,215,239,.08); opacity: .78; }
.home-hero__grid::after { content: "DATA  /  JUDGMENT  /  EXECUTION"; position: absolute; z-index: -1; right: 3.5%; bottom: 18%; padding: .65rem .85rem; border: 1px solid rgba(33,215,239,.26); border-radius: 999px; background: rgba(9,13,16,.72); color: var(--accent); font: 700 .58rem ui-monospace,monospace; letter-spacing: .14em; }
html[lang="es"] .home-hero__grid::after { content: "DATOS  /  CRITERIO  /  EJECUCIÓN"; }
.home-hero__copy { position: relative; max-width: 1030px; padding: clamp(2rem,4vw,3.5rem); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); background: linear-gradient(135deg,rgba(17,23,27,.88),rgba(9,13,16,.58)); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.home-hero__copy::before { content: ""; position: absolute; top: -1px; left: 9%; width: 34%; height: 2px; background: linear-gradient(90deg,transparent,var(--accent),transparent); }
.home-hero__copy h1 { max-width: 900px; }
.button { min-height: 52px; padding-inline: 1.25rem; border-radius: 999px; }
.button--primary { box-shadow: 0 10px 30px rgba(33,215,239,.18); }
.button--primary:hover { box-shadow: 0 14px 38px rgba(33,215,239,.28); }
.proof-strip { margin-top: clamp(2rem,4vw,3.5rem); margin-bottom: clamp(2rem,4vw,3.5rem); padding: .55rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,23,27,.72); box-shadow: var(--shadow); backdrop-filter: blur(16px); transform: none; }
.proof-strip div { padding: 1.3rem 1.4rem; border-radius: var(--radius-sm); background: transparent; }
.neural-band { padding-block: clamp(7rem,9vw,9rem); }
.home-hero__system { min-height: 720px; transition: min-height .35s ease; }
.home-hero__system:has(.neural-panel:not([hidden])) { min-height: 1040px; }
.system-caption { max-width: 760px; }
.system-caption strong { letter-spacing: -.025em; }
.brain-map { position: absolute; z-index: 1; top: 92px; left: 50%; width: min(700px,56vw); height: auto; transform: translateX(-50%); overflow: visible; fill: none; filter: drop-shadow(0 24px 45px rgba(0,0,0,.32)) drop-shadow(0 0 28px rgba(33,215,239,.08)); }
.brain-map .brain-outline, .brain-map .brain-stem { fill: #070b0d; stroke: rgba(33,215,239,.72); stroke-width: 3; stroke-linejoin: round; }
.brain-map .brain-links { fill: none; stroke: rgba(244,247,248,.82); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.brain-map .brain-nodes { fill: #f4f7f8; stroke: var(--accent); stroke-width: 4; }
.brain-map .brain-nodes circle { filter: drop-shadow(0 0 9px rgba(33,215,239,.78)); }
.signal { width: min(300px,23%); }
.signal--data { top: 280px; left: 0; }
.signal--strategy { top: 280px; right: 0; }
.signal--creative { bottom: auto; top: 535px; }
.system-core { top: 320px; }
.system-line--one { top: 350px; left: 18%; width: 32%; transform: rotate(-4deg); }
.system-line--two { top: 350px; left: 50%; width: 32%; transform: rotate(4deg); }
.system-line--three { top: 395px; left: 50%; width: 145px; transform: rotate(90deg); }
.neural-panels { position: absolute; z-index: 8; right: 0; bottom: 0; left: 0; }
.neural-panel { grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr); gap: clamp(2rem,6vw,6rem); align-items: end; padding: clamp(1.6rem,3vw,2.5rem); border: 1px solid rgba(33,215,239,.28); border-radius: var(--radius); background: linear-gradient(135deg,rgba(17,27,31,.97),rgba(9,13,16,.96)); box-shadow: var(--shadow); }
.neural-panel:not([hidden]) { display: grid; animation: panel-in .28s ease both; }
.neural-panel > div > span { color: var(--accent); font: 750 .63rem ui-monospace,monospace; letter-spacing: .14em; }
.neural-panel h3 { max-width: 700px; margin: .8rem 0 .7rem; font-size: clamp(2rem,3.4vw,3.6rem); line-height: 1; letter-spacing: -.025em; }
.neural-panel p { max-width: 660px; margin: 0; color: var(--muted); }
.neural-panel nav { display: grid; }
.neural-panel a { padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .84rem; font-weight: 750; text-decoration: none; }
.neural-panel a:first-child { border-top: 1px solid var(--line); }
.neural-panel a:hover, .neural-panel a:focus-visible { color: var(--accent); padding-left: .5rem; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.signal { border-radius: var(--radius-sm); }
.portfolio-search > div { overflow: hidden; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.library-grid { gap: 1rem; border: 0; }
.library-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,23,27,.68); box-shadow: 0 14px 40px rgba(0,0,0,.12); transition: transform .22s ease,border-color .22s ease,background .2s ease; }
.library-card:hover { transform: translateY(-5px); border-color: rgba(33,215,239,.42); }
.capabilities { background: radial-gradient(circle at 8% 10%,rgba(33,215,239,.08),transparent 24%),#101619; }
.capability-card { padding-inline: 1.25rem; border-radius: var(--radius-sm); }
.work-list { display: grid; gap: 1.25rem; border: 0; }
.work-card { padding: clamp(1rem,2vw,1.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg,rgba(17,23,27,.9),rgba(11,16,19,.7)); box-shadow: 0 20px 60px rgba(0,0,0,.15); }
.work-card__media { border-radius: calc(var(--radius-lg) - 10px); }
.work-card__body { padding: clamp(.5rem,1.5vw,1.5rem); }
.work-card__metrics li { border-radius: 999px; background: rgba(33,215,239,.04); }
.contact-band { background: radial-gradient(circle at 85% 45%,rgba(33,215,239,.16),transparent 32%),linear-gradient(135deg,#10171b,#0b1114); }

@media (max-width: 1050px) {
  .home-hero__grid::before { right: -14%; width: min(56vw,480px); opacity: .5; }
  .home-hero__grid::after { display: none; }
  .brain-map { width: min(680px,70vw); }
  .signal { width: min(260px,27%); }
}
@media (max-width: 760px) {
  .home-hero { padding-top: 4.5rem; }
  .home-hero__grid { min-height: 0; }
  .home-hero__grid::before { top: 18%; right: -45%; width: 100vw; opacity: .28; }
  .home-hero__copy { padding: 1.5rem; border-radius: var(--radius); }
  .proof-strip { transform: none; }
  .neural-band { padding-block: 6rem; }
  .home-hero__system, .home-hero__system:has(.neural-panel:not([hidden])) { min-height: auto; padding-top: 190px; }
  .system-caption { position: absolute; }
  .brain-map { position: relative; top: auto; left: 50%; width: min(620px,118vw); margin-bottom: 1rem; }
  .system-core { top: 405px; }
  .signal, .signal--data, .signal--strategy, .signal--creative { position: relative; inset: auto; width: 100%; margin-top: .7rem; transform: none; }
  .signal--creative:hover, .signal--creative:focus-visible, .signal--creative[aria-pressed="true"] { transform: translateY(-3px); }
  .system-line { display: none; }
  .neural-panels { position: relative; margin-top: 1rem; }
  .neural-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .work-card { border-radius: var(--radius); }
  .work-card__media { border-radius: var(--radius-sm); }
}

@media (max-width: 520px) {
  /* On small screens, results read as one compact evidence block—not three oversized pills. */
  .work-card__metrics li { border-radius: 0; background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .library-card, .work-card, .button, .home-hero__system { transition: none; }
  .neural-panel:not([hidden]) { animation: none; }
}

/* Homepage journey: proof and cases first, with compact supporting sections. */
.home-hero { padding-top: clamp(5rem, 6vw, 6.5rem); }
.home-hero__grid { min-height: clamp(520px, calc(82svh - var(--header-stack-height)), 650px); }
.home-hero__copy { padding: clamp(1.75rem, 3vw, 2.75rem); }
.home-hero__copy h1 { max-width: 850px; font-size: clamp(4rem, 6.7vw, 6.6rem); line-height: .9; }
.proof-strip { overflow: hidden; }
.proof-strip .proof-item { display: flex; flex-direction: column; min-width: 0; min-height: 152px; padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.proof-strip .proof-item:last-child { border-right: 0; }
.proof-strip .proof-item:hover, .proof-strip .proof-item:focus-visible { background: var(--accent-soft); transform: translateY(-2px); }
.proof-strip .proof-item strong { font-size: clamp(1.45rem, 2.3vw, 2.15rem); }
.proof-strip .proof-item span { color: #bac5ca; font-size: .875rem; line-height: 1.4; }
.proof-strip .proof-item small { margin-top: auto; padding-top: .7rem; color: var(--accent); font-size: .75rem; font-weight: 800; }
.home-section { padding-block: clamp(4.75rem, 6vw, 6.5rem); }
.selected-work { scroll-margin-top: 90px; }
.translator-band { padding-block: clamp(3.25rem, 5vw, 4.75rem); border-block: 1px solid var(--line); background: radial-gradient(circle at 80% 30%, rgba(33,215,239,.08), transparent 28%), #0c1215; }
.translator-band__grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.translator-band h2 { font-size: clamp(2.6rem, 4.2vw, 4.5rem); }
.translator-intro { max-width: 620px; margin: 1.25rem 0 0; color: var(--muted); }
.translator-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--line); list-style: none; }
.translator-steps li { min-width: 0; min-height: 150px; padding: 1.3rem; background: #10171a; }
.translator-steps span, .translator-steps strong, .translator-steps small { display: block; }
.translator-steps span { color: var(--accent); font: 700 .68rem ui-monospace, monospace; }
.translator-steps strong { margin-top: 1.5rem; font-size: 1rem; letter-spacing: .1em; }
.translator-steps small { margin-top: .35rem; color: var(--muted); font-size: .8rem; }
.hero-cv-link, .text-link { align-items: center; min-height: 44px; padding-block: .65rem; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 0 0 1.25rem; }
.contact-email > a { min-height: 44px; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .86rem; text-decoration: none; }
.contact-email > button { min-height: 44px; padding: .65rem .9rem; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent); font-size: .78rem; font-weight: 800; cursor: pointer; }
.contact-email > button:hover, .contact-email > button:focus-visible { background: var(--accent); color: #061012; }
.contact-email > span { min-height: 1.2em; color: var(--green); font-size: .78rem; }
.site-search-toggle { min-width: 44px; min-height: 44px; }

@media (max-width: 760px) {
  .home-shell { width: min(calc(100% - 28px), var(--shell)); }
  .home-hero { padding-top: 4.25rem; }
  .home-hero__copy { padding: 1.25rem; }
  .home-hero__copy h1 { margin-bottom: 1.2rem; font-size: clamp(2.875rem, 12.5vw, 3.125rem); line-height: .94; }
  .home-hero__summary { margin-bottom: 1.35rem; font-size: 1rem; line-height: 1.55; }
  .availability { margin-top: 1rem; }
  .proof-strip { margin-top: 1.5rem; margin-bottom: 2rem; padding: .35rem; }
  .proof-strip .proof-item { min-height: 150px; padding: 1rem; }
  .proof-strip .proof-item strong { font-size: 1.35rem; }
  .proof-strip .proof-item span { font-size: .875rem; }
  .home-section { padding-block: 4rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .translator-band__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .translator-steps { grid-template-columns: 1fr; }
  .translator-steps li { min-height: 0; padding: 1rem; }
  .translator-steps strong { margin-top: .65rem; }
  .site-search-toggle { width: 44px; height: 44px; padding: .5rem; }
  .contact-email { align-items: stretch; }
  .contact-email > a, .contact-email > button { width: 100%; justify-content: center; text-align: center; }
}
