:root {
    --page-bg: #f7f7f7;
    --ink: #222;
    --copy: #3b3b3b;
    --muted: #626262;
    --gap: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--copy);
    font-family: "Jost", "Helvetica Neue", "Noto Sans KR", Arial, sans-serif;
    font-size: 14.4px;
    font-weight: 400;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    padding-right: 0 !important;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

button {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 3000;
    padding: 8px 12px;
    transform: translateY(-160%);
    background: #fff;
    color: #222;
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 61px;
    background: #fff;
    transform: translateY(0);
    transition:
        box-shadow 0.24s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.site-header.is-scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.site-header.is-hidden {
    box-shadow: none;
    transform: translateY(calc(-100% - 1px));
}

.site-nav {
    display: flex;
    width: 100%;
    max-width: 1100px;
    height: 61px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: inline-block;
    width: 79px;
    height: 31.5px;
    overflow: hidden;
}

.site-logo img {
    width: 79px;
    height: 31.5px;
    object-fit: contain;
}

.site-nav__links {
    height: 61px;
    align-items: center;
}

.site-nav__links a {
    display: flex;
    height: 39px;
    align-items: center;
    padding: 0 16px;
    color: var(--copy);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.site-nav__links a:last-child {
    padding-right: 0;
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
    color: #111;
}

.menu-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 1px;
    background: #222;
}

.mobile-menu {
    width: min(86vw, 390px) !important;
    background: #fff;
}

.mobile-menu .offcanvas-header {
    height: 61px;
    padding: 0 20px;
}

.mobile-menu .offcanvas-body {
    padding: 24px 20px;
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
}

.mobile-menu__links a {
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 22px;
}

.home-slider,
.home-slider .carousel,
.home-slider .carousel-inner,
.home-slider .carousel-item {
    width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.home-slider {
    position: relative;
}

.home-slider__scroll {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    cursor: pointer;
}

.home-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-categories {
    padding: 96px 24px;
}

.home-categories__grid {
    display: grid;
    max-width: 1395px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto;
}

.home-category {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
}

.home-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-category:hover img {
    transform: scale(1.025);
}

.home-category__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
    transition: background-color 0.35s ease;
}

.home-category:hover .home-category__overlay,
.home-category:focus-visible .home-category__overlay {
    background: rgba(0, 0, 0, 0.5);
}

.home-category__title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    transition: transform 0.35s ease;
}

.home-category:hover .home-category__title,
.home-category:focus-visible .home-category__title {
    transform: translateY(-11px);
}

.home-category__subtitle {
    position: absolute;
    top: calc(50% + 14px);
    margin: 0;
    font-size: 14.4px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(7px);
    transition:
        opacity 0.3s ease 0.04s,
        transform 0.35s ease;
}

.home-category:hover .home-category__subtitle,
.home-category:focus-visible .home-category__subtitle {
    opacity: 1;
    transform: translateY(0);
}

.service-hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 760px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: var(--service-hero-image);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.service-hero--corp {
    background-position: 37% 52%;
}

.service-hero--corp .service-hero__overlay {
    background: rgba(0, 0, 0, 0.58);
}

.service-hero--healthcare {
    background-position: 37% 52%;
}

.service-hero--commercial {
    background-position: 38% 21%;
}

.service-hero--video {
    background-position: 87% 50%;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.43);
}

.service-hero__content {
    position: relative;
    z-index: 1;
    width: min(1144.5px, calc(100% - 120px));
    text-align: center;
}

.service-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    line-height: 48px;
}

.service-hero p {
    min-height: 39px;
    margin: 0;
    color: #e1e1e1;
    font-size: 14.4px;
    line-height: 23px;
}

.corporate-sections {
    padding: 160px 24px 0;
}

.corporate-section {
    padding-bottom: 371px;
}

.corporate-section:first-child {
    padding-bottom: 403px;
}

.corporate-section:last-child {
    padding-bottom: 160px;
}

.corporate-section:nth-child(7) {
    padding-bottom: 467px;
}

