/* Keep navigation typography consistent, including the resume download. */
a[download]{font-family:var(--body);font-weight:500;font-style:normal;letter-spacing:0;font-synthesis:none}
.header__cta a[download]{font-size:.9375rem;line-height:1.2}

/* Schema, mappings, outputs and caption each own a row; perspective cannot hide a field. */
.workflow-space .api-world{display:grid;grid-template-columns:32% minmax(0,1fr);grid-template-rows:20px minmax(0,1fr) 40px 28px;gap:14px 5%;padding:0 8px}
.workflow-space .api-world .work-caption{position:static;grid-column:1/-1;grid-row:1;align-self:center}
.workflow-space .api-world .api-contract{position:relative;left:auto;top:auto;bottom:auto;width:auto;height:auto;grid-column:1;grid-row:2;align-self:center;transform:rotateY(8deg) rotateZ(-4deg);padding:12px}
.workflow-space .api-world .api-mapping{position:relative;left:auto;top:auto;width:auto;height:100%;grid-column:2;grid-row:2;transform:rotateY(-7deg) rotateZ(1deg);grid-template-rows:28px minmax(0,1fr)}
.workflow-space .api-world .api-mapping .work-document{padding:8px 12px;min-height:0}
.workflow-space .api-world .api-mapping h4{font-size:.88rem;margin:0 0 8px}
.workflow-space .api-world .api-map-row{min-height:20px;padding:3px 0}
.workflow-space .api-world .api-config-state{margin-top:5px}
.workflow-space .api-world .api-outputs{position:relative;grid-column:2;grid-row:3;inset:auto;width:auto;display:flex;gap:8px;transform:rotateY(-7deg);opacity:1}
.workflow-space .api-world .api-endpoint{margin:0;flex:1;min-width:0;padding:8px;gap:7px;white-space:nowrap}
.workflow-space .api-world .api-endpoint code{font-size:.59rem}.workflow-space .api-world .api-endpoint b{display:none}
.workflow-space .api-world .work-action{position:static;grid-column:1/-1;grid-row:4;align-self:center;font-size:.57rem;line-height:1.45;max-width:none}
.workflow-space .work-world .work-receipt{transform:rotateY(-6deg);bottom:34px}
.workflow-space .work-world .work-action{bottom:0;min-height:24px;display:flex;align-items:center;justify-content:center;line-height:1.35}
.workflow-space .work-world .work-main{height:calc(100% - 117px);transform:rotateY(-7deg) rotateZ(1deg)}
.workflow-space .work-world .work-source{transform:rotateY(8deg) rotateZ(-4deg)}
.work-hiring{--signal:var(--lime)}

