/* Amy Tremer portfolio. Fonts live in ../fonts, images in ../assets (same folders as the zip). */
@font-face{font-family:Fredoka;src:url(../fonts/Fredoka/static/Fredoka-Regular.ttf);font-weight:400;font-display:swap}
@font-face{font-family:Fredoka;src:url(../fonts/Fredoka/static/Fredoka-Medium.ttf);font-weight:500;font-display:swap}
@font-face{font-family:Fredoka;src:url(../fonts/Fredoka/static/Fredoka-SemiBold.ttf);font-weight:600;font-display:swap}
@font-face{font-family:Fredoka;src:url(../fonts/Fredoka/static/Fredoka-Bold.ttf);font-weight:700;font-display:swap}
@font-face{font-family:Fredoka;src:url("../fonts/Fredoka/Fredoka-VariableFont_wdth,wght.ttf");font-weight:300 700;font-stretch:50% 200%;font-display:swap}
@font-face{font-family:Supermercado;src:url(../fonts/Supermercado/SupermercadoOne-Regular.ttf);font-display:swap}
:root{--ink:#0e0e0e;--wine:#7e0018;--brick:#9d2028;--cream:#f7e6d6;--paper:#f4f4f4;--tape:#d8c8a6;--tag:#7e0018;--accent:#f7e6d6;--torn:polygon(0 7px,2.5% 2px,5.0% 6px,7.5% 10px,10.0% 0px,12.5% 1px,15.0% 8px,17.5% 1px,20.0% 5px,22.5% 9px,25.0% 0px,27.5% 8px,30.0% 3px,32.5% 0px,35.0% 1px,37.5% 6px,40.0% 6px,42.5% 1px,45.0% 3px,47.5% 1px,50.0% 8px,52.5% 6px,55.0% 0px,57.5% 9px,60.0% 1px,62.5% 3px,65.0% 10px,67.5% 10px,70.0% 9px,72.5% 0px,75.0% 9px,77.5% 9px,80.0% 6px,82.5% 0px,85.0% 3px,87.5% 0px,90.0% 8px,92.5% 2px,95.0% 4px,97.5% 6px,100% 4px,100% calc(100% - 4px),97.5% calc(100% - 6px),95.0% calc(100% - 4px),92.5% calc(100% - 2px),90.0% calc(100% - 8px),87.5% calc(100% - 0px),85.0% calc(100% - 3px),82.5% calc(100% - 0px),80.0% calc(100% - 6px),77.5% calc(100% - 9px),75.0% calc(100% - 9px),72.5% calc(100% - 0px),70.0% calc(100% - 9px),67.5% calc(100% - 10px),65.0% calc(100% - 10px),62.5% calc(100% - 3px),60.0% calc(100% - 1px),57.5% calc(100% - 9px),55.0% calc(100% - 0px),52.5% calc(100% - 6px),50.0% calc(100% - 8px),47.5% calc(100% - 1px),45.0% calc(100% - 3px),42.5% calc(100% - 1px),40.0% calc(100% - 6px),37.5% calc(100% - 6px),35.0% calc(100% - 1px),32.5% calc(100% - 0px),30.0% calc(100% - 3px),27.5% calc(100% - 8px),25.0% calc(100% - 0px),22.5% calc(100% - 9px),20.0% calc(100% - 5px),17.5% calc(100% - 1px),15.0% calc(100% - 8px),12.5% calc(100% - 1px),10.0% calc(100% - 0px),7.5% calc(100% - 10px),5.0% calc(100% - 6px),2.5% calc(100% - 2px),0 calc(100% - 7px));--torn2:polygon(0 2px,7.1% 4px,14.3% 2px,21.4% 4px,28.6% 5px,35.7% 1px,42.9% 0px,50.0% 4px,57.1% 4px,64.3% 5px,71.4% 1px,78.6% 2px,85.7% 0px,92.9% 4px,100% 2px,100% 100%,0 100%);--torn-top:polygon(0 7px,2.5% 2px,5.0% 6px,7.5% 10px,10.0% 0px,12.5% 1px,15.0% 8px,17.5% 1px,20.0% 5px,22.5% 9px,25.0% 0px,27.5% 8px,30.0% 3px,32.5% 0px,35.0% 1px,37.5% 6px,40.0% 6px,42.5% 1px,45.0% 3px,47.5% 1px,50.0% 8px,52.5% 6px,55.0% 0px,57.5% 9px,60.0% 1px,62.5% 3px,65.0% 10px,67.5% 10px,70.0% 9px,72.5% 0px,75.0% 9px,77.5% 9px,80.0% 6px,82.5% 0px,85.0% 3px,87.5% 0px,90.0% 8px,92.5% 2px,95.0% 4px,97.5% 6px,100% 4px,100% 100%,0 100%)}
/* crayon-box sticker palette + paper grain texture */
:root{--butter:#ffd661;--bubble:#ff8fa3;--mint:#7bddb4;--sky:#6fb7ff;--lilac:#c9a7ff;--noise:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");--star-tex:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%230e0e0e' fill-opacity='0.1'%3E%3Cpath d='M9.4 -12.9Q38 -12.4 15.2 4.9Q23.5 32.4 0 16Q-23.5 32.4 -15.2 4.9Q-38 -12.4 -9.4 -12.9Q0 -40 9.4 -12.9Z' transform='translate(46,54) rotate(10) scale(1.3)'/%3E%3Cpath d='M9.4 -12.9Q38 -12.4 15.2 4.9Q23.5 32.4 0 16Q-23.5 32.4 -15.2 4.9Q-38 -12.4 -9.4 -12.9Q0 -40 9.4 -12.9Z' transform='translate(165,150) rotate(-16) scale(1.05)'/%3E%3C/g%3E%3C/svg%3E");--star-tex-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg fill='%23f7e6d6' fill-opacity='0.1'%3E%3Cpath d='M9.4 -12.9Q38 -12.4 15.2 4.9Q23.5 32.4 0 16Q-23.5 32.4 -15.2 4.9Q-38 -12.4 -9.4 -12.9Q0 -40 9.4 -12.9Z' transform='translate(46,54) rotate(10) scale(1.3)'/%3E%3Cpath d='M9.4 -12.9Q38 -12.4 15.2 4.9Q23.5 32.4 0 16Q-23.5 32.4 -15.2 4.9Q-38 -12.4 -9.4 -12.9Q0 -40 9.4 -12.9Z' transform='translate(165,150) rotate(-16) scale(1.05)'/%3E%3C/g%3E%3C/svg%3E")}
/* per-project colours (taken from each project's label in the PDF): --tag = label text on paper, --accent = highlight on dark */
.p-cheese{--tag:#6b5a12;--accent:#e3c44a}.p-cysta{--tag:#9b1a5a;--accent:#f58bb0}.p-meier{--tag:#d9606a;--accent:#ff9aa2}
.p-shark{--tag:#2b4da8;--accent:#7b9cff}.p-solune{--tag:#7b5cc4;--accent:#b9a4ff}.p-weather{--tag:#1f5fbf;--accent:#4db3ff}
*{box-sizing:border-box;margin:0}
::selection{background:var(--sky);color:var(--ink)}
html{scroll-behavior:smooth;scroll-padding-top:1.5rem}
body{background:var(--ink);color:var(--cream);font:400 1.0625rem/1.65 Fredoka,system-ui,sans-serif;min-height:100vh;display:flex;flex-direction:column}
main{flex:1 0 auto}
/* subtle paper grain over the whole canvas */
body::after{content:"";position:fixed;inset:0;z-index:150;pointer-events:none;background-image:var(--noise);opacity:.05;mix-blend-mode:soft-light}
/* puffy stars raining down the very top of the page, fading out beneath the masthead */
.top-stars{position:absolute;top:0;left:0;right:0;height:300px;z-index:-1;pointer-events:none;background-image:var(--star-tex-light);background-position:top center;-webkit-mask-image:linear-gradient(to bottom,#000,transparent 75%);mask-image:linear-gradient(to bottom,#000,transparent 75%)}
img{max-width:100%;display:block}a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:6px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:fixed;top:-80px;left:1rem;z-index:200;background:var(--wine);color:var(--cream);padding:.6rem 1.2rem;border-radius:99px;font-weight:600;text-decoration:none;transition:top .2s}
.skip:focus{top:1rem}
.wrap{width:min(1180px,100% - 2.5rem);margin-inline:auto;position:relative;z-index:1}
h1,h2,h3{font-family:Supermercado,Fredoka,sans-serif;font-weight:400;line-height:1.05}
h1{font-size:clamp(2.6rem,6vw,4.5rem)}h2{font-size:clamp(1.9rem,4vw,2.75rem)}h3{font-size:1.5rem}
p{max-width:62ch}p+p{margin-top:1em}
/* masthead: a centered wordmark over a thin rule, with a short numbered index of links beneath it */
.progress{position:fixed;top:0;left:0;right:0;height:3px;background:var(--sky);transform-origin:0 50%;transform:scaleX(0);z-index:85}
.masthead{padding:2.25rem 1.5rem 1.5rem;text-align:center}
.brand-word{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--cream)}
.brand-word img{width:32px;height:32px;object-fit:contain}
.brand-word span{font-family:Supermercado,Fredoka,sans-serif;font-size:1.25rem}
.primary-nav{margin:1.35rem auto 0;padding-top:1.1rem;max-width:720px;border-top:1px solid rgba(247,230,214,.15)}
.primary-nav>ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.9rem}
.primary-nav a{text-decoration:none;font-weight:500;font-size:.95rem;color:rgba(247,230,214,.78)}
.primary-nav a:hover,.primary-nav a[aria-current],.primary-nav a.active{color:var(--cream)}
@media(max-width:640px){.primary-nav>ul{gap:.5rem 1.1rem}.primary-nav a{font-size:.88rem}}
/* scroll reveals (placed before .paper etc. so their :hover states can still win the cascade once revealed) */
.reveal{opacity:0;transform:translateY(26px) rotate(var(--rot,0deg)) scale(.97);transition:opacity .5s ease var(--d,0ms),transform .55s cubic-bezier(.2,1.2,.3,1) var(--d,0ms)}
.reveal.in{opacity:1;transform:rotate(var(--rot,0deg));transition:opacity .4s ease,transform .2s ease}
/* torn paper, tape, labels */
.torn{clip-path:var(--torn);padding-top:3.5rem}
.band-cream{background:var(--cream);color:var(--wine)}
.band-wine{background-color:var(--wine);background-image:var(--star-tex);background-size:220px 220px}
section{padding-block:clamp(3rem,7vw,5.5rem)}
section[id]{position:relative}
.paper{background:var(--paper);color:var(--ink);position:relative;padding:1rem;box-shadow:0 10px 24px rgba(0,0,0,.45);transform:rotate(var(--rot,0deg));transition:transform .35s cubic-bezier(.22,1,.36,1)}
.paper:hover{transform:rotate(calc(var(--rot,0deg) - 2deg))}
.paper::before{content:"";position:absolute;top:-13px;left:50%;width:92px;height:27px;margin-left:-46px;background-color:var(--tape);background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.28) 0 3px,transparent 3px 7px);opacity:.92;transform:rotate(-3deg);clip-path:polygon(0 0,100% 0,97% 25%,100% 50%,97% 75%,100% 100%,0 100%,3% 75%,0 50%,3% 25%)}
.p-cheese .paper::before{background-color:var(--butter)}.p-cysta .paper::before{background-color:var(--bubble)}.p-meier .paper::before{background-color:var(--bubble)}
.p-shark .paper::before{background-color:var(--sky)}.p-solune .paper::before{background-color:var(--lilac)}.p-weather .paper::before{background-color:var(--mint)}
.label{display:inline-block;position:relative;background:var(--paper);color:var(--tag);font-family:Supermercado,Fredoka,sans-serif;padding:.55rem 1.6rem .7rem;transform:rotate(-1.5deg);clip-path:var(--torn2);margin-bottom:1.5rem}
.label h2,.label h1{font-size:inherit;display:inline}
h2.label{font-size:clamp(1.5rem,3vw,2.1rem)}
.btn{display:inline-block;padding:.7rem 1.5rem;border-radius:99px;background:var(--wine);color:var(--cream);font-weight:600;text-decoration:none;border:3px solid var(--wine);box-shadow:0 6px 16px rgba(0,0,0,.3);transition:transform .15s,box-shadow .15s}
.btn:hover{transform:translate(-2px,-2px);box-shadow:0 10px 20px rgba(0,0,0,.35)}
.btn.alt{background:transparent;color:inherit;border-color:currentColor;box-shadow:none}
.btn-row{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.75rem}
/* asset slots: every image sits in one. Missing files show a labelled placeholder (see js/site.js) */
.slot{position:relative;display:block;aspect-ratio:var(--r);margin:0}
.slot img{width:100%;height:100%;object-fit:contain}
.slot.cover img{object-fit:cover}
.slot.is-missing{display:grid;place-items:center;text-align:center;padding:1rem;border:3px dashed var(--accent);border-radius:14px;background:repeating-linear-gradient(45deg,#1c0a0f 0 12px,#13070a 12px 24px);color:var(--accent);font-size:.78rem;word-break:break-all}
.slot.is-missing img{display:none}
.slot.is-missing::after{content:attr(data-file)}
.paper .slot.is-missing{background:#ece6e0;color:var(--tag);border-color:var(--tag)}
/* lightbox-enabled slots (set by js/site.js): invite a click with a zoom cursor, a subtle tilt and a magnifier badge; nothing crops or zooms */
.slot.has-lb{cursor:zoom-in;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.slot.has-lb:nth-child(odd):hover,.slot.has-lb:nth-child(odd):focus-visible{transform:rotate(-2deg)}
.slot.has-lb:nth-child(even):hover,.slot.has-lb:nth-child(even):focus-visible{transform:rotate(2deg)}
.paper .slot.has-lb{transition:none}
.paper .slot.has-lb:hover,.paper .slot.has-lb:focus-visible{transform:none}
.slot.has-lb::after{content:"\2315";position:absolute;right:.5rem;bottom:.5rem;width:2.1rem;height:2.1rem;display:grid;place-items:center;border-radius:50%;background:rgba(14,14,14,.65);color:var(--cream);font-size:1.1rem;opacity:0;transition:opacity .25s;pointer-events:none}
.slot.has-lb:hover::after,.slot.has-lb:focus-visible::after{opacity:1}
.paper .slot.has-lb::after{background:rgba(14,14,14,.75)}
figcaption{font-size:.9rem;margin-top:.6rem;color:var(--tag);font-weight:500}
.paper figcaption{margin-top:.75rem}
/* hero: the cover art sits directly under the name, free-floating, to read as one line "Amy Tremer Portfolio"; everything centered */
.hero{padding-block:clamp(3.5rem,8vw,5.5rem) clamp(2.5rem,5vw,4rem);overflow:hidden;position:relative;text-align:center}
.hero .wrap{max-width:780px}
.hero-name{font-size:clamp(1.9rem,4.5vw,2.75rem);animation:pop .8s cubic-bezier(.2,1.5,.4,1) both}
.hero-art{margin:.5rem auto 0;max-width:760px;animation:pop .8s .1s cubic-bezier(.2,1.5,.4,1) both}
.hero-art img{width:100%;height:auto}
.hero-tagline{margin:1.75rem auto 0;font-size:1.2rem;max-width:46ch;color:rgba(247,230,214,.88)}
.hero .btn-row{justify-content:center}
@keyframes pop{from{opacity:0;transform:translateY(14px)}}
/* intro: a short, centered statement */
.intro .wrap{max-width:640px;margin-inline:auto;text-align:center}
.intro h2{font-size:clamp(2rem,4.5vw,2.75rem);margin-bottom:1rem}
.intro p{margin-inline:auto}
/* project cards */
.cards{display:grid;grid-template-columns:repeat(12,1fr);gap:2.5rem 2rem;margin-top:1rem;perspective:1100px;align-items:start}
.card{display:block;grid-column:span 3;text-decoration:none}
.card.feature{grid-column:span 8}
.card.tall{grid-column:span 4}
.card .slot{aspect-ratio:4/3;background:#e8dfd6}
.card .slot.cover img{object-position:top}
.card.feature .slot{aspect-ratio:9/8}
.card.tall .slot{aspect-ratio:9/16}
.card .tint{background:#dce8ff}
.card h3{color:var(--tag);margin:.9rem 0 .25rem}
.card p{font-size:.95rem;line-height:1.45}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.card,.card.feature,.card.tall{grid-column:span 1}}
@media(max-width:560px){.cards{grid-template-columns:1fr}}
/* grids: flexbox so a short last row (e.g. 7 posters in a 4-up grid) centers instead of hugging the left edge */
.g{display:flex;flex-wrap:wrap;justify-content:center;align-items:start;gap:clamp(1.5rem,3vw,2.5rem);margin-top:2rem}
.g>*{flex:0 1 auto}
.g2>*{width:calc(50% - 1.25rem)}
.g3>*{width:calc(33.333% - 1.7rem)}
.g4>*{width:calc(25% - 1.9rem)}
.g.phones{align-items:end}
.row{display:flex;gap:clamp(1rem,3vw,2rem);align-items:flex-start;margin-top:2rem;justify-content:center}
@media(max-width:860px){.g3>*,.g4>*{width:calc(50% - 1.25rem)}}
@media(max-width:560px){.g2>*,.g3>*{width:100%}.g.phones>*{width:calc(50% - .75rem)}}
.poster{display:block;text-decoration:none}
.badge{display:inline-block;background:var(--mint);color:var(--ink);font-weight:700;font-size:.8rem;border-radius:99px;padding:.1rem .7rem;margin-left:.4rem;transform:rotate(-3deg);box-shadow:0 3px 8px rgba(0,0,0,.3)}
.sub-h{margin:3.5rem 0 0;font-size:1.6rem}
.video{display:block;position:relative;max-width:820px;margin:2rem auto 0;text-decoration:none}
.play{position:absolute;inset:0;display:grid;place-items:center}
.play span{position:relative;width:84px;height:84px;border-radius:50%;background:var(--sky);box-shadow:0 10px 24px rgba(0,0,0,.4);display:grid;place-items:center;transition:transform .15s}
.play span::before{content:"";position:absolute;inset:-9px;border-radius:50%;border:3px solid rgba(111,183,255,.6);opacity:0}
.play span::after{content:"";margin-left:8px;border-left:26px solid var(--cream);border-block:16px solid transparent}
.video:hover .play span{transform:scale(1.1) rotate(-6deg)}
.video:hover .play span::before{animation:pulse 1.2s ease-out infinite}
@keyframes pulse{0%{transform:scale(.8);opacity:.8}100%{transform:scale(1.3);opacity:0}}
.video figcaption{color:var(--cream)}
/* lightbox (dialog element; :target fallback when JS is off) */
dialog.lb{margin:0;padding:1.5rem;border:0;background:rgba(14,14,14,.95);width:100%;height:100%;max-width:100%;max-height:100%}
dialog.lb[open],dialog.lb:target{display:grid;place-items:center}
dialog.lb::backdrop{background:rgba(14,14,14,.88);backdrop-filter:blur(5px)}
dialog.lb[open] img{animation:lbpop .38s cubic-bezier(.2,1.4,.4,1)}
dialog.lb img{position:relative;max-height:90vh;width:auto;max-width:94vw}
@keyframes lbpop{from{opacity:0;transform:scale(.88) rotate(-1.5deg)}}
.lb-bg{position:absolute;inset:0;text-decoration:none;cursor:default}
.lb-x{position:absolute;top:.75rem;right:1.25rem;z-index:2;font-size:2.5rem;line-height:1;text-decoration:none;font-weight:600;padding:.15rem .6rem;border-radius:99px}
.lb-x:hover{background:var(--wine)}
/* resume */
.res{display:grid;grid-template-columns:1fr 1fr;gap:3rem 2.5rem;align-items:center;margin-top:1rem}
.res .col{display:grid;gap:2.5rem}
.res h3{color:var(--tag);font-size:1.9rem;margin-bottom:.75rem}
.res h4{font-size:1.1rem;font-weight:600;margin-top:1rem;line-height:1.3}
.res .when{font-size:.9rem;color:#5b5b5b}
.res .col > .paper:first-child p{line-height:1.4}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0!important}
.chips li{background:var(--ink);color:var(--cream);border-radius:99px;padding:.15rem .9rem;font-weight:500;font-size:.9rem}
@media(max-width:860px){.res{grid-template-columns:1fr}}
/* project pages */
.phero{padding-block:clamp(2.5rem,6vw,4.5rem) 1rem}
.phero .wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:center}
.back{display:inline-block;margin-bottom:1.5rem;font-weight:500;color:var(--accent);border-bottom:2px dashed var(--accent);text-decoration:none}
.back::before{content:"\2190  ";font-weight:700}
.lead{font-size:1.15rem}
.meta{display:grid;grid-template-columns:auto 1fr;gap:.4rem 1.25rem;margin-top:1.75rem;font-size:.95rem;border-top:2px dashed var(--accent);padding-top:1rem}
.meta dt{color:var(--accent);font-weight:600}.meta dd{margin:0}
.blk{padding-block:clamp(2rem,5vw,4rem)}
.blk h2.label{margin-bottom:.75rem}
@media(max-width:860px){.phero .wrap{grid-template-columns:1fr}}
.pn{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-block:2rem 4rem}
.pn a{font-family:Supermercado,Fredoka,sans-serif;font-size:1.5rem;color:var(--accent);text-decoration-style:wavy;text-underline-offset:6px}
/* footer: torn top edge only (into the page above) — the bottom stays flat so it always meets the viewport edge cleanly */
.foot{margin-top:2rem;background-color:var(--wine);background-image:var(--star-tex);background-size:220px 220px;clip-path:var(--torn-top);padding:5rem 0 2.5rem}
.foot .wrap{display:grid;grid-template-columns:200px 1fr 1fr;gap:2.5rem;align-items:start}
.foot h2{font-size:1.9rem;margin-bottom:.75rem}
.foot ul{list-style:none;padding:0}.foot li+li{margin-top:.35rem}
.foot a{text-underline-offset:4px}
.foot a:hover{text-decoration-style:wavy}
.foot .stamp{background:rgba(247,230,214,.78);border:3px dashed var(--wine);border-radius:20px;padding:8px}
.copy{grid-column:1/-1;font-size:.9rem;opacity:.8;border-top:2px dashed rgba(247,230,214,.35);padding-top:1.25rem}
@media(max-width:760px){.foot .wrap{grid-template-columns:1fr}.foot .slot{max-width:160px}}
/* back to top */
.totop{position:fixed;right:1.1rem;bottom:1.1rem;z-index:90;width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:var(--wine);color:var(--cream);font-size:1.4rem;text-decoration:none;box-shadow:0 8px 20px rgba(0,0,0,.4);opacity:0;transform:translateY(16px) rotate(-8deg);pointer-events:none;transition:opacity .25s,transform .25s}
.totop.show{opacity:1;transform:rotate(-8deg);pointer-events:auto}
.totop:hover{transform:rotate(4deg) scale(1.08)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .reveal{opacity:1;transform:rotate(var(--rot,0deg));transition:none}}
