/* ==========================================================================
   Qubits design system: light + gradient theme. One stylesheet, token driven,
   no build step.
   Sections: 0 Fonts · 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Header
            · 6 Hero · 7 Sections · 8 Forms · 9 Footer · 10 Motion
   ========================================================================== */

/* 0 · Fonts (self-hosted variable fonts) --------------------------------- */
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('../fonts/plus-jakarta-sans.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f5ff;            /* alternate section tint */
  --ink: #0e1236;                /* headings */
  --text: #3d4468;               /* body copy */
  --muted: #6b7399;
  --border: #e3e6f8;
  --brand: #1b00fb;              /* Qubits blue (from the logo) */
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --navy: #0b1030;               /* dark sections + footer */
  --grad: linear-gradient(120deg, #1b00fb 0%, #7c3aed 55%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #f6f0ff 50%, #e9fbff 100%);
  --radius: 22px;
  --shadow-sm: 0 4px 16px -6px rgba(27, 0, 251, .15);
  --shadow: 0 24px 60px -24px rgba(27, 0, 251, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  --container: 1200px;
  --header-h: 76px;
}

/* 2 · Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.75 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* 3 · Layout ------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(2.5rem, 5vw, 4.25rem); position: relative; }
.section--alt { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #c9cff0; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: #fff; }
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.2rem; }

/* 4 · Components --------------------------------------------------------- */
.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite alternate; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 1rem; border-radius: 99px; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); animation: pulse 2s ease-in-out infinite; }

.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading.center { margin-inline: auto; }
.section-heading p { font-size: 1.1rem; }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.8rem; border-radius: 99px;
  border: 1px solid transparent; cursor: pointer; font: 700 .95rem var(--font); color: #fff; transition: transform .25s, box-shadow .25s, background-position .4s; }
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--grad); background-size: 160% 100%; box-shadow: 0 14px 30px -10px rgba(27, 0, 251, .6); }
.btn--primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn--primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 20px 40px -12px rgba(27, 0, 251, .65); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: .6rem 1.3rem; font-size: .88rem; }

.card { position: relative; padding: 2rem; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s, border-color .35s; }
.card::before { /* cursor-following glow, driven by --mx/--my from app.js */
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 58, 237, .12), transparent 60%); }
a.card:hover, .card--hover:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(124, 58, 237, .4); }
a.card:hover::before, .card--hover:hover::before { opacity: 1; }
.card h3 { margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }

.icon-box { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.3rem; border-radius: 17px; background: var(--grad); color: #fff;
  box-shadow: 0 12px 24px -10px rgba(27, 0, 251, .6); transition: transform .35s; }
.card:hover .icon-box { transform: rotate(-6deg) scale(1.08); }
.icon-box svg { width: 26px; height: 26px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brand); margin-top: .8rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s; }
a.card:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(5px); }

.checklist li { display: flex; gap: .75rem; padding: .5rem 0; color: var(--ink); font-weight: 500; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--grad); color: #fff; }

