/*
Theme Name: Michael Lyden Portfolio
Description: A lightweight, editable portfolio for Michael Lyden.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.0
Author: Michael Lyden
Text Domain: mike-lyden
*/
@font-face{font-family:Instrument Sans;src:url(media/instrument.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:Inter Tight;src:url(media/inter-tight.woff2) format("woff2");font-weight:400 900;font-display:swap}
:root{--paper:#f5f5f7;--ink:#1d1d1f;--muted:#525252;--line:#d8d8db;--wash:#eaeaec;--accent:#507179;--display:"Inter Tight",Arial,sans-serif;--body:"Instrument Sans",Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1rem/1.55 var(--body);-webkit-font-smoothing:antialiased}
img,video{display:block;max-width:100%;height:auto}
a{color:inherit;text-underline-offset:.2em}
:focus-visible{outline:3px solid #147785;outline-offset:5px}
h1,h2,h3,p,figure,dl{margin:0}
h1,h2,h3{font-family:var(--display);line-height:.98;letter-spacing:-.055em}
h1{font-size:clamp(3.2rem,8vw,8rem);font-weight:650}
h2{font-size:clamp(2.8rem,7vw,6rem);font-weight:620}
h3{font-size:clamp(1.45rem,2.8vw,2.05rem);line-height:1.08;letter-spacing:-.035em}
.wrap{width:min(100% - 7vw, 1420px);margin-inline:auto}
.skip-link{position:absolute;left:1rem;top:1rem;background:#fff;padding:.75rem;z-index:4;transform:translateY(-200%)}
.skip-link:focus{transform:none}
.site-header{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line)}
.wordmark{font:650 1.4rem/1 var(--display);letter-spacing:-.06em;text-decoration:none;white-space:nowrap}
.wordmark span,.hero h1 span{color:var(--accent)}
.site-header nav{display:flex;gap:clamp(.8rem,2.6vw,2.5rem);align-items:center;flex-wrap:wrap}
.site-header nav a{text-decoration:none;font-weight:600;font-size:.94rem}
.site-header nav a:hover{text-decoration:underline}
.nav-contact{border:1px solid var(--line);border-radius:99px;padding:.55rem .9rem}
.eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.095em;text-transform:uppercase}
.hero{padding-top:clamp(2.25rem,5.5vw,6.5rem)}
.hero-top,.hero-bottom{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.hero h1{font-size:clamp(3.4rem,15.1vw,14.8rem);letter-spacing:-.082em;line-height:.91;margin:.1em 0 .16em}
.hero-bottom p{font-size:clamp(1.25rem,3vw,2.8rem);letter-spacing:-.045em;line-height:1.1}
.hero-media{margin-top:clamp(1.75rem,4vw,3.5rem);background:var(--wash);overflow:hidden;border-radius:.7rem}
.hero-media video{width:100%;aspect-ratio:2.35;object-fit:cover}
.pill{display:inline-flex;gap:.9rem;align-items:center;justify-content:space-between;padding:.7rem 1.15rem;border:1px solid currentColor;border-radius:99px;font-size:.92rem;font-weight:650;text-decoration:none;white-space:nowrap;transition:background .2s,color .2s}
.pill:hover{background:var(--ink);color:#fff}
.pill.dark{background:var(--ink);color:#fff;border-color:var(--ink)}
.pill.dark:hover{background:#fff;color:var(--ink)}
.section{padding-block:clamp(3.6rem,8vw,8rem)}
.section-heading{display:grid;grid-template-columns:1.55fr 1fr;align-items:end;gap:1.5rem;margin-bottom:clamp(2rem,5vw,4rem)}
.section-heading p,.standfirst{font-size:clamp(1.05rem,2vw,1.45rem);max-width:32rem;color:var(--muted);line-height:1.35}
.section-heading .pill{margin-top:1rem}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.65rem,3.2vw,3rem) clamp(.9rem,2.4vw,2rem);margin:0 0 2.4rem}
.project{min-width:0;border-bottom:1px solid var(--line);padding-bottom:1.15rem}
.project-link{text-decoration:none;display:block}
.project-art{aspect-ratio:1.6;background:var(--wash);border-radius:.55rem;display:grid;place-items:center;overflow:hidden}
.project-art img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.project-link:hover img{transform:scale(1.04)}
.project-type{background:#a8b9bf;color:#172228}
.project-type span{max-width:85%;font:650 clamp(2.25rem,4.5vw,4.5rem)/.92 var(--display);letter-spacing:-.075em}
.project-line{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;margin-top:.85rem}
.project-line>span{font-size:1.25rem}
.project-meta,.project-copy{color:var(--muted);margin:.42rem 0;font-size:.95rem}
.tags{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.85rem}
.tags a{border:1px solid var(--line);border-radius:99px;padding:.17rem .6rem;font-size:.78rem;text-decoration:none}
.tags a:hover{background:var(--wash)}
.lab{background:#a8b9bf}
.lab .section-heading p{color:#28383d}
.lab-strip,.lab-page .gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.lab-strip img,.gallery-grid img,.gallery-grid video{width:100%;background:var(--wash);border-radius:.45rem}
.lab-strip img{aspect-ratio:1.45;object-fit:cover}
.expertise-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(1.2rem,4vw,4rem)}
.expertise-grid article{padding:1.45rem 0;border-top:1px solid var(--line)}
.expertise-grid p,.about p{margin-top:.8rem;color:var(--muted)}
.about{border-top:1px solid var(--line);display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;gap:clamp(1rem,5vw,6rem)}
.about img{border-radius:.6rem;width:100%;max-height:580px;object-fit:cover}
.about dl{margin-top:1.3rem}
.about dt{font-weight:700;margin-top:.65rem}
.about dd{margin:0;color:var(--muted)}
.about .pill{margin-top:1rem}
.site-footer{background:var(--ink);color:var(--paper);padding:clamp(2.8rem,6vw,6rem) 0 1.4rem}
.site-footer h2{max-width:13ch;margin:.22em 0 .45em}
.site-footer .pill.dark{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.site-footer .pill.dark:hover{background:#a8b9bf}
.footer-bottom{display:flex;flex-wrap:wrap;gap:.75rem 1.4rem;border-top:1px solid #555;padding-top:1rem;margin-top:3rem;font-size:.88rem}
.footer-bottom span{margin-right:auto}
.interior h1{max-width:16ch;margin-bottom:1.1rem}
.interior .eyebrow{margin:1rem 0}
.interior .pill{margin-top:1.3rem}
.subsection{margin-top:3rem}.subsection h2{font-size:clamp(2rem,5vw,4rem);margin-bottom:1.25rem}
.back{display:inline-block;margin-bottom:1.3rem}
.case-art{margin-top:2.5rem}
.case-art img{max-height:680px;object-fit:contain;border-radius:.55rem}
.prose{max-width:72ch;font-size:1.15rem;margin-top:1.75rem}
.prose h2{font-size:2.4rem;margin-top:1.75rem}
.prose p,.lab-page p{margin:0 0 1rem}
.prose ul{padding-left:1.3rem}
.gallery-grid figure{margin:0}
.gallery-grid figcaption{font-size:.85rem;color:var(--muted);margin-top:.5rem}
@media(max-width:850px){.project-grid,.lab-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero h1{font-size:15.4vw}}
@media(max-width:570px){.site-header{align-items:flex-start;flex-direction:column;padding:1rem 0;gap:.9rem}.site-header nav{width:100%;justify-content:space-between;gap:.55rem}.site-header nav a{font-size:.82rem}.hero-bottom{align-items:flex-start;flex-direction:column}.hero h1{margin:.19em 0}.hero-media video{aspect-ratio:1.5}.section-heading,.project-grid,.expertise-grid,.about,.lab-page .gallery-grid{grid-template-columns:1fr}.lab-strip{gap:.4rem}.about img{max-height:420px}}
@media(prefers-reduced-motion:no-preference){.hero h1,.hero-bottom{animation:enter .65s both}.hero-bottom{animation-delay:.1s}@keyframes enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

.contact-form{display:grid;gap:.4rem;max-width:38rem;margin:1.6rem 0 2rem}
.contact-form label{font-weight:700;margin-top:.5rem}
.contact-form input,.contact-form textarea{width:100%;border:1px solid #9b9ba0;border-radius:.35rem;padding:.6rem .7rem;background:#fff;color:var(--ink);font:inherit}
.contact-form button{justify-self:start;margin-top:.75rem;cursor:pointer;font-family:inherit}
.quote-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem 2.5rem}
.quote-list figure{padding:1.2rem 0;border-top:1px solid var(--line)}
.quote-list blockquote{margin:0 0 .7rem;font-size:1.1rem}
.quote-list cite{font-style:normal;color:var(--muted)}
.gallery-links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1rem}
@media(max-width:570px){.quote-list{grid-template-columns:1fr}}
.profile-details{border-top:1px solid var(--line)}
.profile-details h2{margin-bottom:2rem}
.experience-list article{display:grid;grid-template-columns:1fr 1.65fr;gap:1rem 2rem;border-top:1px solid var(--line);padding:1.25rem 0}
.experience-list p{margin-top:.35rem;color:var(--muted)}
@media(max-width:570px){.experience-list article{grid-template-columns:1fr}}


.lab-page .gallery-grid{margin-top:1.4rem;row-gap:clamp(1.75rem,4vw,3.4rem)}
.experiment-card{margin:0}
.experiment-media{position:relative;aspect-ratio:1;overflow:hidden;border-radius:.55rem;background:#263237}
.experiment-media>img,.experiment-media>video{width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .35s ease}
@media(hover:hover) and (pointer:fine){.experiment-card:hover .experiment-media>img,.experiment-card:hover .experiment-media>video{transform:scale(1.045)}}
.gallery-grid .experiment-caption{margin:0;padding-top:.8rem;color:var(--ink)}
.experiment-caption h2{font-size:clamp(1.15rem,2.25vw,1.7rem);line-height:1.12;letter-spacing:-.035em}
.experiment-caption p{margin:.4rem 0;color:var(--muted);font-size:.96rem;line-height:1.42}
.experiment-caption a{display:inline-block;margin-top:.16rem;font-size:.88rem;font-weight:700}
.experiment-play{position:absolute;z-index:2;top:.55rem;left:.55rem;padding:.32rem .65rem;border-radius:999px;border:1px solid #ffffff8f;background:#1d1d1de8;color:#fff;font:650 .78rem/1.3 var(--body);cursor:pointer}
.experiment-play:focus-visible{outline-color:#fff;outline-offset:2px}
.hero + .section{padding-top:clamp(2.5rem,6vw,6rem)}
.experience-role + .experience-role{border-top:1px solid var(--line);margin-top:1.25rem;padding-top:1.25rem}
.experience-date{display:block;font-size:.88rem;color:var(--muted);margin-top:.32rem}
.quote-attribution{display:flex;align-items:center;gap:.85rem}
.quote-attribution img{width:64px;height:64px;flex:none;object-fit:cover;border-radius:50%}

.lab-strip a{display:block;overflow:hidden;border-radius:.45rem}
@media(prefers-reduced-motion:no-preference){
.lab-strip.has-panned img{animation:lab-pan 4.8s ease-in-out both}
.lab-strip.has-panned a:nth-child(2) img{animation-direction:reverse}
@keyframes lab-pan{from{transform:scale(1.08) translateX(-2%)}to{transform:scale(1.08) translateX(2%)}}
}

.project{position:relative}
.project-art{position:relative}
.project-art .project-preview-frame{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .22s ease}
.project-art .project-preview-frame.is-current{opacity:1}
.project-preview{position:absolute;z-index:1;right:.55rem;top:.55rem;padding:.36rem .66rem;border-radius:999px;border:1px solid #ffffff8f;background:#1d1d1de8;color:#fff;font:650 .78rem/1.3 var(--body);cursor:pointer}

.portfolio-tools[hidden],.project[hidden]{display:none}
.portfolio-tools{margin:1.6rem 0}
.portfolio-categories{display:flex;flex-wrap:wrap;gap:.48rem}
.portfolio-categories button,.portfolio-toolbar select{border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:2rem;font:inherit;font-size:.92rem;padding:.43rem .82rem;cursor:pointer}
.portfolio-categories button:hover,.portfolio-toolbar select:hover{border-color:var(--ink)}
.portfolio-categories button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.portfolio-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1rem}
.portfolio-toolbar label,.portfolio-count{font-size:.88rem;color:var(--muted)}

.site-footer .contact-form{color:var(--paper);width:min(100%,42rem)}
.site-footer .contact-form input,.site-footer .contact-form textarea{background:#fafafa;color:#1d1d1f}
.preview-form-note,.preview-result{font-size:.88rem}

.video-band{position:relative;isolation:isolate;overflow:hidden;background:#14191c;color:#fff}
.video-band .band-video{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.video-band::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(8,13,20,.82),rgba(8,13,20,.42))}
.video-band .wrap{position:relative}
.cycle-band{min-height:clamp(300px,40vw,530px);display:flex;align-items:end;padding:clamp(2rem,5vw,5rem) 0}
.cycle-band h2{max-width:12ch;font-size:clamp(2.7rem,6vw,6.5rem)}
.cycle-band p{margin-top:.8rem;font-size:1.05rem}
.video-band .pill{color:white;margin-top:1rem}
.video-band .pill:hover{background:white;color:#171b1f}
.lab.video-band .section-heading p{color:#f0f0f3}
.lab.video-band::before{background:rgba(8,13,20,.74)}
.band-motion{position:absolute;right:1rem;bottom:1rem;border:1px solid #ffffff80;border-radius:99px;background:#111c;color:#fff;padding:.4rem .75rem;font:inherit;font-size:.78rem;cursor:pointer;z-index:2}
.band-motion[hidden]{display:none}
.lab.video-band{padding-bottom:clamp(4rem,9vw,9rem)}

@media(pointer:coarse){.project-preview{min-height:44px;min-width:70px;padding:.6rem .8rem}}

.retail-proof{padding-block:clamp(2rem,4vw,4rem);border-bottom:1px solid var(--line)}
.retail-proof h2{font:500 clamp(1rem,1.7vw,1.35rem)/1.4 var(--body);letter-spacing:0;color:var(--muted);text-align:center}
.retailer-logos{display:flex;justify-content:center;align-items:center;gap:clamp(2.5rem,9vw,9rem);margin-top:1.6rem}
.retailer-logos img{width:clamp(60px,12vw,110px);height:75px;object-fit:contain}
.visualization-band{min-height:clamp(320px,42vw,560px);display:flex;align-items:end;padding:clamp(2rem,5vw,5rem) 0}
.visualization-band h2{max-width:12ch}
.visualization-band .band-video{object-position:center 58%}

.retail-proof{background:#a8b9bf;padding:clamp(2rem,4vw,4rem) 0;position:relative;overflow:hidden;color:#1d1d1f}
.retail-proof h2{font-size:clamp(1.3rem,2.6vw,2.1rem);color:#1d1d1f;font-weight:650}
.logo-context{text-align:center;font-size:.92rem;max-width:50rem;margin:.5rem auto 1.1rem;color:#29383e}
.logo-window{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.logo-track{display:flex;width:max-content;animation:logo-marquee 45s linear infinite}
.logo-set{display:flex;align-items:center;gap:clamp(2.5rem,6vw,6rem);padding:0 clamp(1.25rem,3vw,3rem);margin:0;list-style:none;flex-shrink:0}
.logo-set li{width:clamp(100px,13vw,160px);height:105px;display:grid;place-items:center}
.logo-set img{max-width:100%;max-height:85px;object-fit:contain;width:auto;height:auto}
.logo-motion{display:block;margin:.6rem auto 1rem;background:transparent;border:1px solid #526972;border-radius:99px;padding:.3rem .7rem;font:inherit;font-size:.78rem;color:#1d1d1f;cursor:pointer}
.logo-motion[hidden]{display:none}
.retail-proof.is-paused .logo-track,.retail-proof:focus-within .logo-track,.retail-proof:hover .logo-track{animation-play-state:paused}
@keyframes logo-marquee{to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.logo-track{animation:none}.logo-window{overflow:auto;mask-image:none}.logo-set[aria-hidden]{display:none}}

.logo-set img[alt="ATAK"],.logo-set li:nth-child(2) img{width:100px;height:100px;max-height:100px;object-fit:fill}

/* Viewport-bound project viewer and editorial motion layer. */
.hero{position:relative;isolation:isolate;padding-bottom:clamp(2.5rem,5vw,5rem);overflow:hidden}
.hero::before{content:'';position:absolute;z-index:-1;width:clamp(280px,48vw,760px);aspect-ratio:1;right:-10%;top:-28%;border:clamp(26px,5vw,72px) solid #69beaa20;border-radius:50%;transform:translateY(var(--drift,0px)) rotate(-25deg);pointer-events:none}
.hero::after{content:'';position:absolute;z-index:-1;inset:0;background-image:radial-gradient(#50717938 .8px,transparent .8px);background-size:22px 22px;mask-image:linear-gradient(110deg,transparent 35%,#000);pointer-events:none}
.hero-bottom{position:relative;z-index:1;padding-bottom:.5rem}
.project-art img{object-position:left center}
.project-art{justify-items:start;text-align:left}
.project-type span{margin-left:7%;text-align:left}
#work{position:relative;isolation:isolate}
#work::before{content:'';position:absolute;z-index:-1;top:14rem;right:-1vw;width:34vw;height:55%;border:1px solid #69beaa40;border-radius:50%;transform:translateY(var(--drift,0px)) rotate(24deg);pointer-events:none}
.project-dialog{width:min(100% - 2rem,960px);max-width:960px;height:min(850px,calc(100dvh - 2rem));max-height:calc(100dvh - 2rem);padding:0;border:1px solid #ffffff80;border-radius:1.1rem;background:var(--paper);color:var(--ink);box-shadow:0 30px 100px #0005;overflow:hidden}
.project-dialog::backdrop{background:#10252bc9;backdrop-filter:blur(9px)}
.project-dialog-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}
.project-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 1rem;border-bottom:1px solid var(--line);background:var(--paper)}
.project-dialog-bar span{font-size:.8rem;letter-spacing:.08em;text-transform:uppercase}
.project-dialog-close{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);font:400 1.7rem/1 var(--body);cursor:pointer;flex:none}
.project-dialog-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;padding:clamp(1.25rem,4vw,3rem)}
.project-dialog .interior{width:100%;padding:0}
.project-dialog h1{font-size:clamp(2rem,6vw,4rem);overflow-wrap:anywhere}
.project-dialog .back{display:none}
.project-dialog .case-art{margin-top:1.5rem}
.project-dialog .case-art img{max-height:42dvh;width:100%;object-fit:contain;object-position:left center}
.project-dialog .standfirst{margin-block:1rem}
.project-dialog .pill{white-space:normal}
body.project-dialog-open{overflow:hidden}
@media(max-width:570px){.project-dialog{width:calc(100% - 1rem);height:calc(100dvh - 1rem);max-height:calc(100dvh - 1rem);border-radius:.75rem}.project-dialog-scroll{padding:1.1rem}.hero-bottom{align-items:flex-start;gap:1.25rem;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.hero::before,#work::before{transform:none}}

.hero::before{width:clamp(380px,65vw,1000px);aspect-ratio:9/11;right:-12%;top:-65%;border:0;border-radius:0;background:url(media/seafoam-contours.svg) center/contain no-repeat;transform:translateY(var(--drift,0px)) rotate(-18deg);opacity:.8}
#work::before{top:4rem;right:-3%;width:55%;height:90%;border:0;border-radius:0;background:url(media/seafoam-contours.svg) center/100% auto repeat-y;transform:translateY(var(--drift,0px));opacity:.26}
@media(max-width:570px){.hero::before{top:-28%;right:-45%;width:440px;opacity:.65}#work::before{width:90%;right:-2%;opacity:.2}}
@media(prefers-reduced-motion:reduce){.hero::before,#work::before{transform:none}}

/* Continuous full-bleed terrain. */
body{isolation:isolate}
body::before,body::after{content:'';position:fixed;inset:-60px;z-index:-1;pointer-events:none}
body::before{background:url(media/seafoam-terrain.svg) center/cover no-repeat;mask-image:linear-gradient(90deg,#0002,#0007 45%,#000 100%);opacity:.52;transform:translate3d(0,var(--terrain-shift,0px),0)}
body::after{background:radial-gradient(#50717936 .7px,transparent .9px) 0 0/24px 24px;mask-image:linear-gradient(90deg,#0009,transparent 65%);opacity:.65}
.hero::before,.hero::after,#work::before{content:none}
.hero{overflow:visible}
.site-footer{background-image:linear-gradient(#1d1d1fe8,#1d1d1fe8),url(media/seafoam-terrain.svg);background-size:auto,cover;background-position:center;background-attachment:fixed}
@media(prefers-reduced-motion:reduce){body::before{transform:none}}

body::before{background-image:url(media/vector-terrain.svg);background-size:100% auto;background-repeat:repeat-y;mask-image:none;opacity:.72}
.site-footer{background-image:linear-gradient(#1d1d1fd9,#1d1d1fd9),url(media/vector-terrain.svg);background-size:auto,100% auto}

body::after{content:none}

/* Slow fluid distortion; typography and content remain still. */
body::before{background-image:url(media/vector-terrain-fluid.svg)}
@media(prefers-reduced-motion:reduce){body::before{background-image:url(media/vector-terrain.svg)}}
html.contours-still body::before{background-image:url(media/vector-terrain.svg);transform:none}
.contour-motion{position:fixed;right:1rem;bottom:1rem;z-index:10;border:1px solid #50717960;border-radius:99px;background:#f5f5f7ed;color:#294a43;padding:.5rem .8rem;font:600 .76rem/1.4 var(--body);cursor:pointer;min-height:44px}
@media(prefers-reduced-motion:reduce){.contour-motion{display:none}}

/* Animate the rendered line layer directly. */
body::before{background-image:url(media/vector-terrain.svg);filter:url(#contour-liquid)}
html.contours-still body::before{filter:none}
@media(prefers-reduced-motion:reduce){body::before{filter:none}}
