/* The lower units mount to the same chassis as the transport. */
body { display: flow-root; background: #161619 }
.rack {
  --edge: clamp(.48rem, 1.4vw, 1.7rem);
  --gutter: clamp(1.5rem, 3.4vw, 4.4rem);
  position: relative; isolation: isolate;
  width: min(calc(100% - 2 * var(--edge)), 108rem);
  margin: 0 auto 5px; border-radius: 7px;
  border: 1px solid #424247; border-bottom-color: #09090a;
  padding: clamp(2.1rem,3.4vw,4rem) var(--gutter);
  background: linear-gradient(152deg,#3a3b40,#28292d 45%,#25262a);
  color: #f1f1e9;
  box-shadow: inset 0 1px #ffffff28, inset 0 -2px #161619, 0 2px 2px #09090b;
}
.rack::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: url("medios/grano.png"); mix-blend-mode: soft-light; opacity: .13;
  z-index: -1; pointer-events: none;
}
.rack::after {
  content: ""; position: absolute; inset: 9px 9px auto; height: 12px; pointer-events: none;
  background: url("medios/tornillo.svg") left center / 12px 12px no-repeat,
              url("medios/tornillo.svg") right center / 12px 12px no-repeat;
}
.bench { padding-bottom: 5px }
.archive-header { align-items: center; gap: 1rem 2rem; padding-bottom: clamp(1.2rem,2vw,2.2rem) }
.archive-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.35rem }
.archive .section-title,.contact h2 { text-transform: uppercase; font-size: clamp(2.3rem,4.1vw,4.55rem); letter-spacing: -.025em }
.rack-count {
  display: flex; align-items: baseline; gap: .42rem; padding: .57rem .66rem;
  background: linear-gradient(#171b16,#24291f); border: 1px solid #11130f;
  border-radius: 3px; box-shadow: inset 0 2px 3px #0b0e0a, 0 1px #ffffff30;
  color: #c6d0af; text-transform: uppercase; font: .75rem/1 var(--mono); letter-spacing: .05em;
}
.rack-count b { color: #eaff99; font-size: 1rem; font-variant-numeric: tabular-nums }
.rack-bars {
  align-self: center; width: 2.25rem; height: .65rem;
  background: linear-gradient(to right,#d8f488 var(--fill,100%),#434b35 0);
  mask: repeating-linear-gradient(to right,#000 0 calc(16.6667% - 2px),transparent 0 16.6667%);
}
.filters { display: flex; gap: 3px; padding: 4px; border: 1px solid #121216; background: #1a1b1e; border-radius: 5px; box-shadow: inset 0 2px 3px #111, 0 1px #ffffff28 }
.filters button {
  border-radius: 3px; border: 1px solid #17181b;
  box-shadow: inset 0 1px #ffffff29,inset 0 -2px #25262a,0 2px 1px #111216;
  background: linear-gradient(#505157,#393a3f); color: #f1f1e9;
}
.filters button { font-size: .89rem; padding: .62rem .88rem }
.filters button:hover { border-color: #91918b }
.filters button[aria-pressed=true] {
  color: #24261b; background: linear-gradient(#d6e89a,#e8f3ad);
  box-shadow: inset 0 2px 3px #879461,0 1px #10120c; transform: translateY(1px)
}
.files {
  padding: 4px; border: 1px solid #111114; border-radius: 5px;
  background: #141417; box-shadow: inset 0 1px 4px #0a0a0c,0 1px #ffffff33;
}
.file { border: 0; background: #212225 }
.file + .file { margin-top: 3px }
.file > summary {
  display: grid; grid-template-columns: clamp(4rem,8vw,9rem) minmax(0,1fr) auto 2.1rem;
  gap: clamp(.8rem,2vw,2.3rem); padding: .63rem clamp(.8rem,1.6vw,1.6rem);
  border: 1px solid #252629; border-top-color: #5d5e61; border-radius: 3px;
  background: linear-gradient(174deg,#45464a,#37383c 72%);
  box-shadow: inset 0 -2px #2a2b2e; color: #f3f1e8;
}
.file > summary:focus-visible,.rack :is(button,a):focus-visible { outline: 2px solid #eaff90; outline-offset: -2px }
.cassette-frame {
  display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); aspect-ratio: 16 / 9;
  background: #151518; border: 2px solid #26272a; box-shadow: 0 1px #ffffff38; padding: 2px; border-radius: 3px;
}
.cassette-frame img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; filter: saturate(.55) }
.cassette-frame .full-frame { object-fit: contain }
.cassette-pair { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px }
@media (max-width: 69.99rem) {
  .cassette-frame { aspect-ratio: 4 / 3 }
  .cassette-pair { grid-template-columns: minmax(0,1fr) }
  .cassette-pair img + img { display: none }
}
#pieza-domadora img { object-position: 47% 11% }
.cassette-label { display: grid; justify-items: start; gap: .25rem }
.file .publication,.file[open] .publication {
  display: block; font: 500 .78rem/1.25 var(--mono); color: #d7d7cf; background: none; box-shadow: none;
}
.file .file-title { font-size: clamp(1.3rem,2.15vw,2.45rem); grid-area: auto; line-height: 1.1 }
.file .role { color: #d1d1ce; font: .84rem/1.2 var(--mono) }
.file > summary:hover .file-title { text-decoration: none; color: #effab5 }
.file[open] > summary {
  color: #1d2119; border-color: #a9b29f #89917f #717b69;
  background: linear-gradient(106deg,#dce3cc,#cdd6bd 60%,#b7c2a6); box-shadow: inset 0 1px #ecefe3;
}
.file[open] > summary .file-title { color: #1d2119 }
.file[open] :is(.role,.publication) { color: #404838 }
.file .plus {
  width: 1.95rem; height: 1.65rem; grid-area: auto; border-radius: 3px;
  background: linear-gradient(#4b4d50,#38393c); box-shadow: inset 0 1px #ffffff40,0 1px 2px #000a;
  color: #e6e6dc;
}
.file .plus::before,.file .plus::after { width: 10px; left: calc(50% - 5px); top: calc(50% - .75px) }
.file[open] .plus { background: #272c24; color: #eaff99; box-shadow: inset 0 2px 3px #121510,0 1px #eee8 }
.file .sheet {
  gap: clamp(1.6rem,4vw,5rem); align-items: center;
  padding: clamp(1rem,2.2vw,2.6rem); background: linear-gradient(140deg,#25262a,#1c1d21 70%);
}
.sheet-copy { color: #dfdfd8 }
.sheet-copy h3 { color: #f8f7ee; font-family: var(--display); font-size: clamp(2.2rem,3.9vw,4.5rem); letter-spacing: -.025em }
.sheet-copy .credit { color: var(--stock) }
.sheet figure { background: linear-gradient(140deg,#47474a,#151518 65%); box-shadow: inset 0 1px #656568,0 3px 6px #0006 }
.sheet-copy .ink-link { color: #f7f5e9; border-color: var(--stock) }
.file .sheet-copy .ink-link:hover { background: transparent; color: var(--stock) }
.rack.profile {
  background: linear-gradient(130deg,#c7c6d0,#aeafbb 62%,#a5a6b2); color: #212129;
  border-color: #bbbac4 #777780 #585861;
}
.rack .wrap { width: 100% }
.bio { gap: clamp(1.8rem,4.5vw,5.4rem) }
.bio figure { padding: clamp(.6rem,1.3vw,1.5rem); padding-bottom: clamp(1.5rem,2.2vw,2.4rem); background: linear-gradient(145deg,#343439,#222328); border-radius: 5px; box-shadow: inset 0 1px #777780,0 1px 1px #e3e3ea }
.bio figure::before { inset: auto 6% .5rem; height: .42rem; border: 0; background: repeating-linear-gradient(90deg,#151519 0 2px,#4a4a51 2px 4px); max-width: 9rem }
.bio img { border-radius: 2px }
.bio .credit { color: #34333f }
.bio h2 { font-size: clamp(3.6rem,6vw,7rem); text-transform: uppercase }
.profile .ink-link { background: #28282e; color: #efeee7; padding: .65rem .95rem; border-radius: 3px; border: 1px solid #222; box-shadow: inset 0 1px #ffffff30,0 2px 1px #787882 }
.profile .ink-link:hover { padding-bottom: .65rem; background: #383841 }
.contact { margin-bottom: var(--edge) }
.contact .footer-inner { align-items: center; gap: 2rem }
.contact .credit { color: #c7c8c0 }
.contact h2 { font-size: clamp(3rem,5.2vw,5.6rem) }
.contact .mail { display: inline-block; color: #eaff99; border-bottom: 1px solid #909a63; font: clamp(1rem,1.5vw,1.55rem)/1.5 var(--mono); text-decoration: none }
@media (max-width: 47.99rem) {
  .rack { --gutter: clamp(.8rem,3.8vw,1.45rem); padding-block: 1.7rem 1.25rem }
  .archive-heading { gap: .65rem; justify-content: space-between; width: 100% }
  .archive .section-title { font-size: clamp(1.75rem,6.6vw,2.9rem) }
  .rack-count { padding: .44rem; gap: .3rem }
  .rack-bars { width: 1.25rem }
  .filters { width: 100%; display: grid; grid-template-columns: auto repeat(3,1fr); gap: 2px }
  .filters button { min-height: 2.65rem; padding: .4rem .2rem; font-size: .83rem }
  .file > summary { grid-template-columns: clamp(3.7rem,17vw,5.2rem) minmax(0,1fr) 1.6rem; padding: .65rem .5rem; gap: .6rem }
  .cassette-frame { aspect-ratio: 5 / 4 }
  .file .role { display: none }
  .file .plus { width: 1.55rem }
  .file .publication { font-size: .73rem }
  .file .file-title { font-size: clamp(1.15rem,4.7vw,1.65rem) }
  .file .sheet { gap: 1.2rem; padding: .85rem .7rem 1.35rem }
  .sheet-copy h3 { font-size: clamp(2.1rem,8.8vw,3rem) }
  .contact .footer-inner { align-items: stretch; gap: 1.5rem }
  .contact .mail { overflow-wrap: anywhere }
}
@media (prefers-reduced-motion: no-preference) {
  .rack :is(.filters button,.profile .ink-link) { transition: transform 140ms ease,box-shadow 140ms ease }
  .rack :is(.filters button,.profile .ink-link):active { transform: translateY(2px) }
  .cassette-frame img { transition: filter 240ms ease }
  .file:is([open],:hover) .cassette-frame img { filter: saturate(1) }
}

/* The sleeve stays fixed while the labelled cartridge travels beneath its lip. */
.cassette-frame {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(#101112,#292a2a 82%,#171819);
}
.cassette-frame::after {
  content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 5px;
  background: linear-gradient(#171819,#0c0d0f 40%,#0007,transparent);
  pointer-events: none;
}
.cassette-frame img { transform-origin: center; }
.file[open] .cassette-frame img { transform: translateY(-1px) scale(.96); }
.file .plus { transform-origin: center; }
.file > summary:active .plus { transform: translateY(2px); }
.file[data-travel] { overflow: clip; }
.file[data-travel="eject"] .sheet { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .file[data-travel="load"] .cassette-frame img { animation: tape-seat 340ms both; }
  .file[data-travel="eject"] .cassette-frame img { animation: tape-release 285ms both; }
  .file[data-travel="load"] .plus { animation: latch-travel 260ms ease-out both; }
  .file[data-travel="eject"] .plus { animation: latch-travel 190ms ease-out both; }
  .file[data-travel="load"] .sheet figure { animation: picture-lock 365ms 85ms ease-out both; }
  .file[data-travel="load"] .sheet-copy { animation: label-rise 300ms 100ms ease-out both; }
  .file[data-travel="eject"] .sheet figure,
  .file[data-travel="eject"] .sheet-copy { animation: head-lift 170ms ease-in both; }
  @keyframes tape-seat {
    0% { transform: none; }
    40% { transform: translateY(-16%) scale(.95); }
    66% { transform: translateY(-2px) scale(.96); }
    100% { transform: translateY(-1px) scale(.96); }
  }
  @keyframes tape-release {
    0% { transform: translateY(-1px) scale(.96); }
    25% { transform: translateY(-11%) scale(.95); }
    68% { transform: translateY(5%) scale(1); }
    100% { transform: none; }
  }
  @keyframes latch-travel {
    0%,100% { transform: none; }
    34% { transform: translateY(2px) scale(.96); box-shadow: inset 0 2px 3px #101110; }
  }
  @keyframes picture-lock {
    from { opacity: .53; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes label-rise { from { opacity: .4; transform: translateY(5px); } }
  @keyframes head-lift { to { opacity: .36; transform: translateY(-5px); } }
}

/* Glass, phosphor and the pilot are confined to the profile monitor. */
.monitor-glass {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 5px / 7px;
  background: radial-gradient(ellipse at 47% 45%, #1b211e, #0c0e0f 82%);
  box-shadow: 0 0 0 1px #111215, 0 1px 1px 1px #74757955;
}
.monitor-glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(153deg,#d4dfd70a 0%,transparent 36%);
  box-shadow: inset 0 1px 5px #080a0b80, inset 0 0 16px #0f111233;
}
.profile-monitor::after {
  content: ""; position: absolute; right: 6%; bottom: .55rem; width: 5px; height: 4px;
  border-radius: 2px; background: #daeaa1;
  box-shadow: 0 0 0 1px #0e140f, 0 0 5px #d9f78d59;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .profile-monitor[data-power="standby"]::after { background: #55594b; box-shadow: 0 0 0 1px #10130f; }
  .profile-monitor[data-power="standby"] img { opacity: 0; }
  .profile-monitor[data-power="starting"] img {
    animation: monitor-picture 810ms cubic-bezier(.19,.76,.28,1) both;
  }
  .monitor-glass::before {
    content: ""; position: absolute; z-index: 1; top: calc(50% - 1px); left: 5%; right: 5%;
    height: 2px; opacity: 0; pointer-events: none; border-radius: 50%;
    background: linear-gradient(90deg,transparent,#b2ccb5 20%,#e1eace 50%,#b2ccb5 80%,transparent);
    box-shadow: 0 0 6px #b1ccad80;
  }
  .profile-monitor[data-power="starting"] .monitor-glass::before {
    animation: monitor-beam 435ms ease-out both;
  }
  @keyframes monitor-beam {
    0% { transform: scaleX(.07); opacity: 0; }
    22% { transform: scaleX(.48); opacity: .6; }
    50% { transform: scaleX(1); opacity: .8; }
    100% { transform: scale(1.02,2); opacity: 0; }
  }
  @keyframes monitor-picture {
    0%,17% { clip-path: inset(49.9% 7% round 50%); opacity: 0; }
    28% { clip-path: inset(48% 3% round 35%); opacity: .52; }
    59% { clip-path: inset(.9% .45% round 8%); opacity: .92; }
    100% { clip-path: inset(0 round 0%); opacity: 1; }
  }
}

/* Each logo travels with its cap. The pilot sits in the fixed fascia. */
.engraving-defs { position: absolute; pointer-events: none }
.contact .contact-keys {
  --guard: clamp(.5rem,1.0vw,.95rem);
  --nose: clamp(.58rem,.93vw,.85rem);
  --travel: 4px;
  isolation: isolate;
  position: relative;
  flex: 1 1 65%; max-width: 59rem; min-width: 0;
  display: grid; grid-template-columns: 1.14fr 1fr 1.22fr .94fr 1fr .94fr .98fr; gap: 0;
  padding: clamp(.85rem,1.25vw,1.3rem) clamp(.65rem,1.15vw,1.25rem) .8rem;
  border: 1px solid; border-color: #5d5e60 #232425 #141516; border-radius: 7px;
  background: linear-gradient(165deg,#414246,#303135 42%,#28292c);
  box-shadow: inset 0 1px #ffffff18,inset 0 -2px #1c1d20,0 1px 0 #67676a50,0 3px 7px #12121445;
}
.contact-keys::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; z-index: -1;
  pointer-events: none; background: url('medios/grano.png'); mix-blend-mode: soft-light; opacity: .11;
}
.contact .vcr-key {
  --ink: #505047; --back: #908f89; --crest: #d6d5ca; --slope: #b7b7ae;
  --edge: #9c9d95; --toe: #696b67; --channel: #e6f49b;
  position: relative; display: grid; grid-template-rows: auto auto; align-content: start;
  padding: 0; min-width: 0; color: #e8e7de; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.contact .vcr-key::after { content: none }
.contact .key-instagram {
  --ink: #4c211b; --back: #893329; --crest: #c75a4a; --slope: #b8493c;
  --edge: #99382f; --toe: #702820; --channel: #ff9b83;
  margin-right: var(--guard);
}
.contact .key-youtube {
  --ink: #515247; --back: #a3a39a; --crest: #e4e4d5; --slope: #ccccbe;
  --edge: #b7b8aa; --toe: #888a80;
}
.contact .key-x {
  --ink: #d4d3c6; --back: #494a4e; --crest: #707176; --slope: #5c5d62;
  --edge: #505155; --toe: #36373a;
  margin-left: var(--guard);
}
.key-well {
  display: block; position: relative;
  height: clamp(4.6rem,6.8vw,6rem); padding: 5px 2px 7px;
  border-top: 1px solid #17181a; border-bottom: 1px solid #656565;
  background: linear-gradient(#111214,#17181b 60%,#202124);
  box-shadow: inset 0 3px 4px #070809;
}
.key-whatsapp .key-well { padding-left: 4px; border-radius: 4px 0 0 4px }
.key-linkedin .key-well { padding-right: 4px; border-radius: 0 4px 4px 0 }
:is(.key-instagram,.key-x) .key-well {
  padding-inline: 5px; border-radius: 4px;
  box-shadow: inset 2px 0 #101113,inset -2px 0 #101113,inset 0 4px 5px #060708;
}
.key-cap {
  position: relative; display: block; height: 100%; border-radius: 4px 4px 3px 3px;
  transform-origin: 50% 4%; color: var(--ink);
  background: linear-gradient(90deg,var(--back),var(--edge) 2%,var(--toe) 97%,var(--back));
  box-shadow: 0 3px 3px #060709cc,0 1px 0 #08090a;
}
.key-face {
  position: absolute; inset: 0 1px var(--nose); border-radius: 3px 3px 2px 2px;
  display: grid; place-items: center;
  border-top: 1px solid #ffffff8c;
  background:
    radial-gradient(ellipse at var(--glint,32%) 0%,#fff3,transparent 64%),
    repeating-linear-gradient(0deg,#ffffff0a 0 1px,#12131b08 1px 1.5px,transparent 1.5px 3px),
    linear-gradient(180deg,var(--back),var(--crest) 9%,var(--slope) 57%,var(--edge) 94%,var(--crest));
  box-shadow: inset 1px 0 #ffffff45,inset -1px 0 #0002,0 1px #16171460;
}
.key-instagram .key-face {
  background: radial-gradient(ellipse at var(--glint,32%) 0%,#ffb59632,transparent 70%),
    linear-gradient(180deg,var(--back),var(--crest) 9%,var(--slope) 62%,var(--edge) 94%,var(--slope));
}
.key-cap::after {
  content: ""; position: absolute; inset: auto 2px 1px; height: calc(var(--nose) - 2px);
  border-radius: 0 0 2px 2px;
  background: repeating-linear-gradient(180deg,#0708093b 0 1px,#ffffff16 1px 2px,transparent 2px 4px),
    linear-gradient(90deg,var(--edge),var(--toe) 75%,var(--back));
}
.key-brand {
  display: block; font-size: clamp(1.8rem,2.15vw,2.1rem);
  width: 1em; height: 1em; overflow: visible; fill: currentColor; pointer-events: none;
}
.key-youtube .key-brand { width: 1.18em }
.key-facebook .key-brand { height: .86em }
.key-linkedin .key-brand { transform: translateY(.055em) }
.key-lamp {
  justify-self: center; width: .64rem; height: .22rem; margin-top: .65rem; border-radius: 1px;
  background: #606453; box-shadow: inset 0 1px #383b33,0 0 0 1px #191a1c,0 1px 0 1px #505152;
}
.key-instagram .key-lamp { background: #8e5b50 }
.contact .vcr-key:hover { text-decoration: none }
.contact .vcr-key:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 3px; z-index: 1 }
.vcr-key:active .key-cap { transform: perspective(22rem) translateY(1px) rotateX(-3deg) }
.vcr-key.latched .key-cap {
  transform: perspective(22rem) translateY(var(--travel)) rotateX(-7deg);
  box-shadow: 0 1px 1px #0c0c0e;
}
.vcr-key:is(:active,.latched) .key-lamp {
  background: var(--channel); box-shadow: 0 0 0 1px #20221e,0 0 6px var(--channel);
}
@media (hover:hover) and (pointer:fine) {
  .vcr-key:hover .key-face { filter: brightness(1.045) }
}
@media (prefers-reduced-motion:no-preference) {
  .key-cap { transition: transform 155ms cubic-bezier(.18,.78,.22,1),box-shadow 130ms }
  .vcr-key:is(:active,.latched) .key-cap { transition-duration: 55ms }
  .key-face,.key-lamp { transition: filter 120ms,background-color 70ms,box-shadow 70ms }
}
@media (max-width:66rem) {
  .contact .footer-inner { flex-direction: column; align-items: stretch; gap: 1.5rem }
  .contact .contact-keys { flex: none; width: 100%; max-width: none }
}
@media (max-width:44rem) {
  /* Each bank has its own continuous well. */
  .contact .contact-keys {
    --guard: clamp(.24rem,1.1vw,.5rem); --nose: .6rem;
    grid-template-columns: repeat(12,minmax(0,1fr)); row-gap: .9rem;
    padding: .65rem clamp(.38rem,1.6vw,.85rem) .7rem;
  }
  .contact .vcr-key { grid-column: span 3 }
  .contact :is(.key-facebook,.key-linkedin,.key-x) { grid-column: span 4 }
  .key-tiktok .key-well { padding-right: 4px; border-radius: 0 4px 4px 0 }
  .key-facebook .key-well { padding-left: 4px; border-radius: 4px 0 0 4px }
  .key-well { height: 4.25rem }
  .key-lamp { margin-top: .48rem }
}