.corporate-section__head {
    width: min(600px, 100%);
    margin: 0 auto 90px;
    text-align: center;
}

.corporate-section__head h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 30px;
}

.corporate-section__head p {
    margin: 0;
    color: var(--copy);
    font-size: 14.4px;
    line-height: 23px;
}

.corporate-carousel {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.corporate-carousel__stage {
    overflow: hidden;
    background: #111;
}

.corporate-carousel__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #ddd;
    cursor: zoom-in;
}

.corporate-carousel__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(92px, 12vw, 180px) 18px 14px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.08) 30%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.corporate-carousel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.corporate-carousel .carousel-control-prev,
.corporate-carousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 58px;
    height: 82px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 13, 17, 0.76);
    opacity: 0.96;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.corporate-carousel:hover .carousel-control-prev,
.corporate-carousel:hover .carousel-control-next,
.corporate-carousel:focus-within .carousel-control-prev,
.corporate-carousel:focus-within .carousel-control-next {
    opacity: 1;
}

.corporate-carousel .carousel-control-prev:hover,
.corporate-carousel .carousel-control-next:hover,
.corporate-carousel .carousel-control-prev:focus-visible,
.corporate-carousel .carousel-control-next:focus-visible {
    background: rgba(8, 13, 17, 0.94);
}

.corporate-carousel .carousel-control-prev {
    border-radius: 0 5px 5px 0;
}

.corporate-carousel .carousel-control-next {
    border-radius: 5px 0 0 5px;
}

.corporate-carousel__arrow {
    display: block;
    color: #fff;
    font-size: 48px;
    font-weight: 200;
    line-height: 1;
    transform: translateY(-3px);
}

.corporate-carousel__thumbnails {
    display: flex;
    justify-content: safe center;
    gap: 8px;
    padding: 10px 0 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.corporate-carousel__thumbnails::-webkit-scrollbar {
    display: none;
}

.corporate-carousel__thumbnail {
    position: relative;
    flex: 0 0 clamp(118px, 12.5vw, 190px);
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #111;
    opacity: 0.58;
    scroll-snap-align: start;
    transition:
        border-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.corporate-carousel__thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.corporate-carousel__thumbnail:hover,
.corporate-carousel__thumbnail:focus-visible {
    opacity: 0.88;
}

.corporate-carousel__thumbnail.is-active {
    opacity: 1;
}

.corporate-carousel__thumbnail:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

.corporate-section--use-case .corporate-section__head {
    margin-bottom: 66px;
}

.use-case-grid {
    display: grid;
    width: min(1280px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 123px 80px;
    margin: 0 auto;
    padding: 24px 0 75px;
}

.use-case-grid__item {
    display: flex;
    flex-direction: column;
    color: var(--copy);
    text-align: center;
    text-decoration: none;
}

.use-case-grid__media {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f3f3;
}

.use-case-grid__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        opacity 0.25s ease,
        transform 0.35s ease;
}

.use-case-grid__caption {
    padding-top: 10px;
    font-size: 14.4px;
    line-height: 23px;
}

.use-case-grid__item:hover,
.use-case-grid__item:focus-visible {
    color: var(--ink);
}

.use-case-grid__item:hover img {
    opacity: 0.88;
    transform: scale(1.015);
}

.use-case-grid__item:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 5px;
}

.commercial-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 160px 0;
}

.commercial-gallery__item {
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #ddd;
    cursor: zoom-in;
}

.commercial-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.commercial-gallery__item:hover img {
    transform: scale(1.02);
}

.healthcare-index {
    padding: 80px clamp(24px, 4.7vw, 96px);
}

.healthcare-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1vw, 24px);
    margin: 0 auto;
}

.healthcare-card {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
}

.healthcare-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.healthcare-card:hover img {
    transform: scale(1.025);
}

.healthcare-card::after {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    content: "";
    transition: background-color 0.3s ease;
}

.healthcare-card:hover::after,
.healthcare-card:focus-visible::after {
    background: rgba(0, 0, 0, 0.54);
}

.healthcare-card span {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 176px 40px 160px;
    background: #161718;
}

