.works-section { background: radial-gradient(ellipse at 90% 15%, #082a433d, transparent 50%), #060914; border-block: 1px solid #37bfff20; scroll-margin-top: 3rem; overflow: hidden; }
.works-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.works-heading h2 { max-width: none; font-size: clamp(2rem, 4.1vw, 3.7rem); line-height: 1.13; }
.works-heading h2 span { color: var(--accent); }
.works-intro { max-width: 22rem; color: var(--body-muted); font-size: .96rem; line-height: 1.65; }
.works-intro > span { display: flex; align-items: center; gap: .7rem; color: #e9f3ff; font-size: .73rem; margin-top: 1rem; }
.works-intro svg { width: 1rem; height: 1rem; color: var(--accent); }
.works-carousel { --slide-width: 76%; --work-gap: 1.5rem; }
.works-track { display: flex; gap: var(--work-gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: .25rem 0 1.5rem; }
.works-track::-webkit-scrollbar { display: none; }
.works-track::after { content: ''; flex: 0 0 calc(100% - var(--slide-width) - var(--work-gap)); }
.work-slide { flex: 0 0 var(--slide-width); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.work-link { display: block; border: 1px solid #ffffff24; border-radius: 1.15rem; overflow: hidden; background: #0d1423; transition: border-color .25s, box-shadow .25s; }
.work-link:hover, .work-link:focus-visible { border-color: #37bfffaa; box-shadow: 0 14px 35px -20px #0095ff66; }
.work-browser { height: 2.5rem; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #131c2d; color: #b7c7da; font-size: .67rem; letter-spacing: .025em; }
.work-browser > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-lights { display: flex; gap: .3rem; }
.work-lights i { width: .4rem; height: .4rem; border-radius: 50%; background: #54718f; }
.work-lights i:nth-child(2) { background: #3482ae; }
.work-lights i:nth-child(3) { background: #37bfff; }
.work-image { position: relative; overflow: hidden; background: #151b25; aspect-ratio: 1.44; }
.work-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2,.65,.3,1); }
.work-link:hover img { transform: scale(1.025); }
.work-visit { position: absolute; bottom: 1.25rem; right: 1.25rem; display: flex; align-items: center; gap: 1.25rem; padding: .8rem 1.05rem; border-radius: 999px; color: #00172c; background: #62ceff; box-shadow: 0 6px 26px #0005; font-size: .8rem; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.work-visit svg { width: 1rem; height: 1rem; }
.work-link:hover .work-visit, .work-link:focus-visible .work-visit { opacity: 1; transform: translateY(0); }
.work-caption { padding: 1.4rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.work-caption p { font-size: .65rem; color: #99acc5; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .5rem; }
.work-caption h3 { font-size: 1.65rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.work-open { display: grid; place-items: center; flex-shrink: 0; width: 2.8rem; height: 2.8rem; border: 1px solid #ffffff30; border-radius: 50%; color: #6ed2ff; transition: background .2s, color .2s; }
.work-open svg { width: 1.25rem; height: 1.25rem; }
.work-link:hover .work-open { background: #37bfff; color: #00172c; }
.works-controls { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: .6rem; }
.works-count { display: flex; align-items: center; gap: .65rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.works-count strong { color: var(--accent); font-weight: 500; }
.works-count > span { color: #7e91ac; }
.works-count .works-hint { margin-left: 1rem; font-size: .72rem; }
.works-dots { display: flex; }
.works-dots button { display: grid; place-items: center; width: 2rem; height: 2.75rem; }
.works-dots span { width: 1.35rem; height: 3px; background: #3c4b61; border-radius: 5px; transition: background .2s, height .2s; }
.works-dots [aria-current="true"] span { height: 5px; background: var(--accent); box-shadow: 0 0 12px #37bfff55; }
.works-arrows { display: flex; gap: .65rem; }
.works-arrows button { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid #4b7199; border-radius: 50%; font-size: 1.3rem; transition: background .2s, color .2s; }
.works-arrows button:hover:not(:disabled) { background: var(--accent); color: #00172c; }
.works-arrows button:disabled { opacity: .3; cursor: default; }
.works-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1025px) { .nav-pill { gap: 1.5rem; } }
@media (min-width: 860px) and (max-width: 1024px) { .nav-pill { display: none; } .nav-toggle { display: inline-flex; } }
@media (max-width: 1024px) { .works-heading { display: block; } .works-intro { max-width: 32rem; margin-top: 1.5rem; } .works-carousel { --slide-width: 88%; } }
@media (max-width: 640px) {
  .works-heading { margin-bottom: 1.75rem; }
  .works-heading h2 { font-size: 2rem; }
  .works-intro { font-size: .85rem; }
  .works-intro > span { font-size: .68rem; }
  .works-carousel { --slide-width: 93%; --work-gap: .75rem; }
  .work-browser { height: 1.8rem; font-size: .48rem; padding: 0 .65rem; }
  .work-caption { padding: 1rem; }
  .work-caption h3 { font-size: 1.2rem; }
  .work-caption p { font-size: .55rem; line-height: 1.5; }
  .work-open { width: 2rem; height: 2rem; }
  .work-open svg { width: 1rem; height: 1rem; }
  .works-controls { flex-wrap: wrap; gap: .5rem; }
  .works-count .works-hint { margin-left: .25rem; font-size: .62rem; }
  .works-arrows { margin-left: auto; }
  .works-dots { order: 3; justify-content: center; width: 100%; }
  .works-arrows button { width: 2.75rem; height: 2.75rem; }
  .work-visit { display: none; }
}
@media (prefers-reduced-motion: reduce) { .work-link, .work-image img, .work-visit, .work-open, .works-dots span, .works-arrows button { transition: none; } .work-link:hover img { transform: none; } }
