/* FINAL RELEASE: headline, focused portfolio, and single-viewport desktop layout. */
/* Keep real keyboard focus outlines on controls. No focus border around entire Work section. */
#work:focus, #page-title:focus { outline: none; }
.nav-links { gap: 26px; }
.intro h1 {font-size:clamp(35px,3.35vw,53px);line-height:1.03;max-width:950px;letter-spacing:-.052em;}
.intro h1 em {letter-spacing:-.052em;}
.intro {align-items:center;}
/* A single screen on desktop, with enough room for all seven rows and the actual work preview. */
@media(min-width:871px){
  html,body {min-height:100%;}
  .site-shell {min-height:100svh;display:flex;flex-direction:column;}
  .site-header {flex:0 0 auto;}
  main {flex:1 1 auto;min-height:0;display:flex;flex-direction:column;}
  .intro {flex:0 0 auto;min-height:0;padding:16px 0 18px;}
  .intro p {flex:0 0 220px;}
  .work-shell {flex:1 1 auto;min-height:0;align-items:stretch;}
  .work-column {min-height:0;display:flex;flex-direction:column;}
  .section-caption {flex:0 0 37px;}
  .work-list {flex:1 1 auto;min-height:0;display:flex;flex-direction:column;}
  .work-row {flex:1 1 0;min-height:49px;height:auto;}
  .index-bottom {flex:0 0 auto;padding:11px 2px 9px;}
  .feature-stage {flex:1 1 auto;height:auto;min-height:0;}
  .stage-art {flex:1 1 auto;height:auto;min-height:175px;}
  .site-footer {flex:0 0 auto;margin-top:0;padding:12px 0 14px;}
}
@media(min-width:871px) and (max-height:790px){
  .intro {padding:12px 0 13px;}
  .intro h1 {font-size:clamp(32px,3.1vw,48px);}
  .stage-art {min-height:155px;}
  .stage-info {padding-top:12px;}
  .stage-info h2 {font-size:clamp(21px,2.05vw,28px);}
  .feature-stage {padding:17px;}
  .index-bottom {padding:8px 2px 7px;}
  .site-footer {padding:8px 0 10px;}
}
@media(min-width:871px) and (max-height:700px){
  /* Small desktop heights: remain readable even when natural content requires scrolling. */
  .site-shell {min-height:100svh;}
  .work-row {min-height:44px;}
  .stage-art {min-height:118px;}
  .intro {padding:8px 0 10px;}
  .intro h1 {font-size:34px;}
}
@media(max-width:870px){
  .intro h1 {font-size:clamp(38px,6vw,55px);}
}
@media(max-width:540px){
  .nav-links .external-nav {display:inline-flex;}
  .nav-links {gap:12px;font-size:10px;}
  .nav-links a {white-space:nowrap;}
  .intro h1 {font-size:clamp(34px,8.8vw,48px);}
}
/* Welcome: bold centered typography itself carries the interaction. */
.welcome-frame {min-height:100svh;}
.welcome-center {text-align:center;align-items:center;justify-content:center;padding:30px 0 35px;}
.welcome-eyebrow {justify-content:center;margin-bottom:25px;}
.welcome-copy {position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;max-width:1120px;}
.welcome-center h2 {font-size:clamp(70px,11vw,166px);line-height:.96;white-space:nowrap;transition:transform .24s cubic-bezier(.2,.8,.2,1);will-change:transform;}
.welcome-description {max-width:740px;margin:30px auto 30px;transition:transform .28s cubic-bezier(.2,.8,.2,1);will-change:transform;}
.welcome-choices {max-width:350px;grid-template-columns:minmax(0,1fr);width:min(350px,100%);}
.welcome-choice {height:94px;}
.welcome-grid {mask-image:none;opacity:.25;}
@media(max-width:870px){.welcome-center{padding:30px 0}.welcome-center h2{font-size:clamp(65px,11vw,110px)}.welcome-description{max-width:620px}}
@media(max-width:540px){
  .welcome-center {padding:20px 0 30px;}
  .welcome-eyebrow {margin-bottom:22px;font-size:9px;letter-spacing:.14em;}
  .welcome-center h2 {font-size:clamp(47px,12vw,74px);white-space:normal;}
  .welcome-description {font-size:15px;max-width:95%;margin:24px auto 28px;}
  .welcome-choices {width:100%;max-width:350px;}
  .welcome-choice {height:83px;}
}
@media (max-height:690px) and (min-width:541px){
  .welcome-center h2 {font-size:clamp(60px,9vw,120px);}
  .welcome-description {margin:20px auto;}
  .welcome-choice {height:80px;}
  .welcome-topline {padding-bottom:14px;}
  .welcome-bottomline {padding-top:12px;}
}
@media(prefers-reduced-motion:reduce){.welcome-center h2,.welcome-description{transition:none;will-change:auto}}
/* Finishing touches from real-viewport QA. */
@media(min-width:871px) and (max-height:900px){.site-footer:not(.personal-footer){margin-top:0;}}
@media(min-width:871px) and (max-width:1100px){
  .work-row {grid-template-columns:29px minmax(0,1fr) 21px;}
  .work-kind {display:none;}
}

