.s6-macbook-card {
    width: 100%; height: 100%; display: grid; place-items: center;
    padding: 8%; background: var(--preview-bg, #edf0ec); box-sizing: border-box;
}
.card-thumb .s6-macbook-card img,
.timeline-thumb .s6-macbook-card img {
    display: block; width: 100%; height: auto; object-fit: contain;
    transform: none; transition: none;
}
.card:hover .card-thumb .s6-macbook-card img,
.timeline-item:hover .timeline-thumb .s6-macbook-card img { transform: none; }
.s6-web-preview { background: var(--preview-bg, #edf0ec); padding: 32px 40px 36px; }
.s6-web-preview-inner { max-width: 1080px; margin: 0 auto; }
.s6-web-preview-bar,.s6-web-preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.s6-web-preview-bar { font-size: 12px; letter-spacing: .08em; }
.s6-web-preview-bar > span { text-transform: uppercase; color: #555b59; }
.s6-preview-toggle {
    appearance: none; -webkit-appearance: none; background: transparent;
    color: #181a19; -webkit-text-fill-color: currentColor; font: inherit;
    border: 1px solid rgba(24,26,25,.25); border-radius: 0; padding: 11px 17px;
    cursor: pointer; letter-spacing: 0;
}
.s6-preview-toggle span { margin-left: 8px; }
.s6-preview-toggle:hover { background: rgba(255,255,255,.4); }
.s6-preview-toggle:focus-visible,.s6-macbook-screen:focus-visible { outline: 2px solid #181a19; outline-offset: 5px; }
.s6-macbook-device { position: relative; width: 100%; aspect-ratio: 1600/1040; margin: 20px auto 0; }
.s6-macbook-screen {
    position: absolute; left: 11.5%; top: 6.923077%; width: 77%; height: 74.038462%;
    overflow: auto; border-radius: 1.05% / 1.7%; scrollbar-width: none; overscroll-behavior: contain;
    background: #fff; -webkit-overflow-scrolling: touch;
}
.s6-macbook-screen::-webkit-scrollbar { display: none; }
.s6-macbook-screen .s6-fullpage { display: block; width: 100%; max-width: none; height: auto; }
.s6-macbook-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.s6-web-preview-footer { font-size: 12px; line-height: 1.6; color: #555b59; }
.s6-web-preview-footer p { margin: 0; }
.s6-web-preview-footer a { color: #181a19; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width: 767px) {
    .s6-web-preview { padding: 24px 16px; }
    .s6-web-preview-bar { font-size: 11px; }
    .s6-macbook-device { margin-top: 24px; }
    .s6-web-preview-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
    .s6-preview-desktop-hint { display: none; }
}
@media(prefers-reduced-motion: reduce) { .s6-macbook-screen { scroll-behavior: auto; } }

.s6-site-gallery.content-section { padding-top: 0; }
.s6-site-gallery-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.s6-site-gallery-heading p { color: var(--gray-mid); margin: 0; font-size: 14px; }
.s6-site-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.s6-page-card {
    -webkit-tap-highlight-color: transparent;
    display: block; width: 100%; padding: 0; overflow: hidden; text-align: left;
    font: inherit; color: var(--black); -webkit-text-fill-color: currentColor;
    appearance: none; -webkit-appearance: none; background: #f7f7f5;
    border: 1px solid #e5e5e1; border-radius: 0; cursor: pointer;
    transition: box-shadow .2s ease;
}
.s6-page-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.s6-page-card:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.s6-browser-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; font-size: 12px; line-height: 1.3; }
.s6-browser-bar > span:nth-child(2) { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s6-browser-dots { color: #b7b9b4; font-size: 7px; letter-spacing: 2px; white-space: nowrap; }
.s6-page-crop { display: block; aspect-ratio: 16/10; overflow: hidden; background: #fff; }
.s6-page-crop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.s6-gallery-dialog { width: min(1100px,calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 0; background: #fff; color: #181a19; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.s6-gallery-dialog::backdrop { background: rgba(10,12,11,.72); backdrop-filter: blur(4px); }
.s6-gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 20px; border-bottom: 1px solid #eee; }
.s6-gallery-toolbar h3 { margin: 0; font-size: 15px; font-family: var(--font-sans); }
.s6-gallery-actions { display: flex; gap: 8px; }
.s6-gallery-actions button { appearance: none; -webkit-appearance: none; -webkit-text-fill-color: currentColor; color: #181a19; background: transparent; border: 1px solid #ddd; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 20px; }
.s6-gallery-actions button { -webkit-tap-highlight-color: transparent; }
.s6-gallery-viewer { max-height: calc(100dvh - 180px); overflow: auto; overscroll-behavior: contain; background: #f4f4f1; }
.s6-gallery-viewer img { display: block; width: 100%; height: auto; }
.s6-gallery-dialog-footer { display: flex; justify-content: space-between; gap: 20px; padding: 12px 20px; font-size: 12px; }
.s6-gallery-visit { color: #181a19; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width: 767px) {
    .s6-site-gallery-heading { flex-direction: column; gap: 12px; }
    .s6-site-gallery-grid { grid-template-columns: 1fr; gap: 22px; }
    .s6-gallery-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .s6-gallery-toolbar { padding: 12px; gap: 10px; }
    .s6-gallery-actions button { width: 34px; height: 34px; }
    .s6-gallery-viewer { max-height: calc(100dvh - 155px); }
}
@media(prefers-reduced-motion: reduce) { .s6-page-card { transition: none; } }

.studio6-project-overview .section-title { margin-top: 0; margin-bottom: 24px; }
.studio6-project-overview p { max-width: 80ch; margin-bottom: 0; }