/* A slow, continuous carousel uses the same skill list as the full-stack section. */
.hero{position:relative}
.skills-ribbon{height:64px;display:flex;align-items:center;gap:16px;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface) 40%,var(--bg));overflow:hidden;min-width:0;padding:0 var(--pad);grid-column:1/-1}
.skills-label{flex-shrink:0;font-size:.55rem;letter-spacing:.13em;color:var(--faint);font-weight:600}
.skills-window{flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
.skills-window::-webkit-scrollbar{display:none}
.skills-track{display:flex;width:max-content;animation:skills-drift 110s linear infinite;will-change:transform}
.skills-list{display:flex;gap:12px;align-items:center;padding-right:12px;flex-shrink:0}
.skills-list li{white-space:nowrap;border:1px solid var(--line-2);border-radius:999px;padding:7px 15px;color:var(--dim);background:color-mix(in srgb,var(--surface) 75%,transparent);font:500 .68rem/1.25 var(--body);letter-spacing:.035em}
.skills-pause{flex-shrink:0;width:36px;height:36px;padding:0;border:1px solid var(--line-2);border-radius:50%;background:var(--surface);color:var(--dim);font-size:.68rem;cursor:pointer}
.skills-ribbon[data-paused="true"] .skills-track,.skills-ribbon[data-visible="false"] .skills-track,.skills-window:hover .skills-track,.skills-window:focus .skills-track{animation-play-state:paused}
@keyframes skills-drift{to{transform:translateX(-50%)}}

.hiregood-story{display:grid;grid-template-columns:1fr 1.1fr;gap:40px;align-items:center;margin-top:28px;padding:32px;border:1px solid var(--line-2);border-radius:24px;background:var(--surface)}
.hiregood-demo{min-width:0}.hiregood-art{height:350px;position:relative;margin-top:18px;isolation:isolate}
.hiregood-capabilities{display:grid;gap:9px;margin:22px 0;font-size:.85rem;color:var(--dim)}.hiregood-capabilities li{padding-bottom:9px;border-bottom:1px solid var(--line)}
.hiregood-motion{border:1px solid var(--line-2);border-radius:8px;background:var(--bg);color:var(--dim);padding:7px 11px;font-size:.7rem;cursor:pointer}

@media(min-width:1050px) and (min-height:620px){
  #portfolio.hero,#partnership.hero{min-height:100svh;padding-top:82px;padding-bottom:82px}
  .hero .skills-ribbon{position:absolute;left:0;right:0;bottom:0}
  #portfolio .system-demo,#partnership .commission-scene{height:calc(100svh - 164px);max-height:650px}
  #portfolio .system-demo{display:flex;flex-direction:column;gap:7px}
  #portfolio .system-map{flex:1;min-height:210px!important}
  #portfolio .system-demo h2{font-size:1.5rem}
  #portfolio .system-intro{font-size:.68rem;line-height:1.35}
  #portfolio .system-explanation{padding-block:7px}
  #portfolio .system-explanation p{font-size:.67rem}
  #portfolio .system-footnote{font-size:.5rem}
  #portfolio .system-demo .play-progress{flex-shrink:0;height:2px}
  #partnership .commission-scene{grid-template-rows:auto auto auto minmax(250px,1fr) auto auto 2px;gap:8px}
  #partnership .commission-art{min-height:250px}
  #partnership .commission-scene h2{font-size:1.8rem}
  #partnership .commission-result{min-height:60px}
  .commission-art .api-world .api-config-state{display:none}
  .commission-art .api-world{gap:10px 5%;grid-template-rows:20px minmax(0,1fr) 35px 24px}
  .commission-art .api-world .api-contract{padding:10px}
  .commission-art .api-contract h4{font-size:.95rem;margin:8px 0}
  .commission-art .api-code{margin:8px 0;font-size:.52rem}
  .commission-art .api-world .api-mapping h4{font-size:.82rem}
}
@media(min-width:1050px) and (max-height:850px) and (min-height:620px){
  #portfolio .system-demo{gap:5px}
  #portfolio .system-intro{display:none}
  #portfolio .system-demo h2{font-size:1.35rem}
  #portfolio .system-map{min-height:195px!important}
  #portfolio .work-world .work-main{top:22px;height:calc(100% - 100px)}
  #portfolio .work-world .work-receipt{bottom:29px;padding:6px 9px}
  #portfolio .work-world .work-document h4{font-size:.78rem;margin-bottom:5px}
  #portfolio .work-world .work-document{padding:5px 9px}
  #portfolio .work-world .work-fields .work-row{font-size:.53rem;min-height:19px}
  #portfolio .work-world .work-source{top:28px;bottom:70px}
  #partnership .commission-scene h2{font-size:1.6rem}
  #partnership .commission-result p{font-size:.7rem}
}
@media(max-width:1049px){
  #portfolio.hero,#partnership.hero{padding-top:96px}
  #portfolio.hero .wrap,#partnership.hero .wrap{grid-template-columns:minmax(0,1fr);gap:20px}
  .hero .hero__copy{grid-row:1;min-height:calc(100svh - 192px);display:flex;flex-direction:column;justify-content:center;padding-block:12px}
  .hero .skills-ribbon{grid-row:2;width:calc(100% + 2*var(--pad));margin-inline:calc(-1*var(--pad))}
  .hero .system-demo,.hero .commission-scene{grid-row:3;margin-top:24px}
  .hiregood-story{grid-template-columns:1fr;padding:24px;gap:24px}
}
@media(max-width:600px){
  .hero .lead{font-size:.98rem;line-height:1.55;margin-top:22px}
  .hero .hero__cta{margin-top:24px;gap:10px}
  .hero .hero__cta .btn{flex:1 1 0;min-width:0;--h:44px;padding-inline:10px;font-size:.76rem}
  .hero .facts{margin-top:24px}
  .hero .facts .fact:not(:first-child){display:none}
  .skills-label{display:none}.skills-ribbon{gap:8px;padding-inline:12px}.skills-list li{font-size:.65rem;padding:7px 12px}
  .skills-pause{width:40px;height:40px}
  .workflow-space .api-world{grid-template-columns:minmax(0,1fr);grid-template-rows:18px 83px minmax(0,1fr) 32px 28px;gap:8px;padding:0 5px}
  .workflow-space .api-world .api-contract{grid-column:1;grid-row:2;width:78%;height:83px;align-self:start;padding:8px 10px}
  .workflow-space .api-world .api-contract h4{font-size:.82rem;margin:4px 0}.workflow-space .api-code{margin:4px 0}
  .workflow-space .api-world .api-mapping{grid-column:1;grid-row:3;width:91%;justify-self:end;grid-template-rows:25px minmax(0,1fr)}
  .workflow-space .api-world .api-mapping .work-document{padding:6px 10px}
  .workflow-space .api-world .api-mapping h4{font-size:.8rem;margin-bottom:5px}
  .workflow-space .api-world .api-outputs{grid-column:1;grid-row:4;width:91%;justify-self:end;gap:5px}
  .workflow-space .api-world .api-endpoint{padding:6px;gap:5px}.workflow-space .api-world .api-endpoint code{font-size:.54rem}
  .workflow-space .api-world .work-action{grid-row:5;font-size:.52rem}
  .workflow-space .work-world .work-main{top:107px;height:154px}
  .workflow-space .work-world .work-receipt{bottom:34px;width:91%}
  .workflow-space .work-world .work-action{font-size:.5rem}
  .work-ticket .sla-track{margin-top:6px}.work-ticket .work-fields .work-row{min-height:18px}
  .hiregood-story{padding:20px}.hiregood-art{height:350px}
  .hiregood-art .work-world .work-main{height:174px}
}
@media(prefers-reduced-motion:reduce){.skills-track{animation:none;transform:none}.skills-list[aria-hidden="true"]{display:none}}

/* Let the composition grow with the display instead of floating in a fixed 1240px island. */
@media(min-width:1050px){
  :root{--max:2400px;--pad:clamp(32px,5vw,160px);font-size:clamp(16px,1.05vw,26px)}
  #portfolio.hero .wrap,#partnership.hero .wrap{gap:clamp(32px,4vw,100px)}
  #portfolio .hero__copy,#partnership .hero__copy{max-width:none;min-width:0}
  #portfolio h1,#partnership h1{font-size:clamp(3.25rem,4.8vw,6rem)}
}
@media(min-width:1050px) and (min-height:761px){
  #portfolio.hero,#partnership.hero{padding-top:110px;padding-bottom:100px}
  #portfolio .system-demo,#partnership .commission-scene{height:calc(100svh - 210px);max-height:1050px}
  #portfolio .system-demo{gap:clamp(8px,1vh,16px)}
  #portfolio .system-demo h2{font-size:1.65rem}
  #portfolio .system-intro,#portfolio .system-explanation p{font-size:.8rem}
  #portfolio .system-footnote{font-size:.6rem}
  #portfolio .hero-kicker{font-size:.7rem}
  #portfolio .hero__cta .btn{--h:3.1rem}
  #portfolio .fact{font-size:.75rem}
  .hero .skills-ribbon{height:76px}
  .workflow-space .api-world{grid-template-rows:24px minmax(0,1fr) 52px 38px}
  .workflow-space .api-world .api-mapping{grid-template-rows:36px minmax(0,1fr)}
  .workflow-space .api-world .api-map-row{padding:6px 0}
}
/* Portrait tablets keep a readable introduction without an entire empty viewport. */
@media(min-width:601px) and (max-width:1049px){
  .hero .hero__copy{min-height:0;padding-block:28px;max-width:760px;width:100%;margin-inline:auto}
  #portfolio h1,#partnership h1{font-size:clamp(3.3rem,7vw,4.8rem)}
  .hero .lead{max-width:60ch}
}
@media(min-width:1050px) and (max-height:760px){
  :root{font-size:16px}
  #portfolio h1,#partnership h1{font-size:3.25rem}
}

@media(min-width:1050px) and (min-height:620px) and (max-height:850px){
  #portfolio.hero,#partnership.hero{padding-top:82px;padding-bottom:82px}
  #portfolio .system-demo,#partnership .commission-scene{height:calc(100svh - 164px)}
  #portfolio .system-demo{gap:5px}
  #portfolio .system-demo h2{font-size:1.35rem}
  #portfolio .system-explanation p{font-size:.67rem}
  #portfolio .system-footnote{font-size:.5rem}
  .hero .skills-ribbon{height:64px}
}

@media(max-width:600px){
  .workflow-ready .system-map{height:365px!important}
  .system-map .workflow-space .work-world .work-source{height:90px}
  .system-map .workflow-space .work-world .work-main{top:130px;height:154px}
}

/* Keep the perspective cards clear of the illustration caption. */
.workflow-space .api-world .work-caption{position:relative;z-index:6}
.workflow-space .api-world .api-contract{margin-top:18px}
.workflow-space .api-world .api-mapping{margin-top:18px;height:calc(100% - 18px)}

@media(max-width:600px){.workflow-space .api-world .api-mapping{margin-top:25px;height:calc(100% - 25px)}}

/* Reserve an untransformed caption row above the tilted cards. */
@media(min-width:601px){
  .workflow-ready .factory-scene{height:390px}
  .factory-scene .api-world{grid-template-rows:60px minmax(0,1fr) 40px 28px}
}
