/* luis-arturo-tapia.com */
:root{--bg:#0B0B0C;--fg:#EDEAE4;--mut:#A19D95;--soft:#D8D4CC;--rule:#26262A;--gold:#E6B85C;--line:#55524C}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--bg)}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
main{flex:1 0 auto;width:100%}
img{max-width:100%}
a{color:var(--fg);text-decoration:none}
a:hover{color:var(--gold)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
i,em{font-style:italic}
.skip{position:absolute;left:-9999px}
.skip:focus{left:16px;top:16px;z-index:10;background:var(--gold);color:var(--bg);padding:10px 14px}
.wrap{max-width:1344px;margin:0 auto;padding:0 32px}
.lab{font-family:Inter,sans-serif;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--mut)}
.ul{font-size:14px;border-bottom:1px solid var(--fg);padding-bottom:3px}
.ul:hover{border-color:var(--gold)}
.gap{height:56px}

/* header and footer */
.site-head{height:88px;padding:0 5.5%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-family:"Inter Tight",sans-serif;font-size:18px;font-weight:500;letter-spacing:.04em;white-space:nowrap}
.site-head nav{display:flex;gap:40px}
.site-head nav a{font-size:14px;letter-spacing:.02em;padding:14px 0;border-bottom:1px solid transparent}
.site-head nav a[aria-current]{border-bottom-color:var(--gold)}
.site-foot{height:96px;padding:0 5.5%;display:flex;align-items:center;justify-content:center;border-top:1px solid var(--rule);font-size:13px}
.site-foot .soc{display:flex;gap:28px;flex-wrap:wrap;justify-content:center}
.site-foot a{color:var(--mut)}
.site-foot a:hover{color:var(--gold)}

/* video */
.embed{position:relative;aspect-ratio:16/9;background:#000}
.embed iframe,.hero iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.embed + .embed{margin-top:24px}
.hero{cursor:pointer;background:#000;overflow:hidden}
.hero.playing{cursor:default}
.hero button{transition:background .2s,border-color .2s}
.hero:hover button{background:rgba(11,11,12,.7)!important;border-color:var(--gold)!important}

/* simple pages */
.page-title{margin:0;padding:40px 0 28px;font-family:"Inter Tight",sans-serif;font-weight:500;font-size:56px;line-height:1.06;letter-spacing:-.01em}
.lede{margin:0;font-family:"Inter Tight",sans-serif;font-size:26px;line-height:1.45;font-weight:400}
.lede a,.text a,.prose a{border-bottom:1px solid var(--line)}

/* project pages */
.p-head{padding:28px 0 24px;display:flex;flex-direction:column;gap:12px}
.p-head h1{margin:0;font-family:"Inter Tight",sans-serif;font-weight:500;font-size:64px;line-height:1.05;letter-spacing:-.01em}
.lead img{display:block;width:100%;height:auto}
.about{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:72px;padding:40px 0}
.about.solo{grid-template-columns:minmax(0,900px)}
.about .text{display:flex;flex-direction:column;gap:16px}
.about .text p{margin:0;font-size:17px;line-height:1.65;color:var(--soft)}
.about .text p.lede{font-size:26px;line-height:1.45;color:var(--fg)}
.facts{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:20px 32px;align-content:start}
.facts div{display:flex;flex-direction:column;gap:6px;min-width:0}
.facts dt{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--mut)}
.facts dd{margin:0;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.stills{display:flex;flex-direction:column;gap:24px;padding-top:8px}
.embed + .stills,.lead + .stills{padding-top:24px}
.stills .row{display:grid;gap:24px;align-items:start}
.stills .row2{grid-template-columns:1fr 1fr}
.stills .row3{grid-template-columns:repeat(3,1fr)}
.stills img{display:block;width:100%;height:auto}

/* thumbnail strips */
.strip{list-style:none;margin:0;padding:6px 5px 5px;display:flex;gap:16px}
.strip li{flex:1 1 0;min-width:96px}
.strip a{display:block;aspect-ratio:16/9;opacity:.5;transition:opacity .2s}
.strip a:hover,.strip a[aria-current]{opacity:1}
.strip a[aria-current]{outline:2px solid var(--gold);outline-offset:3px}
.strip img{display:block;width:100%;height:100%;object-fit:cover}
.strip.scroll{overflow-x:auto;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding-bottom:14px}
.strip.scroll li{flex:0 0 128px}
.count{font-size:14px;letter-spacing:.08em;color:var(--mut);white-space:nowrap}
.count b{font-weight:400;color:var(--fg)}
.arrow{width:52px;height:52px;border-radius:50%;border:1px solid var(--line);background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;color:var(--fg)}
.arrow:hover{border-color:var(--gold);color:var(--gold)}
.arrow svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.more{padding:32px 0 48px}
.more-head{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-bottom:20px}
.more-l{display:flex;align-items:baseline;gap:28px;flex-wrap:wrap}
.more-l h2{margin:0;font-family:"Inter Tight",sans-serif;font-size:32px;font-weight:500}
.more-r{display:flex;align-items:center;gap:20px}

/* work */
.w-head{height:96px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.w-head h1{margin:0;font-family:"Inter Tight",sans-serif;font-weight:500;font-size:40px;letter-spacing:-.01em}
.toggle{display:flex;gap:28px;font-size:14px}
.toggle a{padding:14px 0;color:var(--mut);border-bottom:1px solid transparent}
.toggle a[aria-current]{color:var(--fg);border-bottom-color:var(--gold)}
.car-main{position:relative;display:block;aspect-ratio:1280/580;background:#000;overflow:hidden}
.car-main img{display:block;width:100%;height:100%;object-fit:cover;transition:opacity .25s}
.car-main.swap img{opacity:0}
.car-main .play{position:absolute;inset:0;margin:auto;width:88px;height:88px;border-radius:50%;border:1.5px solid var(--fg);background:rgba(11,11,12,.4);display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s}
.car-main .play svg{fill:var(--fg)}
.car-main:hover .play{background:rgba(11,11,12,.7);border-color:var(--gold)}
.car-cap{min-height:96px;padding:20px 0;display:flex;align-items:center;justify-content:space-between;gap:20px 32px;flex-wrap:wrap}
.car-l{display:flex;align-items:baseline;gap:12px 28px;flex-wrap:wrap}
.car-l h2{margin:0;font-family:"Inter Tight",sans-serif;font-size:32px;font-weight:500}
.car-r{display:flex;align-items:center;gap:20px}
.car{padding-bottom:56px}
.index{padding:8px 0 64px}
.index h2{margin:0 0 24px;font-weight:400}
.index ul{list-style:none;margin:0;padding:0;columns:3;column-gap:48px}
.index li{break-inside:avoid;padding:0 0 12px;font-family:"Inter Tight",sans-serif;font-size:20px;line-height:1.3}
.js .car.off,.js .index.off{display:none}

/* contact form */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
#contact-form input:focus,#contact-form textarea:focus{outline:none;border-color:var(--gold)!important}
#contact-form button:hover{background:var(--fg)!important}
#contact-form button[disabled]{opacity:.6;cursor:default!important}
#contact-status{margin:0;font-size:15px;color:var(--soft);min-height:1.5em}
#contact-status.err{color:#E8907A}

/* long-form pages */
.article{max-width:1024px}
.prose{padding:8px 0 24px;color:var(--soft);font-size:17px;line-height:1.65}
.prose h1,.prose h2,.prose h3{font-family:"Inter Tight",sans-serif;font-weight:500;color:var(--fg);line-height:1.15;margin:24px 0 12px}
.prose h1{font-size:48px}.prose h2{font-size:32px}.prose h3{font-size:22px}
.article .stills{padding:8px 0 24px}

/* pages lifted from the design boards carry their own inline styles; these adapt them to smaller screens */
.board .ep img{transition:opacity .2s}
@media (max-width:1180px){
  .board .nw{white-space:normal!important}
  .board .rg6{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:900px){
  .wrap{padding:0 20px}
  .site-head{height:auto;padding:18px 20px 6px;flex-direction:column;align-items:flex-start;gap:4px}
  .site-head nav{gap:28px}
  .site-foot{height:80px;padding:0 20px}
  .page-title{font-size:40px;padding:24px 0 20px}
  .p-head{padding:20px 0 18px}
  .p-head h1{font-size:38px}
  .about{grid-template-columns:1fr;gap:28px;padding:28px 0}
  .about .text p.lede,.lede{font-size:21px}
  .stills,.stills .row{gap:12px}
  .more{padding:24px 0 36px}
  .board .hero > div > span{display:none}
  .more .strip{overflow-x:auto;padding-bottom:12px}
  .more .strip li{flex:0 0 112px}
  .more-l h2,.car-l h2{font-size:26px}
  .w-head{height:auto;padding:16px 0 8px}
  .w-head h1{font-size:34px}
  .car-main{aspect-ratio:16/10}
  .car-main .play{width:64px;height:64px}
  .car-cap{padding:16px 0}
  .index ul{columns:2;column-gap:28px}
  .index li{font-size:17px}
  .prose h1{font-size:34px}.prose h2{font-size:26px}

  .board .rg,.board .rg3,.board div.rg2{grid-template-columns:1fr!important;gap:28px!important}
  .board .rg4{grid-template-columns:1fr 1fr!important}
  .board .rg6{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 0!important}
  .board .rgk{grid-template-columns:96px minmax(0,1fr)!important;gap:16px!important}
  .board .rgk .rc{columns:1!important}
  .board .rc{columns:2!important;column-gap:24px!important}
  .board dl.rg2 dd{overflow-wrap:anywhere}
  .board .fs64,.board .fs56{font-size:38px!important}
  .board .fs44{font-size:34px!important}
  .board .fs40,.board .fs32{font-size:26px!important}
  .board .fs26,.board .fs24{font-size:21px!important}
  .board .fs22{font-size:19px!important}
  .board h1[style*="padding: 56px"]{padding:24px 0 20px!important}
  .board section[style*="height: 240px"]{height:auto!important;padding:20px 0 18px!important;gap:12px!important}
  .board section[style*="padding: 88px"],.board section[style*="padding: 72px 0 36px"],.board section[style*="padding: 56px 0 72px"]{padding:32px 0!important}
  .board section[style*="padding: 0 0 88px"],.board section[style*="padding: 0 0 72px"]{padding-bottom:40px!important}
  .board .hero > div[style*="left: 32px"],.board .hero > span[style*="left: 32px"]{left:16px!important;bottom:16px!important}
  .board .hero button{width:56px!important;height:56px!important}
  .b-a-series ul[style*="gap: 24px"]{gap:12px!important}
  .b-a-series .ep{height:auto!important;aspect-ratio:16/9}
  .b-a-series li .fs22{font-size:15px!important}
  .b-a-series div[style*="height: 96px"]{height:auto!important;padding:16px 0!important}
  .b-main .hero{aspect-ratio:16/10!important}
}
@media (max-width:560px){
  .site-head nav{gap:22px}
  .facts{grid-template-columns:1fr 1fr;gap:16px 20px}
  .stills .row2{grid-template-columns:1fr}
  .stills .row3{grid-template-columns:1fr 1fr}
  .index ul{columns:1}
  .car-r{width:100%}
  .car-r .count{margin-right:auto}
  .board .rg6{grid-template-columns:1fr 1fr!important}
  .board .rg6 > li > div{transform:scale(.9)}
  .board .rc{columns:1!important}
  .b-a-bio .rc{columns:2!important}
  .b-a-bio .rc li{font-size:16px!important}
  .board .fs44{font-size:30px!important}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
