/* ==========================================================================
   Retro OS look for every page except the home page.
   Loaded after style.css when `look: 'retro'` is set in content/site.js.
   A teal desktop; each page is a grey window with a white sheet inside;
   the site menu is the taskbar at the bottom.
   Type: Silkscreen for titles and labels, VT323 for small data, and a plain
   system sans for reading text so long pages stay comfortable.
   ========================================================================== */
@font-face{font-family:'Silkscreen';font-weight:400;font-display:swap;src:url('home/fonts/silkscreen-400.woff2') format('woff2')}
@font-face{font-family:'Silkscreen';font-weight:700;font-display:swap;src:url('home/fonts/silkscreen-700.woff2') format('woff2')}
@font-face{font-family:'VT323';font-weight:400;font-display:swap;src:url('home/fonts/vt323.woff2') format('woff2')}

:root,[data-theme="dark"]{
  --bg:#ffffff;--surface:#ececec;--ink:#000000;--mute:#3d3d3d;--line:#9a9a9a;--well:#000000;
  --serif:'Silkscreen',ui-monospace,monospace;
  --sans:Tahoma,Verdana,'MS Sans Serif',Geneva,'Helvetica Neue',Arial,sans-serif;
  --pix:'VT323',ui-monospace,monospace;
  --grey:#C3C7CB;--navy:#000080;--desk:#0E8C8C;
  --wrap:1180px;--gutter:clamp(14px,2.6vw,34px);--band:clamp(56px,7vw,96px);
  color-scheme:light;
}
html{scroll-padding-top:20px}
body{background:var(--desk);font:400 .95rem/1.6 var(--sans);padding-bottom:64px;-webkit-font-smoothing:auto}
::selection{background:var(--navy);color:#fff}
:focus-visible{outline:1px dotted #000;outline-offset:2px}
a{text-decoration-thickness:1px}

/* ---- the taskbar (was the header) */
.head{position:fixed;left:0;right:0;top:auto;bottom:0;z-index:40;background:var(--grey);border-top:2px solid #fff;border-bottom:0}
.head.is-stuck{border-bottom:0}
.head__in{width:auto;margin:0 8px;height:44px;justify-content:flex-start;gap:6px}
.brand,.nav a{font:700 12px/1 var(--serif);color:#000;background:var(--grey);border:2px solid;border-color:#fff #000 #000 #fff;padding:7px 12px;text-decoration:none;white-space:nowrap}
.brand{display:flex;align-items:center;gap:8px}
.brand::before{content:'';width:13px;height:13px;background:#FF5A2A;border:2px solid #000;flex:none}
.nav{gap:6px;margin-left:8px}
.nav a:hover{text-decoration:none;background:#d6dadd}
.nav a.is-here{border-color:#000 #fff #fff #000;background:repeating-conic-gradient(#fff 0 25%,var(--grey) 0 50%) 0 0/4px 4px;text-decoration:none}
.clock{margin-left:auto;font:400 20px/1 var(--pix);color:#000;border:2px solid;border-color:#808080 #fff #fff #808080;padding:5px 10px 4px;white-space:nowrap}
@media (max-width:560px){.brand{font-size:0;padding:7px 9px;gap:0}.clock{display:none}.head__in{flex-wrap:nowrap;min-height:0;padding-block:0}.nav{gap:4px;margin-left:2px}}

/* ---- every page is a window */
main,.foot{position:relative;width:min(100% - 2 * clamp(8px,2vw,28px),1240px);margin-inline:auto;background:var(--grey);border:2px solid;border-color:#fff #404040 #404040 #fff;box-shadow:2px 2px 0 #000;padding:32px 4px 4px}
main{margin-top:clamp(12px,2.4vw,30px)}
main::before,.foot::before{content:attr(data-win);position:absolute;left:3px;right:3px;top:3px;height:24px;background:linear-gradient(90deg,var(--navy),#1084d0);color:#fff;font:700 12px/24px var(--serif);padding:0 34px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
main::after,.foot::after{content:'×';position:absolute;right:6px;top:6px;width:18px;height:16px;background:var(--grey);border:2px solid;border-color:#fff #000 #000 #fff;color:#000;font:700 13px/12px Arial,sans-serif;text-align:center}
main > *{background:#fff;border:2px solid;border-color:#808080 #fff #fff #808080;padding-block:clamp(18px,2.6vw,36px)}
main > * + *{margin-top:4px}
.foot{margin-top:22px;padding-block:32px 4px;border-top:2px solid #fff}
.foot::before{content:'C:\\Contact\\write_to_ricardo.txt'}
.foot > .wrap{width:auto;background:#fff;border:2px solid;border-color:#808080 #fff #fff #808080;padding:clamp(18px,2.6vw,32px) var(--gutter)}
.wrap{width:auto;margin-inline:var(--gutter)}
main > .wrap{margin-inline:0;padding-inline:var(--gutter)}

/* ---- titles */
.intro h1,.case h1,.about h1,.contact h1,.band__title,.plate__title,.row__title,.sec > h2,.foot__cta,.list h3{font-family:var(--serif);font-weight:700;letter-spacing:-.06em}
.intro h1,.case h1,.about h1,.contact h1{font-size:clamp(1.5rem,3.5vw,3rem);line-height:1.08;max-width:22em}
.band__title{font-size:clamp(1.15rem,1.9vw,1.6rem);line-height:1.15}
.sec > h2{font-size:clamp(1rem,1.35vw,1.2rem);line-height:1.25}
.plate__title,.plates--three .plate__title{font-size:.95rem;line-height:1.25;margin-top:10px}
.row__title{font-size:.88rem;line-height:1.25}
.list h3{font-size:1rem;line-height:1.25}
.foot__cta{font-size:clamp(1.1rem,2.2vw,1.7rem);line-height:1.15;max-width:none}
.short li{font-family:var(--pix);font-weight:400;font-size:clamp(1.35rem,1.7vw,1.6rem);line-height:1.08;letter-spacing:0;border-top:2px solid var(--navy);padding-top:10px}
.intro{padding-block:clamp(22px,3vw,44px)}
.intro__lead,.case__sum,.about__text p:first-of-type{font-size:1.05rem;line-height:1.55}
.band{padding-top:var(--band)}
.band__aside,.plate__ctx,.row__ctx,.case__ctx,.facts dt,.clients__note,.credit{font-family:var(--pix);font-size:1.15rem;line-height:1.1;color:var(--navy)}
.case__ctx{margin-bottom:10px}
.case__head{padding-block:0 clamp(20px,3vw,40px)}
.case__back{margin-bottom:clamp(18px,3vw,36px);font:700 12px/1 var(--serif)}
.case__back a{color:#000;background:var(--grey);border:2px solid;border-color:#fff #000 #000 #fff;padding:6px 10px;text-decoration:none;display:inline-block}
.case__back a:hover{background:#d6dadd;color:#000}

/* ---- links, buttons */
.sec__body a,.about__text a,.table a,.list a,.foot__mail,.contact a:not(.btn){color:var(--navy)}
.btn,.filter,.chip{font:700 12px/1.2 var(--serif);color:#000;background:var(--grey);border:2px solid;border-color:#fff #000 #000 #fff;padding:8px 14px}
.btn:hover{background:#d6dadd;color:#000}
.filters{gap:6px}
.filter sup{font-family:var(--pix);font-size:1.1em;margin-left:5px}
.filter:hover{color:#000;background:#d6dadd}
.filter[aria-pressed="true"]{text-decoration:none;border-color:#000 #fff #fff #000;background:repeating-conic-gradient(#fff 0 25%,var(--grey) 0 50%) 0 0/4px 4px}
.chip{gap:8px;padding:6px 11px 6px 9px}
.chip time,.chip small{font:400 1.05rem/1 var(--pix);color:#000}
button:hover > .chip,a:hover > .chip,button:focus-visible > .chip,a:focus-visible > .chip{background:var(--navy);color:#fff}
button:hover > .chip time,a:hover > .chip time,button:hover > .chip small,a:hover > .chip small{color:#fff}

/* ---- pictures and video sit in sunken frames */
.plate__media,.player,.yt,.clip__play,.shot button,.case__img,.row__thumb,.about__pic img{border:2px solid;border-color:#808080 #fff #fff #808080;outline:1px solid #000;outline-offset:-3px}
.plate:hover .plate__title{text-decoration:none;background:var(--navy);color:#fff;display:inline-block;padding:1px 4px;margin-left:-4px}
.plate__media--type{background:var(--grey)}
.plate__type{font-family:var(--serif);font-weight:700;font-size:1.2rem;color:#000;letter-spacing:-.05em}

/* ---- lists read like a file manager: the row under the pointer is selected */
.index,.clients,.table,.facts{border-bottom-color:var(--line)}
.row a{padding-inline:8px}
@media (min-width:1040px){.row a:hover{background:var(--navy);box-shadow:none;color:#fff}}
.row a:hover :is(.row__sum,.row__ctx,.row__title){color:#fff}
.row__sum{font-size:.9rem}
.facts{border:2px solid;border-color:#808080 #fff #fff #808080;background:var(--surface);padding:0 12px;gap:0 var(--gap);margin-top:4px}
.facts > div{border-top:0;padding:10px 0 12px}
.facts dd{font-size:.92rem}
.table__when,.table dt{font-family:var(--pix);font-size:1.2rem;line-height:1.2;color:var(--navy)}
.sec{padding-block:clamp(24px,3.4vw,48px)}
.case__body{margin-top:clamp(28px,4vw,56px)}
.short{margin-top:clamp(28px,4vw,56px)}

/* ---- footer window */
.foot__mail{font-size:1.05rem}
.foot__base{margin-top:clamp(22px,3vw,40px);font-family:var(--pix);font-size:1.15rem;color:#000}
.foot__base a,.foot__base button{color:var(--navy);text-decoration:underline}
[data-theme-toggle]{display:none!important}
.peek{border:2px solid;border-color:#fff #404040 #404040 #fff;box-shadow:2px 2px 0 #000}
.lightbox__close{font:700 12px var(--serif)}
.foot > .wrap{margin-inline:0}
.contact :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),textarea){border:2px solid;border-color:#808080 #fff #fff #808080;outline:1px solid #000;outline-offset:-3px;background:#fff;padding:7px 9px}
.about,.contact{padding-top:clamp(20px,3vw,44px)}

/* ---- lens */
.lens__stage{border:2px solid;border-color:#808080 #fff #fff #808080;outline:1px solid #000;outline-offset:-3px}
.lens__ring{border:2px dotted #FFFF66;box-shadow:none}
.lens__ring::before,.lens__ring::after{background:#FFFF66;box-shadow:none}
.lens__modes{gap:6px}
.lens__modes span{font:400 1.2rem/1 var(--pix);color:var(--navy);margin-right:6px}
.lens__modes button{font:700 12px/1.2 var(--serif);color:#000;background:var(--grey);border:2px solid;border-color:#fff #000 #000 #fff;padding:8px 14px}
.lens__modes button:hover{background:#d6dadd}
.lens__modes button[aria-pressed="true"]{text-decoration:none;border-color:#000 #fff #fff #000;background:repeating-conic-gradient(#fff 0 25%,var(--grey) 0 50%) 0 0/4px 4px}
.lens__hint{font:400 1.15rem/1.1 var(--pix);color:#000}

/* ---- work browser */
.flix__hero{background:#000;border:2px solid;border-color:#808080 #fff #fff #808080}
.flix__hero::after{background:linear-gradient(90deg,#000 34%,rgba(0,0,0,.82) 46%,rgba(0,0,0,0) 72%),linear-gradient(0deg,#000 0,rgba(0,0,0,0) 26%)}
.flix__ctx{font:400 1.2rem/1.1 var(--pix);color:#FFFF66}
.flix__title{font-family:var(--serif);font-weight:700;font-size:clamp(1.2rem,2.2vw,1.9rem);letter-spacing:-.06em;line-height:1.1}
.flix__sum{font-size:.92rem;color:#e6e6e6}
.flix__go{font:700 12px/1.2 var(--serif);color:#000;background:var(--grey);border:2px solid;border-color:#fff #000 #000 #fff;padding:8px 14px}
.flix__go:hover{background:#d6dadd}
.flix__label{font:700 1rem/1.2 var(--serif);letter-spacing:-.05em}
.flix__label small{font:400 1.15rem/1 var(--pix);color:var(--navy);letter-spacing:0}
.flix__pic{border:2px solid;border-color:#808080 #fff #fff #808080}
.flix__tile strong{font:700 12px/1.3 var(--serif);letter-spacing:-.03em;padding:2px 4px;margin:6px 0 0 -4px;display:inline-block}
.flix__tile.is-on strong{background:var(--navy);color:#fff;outline:1px dotted #fff;outline-offset:-1px}
.flix__tile.is-on .flix__pic,.flix__tile:focus-visible .flix__pic{outline:2px dotted var(--navy);outline-offset:2px}

/* ---- leaving for the archive: the windows close, the desktop and taskbar stay, then the home page takes over */
@view-transition{navigation:auto}
html.is-leaving main,html.is-leaving .foot{animation:winclose .26s cubic-bezier(.5,0,.8,.4) forwards;transform-origin:50% 40%}
@keyframes winclose{to{transform:scale(.92);opacity:0}}
@media (prefers-reduced-motion:reduce){html.is-leaving main,html.is-leaving .foot{animation:none}}

/* ---- Retro OS scrollbars: a checkered track, a raised grey thumb, and arrow buttons at both ends */
html,html *{scrollbar-color:auto;scrollbar-width:auto}
::-webkit-scrollbar,html::-webkit-scrollbar{width:18px;height:18px}
::-webkit-scrollbar-track,html::-webkit-scrollbar-track{background:repeating-conic-gradient(#fff 0 25%,#C3C7CB 0 50%) 0 0/4px 4px}
::-webkit-scrollbar-thumb,html::-webkit-scrollbar-thumb{background:#C3C7CB;border:2px solid;border-color:#fff #000 #000 #fff;box-shadow:inset -1px -1px 0 #808080}
::-webkit-scrollbar-corner,html::-webkit-scrollbar-corner{background:#C3C7CB}
::-webkit-scrollbar-button,html::-webkit-scrollbar-button{display:block;width:18px;height:18px;background:#C3C7CB center/8px 8px no-repeat;border:2px solid;border-color:#fff #000 #000 #fff}
::-webkit-scrollbar-button:active,html::-webkit-scrollbar-button:active{border-color:#000 #fff #fff #000}
::-webkit-scrollbar-button:vertical:start:increment,::-webkit-scrollbar-button:vertical:end:decrement,::-webkit-scrollbar-button:horizontal:start:increment,::-webkit-scrollbar-button:horizontal:end:decrement,
html::-webkit-scrollbar-button:vertical:start:increment,html::-webkit-scrollbar-button:vertical:end:decrement,html::-webkit-scrollbar-button:horizontal:start:increment,html::-webkit-scrollbar-button:horizontal:end:decrement{display:none}
::-webkit-scrollbar-button:vertical:decrement,html::-webkit-scrollbar-button:vertical:decrement{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 2l3 4H1z'/%3E%3C/svg%3E")}
::-webkit-scrollbar-button:vertical:increment,html::-webkit-scrollbar-button:vertical:increment{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 6l3-4H1z'/%3E%3C/svg%3E")}
::-webkit-scrollbar-button:horizontal:decrement,html::-webkit-scrollbar-button:horizontal:decrement{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M2 4l4-3v6z'/%3E%3C/svg%3E")}
::-webkit-scrollbar-button:horizontal:increment,html::-webkit-scrollbar-button:horizontal:increment{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M6 4L2 1v6z'/%3E%3C/svg%3E")}
@supports not selector(::-webkit-scrollbar){html,html *{scrollbar-color:#C3C7CB #e9ebec;scrollbar-width:auto}}
.flix__tiles{scrollbar-width:auto;padding-bottom:6px}

/* ---- phones */
@media (max-width:560px){
  .brand{font-size:12px;padding:10px 9px;gap:6px}.nav a{padding:10px 9px}.head__in{height:50px;margin:0 6px;gap:4px}.nav{gap:4px;margin-left:0}
  body{padding-bottom:70px}
  .intro h1,.case h1,.about h1,.contact h1{font-size:1.35rem}
  .btn,.filter,.case__back a{padding:11px 14px}
}
@media (max-width:380px){.brand::before{display:none}}
/* no pointer to hover with: the banner is left out and each row becomes a plain grid of tiles */
@media (max-width:700px),(hover:none){
  .flix__hero{display:none}.flix__slot,.flix__slot.is-open{height:0}
  .flix__tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px 10px;overflow:visible;padding-bottom:0}
  .flix__tile.is-on strong{background:none;color:inherit;outline:0}.flix__tile.is-on .flix__pic{outline:0}
}
@media (min-width:701px) and (hover:none){.flix__tiles{grid-template-columns:repeat(4,1fr)}}

/* Retro OS cursors: an arrow everywhere, a hand on anything you can click */
html{cursor:url(/assets/cursors/arrow.svg) 0 0,default}
:is(a,button,summary,label,select,[role=button],[data-video],[data-image]){cursor:url(/assets/cursors/hand.svg) 11 0,pointer!important}
:is(input:not([type=checkbox],[type=radio],[type=range]),textarea){cursor:url(/assets/cursors/ibeam.svg) 9 15,text}
.lens__stage{cursor:url(/assets/cursors/cross.svg) 13 13,crosshair}
