/* V.4 finish: original compositions, consistent optical weight and calmer rhythm. */
:root {
  --paper: #f1f1f3;
  --muted: #989ba3;
  --line: #ffffff21;
  --accent: #c7d0de;
  --gutter: clamp(1.375rem, 6vw, 6.5rem);
  --ease: cubic-bezier(.22, .72, .18, 1);
  --finish-space: clamp(5.5rem, 9vw, 9.5rem);
  --finish-radius: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-padding-top: 100px; }
body { line-height: 1.65; min-width: 0; }
::selection { background: #d6deec; color: #08090b; }
main :is(h2,h3) { text-transform: none; }
h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a, button, summary { outline-offset: 5px; }
.section-space { max-width: 1560px; padding-block: var(--finish-space); }
.section-eyebrow { gap: 0; margin-bottom: 1.75rem; font-size: .8125rem; letter-spacing: .12em; color: #a1a5af; }
.section-eyebrow .signal-dot { display: none; }
.section-title, #expertise .section-title, #process .making-title {
  font-size: clamp(2.5rem, 4.75vw, 5rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-transform: none;
}
.section-intro { gap: 3rem; }
.intro-note { max-width: 28ch; font-size: 1.0625rem; color: #a7aab2; line-height: 1.65; }
.universe::before { opacity: .035; }
.universe::after { background: none; }

/* The exact wordmark remains the anchor; navigation sits in the background. */
.site-header { gap: 1.5rem; padding-block: 1.25rem; }
.site-header.is-scrolled { padding-block: .75rem; background: #050608d9; border-color: #ffffff13; backdrop-filter: blur(24px) saturate(125%); -webkit-backdrop-filter: blur(24px) saturate(125%); }
.brand img { width: 80px; height: 48px; }
.is-scrolled .brand img { width: 72px; height: 43px; }
.brand-edition { font-size: .75rem; color: #a5a8b0; }
.desktop-nav { gap: clamp(1.15rem, 2vw, 2rem); margin-right: 1.5rem; font-size: .875rem; letter-spacing: .015em; text-transform: none; }
.desktop-nav a { color: #b5b8c1; }
.desktop-nav a::after { bottom: 7px; background: #dbe1ec; }
.motion-toggle { gap: 8px; color: #a2a7b2; }
.motion-icon { border-color: #c1c8d4; }
.motion-toggle[aria-pressed=true] .motion-icon { border-left-color: #c1c8d4; }
.header-actions { gap: 1.5rem; }
.journey-index { left: clamp(.4rem, 1.3vw, 1.5rem); }
.journey-index a[aria-current] > span { background: #d2d9e4; box-shadow: 0 0 0 5px #d2d9e40e; }
.journey-track > span { background: #bac4d4; }
.journey-index em { background: #101216; border-color: #ffffff1c; color: #d1d7e2; }

/* Photograph first. No opacity gate can hide the portfolio if scripts arrive late. */
.work-motion .work-reveal, .motion-ready .reveal { opacity: 1; transform: none; }
.work-motion .work-reveal.is-visible, .motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.finish-enter { animation: finish-arrive .85s var(--ease) both; }
@keyframes finish-arrive { from { opacity: .72; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.work-heading { margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.work-heading h2 { font-size: clamp(2.6rem, 5.25vw, 5.5rem); line-height: 1.03; letter-spacing: -.035em; }
.work-eyebrow { font-size: .8125rem; letter-spacing: .12em; color: #a1a5af; }
.work-heading-note { font-size: 1.0625rem; line-height: 1.6; color: #a7aab2; }
.work-grid { gap: clamp(4rem, 7.5vw, 8rem) clamp(1.5rem, 3vw, 3rem); }
.work-grid .work-card:nth-child(3), .work-grid .work-card:nth-child(6) { margin-top: clamp(3rem, 6.5vw, 7rem); }
.work-visual { border-radius: var(--finish-radius); background: var(--work-mat, #111318); }
.work-visual > picture { display: block; }
.work-art-primary { width: 100%; height: auto; transition: transform 1s var(--ease); }
.work-art-secondary { width: 100%; height: 100%; object-fit: contain; transition: opacity .65s var(--ease); }
.work-visual > picture:has(.work-art-secondary) { position: absolute; inset: 0; pointer-events: none; }
.work-caption { padding-top: 1.5rem; align-items: center; gap: 1.25rem; }
.work-caption h3 { font-size: clamp(1.4rem, 2.25vw, 2.25rem); line-height: 1.18; letter-spacing: -.02em; }
.work-caption h3, .service-card-title, .principle-note h3, .crew-heading h3 { font-weight: 500; }
.work-caption p { color: #a1a5af; font-size: 1rem; margin-top: .4rem; }
.work-number { color: #8c939f; font-size: .75rem; margin-right: .8rem; }
.work-open { min-height: 44px; display: inline-flex; align-items: center; font-size: .875rem; border-bottom-color: #ffffff32; transition: border-color .25s, color .25s; }
.work-end { margin-top: clamp(4.5rem, 7vw, 7rem); padding-top: 1.6rem; border-top-color: var(--line); }
.work-end a, .case-text-link { text-transform: none; font-size: 1rem; letter-spacing: 0; border-bottom-color: #ffffff50; }
.billboard-project .billboard-title { text-transform: uppercase; }
.billboard-project .billboard-art picture { display: block; width: 100%; height: 100%; }
.billboard-project .billboard-art img { width: 100%; height: 100%; }
.billboard-project .billboard-link { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.billboard-controls button { text-transform: none; letter-spacing: 0; font-size: .875rem; }
.billboard-glass { opacity: .75; }

/* The original space imagery keeps its role, with a neutral typographic palette. */
.studio { border-top: 1px solid #ffffff16; }
.studio-statement { font-size: clamp(2.75rem, 5.9vw, 6.2rem); line-height: 1.07; letter-spacing: -.035em; max-width: 19ch; }
.motion-ready:not(.no-motion) .studio-statement .word { color: color-mix(in srgb, #f1f1f3 calc(60% + var(--word-light,1)*40%), #17191e); }
.moon-composition { right: -15%; top: 2rem; opacity: .65; }
.studio-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #000b 68%, #000 97%); }
.moon-caption { color: #959da8; }
.studio-lower { max-width: 1080px; gap: clamp(2rem, 8vw, 8rem); margin-top: clamp(3rem, 5vw, 5rem); }
.studio-aside { color: #d1d6df; font-size: clamp(1.35rem, 2vw, 2rem); }
.studio-description { font-size: 1.125rem; line-height: 1.75; color: #bdc1cb; }
.fusion-equation { margin-top: clamp(4rem, 7vw, 7rem); padding-top: 2.5rem; border-top: 1px solid #ffffff17; color: #d8dce3; font-size: clamp(1.5rem, 3.2vw, 3.2rem); }
.fusion-equation i { color: #727c8c; }

/* Keep all six illustrated disciplines; tighten the cards and their detail views. */
.expertise-carousel { margin-top: clamp(2.75rem, 5vw, 4.5rem); }
.expertise-track { --card-width: clamp(19rem, 28vw, 25rem); gap: 1.25rem; padding-bottom: 1.25rem; scroll-padding-left: 2px; }
.service-card { padding: 1.7rem; border-radius: 20px; border-color: #ffffff15; background: radial-gradient(ellipse at 50% 14%, color-mix(in srgb,var(--card-color) 6%,transparent), transparent 62%), #0b0d11; }
.service-card-art { height: clamp(12.5rem, 18vw, 16rem); margin-bottom: 1.7rem; }
.service-card-title { font-size: clamp(1.5rem, 1.9vw, 1.875rem); line-height: 1.15; letter-spacing: -.02em; text-transform: none; min-height: 2.4em; }
.service-card-title { font-weight: 500; }
.service-card-summary { color: #aab0bb; min-height: 4.8em; margin-top: 1rem; }
.service-card-action { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid #ffffff13; }
.service-card-action > span { border: 0; font-size: 1.4rem; font-weight: 400; }
.expertise-total { color: #a0a7b3; font-size: .8125rem; letter-spacing: .08em; }
.service-dialog { padding: clamp(1.5rem, 4.5vw, 4rem); background: #101216; border-color: #ffffff21; box-shadow: 0 40px 120px #000c; }
.service-dialog::backdrop { background: #000c; backdrop-filter: blur(18px); }
.service-dialog .service-panel-title { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; line-height: 1.08; text-transform: none; }
.service-dialog .service-description { font-size: 1.125rem; color: #b2b8c2; }
.service-dialog .service-details { margin-top: 2.5rem; }
.service-dialog .service-details summary { padding-block: 1.25rem; }
.service-dialog .service-details summary::after { top: 1.25rem; color: #b8c3d4; }
.service-dialog .service-details p { color: #aeb5c0; }

.approach-composition { margin-top: clamp(3.5rem, 6vw, 6rem); grid-template-columns: 40% 1fr; gap: 7%; }
.principles { gap: 2rem 2.25rem; }
.principle-note h3 { font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.16; letter-spacing: -.022em; overflow-wrap: normal; }
.principle-note p { color: #aeb1ba; line-height: 1.75; }
.note-index { margin-bottom: 1.3rem; font-size: .8125rem; }
.principle-note.is-active h3 { color: #eef0f4; }
.crystal-composition figcaption { color: #a1a8b4; line-height: 1.6; }
.kinetic-bridge { padding-block: clamp(4rem, 8vw, 8rem); }
.bridge-line { font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 6.5rem); color: #e1e4ea; letter-spacing: -.035em; }
.bridge-line i { color: #788292; }
.bridge-line > span:nth-last-child(1) { color: #a8b3c4; }
.bridge-caption { color: #a2a9b5; font-size: 1rem; }
#process .making-dot { display: none; }
#process .making-eyebrow { font-size: .8125rem; letter-spacing: .12em; }
#process .making-title span { color: #9298a5; }
#process .making-step-name { text-transform: none; font-size: 1.25rem; letter-spacing: -.01em; }
#process .making-step-copy p { color: #b0b6c1; line-height: 1.7; }
#process .making-step-mark { color: #c1cbdc; }
#process .making-outcome { font-size: 1.25rem; letter-spacing: -.01em; }
#process .making-footer { color: #a1a8b3; letter-spacing: .06em; }

.regional { border-top: 1px solid #ffffff16; }
.regional-layout { gap: 9%; }
.regional-copy .section-title { font-size: clamp(2.5rem, 4.5vw, 4.8rem); line-height: 1.07; }
.regional-intro, .regional-summary { color: #aeb3be; font-size: 1.0625rem; }
.city { padding-block: 1.5rem; color: #929aaa; grid-template-columns: 1fr auto; }
.city-name { font-size: clamp(2.1rem, 3.7vw, 4rem); letter-spacing: -.03em; }
.city-meta { color: #a2aab8; }
.city-arrow { display: none; }
.city.is-active { color: #f2f3f5; }
.city.is-active .city-name { transform: translateX(8px); }
.city.is-active .city-meta { color: #d8e0ed; }
.regional-clock { color: #a5afbd; margin-top: 1.8rem; }
.clock-city { color: #c4ccd8; }
.city-time { color: #edf0f5; }
.crew-layout { gap: 9%; margin-top: 4.5rem; }
.crew-heading { gap: 1rem; }
.crew-heading h3 { font-size: clamp(1.75rem, 2.5vw, 2.75rem); line-height: 1.15; }
.crew-heading > span:first-child { color: #949cab; }
.crew-group { padding-block: 1.75rem 2.25rem; }
.crew-group ul { color: #abb3bf; margin-left: calc(27px + 1rem); gap: .5rem 1.25rem; }
.crew-group.is-active .crew-signal, .crew-group:hover .crew-signal { background: #becbdc; box-shadow: 0 0 0 5px #becbdc0d; }
.crew-group:hover li { color: #d7dee8; }
.astronaut-composition figcaption { color: #a1aab8; }
.site-footer { padding-bottom: 2.5rem; }
.footer-invitation { padding-bottom: clamp(4rem, 7vw, 7rem); gap: 3rem; }
.footer-invitation > p { font-size: clamp(2rem, 3.8vw, 4rem); line-height: 1.12; letter-spacing: -.03em; text-transform: none; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.footer-contact .text-link { border-color: #c9d3e160; font-size: 1.0625rem; }
.footer-contact > span { font-size: .875rem; color: #a6aeba; }
.footer-lockup { border-top-color: #ffffff21; }
.footer-bottom { color: #959fac; font-size: .8125rem; }
.back-to-orbit { color: #bac4d2; }

/* Every case study gets the same editorial finish, keeping its own brand colours. */
.case-top, .case-cover { max-width: 1560px; }
.case-top { padding-top: clamp(8.5rem, 11vw, 11rem); padding-bottom: 3rem; }
.case-heading { grid-template-columns: 1.4fr 1fr; gap: 3rem; padding-top: 3rem; }
.case-heading h1 { text-transform: none; font-size: clamp(3.2rem, 7.5vw, 7.5rem); line-height: 1.04; letter-spacing: -.04em; overflow-wrap: normal; }
.case-heading p { max-width: 33ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); color: #b0b6c1; line-height: 1.6; }
.case-cover img { border-radius: var(--finish-radius); }
.case-cover figcaption { font-size: .875rem; color: #a3adbc; margin-top: 1.25rem; }
.case-container { max-width: 1440px; }
.case-story { padding-block: clamp(4.5rem, 8vw, 8rem); }
.case-story h2, .case-application h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.12; letter-spacing: -.03em; }
.case-story p, .case-application p { font-size: 1.125rem; line-height: 1.75; }
.case-scope dd { font-size: 1rem; line-height: 1.65; }
.case-image img { border-radius: 8px; }
.case-image figcaption { font-size: .875rem; line-height: 1.6; }
.case-statement { padding-block: clamp(5rem, 9vw, 9rem); }
.case-statement h2 { font-size: clamp(2.5rem, 5.1vw, 5.5rem); line-height: 1.07; letter-spacing: -.035em; }
.case-statement p { font-size: 1.125rem; }
.case-next { max-width: 1560px; margin-inline: auto; padding-block: clamp(5rem, 8vw, 8rem); gap: clamp(2.5rem, 6vw, 6rem); }
.case-next h2 { text-transform: none; letter-spacing: -.03em; }
.case-next img { border-radius: var(--finish-radius); transition: transform .85s var(--ease); }
.case-next > a { overflow: hidden; border-radius: var(--finish-radius); }
.case-footer-inner { min-height: 64px; gap: 1.5rem; color: #a3adbc; }
.case-footer a { display: inline-flex; align-items: center; min-height: 44px; color: #d5deec; }
.case-progress { background: #bdc9dc; height: 1px; }

@media (hover:hover) and (pointer:fine) {
  .work-card:hover .work-art-primary { transform: scale(1.015); }
  .work-card:hover .work-open { border-bottom-color: #dce4f0; }
  .case-next > a:hover img { transform: scale(1.025); }
  .text-link:hover { color: #fff; }
}
@media (max-width: 1150px) {
  .desktop-nav { gap: 1.2rem; margin-right: .5rem; }
  .header-actions { gap: 1rem; }
  .motion-label { display: none; }
  .motion-toggle { justify-content: center; width: 44px; }
  .principles { gap: 2rem 1.5rem; }
  .principle-note h3 { font-size: 1.45rem; }
}
@media (max-width: 900px) {
  .section-intro { align-items: flex-start; gap: 2rem; }
  .intro-note { max-width: 24ch; }
  .approach-composition { grid-template-columns: 34% 1fr; gap: 6%; }
  .principles { grid-template-columns: 1fr; }
  .principle-note:nth-child(even) { margin-top: 0; }
  .principle-note h3 { font-size: 1.85rem; }
  .principle-note h3 br { display: none; }
  .crystal-composition { top: 130px; }
  .crew-layout { grid-template-columns: 34% 1fr; }
  .footer-invitation { align-items: flex-start; flex-direction: column; }
  .case-heading { gap: 2rem; }
}
@media (max-width: 700px) {
  :root { --gutter: 1.375rem; --finish-space: 5.25rem; --finish-radius: 10px; }
  html { scroll-padding-top: 86px; }
  .site-header { padding-block: 1rem; gap: 1rem; }
  .brand img { width: 67px; height: 40px; }
  .is-scrolled .brand img { width: 67px; height: 40px; }
  .brand-edition { padding-left: .65rem; }
  .header-actions { gap: .75rem; }
  .menu-toggle { font-size: .875rem; text-transform: none; letter-spacing: 0; gap: 10px; }
  .mobile-nav { padding-block: 1rem 1.5rem; background: #090b10f5; box-shadow: 0 24px 48px #0008; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .mobile-nav a { font-size: 1.5rem; padding-block: .85rem; border-bottom: 1px solid #ffffff0e; }
  .mobile-nav a span { color: #8793a4; font-size: .75rem; }
  .journey-index { display: none; }
  .section-intro { display: block; }
  .section-intro .intro-note { margin-top: 1.5rem; max-width: 34ch; }
  .section-intro .intro-note br { display: none; }
  .section-title, #expertise .section-title, #process .making-title { font-size: clamp(2.25rem, 8vw, 3.5rem); line-height: 1.1; }
  .section-eyebrow { margin-bottom: 1.6rem; }
  .work-heading h2 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .work-heading-note { font-size: 1rem; margin-top: 1.2rem; }
  .work-grid .work-card { margin: 0 0 3.75rem; }
  .work-grid .work-card:nth-child(3), .work-grid .work-card:nth-child(6) { margin-top: 0; }
  .work-grid .work-card:last-child { margin-bottom: 0; }
  .work-caption { padding-top: 1.2rem; gap: 1rem; align-items: start; }
  .work-caption h3 { font-size: 1.5rem; }
  .work-caption p { font-size: .9375rem; line-height: 1.5; max-width: 25ch; }
  .work-number { display: none; }
  .work-open { font-size: .875rem; min-height: 36px; }
  .work-end { margin-top: 3.5rem; }
  .studio-statement { font-size: clamp(2.5rem, 9vw, 4rem); max-width: 18ch; }
  .studio-lower { grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
  .studio-description { font-size: 1.0625rem; }
  .moon-composition { width: 105vw; right: -50%; top: 8rem; opacity: .4; }
  .moon-caption { display: none; }
  .fusion-equation { margin-top: 3rem; gap: .6rem; font-size: clamp(.95rem, 4.4vw, 1.6rem); padding-block: 1.5rem; letter-spacing: -.025em; }
  .fusion-equation i { font-size: 1rem; }
  .expertise-track { --card-width: min(81vw, 23rem); }
  .service-card { padding: 1.5rem; border-radius: 18px; }
  .service-card-title { font-size: 1.55rem; min-height: 2.4em; }
  .service-card-art { height: 13rem; margin-bottom: 1.5rem; }
  .service-dialog { width: calc(100% - 1.25rem); padding: 1.5rem; border-radius: 20px; }
  .service-dialog .service-panel-title { font-size: 2rem; }
  .service-dialog .service-description { font-size: 1.0625rem; }
  .approach-composition { display: flex; flex-direction: column; gap: 2rem; margin-top: 2.5rem; }
  .crystal-composition { position: relative; display: block; top: auto; width: min(80%, 340px); margin: 0 auto 1rem; }
  .crystals { width: 100%; margin-left: 0; }
  .crystal-composition figcaption { margin-top: 1rem; }
  .principles { width: 100%; grid-template-columns: 1fr; gap: 2rem; }
  .principle-note { padding-top: 1rem; }
  .principle-note:nth-child(even) { margin: 0; }
  .principle-note h3 { font-size: 1.75rem; margin-bottom: 1rem; }
  .principle-note p { font-size: 1.0625rem; }
  .note-index { margin-bottom: 1rem; }
  .bridge-caption { max-width: 31ch; margin-inline: auto; padding-inline: var(--gutter); }
  #process .making-brand { display: none; }
  #process .making-step-name { font-size: 1rem; }
  #process .making-mobile-copy { color: #b7bdc8; }
  #process .making-outcome { font-size: 1.125rem; }
  .regional-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .regional-copy { display: block; }
  .regional-copy .section-title { font-size: clamp(2.5rem, 8.5vw, 3.5rem); }
  .earth-composition { width: 230px; margin: 3rem auto 2rem; }
  .regional-summary { max-width: 38ch; }
  .regional-intro { margin-bottom: 2rem; }
  .city-name { font-size: 2.25rem; }
  .city-meta { font-size: .8125rem; }
  .city { padding-block: 1.2rem; gap: .75rem; }
  .crew-layout { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 2.5rem; }
  .astronaut-composition { position: relative; display: block; top: auto; margin: 0 auto; width: min(68%, 300px); }
  .astronaut { width: 100%; }
  .astronaut-composition figcaption { margin: 4rem 0 0; }
  .crew-roster { width: 100%; }
  .crew-heading h3 { font-size: 1.8rem; }
  .crew-group ul { grid-template-columns: 1fr 1fr; font-size: .9375rem; gap: .5rem 1rem; }
  .footer-invitation { gap: 2.5rem; padding-bottom: 3.5rem; }
  .footer-invitation > p { font-size: clamp(1.9rem, 7vw, 3rem); line-height: 1.16; }
  .footer-lockup { padding-block: 2rem; }
  .footer-lockup img { width: 130px; height: auto; }
  .footer-bottom { gap: .75rem; line-height: 1.6; }
  .case-top { padding-top: 7.5rem; padding-bottom: 2.25rem; }
  .case-heading { display: block; padding-top: 2rem; }
  .case-heading h1 { font-size: clamp(2.75rem, 10vw, 4.5rem); line-height: 1.05; overflow-wrap: anywhere; }
  .case-heading p { font-size: 1.125rem; margin-top: 1.5rem; max-width: 35ch; }
  .case-cover { padding-inline: var(--gutter); padding-bottom: 4rem; }
  .case-cover figcaption { padding-inline: 0; font-size: .8125rem; gap: 1rem; line-height: 1.5; }
  .case-story h2, .case-application h2 { font-size: 2.1rem; }
  .case-story p, .case-application p { font-size: 1.0625rem; }
  .case-image figcaption { font-size: .8125rem; gap: 1rem; }
  .case-image figcaption span:last-child { text-align: right; }
  .case-statement h2 { font-size: clamp(2.25rem, 8.5vw, 3.75rem); }
  .case-next { padding-block: 4.5rem; }
  .case-footer-inner { align-items: flex-start; gap: .5rem; }
}
@media (max-width: 380px) {
  :root { --gutter: 1.125rem; }
  .brand-edition { display: none; }
  .work-caption { grid-template-columns: 1fr; gap: .4rem; }
  .work-open { justify-self: start; }
  .crew-group ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .finish-enter { animation: none; }
  .work-art-primary, .case-next img { transition: none; transform: none !important; }
}
.no-motion .finish-enter { animation: none; }
.no-motion .work-art-primary, .no-motion .case-next img { transition: none; transform: none !important; }

/* Selected work: a native, swipeable gallery with a quiet next-project preview. */
#work .work-grid {
  --project-width: 82%;
  --project-gap: clamp(1rem, 2.25vw, 2rem);
  display: flex;
  gap: var(--project-gap);
  width: calc(100% + var(--gutter));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block: 8px 12px;
  -webkit-overflow-scrolling: touch;
}
#work .work-grid::-webkit-scrollbar { display: none; }
#work .work-grid::after { content: ''; flex: 0 0 calc(100% - var(--project-width) - var(--project-gap)); }
#work .work-card:nth-child(n) {
  flex: 0 0 var(--project-width);
  margin: 0;
  scroll-snap-align: start;
  animation: none;
}
#work .work-card:focus-visible { outline-offset: -2px; border-radius: var(--finish-radius); }
#work .work-visual { aspect-ratio: 8 / 5; }
#work .work-visual > picture { width: 100%; height: 100%; }
#work .work-art-primary { display: block; width: 100%; height: 100%; object-fit: contain; }
#work .work-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
#work .work-grid.is-dragging * { cursor: grabbing; }
#work .work-grid.is-dragging .work-art-secondary { opacity: 0; }
.work-carousel-controls { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); margin-top: 1.75rem; }
.work-carousel-controls[hidden] { display: none; }
.work-carousel-count { color: #747b87; font-size: .8125rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-carousel-count [data-work-current] { color: #e0e4eb; }
.work-carousel-count > span:nth-child(2) { padding-inline: .55rem; color: #505761; }
.work-carousel-progress { flex: 1; height: 1px; background: #ffffff18; }
.work-carousel-progress > span { display: block; width: 100%; height: 1px; background: #b6bfcd; transform: scaleX(var(--work-progress, .166667)); transform-origin: left; transition: transform .45s var(--ease); }
.work-carousel-buttons { display: flex; gap: .625rem; }
.work-carousel-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff29;
  border-radius: 50%;
  background: #ffffff06;
  color: #e0e4eb;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
}
.work-carousel-button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.work-carousel-button:disabled { opacity: .3; cursor: default; }
.work-carousel-button:focus-visible { outline: 2px solid #d7dce6; outline-offset: 4px; }
.work-carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#work .work-end { margin-top: clamp(3rem, 5vw, 5rem); }
@media (hover: hover) and (pointer: fine) {
  .work-carousel-button:hover:not(:disabled) { background: #ffffff13; border-color: #ffffff55; }
}
@media (max-width: 700px) {
  #work .work-grid { --project-width: calc(100% - 2rem); --project-gap: 14px; }
  #work .work-visual { aspect-ratio: 4 / 3; }
  #work .work-caption { grid-template-columns: 1fr; gap: .6rem; }
  #work .work-caption h3 { font-size: 1.5rem; }
  #work .work-open { justify-self: start; min-height: 32px; }
  .work-carousel-controls { margin-top: 1.25rem; gap: 1.5rem; }
  .work-carousel-button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-carousel-progress > span, .work-carousel-button { transition: none; }
}
.no-motion .work-carousel-progress > span, .no-motion .work-carousel-button { transition: none; }
