/* Six disciplines, with generous artwork and one horizontal browsing surface. */
#expertise .section-title { font-size: clamp(2rem,3.3vw,3.75rem); line-height: 1.1; }
#expertise .intro-note { color: #a6a6ae; font-size: 1rem; line-height: 1.75; }
.expertise-carousel { margin-top: clamp(2rem,4vw,4rem); }
.expertise-track { --card-width: clamp(20rem,28vw,27rem); display: flex; position: relative; gap: 1.25rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 5px 2px 12px; margin-inline: -2px; }
.expertise-track::-webkit-scrollbar { display: none; }
.service-card { position: relative; display: grid; grid-template-rows: auto auto 1fr; flex: 0 0 var(--card-width); min-width: 0; padding: 1.6rem; text-align: left; border: 1px solid #ffffff13; border-radius: 24px; background: radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--card-color) 5%,transparent),transparent 64%),#0d0f13; color: #f0f1f5; scroll-snap-align: start; transition: border-color .35s,background-color .35s; }
.service-card-number { position: relative; z-index: 1; display: block; color: #8c909a; font-size: .75rem; letter-spacing: .15em; font-variant-numeric: tabular-nums; line-height: 1.5; }
.service-card-art { height: clamp(12rem,17vw,15rem); display: grid; place-items: center; padding: 1rem 1.4rem; margin: -.15rem 0 1.3rem; pointer-events: none; }
.service-card-art img { display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; mix-blend-mode: screen; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.service-card:first-child .service-card-art img { width: 75%; }
.service-card-content { display: flex; flex-direction: column; min-width: 0; }
.service-card-title { display: block; min-height: 3.5em; font-weight: 800; text-transform: uppercase; font-size: clamp(1.35rem,1.65vw,1.65rem); letter-spacing: -.015em; line-height: 1.16; overflow-wrap: normal; }
.service-card-summary { display: block; color: #9c9fa9; font-size: 1rem; line-height: 1.6; min-height: 4.8em; max-width: 29ch; margin-top: .7rem; }
.service-card-action { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; color: #c6cad2; font-size: .875rem; line-height: 1.4; }
.service-card-action > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #ffffff1d; border-radius: 50%; font-size: 1.15rem; color: #dce1e9; transition: border-color .3s,transform .3s; }
.service-card:focus-visible { outline: 2px solid #c9d1df; outline-offset: 3px; }
.expertise-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; }
.expertise-total { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: #898e98; }
.expertise-arrows { display: flex; gap: .65rem; }
.expertise-arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff25; border-radius: 50%; color: #e5e8ef; font-size: 1.2rem; transition: background .2s,border-color .2s,opacity .2s; }
.expertise-arrows button:hover:not(:disabled) { border-color: #b8c5dd80; background: #ffffff08; }
.expertise-arrows button:disabled { opacity: .25; cursor: default; }
.expertise-arrows button:focus-visible { outline: 2px solid #c9d1df; outline-offset: 4px; }
.service-dialog { width: min(960px,calc(100% - 2rem)); max-height: min(860px,88svh); padding: clamp(1.5rem,4vw,3rem); margin: auto; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #ffffff25; border-radius: 24px; background: #0d0f13; color: #eef0f5; box-shadow: 0 30px 120px #000b; }
.service-dialog::backdrop { background: #000b; backdrop-filter: blur(14px); }
.service-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.service-dialog-index { font-size: .75rem; color: #9aa1ae; letter-spacing: .16em; }
.service-dialog-close { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #ffffff2a; border-radius: 50%; color: #d9dfe8; font-size: 1.6rem; line-height: 1; }
.service-dialog-close:focus-visible { outline: 2px solid #c9d1df; outline-offset: 4px; }
.service-dialog .service-panels { border: 0; padding: 0; }
.service-dialog .service-panel-top { display: block; margin-bottom: 2rem; }
.service-dialog .service-panel-title { font-size: clamp(1.8rem,3.5vw,3rem); max-width: 25ch; margin-bottom: 1.25rem; }
.service-dialog .service-description { max-width: 66ch; font-size: 1rem; line-height: 1.75; color: #aab0bc; }
.service-dialog .service-details { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 2.5rem; row-gap: .35rem; }
.service-dialog .service-details summary { color: #d7dbe3; }
html.service-dialog-open { overflow: hidden; scrollbar-gutter: stable; }
@media (hover: hover) and (pointer: fine) {
  .expertise-track.is-ready { cursor: grab; }
  .expertise-track.is-dragging, .expertise-track.is-dragging .service-card { cursor: grabbing; user-select: none; }
  .expertise-track.is-dragging { scroll-snap-type: none; }
  .service-card:hover { border-color: color-mix(in srgb,var(--card-color) 36%,transparent); background-color: #11141a; }
  .service-card:hover .service-card-art img { transform: translateY(-6px) scale(1.025); }
  .service-card:hover .service-card-action > span { border-color: #ffffff6b; transform: translate(1px,-1px); }
}
@media (max-width: 900px) {
  #expertise .section-title { font-size: clamp(2rem,4.3vw,3rem); }
  .expertise-track { --card-width: 21rem; gap: 1rem; }
  .service-card-art { height: 13rem; }
  .service-card-title { font-size: 1.4rem; }
}
@media (max-width: 700px) {
  #expertise .section-title { font-size: clamp(1.85rem,6.5vw,2.85rem); }
  .expertise-track { --card-width: min(80vw,23rem); margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scroll-padding-right: var(--gutter); }
  .service-card { padding: 1.35rem; border-radius: 21px; }
  .service-card-art { height: 12.5rem; padding-inline: 1rem; margin-bottom: 1rem; }
  .service-card-title { font-size: 1.35rem; }
  .service-card-action { margin-top: .75rem; }
  .expertise-controls { margin-top: .7rem; }
  .service-dialog { width: calc(100% - 1.2rem); padding: 1.3rem; border-radius: 20px; max-height: 91svh; }
  .service-dialog .service-details { grid-template-columns: 1fr; }
}
.no-motion .service-card, .no-motion .service-card img, .no-motion .service-card-action > span { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .service-card, .service-card img, .service-card-action > span, .expertise-arrows button { transition: none; }
}