.video-gallery__item {
    position: relative;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #ddd;
    cursor: pointer;
}

.video-gallery__item img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    filter: brightness(1);
    transform: scale(1.02);
    transition: filter 0.3s ease, transform 0.35s ease;
}

.video-gallery__item:hover img {
    filter: brightness(0.84);
    transform: scale(1.06);
}

.video-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    transform: translate(-50%, -50%);
}

.video-gallery__play::after {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
    content: "";
    transform: translate(-40%, -50%);
}

.about-carousel-wrap {
    width: 426px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    padding-top: 160px;
    box-sizing: content-box;
}

.about-carousel-wrap .carousel,
.about-carousel-wrap .carousel-inner,
.about-carousel-wrap .carousel-item {
    width: 100%;
    height: 100%;
}

.about-carousel-wrap img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    object-fit: cover;
}

.about-copy,
.about-video,
.about-contact {
    padding-right: 24px;
    padding-left: 24px;
    text-align: center;
}

.about-copy {
    padding-top: 100px;
    padding-bottom: 165px;
}

.about-copy h2,
.about-clients h2,
.about-sessions h2,
.about-video h2,
.about-contact h2 {
    margin: 0 0 24px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 30px;
    text-align: center;
}

.about-copy p,
.about-section-lead,
.about-video > p,
.about-contact p {
    margin: 0 0 8px;
    font-size: 14.4px;
    line-height: 23px;
    text-align: center;
}

.about-clients {
    padding: 160px clamp(24px, 2vw, 40px) 165px;
    background: #fff;
}

.about-clients__grid {
    display: grid;
    width: 100%;
    max-width: 1840px;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 64px clamp(24px, 3vw, 68px);
    margin: 96px auto 0;
}

.about-client {
    display: flex;
    height: 104px;
    align-items: center;
    justify-content: center;
}