.pills { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.75rem; color: var(--muted); }
.pills--left { justify-content: flex-start; margin-top: 1.5rem; }
.pills em { font-style: normal; padding: .35rem .95rem; border-radius: 99px; border: 1px solid var(--border); background: #fff; color: var(--brand); font-size: .86rem; font-weight: 600; }

/* 5 · Header & navigation ------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s; }
.site-header.is-stuck { background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); box-shadow: 0 6px 30px -12px rgba(27, 0, 251, .25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo img { height: 46px; width: auto; transition: transform .3s; }
.logo:hover img { transform: scale(1.05); }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav > li { position: relative; }
.nav a.nav-link { display: block; padding: .6rem 1.05rem; border-radius: 99px; font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .2s, background .2s; }
.nav a.nav-link:hover, .nav a.nav-link.is-active { color: var(--brand); background: rgba(27, 0, 251, .07); }
.mega { position: absolute; top: 100%; left: 50%; width: min(900px, 94vw); padding: 0; overflow: hidden; transform: translate(-50%, 14px); opacity: 0; visibility: hidden; transition: .25s;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(27, 0, 251, .4); }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* Balanced 3-column flow: groups never split across columns */
.mega-cols { column-count: 3; column-gap: 1.5rem; padding: 1.6rem 1.6rem 1rem; }
.mega-group { break-inside: avoid; margin-bottom: 1.2rem; }
.mega-group h4 { margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid transparent; border-image: var(--grad) 1; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.mega-group a { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem; border-radius: 12px; font-size: .9rem; font-weight: 500; color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.mega-group a:hover { background: var(--bg-soft); color: var(--brand); transform: translateX(3px); }
.mega-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(27, 0, 251, .08); color: var(--brand); transition: background .2s, color .2s; }
.mega-ico svg { width: 16px; height: 16px; }
.mega-group a:hover .mega-ico { background: var(--grad); color: #fff; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.6rem; background: var(--grad-soft); border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); }
.mega-foot .link-arrow { margin: 0; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; margin: auto; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-wrap { position: fixed; inset: var(--header-h) 0 0 0; padding: 1.5rem; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .3s; }
  .nav-open .nav-wrap { transform: none; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav a.nav-link { font-size: 1.15rem; padding: .9rem 1rem; }
  .mega { position: static; transform: none; opacity: 1; visibility: visible; width: auto; border: 0; box-shadow: none; }
  .mega-cols { column-count: 1; padding: 0 0 0 .5rem; }
  .mega-foot { display: none; }
  .header-cta { display: none; }
}

/* 6 · Hero --------------------------------------------------------------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; background: var(--grad-soft); }
.hero--page { padding-top: calc(var(--header-h) + 1rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before, .hero-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-bg::before { width: 520px; height: 520px; top: -160px; right: -80px; background: #8f7bff; animation: drift 14s ease-in-out infinite alternate; }
.hero-bg::after { width: 460px; height: 460px; bottom: -180px; left: -100px; background: #5fe3f5; animation: drift 17s ease-in-out infinite alternate-reverse; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin: 1rem 0 1rem; max-width: 17ch; }
.hero--page h1 { margin-top: .4rem; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 64ch; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumb a:hover { color: var(--brand); }
.hero-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.5rem; font-size: .9rem; color: var(--ink); font-weight: 500; }
.trust li { display: flex; align-items: center; gap: .4rem; }
.trust svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--grad); color: #fff; }

/* Hero visual: photo in a gradient frame with floating chips */
.hero-visual { position: relative; max-width: 480px; width: 100%; margin-inline: auto; padding: 1rem; }
.photo-frame { position: relative; border-radius: 32px; padding: 8px; background: var(--grad); box-shadow: var(--shadow); animation: float 8s ease-in-out infinite; }
.photo-frame img { width: 100%; object-fit: cover; border-radius: 26px; aspect-ratio: 4 / 3.6; }
.chip { position: absolute; display: flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border-radius: 16px; font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); box-shadow: 0 18px 40px -14px rgba(27, 0, 251, .45); animation: float 6s ease-in-out infinite; }
.chip svg { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--grad); color: #fff; }
.chip--a { top: 2%; left: -4%; } .chip--b { top: 42%; right: -5%; animation-delay: -2s; } .chip--c { bottom: 4%; left: 4%; animation-delay: -4s; }
@media (max-width: 600px) { .chip--a { left: 0; } .chip--b { right: 0; } .hero-visual { padding: 1rem; } }

/* Marquee (tech stack) */
.marquee { overflow: hidden; background: #fff; border-block: 1px solid var(--border); padding: 1.3rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3.5rem; animation: marquee 34s linear infinite; }
.marquee span { font: 800 1.35rem var(--font-display); color: #b7bcdb; white-space: nowrap; transition: color .3s; }
.marquee span:hover { color: var(--brand); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* 7 · Sections ----------------------------------------------------------- */
/* Bento services grid */
.bento { display: grid; gap: 1.6rem; grid-template-columns: repeat(3, 1fr); }
.bento-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.8rem; color: #dfe3ff;
  background: radial-gradient(90% 90% at 100% 0%, rgba(124, 58, 237, .65), transparent 70%), var(--navy); border: 0; }
.bento-lg h3 { font-size: 1.9rem; color: #fff; }
.bento-lg .link-arrow { color: #9be9f7; }
.bento-lg .icon-box { background: rgba(255, 255, 255, .15); box-shadow: none; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento-lg { grid-column: auto; grid-row: auto; padding: 2rem; } }

/* Stats (on dark band) */
.stat { text-align: center; padding: 2.2rem 1rem; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.stat strong { display: block; font: 800 clamp(2.6rem, 5vw, 3.8rem)/1 var(--font-display); }
.stat span { color: #b4bce6; font-size: .95rem; }
.section--dark .grad-text { background-image: linear-gradient(120deg, #9d8cff, #5fe3f5); }
.section--dark::before { content: ''; position: absolute; width: 600px; height: 600px; top: -300px; right: -150px; border-radius: 50%; background: rgba(124, 58, 237, .35); filter: blur(90px); animation: drift 16s ease-in-out infinite alternate; }
.section--dark .container { position: relative; }

/* Split section: image + text */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr 1fr; }
.split-img { position: relative; }
.split-img img { width: 100%; border-radius: 28px; aspect-ratio: 4 / 4.4; object-fit: cover; box-shadow: var(--shadow); }
.split-img::before { content: ''; position: absolute; inset: 8% -5% -5% 8%; border-radius: 32px; background: var(--grad); z-index: -1; opacity: .85; }
.split-img .chip { right: -3%; bottom: 8%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-img { max-width: 440px; margin-inline: auto; } }

/* CEO message */
.ceo-photo { margin: 0; }
.ceo-photo img { aspect-ratio: 4 / 5; object-position: center top; background: #fff; }
.ceo-photo .chip { left: 6%; right: auto; bottom: 5%; }
.ceo-quote { position: relative; margin: 0 0 1.5rem; padding: .25rem 0 .25rem 1.6rem; border-left: 4px solid transparent; border-image: linear-gradient(180deg, #1b00fb, #7c3aed 60%, #06b6d4) 1; }
.ceo-quote p { font-size: 1.08rem; line-height: 1.8; }
.ceo-quote p:first-child::first-letter { font: 800 1.15em var(--font-display); color: var(--brand); }
.ceo-sign { display: flex; flex-direction: column; gap: .15rem; }
.ceo-sign strong { font: 800 1.35rem/1.2 var(--font-display); color: var(--ink); }
.ceo-sign span { color: var(--muted); font-weight: 500; }
/* Beats the generic mobile 4:3 split-img crop (it cut the face); badge sits on the suit, not the face. */
@media (max-width: 900px) { .split-img.ceo-photo img { aspect-ratio: 4 / 5; } .ceo-photo { max-width: 360px; } .ceo-photo .chip { left: 50%; right: auto; bottom: 3%; transform: translateX(-50%); animation: none; } }
@media (max-width: 600px) { .ceo-quote { padding-left: 1.1rem; } .ceo-quote p { font-size: 1rem; } }

.step-no { position: absolute; top: 1rem; right: 1.4rem; font: 800 3.4rem/1 var(--font-display); color: rgba(27, 0, 251, .07); }

/* CTA band */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 6vw, 5rem) 1.5rem; border-radius: 34px; color: #e6e9ff;
  background: radial-gradient(70% 140% at 0% 0%, #4a2cff 0%, transparent 60%), radial-gradient(70% 140% at 100% 100%, #06b6d4 0%, transparent 60%), var(--brand-2); box-shadow: var(--shadow); }
.cta h2 { color: #fff; }
.cta p { max-width: 56ch; margin-inline: auto; font-size: 1.1rem; color: #e6e9ff; }
.cta .btn--primary { background: #fff; color: var(--brand); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); }

/* FAQ accordion */
.faq details { border: 1px solid var(--border); border-radius: 18px; background: #fff; margin-bottom: .9rem; box-shadow: var(--shadow-sm); transition: box-shadow .25s, border-color .25s; }
.faq details[open] { border-color: rgba(124, 58, 237, .45); box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; transition: transform .3s; transform: rotate(90deg); color: var(--brand); }
.faq details[open] summary svg { transform: rotate(-90deg); }
.faq p { padding: 0 1.4rem 1.2rem; margin: 0; }

.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose li { list-style: disc; margin-left: 1.3rem; padding: .15rem 0; }
.prose a { color: var(--brand); font-weight: 600; }

/* 8 · Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { width: 100%; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(124, 58, 237, .15); }
.field .error { color: #e11d48; font-size: .82rem; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; } /* honeypot */
.flash { padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.5rem; border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; font-weight: 500; }
.flash.flash-error { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.flash-error ul { margin: .4rem 0 0; padding-left: 1.2rem; font-weight: 400; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.contact-list li { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; color: var(--ink); font-weight: 500; }
.contact-list .icon-box { margin: 0; flex: none; width: 48px; height: 48px; }
.contact-list small { display: block; color: var(--muted); font-weight: 400; }

/* 9 · Footer ------------------------------------------------------------- */
.site-footer { padding: 3rem 0 1.5rem; background: var(--navy); color: #aab2dc; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.site-footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-footer li a { display: block; padding: .25rem 0; transition: color .2s, transform .2s; }
.site-footer li a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: .25s; }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-4px); }
.socials svg { width: 18px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 10 · Motion ------------------------------------------------------------ */
/* Reveal only hides content when JS is running (boot.js adds .js), so the page never stays blank. */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }
@keyframes drift { to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes shimmer { to { background-position: 100% 0; } }
/* Reduced-motion users keep gentle fade-ins but lose the continuous loops. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .photo-frame, .chip, .hero-bg::before, .hero-bg::after, .section--dark::before, .grad-text, .eyebrow::before { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Featured (large) bento card: watermark icon + feature list so the tall card is never empty */
.bento-lg { justify-content: center; }
.bento-mark { position: absolute; top: -30px; right: -30px; width: 260px; height: 260px; color: rgba(255, 255, 255, .07); stroke-width: 1; pointer-events: none; }
.bento-list { margin: 1rem 0 .5rem; }
.bento-list li { display: flex; gap: .6rem; padding: .35rem 0; color: #e8ebff; font-weight: 500; }
.bento-list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--grad); color: #fff; }

/* Floating pill header once the page scrolls */
.site-header .container { transition: background .3s, box-shadow .3s, padding .3s, border-radius .3s; }
.site-header.is-stuck { background: transparent; box-shadow: none; backdrop-filter: none; }
.site-header.is-stuck .container { width: min(100% - 1.5rem, 1180px); padding: .45rem 1.2rem; border-radius: 99px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px -14px rgba(27, 0, 251, .35); border: 1px solid var(--border); }
.site-header.is-stuck .logo img { height: 38px; width: auto; }

/* Always-floating pill header (overrides the scroll-only version above) */
.site-header { inset: 14px 0 auto; height: auto; }
.site-header .container { width: min(100% - 1.5rem, 1180px); padding: .5rem .6rem .5rem 1.3rem; border-radius: 99px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(18px);
  border: 1px solid #fff; box-shadow: 0 12px 40px -18px rgba(27, 0, 251, .35), 0 0 0 1px var(--border); }
.site-header.is-stuck .container { padding: .4rem .6rem .4rem 1.2rem; background: rgba(255, 255, 255, .95); box-shadow: 0 18px 50px -16px rgba(27, 0, 251, .45), 0 0 0 1px var(--border); }
.site-header .logo img { height: 40px; }
.mega::before { content: ''; position: absolute; top: -26px; left: 0; right: 0; height: 26px; } /* hover bridge across the pill padding */
@media (max-width: 960px) { .site-header .container { padding-right: .5rem; } .nav-wrap { inset: 0; padding-top: calc(var(--header-h) + 1.5rem); z-index: -1; } }
@media (max-width: 900px) { .split-img img { aspect-ratio: 4 / 3; } }
@media (min-width: 601px) and (max-width: 900px) { .bento > :last-child { grid-column: 1 / -1; } } /* avoid an orphan card on tablets */
.hero-visual { max-width: 540px; }
.photo-frame img { aspect-ratio: 4 / 4; }

/* CTA band: breathing room above, so it never touches a dark section */
.section--cta { padding-top: clamp(2rem, 4vw, 3rem); }
.section--dark + .section--cta { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* Pill background lives on a pseudo-element: backdrop-filter on .container would trap the
   fixed mobile drawer inside the pill (it becomes the containing block for fixed children). */
.site-header .container, .site-header.is-stuck .container { position: relative; background: none; backdrop-filter: none; border: 0; box-shadow: none; }
.site-header .container::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 99px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(18px);
  border: 1px solid #fff; box-shadow: 0 12px 40px -18px rgba(27, 0, 251, .35), 0 0 0 1px var(--border); transition: background .3s, box-shadow .3s; }
.site-header.is-stuck .container::before { background: rgba(255, 255, 255, .95); box-shadow: 0 18px 50px -16px rgba(27, 0, 251, .45), 0 0 0 1px var(--border); }
@media (max-width: 960px) {
  .nav-wrap { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
  .nav-open .nav-wrap { visibility: visible; transition: transform .3s; }
  body.nav-open { overflow: hidden; } /* stop the page scrolling behind the open drawer */
}

/* Mobile drawer polish */
.drawer-cta { display: none; }
@media (max-width: 960px) {
  .nav { gap: .15rem; }
  .nav a.nav-link { font-size: 1.05rem; padding: .7rem 1rem; }
  .mega-cols { padding-top: .8rem; }
  .mega-group { margin-bottom: .8rem; }
  .drawer-cta { display: inline-flex; width: 100%; margin-top: 1.5rem; }
}

/* Mobile drawer starts below the header, so scrolling links never slide under the logo/toggle */
@media (max-width: 960px) {
  .nav-wrap { inset: var(--header-h) 0 0 0; padding: .5rem 1.5rem 2.5rem; border-top: 1px solid var(--border); }
  .nav-open .site-header { inset: 0 0 auto; padding-top: 14px; background: #fff; }
}

/* 11 · Photography ------------------------------------------------------- */
/* Service card photo header; the icon overlaps its bottom edge */
.card-photo { margin: -2rem -2rem 0; height: 180px; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
a.card:hover .card-photo img { transform: scale(1.08); }
.card-photo + .icon-box { position: relative; margin-top: -30px; border: 4px solid #fff; }

/* Featured bento card: photo as a dark, tinted backdrop */
.bento-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity; transition: transform .8s; }
a.bento-lg:hover .bento-bg { transform: scale(1.06); }
.bento-lg > *:not(.bento-bg) { position: relative; z-index: 1; }

/* Inner-page hero with photo */
.hero-split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero-photo { position: relative; padding: 6px; border-radius: 28px; background: var(--grad); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 1.5rem; } .hero-photo { max-width: 520px; } }

/* Photo inside the "what you get" column */
.wide-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Overlapping small photo on the home hero */
.photo-mini { position: absolute; left: -6%; bottom: -3%; width: 36%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 5px solid #fff; box-shadow: 0 20px 40px -14px rgba(27, 0, 251, .5); animation: float 7s ease-in-out infinite -3s; }
.chip--c { left: auto; right: 6%; bottom: -2%; }
@media (max-width: 600px) { .photo-mini { left: 0; width: 38%; } }

/* Full-width photo band */
.photo-band { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem); color: #e6e9ff; text-align: center; }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(11, 16, 48, .88), rgba(60, 20, 160, .72)); }
.photo-band .container { position: relative; z-index: 2; max-width: 760px; }
.photo-band h2 { color: #fff; }
.photo-band p { font-size: 1.15rem; margin-bottom: 1.5rem; }

/* CTA band: faint photo under the gradient */
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; mix-blend-mode: luminosity; }
.cta > *:not(.cta-bg) { position: relative; }
@media (max-width: 900px) { .hero-photo { margin-inline: auto; } }

/* 12 · Service hero details ---------------------------------------------- */
.eyebrow--icon { margin-bottom: .6rem; }
.eyebrow--icon svg { width: 16px; height: 16px; }
.eyebrow--icon::before { display: none; }
.hero--page h1 { margin-top: .8rem; }
/* Floating stat chips on the hero photo */
.chip--stat { align-items: center; gap: .75rem; padding: .7rem 1.1rem .7rem .8rem; border-radius: 18px; }
.chip--stat svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; }
.chip--stat strong { display: block; font: 800 1.15rem/1.1 var(--font-display); color: var(--ink); }
.chip--stat small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.hero-photo .chip--s1 { top: 10%; left: -9%; right: auto; bottom: auto; }
.hero-photo .chip--s2 { bottom: 8%; right: -6%; left: auto; top: auto; animation-delay: -3s; }
@media (max-width: 900px) { .hero-photo .chip--s1 { left: -2%; } .hero-photo .chip--s2 { right: -2%; } }
/* Connector line behind the process cards (desktop) */
.steps { position: relative; }
@media (min-width: 1000px) { .steps::before { content: ''; position: absolute; top: 58px; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: var(--grad); opacity: .35; } }

/* Two equal-height columns: the photo stretches to match the card beside it */
.balanced { align-items: stretch; }
.balanced .wide-photo { width: 100%; height: 100%; min-height: 260px; aspect-ratio: auto; object-fit: cover; }

/* 13 · Distinct Qubits layout: photo banners, centred hero + mosaic, line labels ---------------- */
/* Inner-page banner: full-bleed photo, deep overlay, slanted bottom edge */
.banner { position: relative; overflow: hidden; color: #dfe3ff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
  padding: calc(var(--header-h) + 3.5rem) 0 calc(3.2vw + 3rem); background: var(--navy); }
.banner--plain { background: radial-gradient(70% 120% at 100% 0%, #5b34e8 0%, transparent 60%), radial-gradient(60% 120% at 0% 100%, #0891b2 0%, transparent 60%), var(--navy); }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
.banner::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(8, 12, 40, .94) 0%, rgba(35, 18, 130, .82) 55%, rgba(124, 58, 237, .45) 100%); }
.banner-inner { position: relative; z-index: 2; max-width: 1200px; }
.banner h1 { color: #fff; max-width: 18ch; margin: .5rem 0 1rem; }
.banner .lead { max-width: 60ch; font-size: clamp(1.05rem, 2vw, 1.22rem); color: #dfe3ff; }
.banner .breadcrumb, .banner .breadcrumb a { color: #b9c0f0; }
.banner .breadcrumb a:hover { color: #fff; }
.banner .hero-actions { margin-top: 1.6rem; }
.banner .btn--ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; backdrop-filter: blur(6px); }
.banner .btn--ghost:hover { background: #fff; color: var(--brand); }
.banner-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.banner-tags li { padding: .4rem 1rem; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); font-size: .85rem; font-weight: 600; color: #fff; }
@keyframes kenburns { to { transform: scale(1.1) translate(-1.5%, -1%); } }
@media (max-width: 700px) { .banner { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%); padding-bottom: 3.5rem; } }
@media (prefers-reduced-motion: reduce) { .banner-bg { animation: none !important; } }


/* Section labels: a gradient dash and plain text instead of a bordered pill */
.eyebrow { padding: 0; background: none; border: 0; box-shadow: none; gap: .7rem; color: var(--brand-2); }
.eyebrow::before { width: 30px; height: 3px; border-radius: 3px; background: var(--grad); animation: none; }
.section-heading.center .eyebrow { justify-content: center; }
.section--dark .eyebrow, .photo-band .eyebrow { color: #9be9f7; }

/* 14 · Home hero: full-screen photo stage ---------------------------------------------------- */
.cine { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: min(100vh, 780px); padding: calc(var(--header-h) + 2.2rem) 0 .75rem; background: var(--navy); color: #dfe3ff; }
.cine-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.2s ease; }
.cine-bg.is-active { opacity: 1; animation: kenburns 10s ease-out forwards; }
.cine::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(8, 12, 40, .9) 0%, rgba(35, 18, 130, .55) 55%, rgba(124, 58, 237, .1) 100%), linear-gradient(0deg, rgba(8, 12, 40, .85) 0%, transparent 42%); }
.cine > .container { position: relative; z-index: 2; }
.cine-cards.container { margin-inline: auto; }
.cine-copy { max-width: 720px; }
.cine .btn--ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; backdrop-filter: none; }
.cine .btn--ghost:hover { background: #fff; color: var(--brand); }
.cine-cards { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 1rem; align-items: stretch; }
.cine-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem; border-radius: 22px; overflow: hidden; background: rgba(20, 16, 80, .55); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; transition: transform .35s, background .35s, border-color .35s; }
.cine-card::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #9be9f7, #fff); }
.cine-card > svg { width: 38px; height: 38px; padding: 9px; margin-bottom: .3rem; border-radius: 12px; background: var(--grad); }
.cine-card strong { font: 800 1.05rem var(--font-display); }
.cine-card span { font-size: .85rem; color: #d3d9f7; }
.cine-card:hover, .cine-card.is-active { transform: translateY(-6px); background: rgba(60, 40, 170, .7); border-color: rgba(255, 255, 255, .6); }
.cine-pause { align-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; backdrop-filter: blur(8px); }
.cine-pause:hover { background: #fff; color: var(--brand); }
.cine-pause span { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.cine-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-block: 8px solid transparent; }
@media (max-width: 900px) { .cine-cards { grid-template-columns: 1fr 1fr; } .cine-pause { display: none; } }
@media (max-width: 560px) { .cine { padding-top: calc(var(--header-h) + 1.4rem); } .cine-card { padding: .9rem; } .cine-card span { display: none; } .cine-card > svg { width: 32px; height: 32px; padding: 7px; } }
@keyframes kenburns { to { transform: scale(1.1) translate(-1.5%, -1%); } }

/* Phones: headline, text, service cards, then the two buttons side by side at the bottom */
@media (max-width: 700px) {
  .cine { justify-content: flex-start; gap: 0; padding-bottom: 1.5rem; min-height: 0; }
  .cine > .container:not(.cine-cards), .cine-copy { display: contents; } /* children join the .cine flex column so they can be re-ordered */
  .cine-cards { order: 4; margin-top: 1.4rem; }
  .cine .hero-actions { order: 5; flex-wrap: nowrap; gap: .7rem; margin: 1rem 1.25rem 0; }
  .cine .hero-actions .btn { flex: 1; padding: .85rem .5rem; font-size: .9rem; }
  .cine .hero-actions .btn svg { display: none; }
}
@media (max-width: 700px) { .cine .hero-actions { position: relative; z-index: 2; } } /* display:contents drops the container's own stacking, so lift them above the photo overlay */

/* Hero texts: one grid cell, cross-fade with the photo */
.cine-slides { display: grid; }
.cine-text { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; pointer-events: none; }
.cine-text.is-active { opacity: 1; transform: none; transition-delay: .35s; pointer-events: auto; }
.cine .eyebrow { color: #9be9f7; }
.cine-title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.5rem); max-width: 18ch; margin: .8rem 0 1rem; }
.cine .lead { max-width: 54ch; font-size: clamp(1rem, 1.7vw, 1.2rem); color: #dfe3ff; margin-bottom: 0; }
.cine .hero-actions { margin-top: 1.6rem; }
@media (max-width: 700px) {
  .cine-slides { order: 2; margin-inline: 1.25rem; position: relative; z-index: 2; }
  .cine-title { font-size: 2rem; margin-bottom: .8rem; }
  .cine .lead { font-size: .98rem; }
  .cine .hero-actions { margin-top: 1rem; }
}
.field input.invalid, .field textarea.invalid { border-color: #e11d48; background: #fff5f7; }
.field .error[hidden] { display: none; }
.captcha-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha-row img { border-radius: 10px; border: 1px solid var(--border); display: block; }
.captcha-row input { flex: 1 1 140px; width: auto; text-transform: uppercase; letter-spacing: .25em; font-weight: 700; }
.captcha-refresh { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.captcha-refresh:hover { border-color: var(--brand-2); }

/* Portfolio ---------------------------------------------------------------- */
.tag { display: inline-block; margin-bottom: .7rem; padding: .25rem .8rem; border-radius: 99px; background: var(--bg-soft); color: var(--brand); font-size: .78rem; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.filters button { padding: .55rem 1.2rem; border-radius: 99px; border: 1px solid var(--border); background: #fff; color: var(--ink); font: 600 .9rem var(--font); cursor: pointer; transition: .25s; }
.filters button:hover { border-color: var(--brand); color: var(--brand); }
.filters button.is-active { background: var(--grad); border-color: transparent; color: #fff; }
.project-card[hidden] { display: none; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); }
.quote blockquote::before { content: '\201C'; display: block; font: 800 3rem/1 var(--font-display); color: var(--brand-2); }
.quote figcaption { margin-top: auto; }
.quote figcaption strong, .quote figcaption span { display: block; }
.quote figcaption span { color: var(--muted); font-size: .88rem; }
.tag + .tag { margin-left: .4rem; }
.tag--app { background: var(--grad); color: #fff; }
.project-type { margin-bottom: .4rem; color: var(--brand); font-size: .85rem; font-weight: 600; }
.mobile-card { background: var(--grad-soft); }
.checklist--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 2rem; }
.card-photo + .tag { margin-top: 1.1rem; }
.section--flush-bottom { padding-bottom: clamp(1rem, 2.5vw, 2rem); }
.section--flush-bottom + .section--alt { padding-top: clamp(2.5rem, 5vw, 4.25rem); }

/* Project showcase: browser + phone frames, and the labelled illustration for projects without screenshots */
.showcase { display: grid; gap: 1.4rem; margin-top: 1.4rem; align-items: center; }
.showcase--duo { grid-template-columns: minmax(0, 1fr) minmax(0, 230px); }
.frame { margin: 0; }
.frame figcaption { margin-top: .7rem; font-size: .84rem; color: var(--muted, #5b6089); text-align: center; }
.frame-bar { display: flex; align-items: center; gap: .4rem; padding: .65rem 1rem; background: #eef0fb; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9cdea; }
.frame-bar span { margin-left: .6rem; flex: 1; padding: .2rem .8rem; border-radius: 99px; background: #fff; font-size: .78rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame > img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.frame--phone { max-width: 230px; margin-inline: auto; }
.phone { padding: 9px; border-radius: 30px; background: var(--ink); box-shadow: var(--shadow); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 22px; }
.frame-mock { display: grid; grid-template-columns: minmax(120px, 28%) 1fr; min-height: 300px; background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.frame-mock nav { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; background: var(--ink); }
.frame-mock nav strong { color: #fff; margin-bottom: .6rem; font-size: .95rem; }
.frame-mock nav span { padding: .4rem .6rem; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #d9dcff; font-size: .78rem; }
.frame-mock-body { display: grid; align-content: start; gap: .8rem; padding: 1.4rem; }
.sk { border-radius: 8px; background: #e8eaf8; }
.sk--title { height: 22px; width: 45%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.sk--tile { height: 70px; background: var(--grad-soft, #eef0fb); }
.sk--line { height: 12px; }
.sk--short { width: 60%; }
@media (max-width: 720px) {
  .showcase--duo { grid-template-columns: 1fr; }
  .frame-mock { grid-template-columns: 1fr; }
  .frame-mock nav { flex-direction: row; flex-wrap: wrap; }
  .frame-mock nav strong { width: 100%; margin-bottom: .2rem; }
  .sk-row { grid-template-columns: 1fr 1fr; }
  .sk-row .sk--tile:last-child { display: none; }
}

.facts { margin: 0 0 1.2rem; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.facts a { color: var(--brand); }
.frame > video { display: block; width: 100%; height: auto; background: #000; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }

/* Demo video extras: chapter jump list, sample-data note, card badge */
.video-extras{margin-top:1.2rem;display:flex;flex-direction:column;gap:.9rem;align-items:flex-start}
.chapters{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.chapters strong{font-size:.85rem;opacity:.7;margin-right:.3rem}
.chapters button{font:inherit;font-size:.85rem;padding:.35rem .8rem;border-radius:99px;border:1px solid var(--border,rgba(0,0,0,.15));background:transparent;color:inherit;cursor:pointer}
.chapters button:hover{border-color:currentColor}
.video-note{display:flex;gap:.5rem;align-items:center;font-size:.9rem;opacity:.8;margin:0}
.video-note svg{flex:none;width:1.1em;height:1.1em}
.card-photo{position:relative}
.video-badge{position:absolute;left:.7rem;bottom:.7rem;display:inline-flex;gap:.35rem;align-items:center;padding:.3rem .7rem;border-radius:99px;background:rgba(17,24,39,.85);color:#fff;font-size:.78rem;font-weight:600}
.video-badge svg{width:.8em;height:.8em}
