/* Shared paper and ink palette for the portfolio interface. */
:root {
  color-scheme: light;
  --surface: #eeeeeb;
  --surface-top: #e3e3df;
  --text: #191a18;
  --muted: #5b5d57;
  --line: #c6c8c0;
  --edge: #858880;
  --accent: var(--text);
  --accent-soft: var(--text);
  --media-radius: 20px;
  --layout-gap: clamp(28px,4vw,64px);
  --spectrum: none;
  --gallery-spectrum: none;
}
html{min-height:100%;background:var(--surface);scroll-behavior:auto}
body.home-page,body.info-shell{--gallery-spectrum:none;background:var(--surface);color:var(--text);font-family:Inter,"Helvetica Neue",Arial,sans-serif}
::selection{background:var(--text);color:var(--surface)}
/* Clear the previous glow, gradient lettering and animated hover fills. */
body:is(.home-page,.info-shell) :is(.brand,.brand-mark,.main-menu a,.filter,.category-name,.pages button,.step-label,.visual,.client-name,.role,.tutorial-title,.field-label,.year,.description,.pause,footer,.client-logo,.tool-icon,.portrait,.specialties li,.experience h3,.experience article,.experience h4,.info-page h1,.info-page .eyebrow,.social-links a),
body:is(.home-page,.info-shell) :is(.brand,.brand-mark,.main-menu a,.filter,.pages button)::before,
body:is(.home-page,.info-shell) :is(.brand,.brand-mark,.main-menu a,.filter,.pages button)::after{
  text-shadow:none!important;box-shadow:none!important;filter:none!important;animation:none!important;transition:none!important;
}
body.home-page .grid>article{animation:none}
body:is(.home-page,.info-shell) :is(.brand,.main-menu a,.pages button,.step-label,.tutorial-play):is(:hover,:focus-visible,:active){transform:none;translate:none;scale:none}
body.home-page .filter .category-name{translate:none}
.home-page .portfolio-navigation,.info-shell .info-topbar{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--line)}
.home-page .portfolio-navigation header,.home-page .work-controls,.home-page #work,.info-shell header,.info-shell .info-page{width:76%;max-width:1200px;margin-left:auto;margin-right:auto;padding-left:0;padding-right:0}
.home-page .portfolio-navigation header,.info-shell header{padding:10px 0;min-height:108px}
.home-page .work-controls{padding-top:24px}
.home-page .filters{column-gap:clamp(28px,4.5vw,76px)}
.home-page .filter,.home-page .filter:not(.active),.home-page .filter:not(.active):hover{min-height:58px;padding:15px 0;border:0;border-bottom:1px solid var(--line);color:var(--muted);background:none;box-shadow:none}
.home-page .filter.active,.home-page .filter.active .category-name{color:var(--accent);font-weight:600;background:none}
.home-page .filter:hover,.home-page .filter:focus-visible{color:var(--text);background:none}
.home-page .filter:hover .category-name{color:var(--text)}
.home-page .filter:after{background:var(--accent);height:2px;transform:scaleX(0)}
.home-page .filter.active:after,.home-page .filter:focus-visible:after{background:var(--accent);transform:scaleX(1)}
.main-menu a,.info-shell .main-menu a{color:var(--muted);background:none}
body.home-page .main-menu a.active,body.info-shell .main-menu a.active{color:var(--text);background:none;font-weight:600}
.main-menu a:hover,.info-shell .main-menu a:hover{color:var(--text)}
.home-page .main-menu a.active:after,.info-shell .main-menu a.active:after{background:var(--text);height:2px}
.home-page .navigation-group{margin-top:36px}
/* One fixed-pitch row: only the number track scrolls when space runs out. */
.home-page .navigation-group .pages{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:12px;width:max-content;max-width:100%;min-width:0}
.home-page .page-numbers{position:relative;display:block;flex:0 1 auto;width:max-content;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
.home-page .page-numbers::-webkit-scrollbar{display:none}
.home-page .page-row{position:relative;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:12px;width:max-content}
.home-page .pages .page-row button{display:block;flex:0 0 32px;width:32px;min-width:32px;height:44px;margin:0;padding:0;border:0;border-radius:0;color:var(--muted);background:none;font-size:13px;line-height:44px;font-variant-numeric:tabular-nums}
.home-page .pages .page-row button.current{color:var(--accent);background:none;font-weight:700}
.home-page .pages .page-row button.current:after{background:var(--accent);height:2px}
.home-page .pages .page-step:first-child,.home-page .pages .page-step:last-child{display:flex;flex:0 0 36px;align-items:center;justify-content:center;width:36px;min-width:36px;height:44px;margin:0;padding:0;border:0;border-radius:0;color:var(--text);background:none}
.home-page .pages .page-step .step-label,.home-page .pages .page-step:hover:enabled .step-label{font-size:28px;line-height:1;color:var(--text);background:none;transform:none;translate:none}
.home-page .pages .page-step:after{display:none}
.home-page .pages .page-row button:hover:enabled{color:var(--text);background:none;transform:none}
.home-page .pages button:focus-visible{outline-offset:-3px}
.home-page #work{padding-top:36px;scroll-margin-top:120px}
.home-page .grid{max-width:none;gap:48px var(--layout-gap)}
.home-page .visual{aspect-ratio:1!important;overflow:hidden;border:0;border-radius:var(--media-radius);background:var(--surface-top);outline:0;box-shadow:none}
.home-page article:hover .visual,.home-page article:focus-within .visual{outline:0;box-shadow:none}
.home-page .visual:after,.info-shell .about-layout figure:after{display:none}
.client-name,.role,.tutorial-title,.info-page h1,.experience h4{color:var(--text)}
.field-label,.role>span,.year,.description,.pause,footer,.info-page p,.specialties li,.experience article>span{color:var(--muted)}
.role,footer,.info-shell footer,.specialties li,.experience article{border-color:var(--line)}
.tutorial-play{background:var(--surface);border:1px solid var(--text);color:var(--text);box-shadow:none;transition:none}
.tutorial-play:hover{background:var(--text);color:var(--surface);transform:none}
/* Selected Motion Max neon wordmark; the artwork retains its original colors. */
header .brand,.info-shell header .brand{gap:8px}
.brand:after,.home-page .portfolio-navigation .brand:after{display:none}
.brand-mark{position:relative;display:block;width:168px;height:96px;flex:0 0 168px;filter:none}
.brand-mark:before{display:none}
.brand-mark:after{display:none}
.home-page .brand .brand-mark img,.info-shell .brand .brand-mark img{display:block;width:100%;height:100%;object-fit:contain;opacity:1;filter:none;mix-blend-mode:normal}
.brand:hover .brand-mark{filter:none}
.info-shell .brand-name{display:none}
.info-shell .main-menu{gap:30px}
.info-shell .main-menu a{font-size:12px;line-height:1.6;letter-spacing:1.4px}
.info-shell .info-page{padding-top:44px;padding-bottom:54px}
.info-shell .about-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--layout-gap);align-items:center}
.info-shell .info-page h1{font-size:clamp(36px,4.4vw,64px);line-height:1.08;letter-spacing:-2px;color:var(--text);margin:0}
.info-shell .about-layout figure{position:relative;isolation:isolate;overflow:hidden;justify-self:center;width:min(100%,400px);border:1px solid var(--line);border-radius:50%;background:var(--surface-top);box-shadow:none}
.info-shell .portrait{display:block;width:100%;border-radius:inherit;aspect-ratio:1;object-fit:cover;object-position:center;outline:0;box-shadow:none}
.info-shell .specialties{gap:0 24px;margin-top:30px}
.info-shell .software-list{margin-top:12px}
.info-shell .specialties li{padding:16px 0;font-size:14px;line-height:1.6;color:var(--muted)}
.info-shell .social-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin-top:12px}
.info-shell .social-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 0;border-bottom:1px solid var(--line);color:var(--text);text-decoration:none;font-size:14px;line-height:1.6}
.info-shell .social-links a:hover,.info-shell .social-links a:focus-visible{color:var(--accent);background:none}
.info-shell .social-links a:last-child{color:var(--text)}
.info-shell .social-links a:last-child:hover{color:var(--text)}
.info-shell .experience{margin-top:64px}
.info-shell .experience h3{color:var(--text);font-size:12px;line-height:1.6;letter-spacing:1.4px;margin:0 0 24px;background:none}
.info-shell .experience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px var(--layout-gap)}
.info-shell .experience article{display:flex;flex-direction:column;gap:14px;margin:0;padding:26px;border:1px solid var(--line);border-radius:var(--media-radius);background:var(--surface);box-shadow:none}
.info-shell .experience article:hover,.info-shell .experience article:focus-within{background:var(--surface-top);border-color:var(--text);box-shadow:none}
.info-shell .experience article>span{padding:0;font-size:12px;line-height:1.6}
.info-shell .experience h4{font-size:19px;line-height:1.5;margin:0 0 10px}
.info-shell .experience h4 a:hover,.info-shell .experience p a:hover{color:var(--accent)}
.info-shell .experience p{font-size:14px;line-height:1.75}
.home-page footer,.info-shell footer{margin-top:48px;padding-top:24px;font-size:12px;line-height:1.6}
.home-page .pause{font-size:12px}
.info-shell footer{display:flex;justify-content:space-between}
button:focus-visible,a:focus-visible,.home-page .filter:focus-visible,.home-page .pages button:focus-visible,.home-page .main-menu a:focus-visible{outline:2px solid var(--text);outline-offset:4px}
@media(max-width:1000px){
  .home-page .portfolio-navigation header,.home-page .work-controls,.home-page #work,.info-shell header,.info-shell .info-page{width:88%}
}
@media(max-width:650px){
  :root{--media-radius:14px}
  .home-page .portfolio-navigation header,.home-page .work-controls,.home-page #work,.info-shell header,.info-shell .info-page{width:calc(100% - 40px)}
  .home-page .portfolio-navigation header,.info-shell header{min-height:84px;padding:6px 0;gap:12px}
  .brand-mark{width:124px;height:70px;flex-basis:124px}
  .home-page .main-menu,.info-shell .main-menu{gap:18px}
  .info-shell .main-menu a{font-size:11px}
  .home-page .work-controls{padding-top:20px}
  .home-page .filters{column-gap:24px}
  .home-page .filter,.home-page .filter:not(.active){min-height:48px;padding:12px 0;font-size:14px}
  .home-page .navigation-group{margin-top:24px}
  .home-page #work{padding-top:28px;scroll-margin-top:96px}
  .home-page .grid{gap:36px}
  .info-shell .info-page{padding-top:28px;padding-bottom:36px}
  .info-shell .about-layout{grid-template-columns:1fr;gap:32px}
  .info-shell .about-layout figure{width:min(100%,340px);max-width:none}
  .info-shell .info-page h1{font-size:clamp(34px,9vw,48px);letter-spacing:-1.4px}
  .info-shell .specialties{margin-top:24px;gap:0 24px}
  .info-shell .software-list,.info-shell .social-links{margin-top:12px}
  .info-shell .specialties li,.info-shell .social-links a{padding:13px 0;font-size:14px}
  .info-shell .experience{margin-top:40px}
  .info-shell .experience-grid{grid-template-columns:1fr;gap:20px}
  .info-shell .experience article{padding:22px;gap:12px}
  .info-shell footer{margin-top:36px;font-size:12px;gap:18px}
}

