:root {
    color-scheme: dark;
    --ink: #faf9f6;
    --muted: #d0d2d3;
    --glass-base: rgba(29, 34, 37, .38);
    --glass-edge: rgba(255, 255, 255, .28);
    --glass-shadow: 0 20px 56px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .06);
    --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { background: #101416; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; color: var(--ink); }
body.font-sans { font-family: 'Inter', sans-serif; }
body .font-serif { font-family: 'Playfair Display', serif; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
a { text-underline-offset: 4px; }
::selection { background: #8e2635; color: white; }
:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
input { caret-color: #fff; }
/* A soft full-screen still covers loading time and the empty space around the video. */
.slide-bg { overflow: hidden; background-color: #101416; transition: opacity 1s ease; }
.slide-placeholder { position: absolute; inset: -48px; background-size: cover; background-position: center; filter: blur(42px) brightness(.42) saturate(.8); }
.slide-bg video { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .45s ease; }
.slide-bg video.is-ready { opacity: 1; }
@media (max-aspect-ratio: 4/3) {
    .slide-bg video { object-fit: contain; }
}
.overlay-dark { pointer-events: none; background: linear-gradient(90deg, rgba(5, 12, 15, .86), rgba(5, 12, 15, .5) 52%, rgba(5, 12, 15, .2)), linear-gradient(0deg, rgba(5, 12, 15, .55), transparent 50%); }
/* A stable dark tint keeps the material readable over every video frame. */
.glass, .modal-content, #contact-btn, .btn-dynamic, #mobile-search-input {
    background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .025) 48%, rgba(255, 255, 255, .07)), var(--glass-base);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(26px) saturate(145%);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
}
.site-header { gap: 24px; padding: 28px clamp(24px, 4vw, 72px); flex: 0 0 auto; }
.brand-logo { display: block; width: clamp(240px, 26vw, 350px); height: auto; }
.site-header > .flex-grow { justify-content: flex-end; padding: 0; }
.site-header .search-shell { max-width: 320px; border-radius: 100px; }
#search-input { height: 46px; font-size: 13px; padding: 0 54px 0 22px; background: transparent; border: 0; backdrop-filter: none; box-shadow: none; }
#search-input::placeholder, #mobile-search-input::placeholder { color: #d7d9da; opacity: 1; }
#search-btn, #mobile-search-execute-btn { width: 44px; height: 44px; right: 4px; display: grid; place-items: center; color: #fff; }
#contact-btn { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; font-size: 13px; font-weight: 500; border-radius: 100px; }
#contact-btn:hover, .btn-dynamic:hover { background-color: rgba(83, 91, 96, .76); }
.showcase { width: 100%; max-width: 1720px; margin: auto; padding: 52px clamp(24px, 5vw, 88px) 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 100px); flex: 1; }
.main-content { max-width: 610px; }
.content-slide { animation: content-enter 650ms var(--ease) both; }
.slide-title { font-size: clamp(2.5rem, 4.2vw, 4.5rem); line-height: 1.07; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; margin: 0 0 22px; }
.slide-category { display: inline-flex; color: #e7cbcf; font-size: 12px; font-weight: 500; margin-bottom: 18px; }
.slide-description { font-size: clamp(.9375rem, 1.12vw, 1.0625rem); line-height: 1.75; color: #e0e2e3; max-width: 46ch; margin: 0 0 30px; }
.btn-dynamic { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; border-radius: 100px; padding: 0 25px; font-size: 14px; font-weight: 500; color: #fff; transition: background-color 200ms ease, transform 200ms ease; }
.btn-dynamic svg { width: 18px; height: 18px; }
.btn-dynamic:active, .icon-button:active { transform: scale(.96); }
.carousel-panel { min-width: 0; width: 100%; max-width: 520px; justify-self: end; }
.carousel-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 4px; gap: 16px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.carousel-heading h2 { font-size: 13px; font-weight: 500; margin: 0; color: #f1f2f3; }
.slide-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.card-container { display: flex; gap: 14px; align-items: center; overflow-x: auto; width: 100%; padding: 16px 12px; scroll-padding-inline: 24px; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.card-container::-webkit-scrollbar { display: none; }
.image-card { position: relative; width: 148px; height: 204px; flex: 0 0 148px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; text-align: left; color: white; background: #263236; opacity: .62; transform: scale(.8); transition: transform 450ms var(--ease), opacity 450ms ease, box-shadow 450ms ease; }
.image-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }
.image-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 16px 17px; background: linear-gradient(transparent, rgba(3, 9, 12, .92)); color: white; font-size: 12px; line-height: 1.45; font-weight: 500; }
.image-card.active { opacity: 1; transform: scale(1.08); z-index: 1; box-shadow: 0 10px 24px rgba(0, 0, 0, .32); }
.image-card.active::after { border: 2px solid rgba(255, 255, 255, .95); }
.image-card:hover { opacity: 1; }
.image-card:focus-visible { outline-offset: 4px; }
.carousel-toolbar { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; margin: 10px auto 0; padding: 4px 10px; gap: 6px; border-radius: 100px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; color: #fff; border: 0; background: transparent; border-radius: 50%; transition: background 160ms ease, transform 160ms ease; }
.icon-button:hover { background: rgba(255, 255, 255, .13); }
.icon-button svg { width: 20px; height: 20px; }
.toolbar-divider { height: 18px; width: 1px; background: rgba(255, 255, 255, .18); margin: 0 6px; }
#indicators { display: flex; align-items: center; justify-content: center; gap: 0; }
.indicator { display: grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; }
.indicator::before { content: ''; height: 5px; width: 5px; border-radius: 10px; background: #aeb4b7; transition: width 300ms ease, background 300ms ease; }
.indicator.active::before { width: 19px; background: #fff; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px clamp(24px, 4vw, 72px); color: #d0d2d3; font-size: 10px; line-height: 1.6; }
.site-footer p { margin: 0; }
.site-footer p:first-child { color: #fff; font-weight: 500; }
.footer-separator { padding: 0 8px; color: #949a9d; }
.modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 72px 24px 24px; background: rgba(4, 10, 13, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 220ms ease; }
.modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-content { --glass-base: rgba(26, 32, 36, .88); width: min(100%, 820px); max-height: calc(100svh - 112px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 4vw, 52px); border-radius: 28px; transform: translateY(12px); transition: transform 300ms var(--ease); scrollbar-width: thin; scrollbar-color: #747d82 transparent; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-content h2 { letter-spacing: -.025em; line-height: 1.15; font-weight: 500; text-wrap: balance; }
.modal-content p, .modal-content li { line-height: 1.75; }
.modal-content .text-red-400 { color: #f0b8be; }
#modal-description { color: #e2e5e6; }
#modal-more { color: #d5dadd; }
#mobile-menu-content { max-width: 460px; }
.modal-overlay > button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: rgba(255,255,255,.13); font-family: sans-serif; line-height: 1; }
#mobile-search-overlay { z-index: 70; background: rgba(13, 20, 24, .94); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
#mobile-search-input { min-height: 54px; padding-right: 58px; }
#mobile-search-open-btn, #hamburger-btn, #mobile-search-close-btn { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
#mobile-search-open-btn, #hamburger-btn { background: rgba(255,255,255,.08); }
#hamburger-btn { display: flex; }
@keyframes content-enter { from { opacity: .4; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .image-card { height: 220px; } }
@media (max-width: 1100px) {
    .showcase { gap: 36px; padding-inline: 32px; }
    .slide-title { font-size: clamp(2.3rem, 4.7vw, 3.5rem); }
    .carousel-heading { padding-inline: 12px; }
    .indicator { width: 20px; }
    .carousel-toolbar { padding-inline: 10px; gap: 1px; }
    .toolbar-divider { margin-inline: 2px; }
    .site-footer { display: block; text-align: center; }
    .site-footer p + p { margin-top: 4px; }
}
@media (max-width: 900px) {
    .site-header { gap: 16px; padding: 22px 24px; }
    .brand-logo { width: 255px; }
    .showcase { grid-template-columns: 1fr; align-items: start; gap: 28px; padding: 35px 24px 28px; }
    .main-content { max-width: 640px; }
    .slide-title { font-size: clamp(2.25rem, 7vw, 3.5rem); max-width: 19ch; }
    .slide-description { max-width: 56ch; font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
    .carousel-panel { max-width: none; }
    .image-card { width: 140px; flex-basis: 140px; height: 175px; }
    .card-container { padding: 16px 12px; }
    .carousel-toolbar { padding: 4px 10px; }
    .carousel-heading { padding-top: 0; }
    .indicator { width: 26px; }
    .overlay-dark { background: linear-gradient(90deg, rgba(5,12,15,.83), rgba(5,12,15,.4)), linear-gradient(0deg, rgba(5,12,15,.65), transparent); }
}
@media (max-width: 540px) {
    .site-header { padding: max(18px, env(safe-area-inset-top)) 20px 12px; gap: 8px; }
    .brand-logo { width: clamp(175px, 52vw, 240px); }
    .site-header .space-x-2 { gap: 4px; }
    .site-header .space-x-2 > * { margin-left: 0; }
    .showcase { padding: 22px 20px 18px; gap: 26px; }
    .slide-title { font-size: clamp(2rem, 8.5vw, 2.65rem); margin-bottom: 14px; }
    .slide-category { margin-bottom: 12px; font-size: 11px; }
    .slide-description { font-size: 14px; margin-bottom: 20px; }
    .btn-dynamic { min-height: 48px; font-size: 13px; }
    .carousel-heading { padding: 0 6px; }
    .carousel-heading h2 { font-size: 12px; }
    .image-card { width: 120px; flex-basis: 120px; height: 148px; border-radius: 14px; }
    .card-container { padding: 16px 12px; gap: 10px; }
    .card-title { font-size: 10px; padding: 36px 12px 12px; }
    .carousel-toolbar { padding: 4px 6px; gap: 0; }
    .indicator { width: 24px; }
    .toolbar-divider { margin: 0; }
    .site-footer { padding: 12px 24px max(18px, env(safe-area-inset-bottom)); font-size: 9px; }
    .footer-separator { display: none; }
    .site-footer a { display: inline-block; }
    .modal-overlay { padding: 70px 12px 12px; }
    .modal-content { padding: 26px 22px; max-height: calc(100svh - 90px); border-radius: 24px; }
}
@media (max-width: 360px) { .indicator { width: 18px; } .showcase { padding-inline: 14px; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
    .glass, .modal-content, #contact-btn, .btn-dynamic, #mobile-search-input { background: #242d32; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass, .modal-content, #contact-btn, .btn-dynamic, #mobile-search-input { background: #242d32; }
}
