:root {
  --alu: #16121f;
  --alu-hi: #1d1729;
  --alu-lo: #120e19;
  --ink: #ece6f5;
  --ink-soft: #a99fbc;
  --steel: #231c33;
  --steel-hi: #2e2542;
  --steel-lo: #1a1426;
  --led-g: #b58cff;
  --led-a: #ff6fae;
  --led-r: #ff4d6d;
  --cyan: #b58cff;
  --accent: #b58cff;
  --tile: #f1ecf8;
  --radius-s: 3px;
  --radius-m: 8px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--alu);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, var(--alu-hi), var(--alu) 40rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--alu-hi); padding: 10px 14px; border-radius: var(--radius-s);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.led {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2f263c; box-shadow: inset 0 1px 1px rgba(0,0,0,.6);
  flex: none;
}
.led-g { --c: var(--led-g); }
.led-a { --c: var(--led-a); }
.led-r { --c: var(--led-r); }
.is-on .led, .led.lit, .project .led, .spec .led, .unit-power .led {
  background: var(--c);
  box-shadow: 0 0 6px var(--c), 0 0 14px color-mix(in srgb, var(--c) 45%, transparent);
}
.is-on .led.blink { animation: blink var(--d, 1.4s) steps(1, end) infinite; animation-delay: var(--o, 0s); }
@keyframes blink { 50% { background: #2f263c; box-shadow: inset 0 1px 1px rgba(0,0,0,.6); } }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--alu-hi) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(236,230,245,.1);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700;
  font-variation-settings: "wdth" 115; letter-spacing: -.01em;
}
.brand-led { width: 8px; height: 8px; border-radius: 50%; background: var(--led-g); box-shadow: 0 0 8px var(--led-g); animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.top nav { display: flex; gap: clamp(10px, 2.4vw, 28px); align-items: center; }
.top nav a { text-decoration: none; font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta { color: var(--ink); font-weight: 600; border: 1.5px solid var(--ink); padding: 6px 14px; border-radius: 99px; }
.top nav .nav-cta:hover { background: var(--ink); color: var(--alu); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border-radius: 99px;
  font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s;
}
.btn-solid { background: var(--accent); color: var(--alu); border: 1.5px solid var(--accent); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -8px rgba(181,140,255,.55); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(236,230,245,.35); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.05); }

.hero {
  max-width: var(--max); margin: 0 auto;
  min-height: calc(88svh - 64px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 8vh, 96px) var(--gutter);
}

.locale-row { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; }
.locale {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; padding: 7px 16px 7px 12px; white-space: nowrap;
  border-radius: 99px;
  background: rgba(181,140,255,.07);
  box-shadow: 0 0 0 1px rgba(181,140,255,.22) inset;
  font-size: .95rem; color: var(--ink-soft);
}
.flag { width: 21px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.minimap { width: 74px; height: auto; flex: none; overflow: visible; }
.minimap-land { fill: rgba(181,140,255,.16); stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.minimap-dot { fill: var(--led-a); stroke: var(--alu); stroke-width: 1.2; }
.minimap-pulse { fill: var(--led-a); transform-box: fill-box; transform-origin: center; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.locale-rule { width: 1px; height: 14px; background: rgba(236,230,245,.2); }
#madrid-clock { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
#madrid-clock .tz { color: var(--ink-soft); font-weight: 400; margin-left: 6px; font-size: .85em; }

.name {
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: .86; letter-spacing: -.045em; font-weight: 850;
  font-variation-settings: "wdth" 125;
}
.name .line { display: block; overflow: hidden; padding-bottom: .04em; }
.name .word { display: inline-block; }
.name .line:nth-child(2) .word { font-variation-settings: "wdth" 125; color: var(--accent); }
.js .name .word { transform: translateY(105%); }
.booted .name .word { transform: none; transition: transform 1.1s var(--ease); }
.booted .name .line:nth-child(2) .word { transition-delay: .12s; }

.lede { max-width: 38ch; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.5; color: var(--ink-soft); margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.js .locale-row, .js .lede, .js .hero-actions, .js .uptime { opacity: 0; transform: translateY(12px); }
.booted .locale-row, .booted .lede, .booted .hero-actions, .booted .uptime { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.booted .lede { transition-delay: .35s; }
.booted .hero-actions { transition-delay: .5s; }
.booted .uptime { transition-delay: .65s; }

.uptime { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.uptime strong { color: var(--ink); font-weight: 650; font-variation-settings: "wdth" 110; }
.uptime-led { width: 8px; height: 8px; border-radius: 50%; background: var(--led-g); box-shadow: 0 0 8px var(--led-g); }

.rack-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rack {
  --u: clamp(36px, 4.2vw, 46px);
  position: relative; width: min(100%, 400px);
  padding: 18px 34px;
  background: linear-gradient(180deg, var(--steel-hi), var(--steel) 12%, var(--steel-lo));
  border-radius: var(--radius-m);
  box-shadow:
    0 1px 0 rgba(255,255,255,.12) inset,
    0 40px 60px -30px rgba(6,3,12,.7),
    0 12px 24px -12px rgba(6,3,12,.5);
  display: flex; flex-direction: column; gap: 3px;
  transform: perspective(1400px) rotateY(-9deg) rotateX(2deg);
  transform-origin: 60% 50%;
  transition: transform .9s var(--ease);
}
.rack:hover { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.rail {
  position: absolute; top: 12px; bottom: 12px; width: 14px;
  background:
    radial-gradient(circle at 50% 50%, #0f0c14 2.2px, transparent 2.6px) 0 6px / 14px 18px repeat-y,
    linear-gradient(90deg, #504165, #705a8e 50%, #504165);
  border-radius: 2px;
}
.rail-l { left: 12px; }
.rail-r { right: 12px; }

.unit { position: relative; display: block; text-decoration: none; color: inherit; border-radius: var(--radius-s); }
.unit.u1 { height: var(--u); }
.unit.u2 { height: calc(var(--u) * 2 + 3px); }
.plate {
  position: relative; height: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px 0 12px;
  background: linear-gradient(180deg, #504165, #3b304a 55%, #31283e);
  border-radius: var(--radius-s);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 -1px 0 rgba(0,0,0,.4) inset;
  overflow: hidden;
  transition: filter .3s, transform .35s var(--ease);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9d86be, #5e4c78 60%, #2e253a);
}
.plate::before { left: 4px; }
.plate::after { right: 4px; }
.unit.u2 .plate { align-items: stretch; flex-wrap: wrap; align-content: center; row-gap: 8px; }
a.unit:hover .plate, a.unit:focus-visible .plate { filter: brightness(1.18); transform: translateX(-6px); }
a.unit:focus-visible { outline-offset: 2px; }

.vent {
  width: 38px; height: 60%; flex: none; margin-left: 8px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #17131d 0 2px, transparent 2px 5px);
  opacity: .85;
}
.unit.u2 .vent { height: 22px; align-self: center; margin-left: 8px; }
.plate-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; flex: 1; }
.unit.u2 .plate-text { justify-content: center; }
.plate-label {
  color: #e9e4f1; font-weight: 700; font-size: clamp(.78rem, 1.2vw, .92rem);
  font-variation-settings: "wdth" 72; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plate-label.faint { color: #8062aa; font-weight: 500; margin-left: 10px; }
.plate-sub { color: #9b83bc; font-size: .72rem; font-variation-settings: "wdth" 72; }
.leds { display: flex; gap: 6px; margin-left: auto; flex: none; }
.bays { flex-basis: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding-left: 58px; }
.bays i {
  height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #241d2e, #30273c);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset;
  position: relative;
}
.bays i::after { content: ""; position: absolute; right: 4px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #2f263c; }
.is-on .bays i::after { background: var(--led-g); box-shadow: 0 0 4px var(--led-g); animation: blink 2.2s steps(1) infinite; }
.is-on .bays i:nth-child(2n)::after { animation-duration: 1.3s; }
.is-on .bays i:nth-child(3n)::after { animation-duration: .7s; }

.unit-power .plate { background: linear-gradient(180deg, #31283e, #271f31); }
.unit-power .plate-label { margin-left: 10px; }
.switch { width: 30px; height: 16px; border-radius: 3px; background: #17131d; position: relative; margin-left: auto; box-shadow: 0 0 0 1px rgba(0,0,0,.5); }
.switch span { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 2px; background: var(--led-r); box-shadow: 0 0 8px var(--led-r); transition: left .3s var(--ease); }
.booted .switch span { left: 16px; }
.unit-power .leds { margin-left: 0; }

.unit-blank .plate { background: repeating-linear-gradient(90deg, #2f263b 0 3px, #2a2236 3px 6px); }
.unit-patch .plate { gap: 14px; }
.unit-patch .plate-label { margin-left: 10px; }
.ports { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; flex: 1; }
.ports i { aspect-ratio: 1.15; background: #141019; border-radius: 2px; box-shadow: 0 -2px 0 #423553 inset; position: relative; }
.is-on .ports i:nth-child(3n+1)::after, .is-on .ports i:nth-child(5)::after {
  content: ""; position: absolute; inset: -40% 25% 30%; border-radius: 2px 2px 0 0;
  background: var(--k, #1c7fa6);
}
.ports i:nth-child(4) { --k: var(--led-a); }
.ports i:nth-child(5) { --k: var(--led-r); }
.ports i:nth-child(10) { --k: var(--led-g); }

.js .unit[data-boot] .plate { filter: brightness(.55); }
.js .unit[data-boot].is-on .plate { filter: none; transition: filter .5s; }
.js a.unit[data-boot].is-on:hover .plate { filter: brightness(1.18); }

.rack-note { margin: 0; font-size: .85rem; color: var(--ink-soft); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 24px; align-items: end; margin-bottom: clamp(24px, 3.4vw, 40px); }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 42ch; justify-self: end; }
h2 {
  margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: .95; letter-spacing: -.04em;
  font-weight: 820; font-variation-settings: "wdth" 125;
}

.projects, .about, .tools, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 9vh, 100px) var(--gutter); }

.project {
  background: var(--steel);
  color: #e1d9eb;
  border-radius: var(--radius-m);
  padding: 24px 24px 24px 42px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 30px 50px -34px rgba(6,3,12,.9);
  background-image:
    radial-gradient(circle, #0f0c14 2.2px, transparent 2.7px),
    radial-gradient(circle, #0f0c14 2.2px, transparent 2.7px),
    linear-gradient(180deg, var(--steel-hi), var(--steel) 90px);
  background-size: 14px 18px, 14px 18px, auto;
  background-position: 10px 12px, right 10px top 12px, 0 0;
  background-repeat: repeat-y, repeat-y, no-repeat;
}
.project::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 1px; background: rgba(255,255,255,.07);
}
.project-bezel { border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 18px; margin-bottom: 20px; }
.project-status { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: #a38dc2; margin-bottom: 14px; }
.project h3 {
  margin: 0 0 8px; color: #f4f1f8;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; letter-spacing: -.03em; font-weight: 800;
  font-variation-settings: "wdth" 118;
}
.project h3 .thin { font-weight: 300; font-variation-settings: "wdth" 90; color: #af9cc9; letter-spacing: -.02em; }
.project-hook { margin: 0; font-size: 1rem; color: #c8bbda; max-width: 50ch; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.project-grid .project { margin: 0; display: flex; flex-direction: column; }
.project-body { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.project-body .shot { order: -1; }
.project-text { display: flex; flex-direction: column; flex: 1; }
.project-text .project-links { margin-top: auto; }
.project-text p { margin: 0 0 18px; color: #cdc1de; font-size: .95rem; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.facts li { position: relative; padding-left: 22px; color: #ae9ac9; font-size: .9rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--led-a); }
.facts strong { color: #f4f1f8; font-weight: 700; font-variation-settings: "wdth" 110; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; }
.title-link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--ease); }
.title-link:hover, .title-link:focus-visible { background-size: 100% 3px; }
.gh-icon { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("icons/github.svg") center / contain no-repeat; mask: url("icons/github.svg") center / contain no-repeat; }
.repo { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 14px; color: #a38dc2; font-size: .92rem; text-decoration: none; transition: color .2s; }
.repo .gh-icon { width: 15px; height: 15px; }
.repo:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.btn-gh { gap: 10px; background: #f0ecf5; color: var(--steel-lo); border: 1.5px solid #f0ecf5; }
.btn-gh:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.8); }
.project .btn-solid { background: #f0ecf5; color: var(--steel-lo); border-color: #f0ecf5; }
.project .btn-ghost { color: #e5deee; border-color: rgba(255,255,255,.28); }
.project .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.shot .terminal { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.diff pre { min-height: 0; font-size: .78rem; white-space: normal; }
.diff pre span { display: block; padding-left: 2ch; text-indent: -2ch; overflow-wrap: anywhere; }
.diff .terminal-bar { align-items: center; }
.diff .terminal-bar span { margin-left: 8px; font-size: .75rem; color: #8f86a3; font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, monospace; }
.diff .r { color: #ff8aa0; }
.diff .g { color: #c9adff; }

.shot { margin: 0; }
.shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: var(--radius-s);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 40px -24px rgba(0,0,0,.8);
  background: var(--steel-lo);
}
.shot figcaption { margin-top: 12px; font-size: .86rem; color: #937ab7; }

.terminal { background: #120e17; border-radius: var(--radius-s); margin: 0 0 24px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.terminal-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1d1825; }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #403351; }
.terminal pre { margin: 0; padding: 14px 16px 16px; font-family: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, monospace; font-size: .84rem; line-height: 1.65; color: #dad2e7; overflow-x: auto; min-height: 9.5em; }
.terminal .p { color: #8366ac; }
.terminal .dim { color: #725c91; }
.terminal .r { color: var(--led-r); }
.terminal .a { color: var(--led-a); }
.terminal .g { color: var(--led-g); }
.terminal .b { color: #120e17; background: var(--led-r); font-weight: 700; padding: 0 4px; }
.terminal .caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: #dad2e7; animation: blink 1s steps(1) infinite; }

.drum { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; }
.drum-wheel {
  --r: 38px;
  width: 104px; height: 104px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle, #241d2e 12px, #504165 13px, #614f7b 30%, #3e324f 70%, #2e253b);
  box-shadow: 0 0 0 2px #1d1825, 0 10px 18px -8px rgba(0,0,0,.8);
  transition: transform 1.2s cubic-bezier(.15, .9, .25, 1);
}
.drum-wheel i {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px;
  border-radius: 50%; background: #141019; box-shadow: inset 0 2px 3px rgba(0,0,0,.8);
  transform: rotate(calc(var(--i) * 45deg)) translateY(calc(var(--r) * -1));
}
.drum-wheel i:nth-child(1) { --i: 0; }
.drum-wheel i:nth-child(2) { --i: 1; }
.drum-wheel i:nth-child(3) { --i: 2; }
.drum-wheel i:nth-child(4) { --i: 3; }
.drum-wheel i:nth-child(5) { --i: 4; }
.drum-wheel i:nth-child(6) { --i: 5; }
.drum-wheel i:nth-child(7) { --i: 6; }
.drum-wheel i:nth-child(8) { --i: 7; }
.drum-wheel i.hot { background: radial-gradient(circle, #c9a15a 30%, #7b5f2c 70%); box-shadow: 0 0 10px rgba(242,165,22,.5); }

.about {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.about-card {
  position: sticky; top: 110px;
  background: var(--steel);
  border-radius: var(--radius-m);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 0 0 1px rgba(236,230,245,.08), 0 24px 40px -30px rgba(6,3,12,.9);
}
.avatar { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); filter: grayscale(.2) contrast(1.05); margin-bottom: 20px; }
.spec { margin: 0; display: grid; gap: 0; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(236,230,245,.1); font-size: .94rem; }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; text-align: right; }
.about-text h2 { margin-bottom: 32px; }
.about-big {
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -.02em;
  font-weight: 600; font-variation-settings: "wdth" 108; margin: 0 0 28px; max-width: 24ch;
}
.about-text p:not(.about-big) { max-width: 60ch; color: var(--ink-soft); margin: 0 0 18px; }

.patch {
  background: var(--steel);
  border-radius: var(--radius-m);
  padding: clamp(16px, 2.6vw, 28px);
  display: grid; gap: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 30px 50px -34px rgba(6,3,12,.9);
}
.patch-row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 18px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #423654, #352b43);
  border-radius: var(--radius-s);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset;
}
.patch-group { color: #b8a7d0; font-size: .95rem; font-weight: 600; font-variation-settings: "wdth" 75; letter-spacing: .02em; }
.patch-ports { display: flex; flex-wrap: wrap; gap: 10px; }
.port {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: var(--radius-s);
  background: #1f1928; color: #d3c8e2; font-size: .92rem; font-weight: 550;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4) inset;
  cursor: default; transition: background .2s, color .2s;
}
.port i {
  width: 18px; height: 15px; border-radius: 2px; background: #0e0b12; position: relative; flex: none;
  box-shadow: 0 -2px 0 #423553 inset;
}
.port i::before {
  content: ""; position: absolute; left: 3px; right: 3px; bottom: 100%; height: 0;
  background: var(--k, var(--cyan)); border-radius: 2px 2px 0 0;
  transition: height .25s var(--ease);
}
.port i::after { content: ""; position: absolute; right: -6px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #2f263c; }
.port:hover, .port:focus-visible, .port.plugged { background: #292234; color: #fff; }
.port:hover i::before, .port:focus-visible i::before, .port.plugged i::before { height: 12px; bottom: 30%; }
.port:hover i::after, .port:focus-visible i::after, .port.plugged i::after { background: var(--led-g); box-shadow: 0 0 6px var(--led-g); }
.patch-row:nth-child(2) .port { --k: var(--led-a); }
.patch-row:nth-child(3) .port { --k: #7cc4dc; }
.patch-row:nth-child(4) .port { --k: var(--led-g); }
.patch-row:nth-child(5) .port { --k: var(--led-r); }

.logo-float {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 132px; padding: 22px 14px 14px;
  background: var(--tile); border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 0 1px rgba(236,230,245,.08), 0 30px 50px -20px rgba(6,3,12,.55);
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.6) rotate(-8deg);
  transition: opacity .2s, transform .35s var(--ease);
  will-change: transform;
}
.logo-float.show { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(var(--tilt, 0deg)); }
.logo-mark {
  width: 64px; height: 64px; background: var(--brand, var(--alu));
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
  display: grid; place-items: center;
}
.logo-mark.text { -webkit-mask: none; mask: none; border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.6rem; font-variation-settings: "wdth" 110; }
.logo-name { font-weight: 700; font-size: .92rem; color: var(--alu); font-variation-settings: "wdth" 105; }
.logo-float.show .logo-mark { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }

.contact { text-align: left; padding-bottom: clamp(80px, 14vh, 160px); }
.contact h2 { font-size: clamp(2.4rem, 6.4vw, 5rem); margin-bottom: 24px; }
.contact > p { color: var(--ink-soft); max-width: 44ch; margin: 0 0 28px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 40px; }
.mail {
  font-size: clamp(1.2rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.03em;
  font-variation-settings: "wdth" 112; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 3px no-repeat;
  transition: background-size .45s var(--ease);
  overflow-wrap: anywhere;
}
.mail:hover, .mail:focus-visible { background-size: 100% 3px; }
.copy { min-width: 150px; }
.copy.done { border-color: var(--led-g); }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 99px; background: var(--steel); color: #f0ecf5; text-decoration: none; font-weight: 600;
  transition: transform .25s var(--ease), background .2s;
}
.socials a:hover { background: var(--steel-lo); transform: translateY(-2px); }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(236,230,245,.12);
  font-size: .9rem; color: var(--ink-soft);
}
.foot a { color: var(--ink-soft); }

.js .reveal { opacity: 0; transform: translateY(28px) scale(.99); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .rack { transform: none; margin-top: 8px; }
  .rack:hover { transform: none; }
  .project-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-card { position: static; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: center; }
  .avatar { margin: 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
}

@media (max-width: 640px) {
  .locale-row { gap: 10px; }
  .locale { gap: 8px; padding: 6px 12px 6px 10px; font-size: .88rem; }
  .minimap { width: 42px; }
  body { font-size: 1rem; }
  .top nav a:not(.nav-cta) { display: none; }
  .rack { padding: 14px 28px; }
  .rail { width: 11px; background-size: 11px 18px, auto; }
  .rail-l { left: 9px; }
  .rail-r { right: 9px; }
  .vent { width: 22px; }
  .bays { padding-left: 38px; }
  .ports { grid-template-columns: repeat(8, 1fr); }
  .ports i:nth-child(n+9) { display: none; }
  .project { padding-left: 22px; background-image: linear-gradient(180deg, var(--steel-hi), var(--steel) 90px); background-size: auto; background-repeat: no-repeat; }
  .project::before { display: none; }
  .about-card { grid-template-columns: 1fr; }
  .avatar { max-width: 180px; }
  .patch-row { grid-template-columns: 1fr; gap: 10px; }
  .btn { flex: 1 1 auto; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .name .word, .js .locale-row, .js .lede, .js .hero-actions, .js .uptime, .js .reveal { opacity: 1; transform: none; }
  .rack, .rack:hover { transform: none; }
}