/* Letterboxing preserves every shot; only the two Full HD categories change frame height. */
.home-page[data-layout="wide"] .visual{aspect-ratio:16/9!important}
.home-page[data-layout="wide"] .visual video,
.home-page[data-layout="contain"] .visual video{object-fit:contain!important;object-position:center}
.home-page[data-layout="contain"] .lottie-canvas svg{width:100%;height:100%}
.home-page[data-layout="wide"] .tutorial-cover{object-fit:cover}
.home-page[data-layout="wide"] .tutorial-visual iframe{width:100%;height:100%}

/* Align the upper rule with the category grid and the footer rule. */
.home-page .portfolio-navigation,.info-shell .info-topbar{border-bottom:0}
.home-page .portfolio-navigation header,.info-shell header{border-bottom:1px solid var(--line)}

@font-face{font-family:"Space Grotesk";src:url('assets/fonts/space-grotesk-variable.ttf') format('truetype');font-style:normal;font-weight:300 700;font-display:swap}
.home-page .filters,.home-page .pages,.main-menu{font-family:"Space Grotesk",Inter,"Helvetica Neue",Arial,sans-serif}
.home-page .pages .page-row{gap:10px}
.home-page .pages .page-row button{position:relative;flex-basis:44px;width:44px;min-width:44px;height:48px;line-height:46px;font-size:16px;font-weight:500;letter-spacing:-.5px;border:1px solid var(--line);border-radius:8px}
.home-page .pages .page-row button.current{color:var(--surface);background:var(--text);border-color:var(--text)}
.home-page .pages .page-row button.current:after{left:10px;right:10px;bottom:7px;background:var(--surface);height:1px}
.home-page .pages .page-row button:hover:enabled{border-color:var(--text)}
.home-page .pages .page-row button.current:hover:enabled{background:var(--text);color:var(--surface)}
.home-page .pages .page-step:first-child,.home-page .pages .page-step:last-child{position:relative;flex-basis:72px;width:72px;min-width:72px;height:48px;border:1px solid var(--edge);border-radius:8px}
.home-page .pages .page-step:hover:enabled{border-color:var(--text)}
.home-page .pages .step-label{display:flex;align-items:center;justify-content:center}
.arrow-glyph{display:block;width:46px;height:24px;transition:translate .25s ease}
.arrow-glyph.arrow-back{transform:scaleX(-1)}
.home-page .pages .page-step:hover .arrow-glyph{translate:4px 0}
.home-page .pages .page-step:hover .arrow-back{translate:-4px 0}