.about-client img {
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.about-sessions {
    padding: 160px clamp(24px, 3.8vw, 74px) 185px;
}

.about-section-lead {
    margin-bottom: 96px;
}

.about-sessions__grid {
    display: grid;
    max-width: 1280px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 44px;
    margin: 0 auto;
}

.about-session {
    display: flex;
    flex-direction: column;
    padding: 52px 44px 62px;
    border: 1px solid #dedede;
    background: #fff;
}

.about-session h3 {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 14.4px;
    font-weight: 800;
    line-height: 22px;
}

.about-session__en {
    margin: 0 0 20px;
    color: var(--copy);
    font-size: 26px;
    line-height: 42px;
}

.about-session__details {
    min-height: 115px;
    margin: 0;
    font-size: 14.4px;
    line-height: 23px;
}

.about-session__uses {
    margin: 66px 0 0;
    padding-top: 52px;
    border-top: 3px solid #f3f3f3;
    color: #a7a7a7;
    font-size: 14.4px;
    line-height: 23px;
}

@media (min-width: 992px) {
    .about-session {
        height: 510px;
    }
}

.about-video {
    padding-top: 160px;
    padding-bottom: 170px;
    background: #fff;
}

.about-video h2 {
    margin-bottom: 48px;
}

.about-video video {
    width: min(490px, 100%);
    aspect-ratio: 7 / 5;
    margin: 96px auto 0;
    background: #fff;
    object-fit: cover;
}

.about-contact {
    padding-top: 160px;
    padding-bottom: 130px;
}

.about-contact h2 {
    margin-bottom: 48px;
}

.about-contact a:hover {
    color: #2b6cb0;
}

.about-contact__kakao {
    display: inline-flex;
    min-width: 176px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 0 24px;
    border: 1px solid #fee500;
    border-radius: 4px;
    background: #fee500;
    color: #191919;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.about-contact .about-contact__kakao:hover {
    border-color: #f0d900;
    background: #f0d900;
    color: #191919;
    transform: translateY(-2px);
}

.about-contact__kakao:focus-visible {
    outline: 3px solid rgba(25, 25, 25, 0.24);
    outline-offset: 3px;
}

.portfolio-detail-nav {
    padding: 48px 16px;
    text-align: center;
}

.portfolio-detail-nav__path {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14.4px;
    line-height: 23px;
}

.portfolio-detail-nav__back {
    display: inline-flex;
    min-width: 164px;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.portfolio-detail-nav__back:hover {
    background: #fff;
    color: var(--ink);
    transform: translateY(-2px);
}

.portfolio-detail-nav__back:focus-visible {
    outline: 3px solid rgba(23, 23, 23, 0.28);
    outline-offset: 3px;
}

.portfolio-detail-nav__arrow {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s ease;
}

.portfolio-detail-nav__back:hover .portfolio-detail-nav__arrow {
    transform: translateX(-3px);
}

.portfolio-detail-nav--bottom {
    padding-top: 72px;
    padding-bottom: 64px;
}

.detail-gallery {
    padding: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.detail-grid.is-masonry {
    position: relative;
    display: block;
}

.detail-grid__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    break-inside: avoid;
    background: #ddd;
    cursor: zoom-in;
}

.detail-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-footer {
    display: flex;
    min-height: 257px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 52px 24px;
    background: #222;
    color: var(--muted);
    text-align: center;
}

.site-footer__name {
    margin: 0 0 14px;
    font-size: 14.4px;
    line-height: 23px;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer__nav a {
    padding: 5px 13px;
    font-size: 15px;
    line-height: 23px;
}

.site-footer__nav a:hover {
    color: #fff;
}

.site-footer__copyright {
    margin: 13px 0 0;
    font-size: 13px;
    line-height: 21px;
}

.gallery-modal .modal-content {
    border: 0;
    background: rgba(15, 15, 15, 0.96);
    color: #fff;
}

.gallery-modal .modal-body {
    display: flex;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px;
}

.gallery-modal__image {
    width: auto;
    max-width: 92vw;
    height: auto;
    max-height: 84svh;
    opacity: 1;
    object-fit: contain;
    transform: translateX(0) scale(1);
    transition:
        opacity 0.34s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-modal__image.is-entering-next {
    opacity: 0;
    transform: translateX(34px) scale(0.992);
    transition: none;
}

.gallery-modal__image.is-entering-previous {
    opacity: 0;
    transform: translateX(-34px) scale(0.992);
    transition: none;
}

.gallery-modal__caption {
    margin: 12px 0 0;
    color: #aaa;
    font-size: 12px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-modal__caption.is-entering {
    opacity: 0;
    transition: none;
}

.gallery-modal__close {
    position: fixed;
    top: 12px;
    right: 18px;
    z-index: 2;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 36px;
    font-weight: 200;
    line-height: 1;
}

.gallery-modal__nav {
    position: fixed;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 48px;
    height: 60px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(10, 14, 18, 0.72);
    color: #fff;
    opacity: 0.94;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.gallery-modal__nav:hover,
.gallery-modal__nav:focus-visible {
    background: rgba(10, 14, 18, 0.94);
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.gallery-modal__nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.gallery-modal__chevron {
    display: block;
    width: 16px;
    height: 16px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.gallery-modal__nav--previous {
    left: clamp(12px, 2.2vw, 36px);
}

.gallery-modal__nav--previous .gallery-modal__chevron {
    margin-left: 6px;
    transform: rotate(-135deg);
}

.gallery-modal__nav--next {
    right: clamp(12px, 2.2vw, 36px);
}

.gallery-modal__nav--next .gallery-modal__chevron {
    margin-right: 6px;
    transform: rotate(45deg);
}

.video-modal .modal-dialog {
    width: min(94vw, calc((100svh - 32px) * 16 / 9));
    max-width: none;
    margin: 16px auto;
}

.video-modal .modal-content {
    border: 0;
    border-radius: 0;
    background: #000;
}

.video-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 38px;
    font-weight: 200;
    line-height: 1;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
    background: rgba(0, 0, 0, 0.82);
}

.video-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.error-page {
    min-height: 70svh;
    padding: 110px 24px;
    text-align: center;
}

.error-page h1 {
    margin: 0;
    font-size: clamp(100px, 20vw, 260px);
    line-height: 1;
}

.error-page .eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
}

.error-page .text-link {
    display: inline-block;
    margin-top: 20px;
    color: #2b6cb0;
}

@media (max-width: 991.98px) {
    .service-hero__content {
        width: calc(100% - 64px);
    }

    .corporate-section {
        padding-bottom: 220px;
    }

    .corporate-section:first-child {
        padding-bottom: 250px;
    }

    .corporate-section:nth-child(7) {
        padding-bottom: 316px;
    }

    .use-case-grid {
        gap: 64px 40px;
        margin: 0 auto;
    }

    .healthcare-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-sessions__grid {
        gap: 44px;
    }

    .about-session {
        padding: 38px 30px 42px;
    }

    .about-clients__grid {
        max-width: 760px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .site-nav {
        padding: 0 16px;
    }

    .home-slider,
    .home-slider .carousel,
    .home-slider .carousel-inner,
    .home-slider .carousel-item {
        aspect-ratio: 4 / 3;
    }

    .home-categories {
        padding: 48px 16px;
    }

    .home-categories__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-hero {
        height: 68svh;
        min-height: 540px;
    }

    .service-hero__content {
        width: calc(100% - 40px);
    }

    .service-hero h1 {
        margin-bottom: 18px;
        font-size: 26px;
        line-height: 36px;
    }

    .service-hero p {
        min-height: 0;
        margin-bottom: 10px;
        font-size: 13.5px;
        line-height: 21px;
    }

    .corporate-sections {
        padding: 80px 16px 0;
    }

    .corporate-section,
    .corporate-section:first-child,
    .corporate-section:nth-child(7) {
        padding-bottom: 140px;
    }

    .corporate-section:last-child {
        padding-bottom: 80px;
    }

    .corporate-section__head {
        margin-bottom: 42px;
    }

    .corporate-carousel .carousel-control-prev,
    .corporate-carousel .carousel-control-next {
        width: 44px;
        height: 62px;
        opacity: 0.94;
    }

    .corporate-carousel__arrow {
        font-size: 40px;
    }

    .corporate-carousel__caption {
        padding: 64px 12px 10px;
        font-size: 12px;
    }

    .corporate-carousel__thumbnails {
        gap: 6px;
        padding-top: 7px;
    }

    .corporate-carousel__thumbnail {
        flex-basis: clamp(94px, 31vw, 128px);
    }

    .use-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 24px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .commercial-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 80px 0;
    }

    .healthcare-index {
        padding: 48px 16px;
    }

    .healthcare-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .healthcare-card span {
        font-size: 16px;
    }

    .video-gallery {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 80px 16px;
    }

    .about-carousel-wrap {
        width: calc(100% - 32px);
        padding-top: 80px;
    }

    .about-copy {
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .about-clients {
        padding-top: 96px;
        padding-right: 16px;
        padding-bottom: 90px;
        padding-left: 16px;
    }

    .about-clients__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .about-sessions {
        padding-top: 96px;
        padding-right: 20px;
        padding-bottom: 100px;
        padding-left: 20px;
    }

    .about-section-lead {
        margin-bottom: 64px;
    }

    .about-sessions__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-session__details {
        min-height: 0;
    }

    .about-session {
        padding: 34px 26px 38px;
    }

    .about-video {
        padding-top: 96px;
        padding-right: 16px;
        padding-bottom: 95px;
        padding-left: 16px;
    }

    .about-video video {
        margin-top: 64px;
    }

    .about-contact {
        padding-top: 96px;
        padding-bottom: 80px;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .detail-grid__item {
        margin: 0;
    }

    .gallery-modal .modal-body {
        padding: 42px 12px;
    }

    .gallery-modal__image {
        max-width: 96vw;
        max-height: 80svh;
    }

    .gallery-modal__nav {
        width: 42px;
        height: 54px;
    }

    .gallery-modal__chevron {
        width: 14px;
        height: 14px;
    }

    .site-footer__nav a {
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