/* Eight-work release: preserve the existing editorial index and fit it in one viewport. */
.nav-links{gap:clamp(10px,1.5vw,26px)}.nav-links .nav-current{border-bottom-color:currentColor}
.work-row[data-id="operating"]{--row-bg:#cce7dc;--row-fg:#17473f}
.feature-stage[data-theme="operating"]{--stage-bg:#cce7dc;--stage-fg:#17473f;--stage-soft:#3c665f}
.work-name{white-space:normal;overflow:visible;text-overflow:clip;font-size:clamp(16px,1.45vw,22px);line-height:1.12}
.work-kind{white-space:normal;line-height:1.2}
.ow-preview{width:94%;max-width:550px;max-height:94%;background:#f7f5eb;border:1px solid #a1b6a9;color:#23414b;box-shadow:10px 13px 0 #70978c70;transform:rotate(-2deg);padding:13px 15px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.ow-preview svg{width:100%;height:auto;max-height:250px;min-height:0}.ow-preview-top,.ow-preview-bottom{font-size:9px;display:flex;justify-content:space-between;gap:6px;letter-spacing:.08em;font-weight:800}
.welcome-bottom-nav{display:flex;gap:18px;align-items:center}.welcome-bottom-nav a{font-size:11px;font-weight:650;color:#aab8cb}.welcome-bottom-nav a:hover{color:white}
@media(min-width:871px) and (min-height:660px){
  .site-shell{height:100svh;min-height:0}
  .work-row{min-height:0;flex:1 1 0}
  .stage-art{min-height:0}
  .feature-stage{min-height:0}
  .work-shell{overflow:hidden}
}
@media(min-width:871px) and (max-height:760px){.site-header{height:54px}.intro{padding:10px 0 12px}.section-caption{flex-basis:29px}.work-name{font-size:clamp(15px,1.32vw,20px)}.index-bottom{padding:6px 2px}.site-footer{padding:7px 0}.stage-art .ow-preview svg{max-height:190px}.stage-art .ow-preview{padding:8px 10px}.stage-info{padding-top:10px}}
@media(max-width:1150px) and (min-width:871px){.work-row{grid-template-columns:29px minmax(0,1fr) 21px}.work-kind{display:none}.header-mid{display:none}}
@media(max-width:540px){.site-header{gap:8px}.nav-links{gap:8px}.nav-links .external-nav{display:none}.nav-links .nav-current{display:none}.work-name{font-size:17px}.welcome-bottom-nav{gap:10px}.welcome-bottom-nav a{font-size:10px}}

@media(min-width:1151px){.work-row{grid-template-columns:31px minmax(0,1fr) 121px 22px;gap:8px}.work-name{font-size:clamp(17px,1.35vw,21px)}}
@media(min-width:871px) and (max-height:760px){.work-name{font-size:clamp(14px,1.25vw,18px)}}

/* Approved final index: remove the redundant category column. */
.work-row{grid-template-columns:34px minmax(0,1fr) 25px;gap:10px}.work-name{font-size:clamp(17px,1.45vw,23px);white-space:normal;line-height:1.12}.work-action{font-size:23px}.ow-preview{transform:none}
@media(min-width:871px) and (max-height:760px){.work-name{font-size:clamp(15px,1.32vw,20px)}}
@media(max-width:540px){.work-row{grid-template-columns:24px minmax(0,1fr) 20px;gap:7px;padding:0 8px}.work-name{font-size:17px}}