/* The active underline fills; a separate SVG stroke draws around the pressed control. */
body.home-page .filter:after{transform-origin:left;background:var(--text);transition:transform .4s cubic-bezier(.2,.7,.2,1)!important}
body.home-page .filter:hover:after,body.home-page .filter:focus-visible:after{transform:scaleX(1)}
body.home-page .filter.active:after{animation:white-line-fill .55s cubic-bezier(.2,.7,.2,1) both!important}
body.home-page .pages .page-row button.current:after{transform-origin:left;animation:white-line-fill .5s ease both!important}
.main-menu a:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--text);transform:scaleX(0);transform-origin:left}
body:is(.home-page,.info-shell) .main-menu a:after{transition:transform .4s ease!important}
body:is(.home-page,.info-shell) .main-menu a:is(.active,:hover,:focus-visible):after{transform:scaleX(1)}
.control-trace{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.control-trace rect{fill:none;stroke:var(--text);stroke-width:1;stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.pages .current .control-trace rect{stroke:var(--surface)}
@keyframes white-line-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
body.paused .filter.active:after,body.paused .pages .page-row button.current:after{animation-play-state:paused!important}
.client-link{color:var(--text);text-decoration:none;width:fit-content}
.client-link:hover,.client-link:focus-visible{color:var(--text);text-decoration:underline;text-underline-offset:4px}
.client-external{font-size:14px;font-weight:400;line-height:1;opacity:.6}
.client-link:hover .client-external{opacity:1}
@media(max-width:650px){
  .home-page .pages .page-step:first-child,.home-page .pages .page-step:last-child{flex-basis:56px;width:56px;min-width:56px}
  .arrow-glyph{width:36px}
}
@media(prefers-reduced-motion:reduce){
  body.home-page .filter.active:after,body.home-page .pages .page-row button.current:after{animation:none!important}
  body.home-page .filter:after,body:is(.home-page,.info-shell) .main-menu a:after{transition:none!important}
  .arrow-glyph{transition:none}
  .home-page .pages .page-step:hover .arrow-glyph{translate:none}
}

.home-page .controls-heading{color:var(--muted);background:var(--surface-top)}
.home-page .rive-status{color:var(--muted)}
.home-page .rive-status.unavailable{color:#873e33}
.home-page .role-text,.info-shell .specialty-label{color:var(--text)}
.home-page .client-logo,.info-shell .experience-logo{background:#dfdfdb}
