/* The examples showcase: each site grows from a card to the full screen and the page takes on its colours. */
.sc { position: relative; background: var(--ink, #0E1116); color: #fff; }
.sc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 56px; padding-block: clamp(40px, 6vw, 96px) clamp(24px, 3vw, 44px); }
.sc-title { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.6vw, 70px); line-height: 1; letter-spacing: -0.02em; max-width: 13em; text-wrap: balance; }
.sc-title span { display: block; }
.sc-lede { max-width: 25em; color: var(--on-ink-2, #B4BBC7); font-size: clamp(17px, 1.4vw, 20px); }

.sc-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid currentColor; background: none; color: inherit; font: 600 15px/1 var(--sans); cursor: pointer; transition: background-color var(--dur-hover) var(--ease-colour), color var(--dur-hover) var(--ease-colour), transform var(--dur-press) var(--ease-out); }
.sc-pause:active { transform: scale(.97); }
.sc-pause svg { flex: none; }

.sc-slide { --g: #0E1116; --k: #fff; --b: #fff; --bk: #0E1116; color: var(--k); background: var(--g); }
.sc-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.sc-badge { font-size: 14px; font-weight: 600; }
.sc-badge.is-client { padding: 4px 10px; background: var(--k); color: var(--g); }
.sc-name { font-family: var(--display); font-weight: 700; font-size: clamp(30px, min(3.3vw, 6.4svh), 54px); line-height: 1; letter-spacing: -0.02em; color: inherit; }
.sc-what { font-weight: 600; font-size: 17px; }
.sc-line { font-size: 16px; line-height: 1.42; }
.sc-try { font-size: 15px; line-height: 1.4; }
.sc-open { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; background: var(--b); color: var(--bk); font-weight: 600; font-size: 16px; text-decoration: none; transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-press) var(--ease-out); }
.sc-open:hover { color: var(--bk); opacity: .9; }
.sc-open:active { transform: scale(.98); }
.sc-slide .sc-pause { color: var(--k); }
.sc :focus-visible { outline-color: var(--k, #fff); }

/* Frames: a thin dark rim and nothing pretending to be a browser */
.sc-frame { position: relative; overflow: hidden; background: #111; box-shadow: var(--shadow); }
.sc-frame img, .sc-frame iframe { position: absolute; left: 0; top: 0; border: 0; display: block; }
.sc-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sc-frame iframe { transform-origin: 0 0; background: transparent; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out); }
.sc-frame iframe.is-ready { opacity: 1; }
.sc-desk { border-radius: var(--r-sm); width: var(--desk-w); aspect-ratio: 16 / 10; }
.sc-phone { border-radius: var(--r-lg); border: 6px solid #0b0b0d; width: calc(var(--desk-w) * .22); aspect-ratio: 390 / 844; }

/* ---------- Wide screens: ordinary sections, one screen tall. Nothing is pinned. */
.sc-rail.is-stage { --desk-w: min(calc((100vw - 400px) / 1.18), calc((100svh - 150px) * 1.6)); background: #0E1116; transition: background-color var(--dur-reveal) var(--ease-colour); }
.is-stage .sc-slide { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: clamp(20px, 2.6vw, 44px); align-items: center; padding: 84px clamp(24px, 3.4vw, 56px) 28px; }
.is-stage .sc-info { max-width: 360px; }
.is-stage .sc-frames { position: relative; justify-self: end; width: calc(var(--desk-w) * 1.18); display: flex; align-items: center; }
.is-stage .sc-phone { position: absolute; right: 0; bottom: -10px; z-index: 2; }
.is-stage .sc-controls { position: absolute; left: clamp(24px, 3.4vw, 56px); bottom: 22px; z-index: 3; }
.is-stage .sc-info, .is-stage .sc-phone, .is-stage .sc-controls { opacity: 0; transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.is-stage .sc-info { transform: translateX(-20px); }
.is-stage .sc-phone { transform: translateY(32px); }
.is-stage .is-in .sc-info, .is-stage .is-in .sc-phone, .is-stage .is-in .sc-controls { opacity: 1; transform: none; }
.sc-controls { color: var(--k); }

/* ---------- The Duma header takes on each site's colours, with a solid tint so the page can scroll under it */
html[data-sc-theme] .site-header.is-ink,
html[data-sc-theme] .site-header.is-ink.scrolled { background: color-mix(in srgb, var(--sc-ground) 92%, transparent); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); border-bottom-color: transparent; box-shadow: none; transition: background-color var(--dur-ui) var(--ease-colour); }
html[data-sc-theme="light"] .site-header.is-ink .logo { color: var(--sc-ink); }
html[data-sc-theme="light"] .site-header.is-ink .logo-word span { color: var(--sc-ink); }
html[data-sc-theme="light"] .site-header.is-ink .nav a:not(.btn),
html[data-sc-theme="light"] .site-header.is-ink .nav-drop-btn { color: var(--sc-ink); }
html[data-sc-theme="light"] .site-header.is-ink .nav a.btn-dark { background: var(--sc-ink); color: #fff; }

/* ---------- Phones and tablets: a full-width gallery you swipe, with the site running at real size */
.sc-rail.is-swipe { scroll-margin-top: 72px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sc-rail.is-swipe::-webkit-scrollbar { display: none; }
.is-swipe .sc-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; padding: 18px var(--gutter) 22px; display: flex; flex-direction: column; gap: 16px; }
.is-swipe .sc-frames { order: 2; display: flex; justify-content: center; }
.is-swipe .sc-desk { display: none; }
.is-swipe .sc-phone { width: 100%; max-width: 560px; aspect-ratio: auto; height: min(70svh, 660px); border-width: 4px; border-radius: var(--r-lg); }
.is-swipe .sc-info { order: 1; gap: 8px; }
.is-swipe .sc-open { order: 3; width: 100%; }
.is-swipe .sc-open-wide { display: none; }
.sc-tap { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.sc-nav { display: flex; align-items: center; gap: 14px; padding: 12px var(--gutter) 28px; background: var(--ink, #0E1116); }
.sc-prog { flex: 1; height: 4px; background: rgba(255, 255, 255, .2); }
.sc-prog i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform var(--dur-ui) var(--ease-out); }
.sc-count { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Reduced motion, or the animation library failed to load: a plain list of the sites */
.sc-rail.is-list .sc-slide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: clamp(28px, 5vw, 64px) var(--gutter); }
@media (min-width: 900px) { .sc-rail.is-list { --desk-w: min(58vw, 860px); } .sc-rail.is-list .sc-slide { grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); align-items: center; } .sc-rail.is-list .sc-frames { position: relative; width: calc(var(--desk-w) * 1.18); } .sc-rail.is-list .sc-phone { position: absolute; right: 0; bottom: -10px; } }
@media (max-width: 899px) { .sc-rail.is-list { --desk-w: 100%; } .sc-rail.is-list .sc-desk { display: none; } .sc-rail.is-list .sc-phone { width: min(100%, 320px); } }

@media (prefers-reduced-motion: reduce) { .sc-frame iframe, .sc-open, .sc-pause, .sc-prog i { transition: none; } }
