/* ============================================================
   Cincee, Apple-style minimal
   Light, crisp, premium. Readability first. One pink accent.
   ============================================================ */

:root {
  --ink: #1B1A1D;
  --ink-soft: #5A5560;
  --ink-faint: #8a8590;
  --bg: #ffffff;
  --grey: #FFF4F8;
  --grey-line: #f0dfe7;
  --pink: #EC4E86;
  --pink-soft: #FDEEF4;
  --pink-surface: #FFF4F8;
  --pink-deep: #C8366B;
  --maxw: 1080px;
  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Themeable nav / accent tokens (morph for the Runit takeover) */
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: rgba(0, 0, 0, 0.06);
  --nav-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255,255,255,.6) inset;
  --nav-ink: #5A5560;
  --nav-ink-strong: #1B1A1D;
  --nav-brand: #EC4E86;
  --nav-accent: #EC4E86;
  --nav-accent-deep: #C8366B;
  --nav-cta-ink: #ffffff;
  --nav-hover-bg: rgba(0,0,0,.05);
}

/* theme-runit is disabled - these rules are inert but kept for reference */
html.theme-runit {
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: rgba(0, 0, 0, 0.06);
  --nav-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255,255,255,.6) inset;
  --nav-ink: #5A5560;
  --nav-ink-strong: #1B1A1D;
  --nav-brand: #EC4E86;
  --nav-accent: #EC4E86;
  --nav-accent-deep: #C8366B;
  --nav-cta-ink: #ffffff;
  --nav-hover-bg: rgba(0,0,0,.05);
}
html.theme-runit body { background: #ffffff; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Slim top utility bar (See Web Development) ---------- */
.topbar {
  position: relative; z-index: 101;
  background: linear-gradient(90deg, #C8366B 0%, #EC4E86 100%);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 42px; padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap; text-align: center;
}
.topbar-text { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.92); }
.topbar-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.topbar-link svg { transition: transform .25s var(--ease); }
@media (hover: hover) {
  .topbar-link:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
  .topbar-link:hover svg { transform: translate(2px, -2px); }
}
@media (max-width: 520px) {
  .topbar-text { display: none; }
  .topbar-inner { min-height: 38px; }
}

/* ---------- Dynamic Island nav ---------- */
/* At the very top the island sits just below the slim topbar; once scrolling
   begins the topbar slides away and the island floats up to 14px. */
.island-wrap {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0)); left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  transition: top .4s var(--ease);
}
.island-wrap.lifted { top: calc(14px + env(safe-area-inset-top, 0)); }
.island {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  box-shadow: var(--nav-shadow);
  transition: box-shadow .5s var(--ease), transform .4s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
  max-width: calc(100vw - 32px);
}
.island.scrolled { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14); }
html.theme-runit .island.scrolled { box-shadow: 0 14px 44px rgba(0, 0, 0, 0.14); }
.island.accent-web { border-color: rgba(236, 78, 134, 0.28); }

.island-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.02em; padding-right: 4px; color: var(--nav-brand); transition: color .5s var(--ease); }
.island-logo { display: inline-flex; color: var(--nav-brand); transition: color .5s var(--ease); }
.island-name { font-size: 17px; color: var(--nav-ink-strong); transition: color .5s var(--ease); position: relative; display: inline-flex; }
/* Wordmark + logo swap during the Runit takeover */
.island-name-cincee, .island-name-runit { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.island-name-runit { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(6px); }
.island-logo-runit { display: none; }
html.theme-runit .island-name-cincee { opacity: 0; transform: translateY(-6px); }
html.theme-runit .island-name-runit { opacity: 1; transform: none; }
html.theme-runit .island-logo-cincee { display: none; }
html.theme-runit .island-logo-runit { display: inline-flex; }

.island-links { display: flex; align-items: center; gap: 2px; }
.island-link {
  font-size: 14px; font-weight: 500; color: var(--nav-ink);
  padding: 9px 14px; border-radius: 999px; min-height: 38px;
  display: inline-flex; align-items: center;
  transition: color .35s var(--ease), background .35s var(--ease);
  white-space: nowrap;
}
.island-cta {
  font-size: 14px; font-weight: 600; color: var(--nav-cta-ink);
  background: var(--nav-accent);
  padding: 10px 18px; border-radius: 999px; min-height: 40px;
  display: inline-flex; align-items: center; white-space: nowrap;
  transition: transform .25s var(--ease), background .4s var(--ease), box-shadow .25s var(--ease), color .4s var(--ease);
}
.island-toggle {
  display: none; flex-direction: column; gap: 4px; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 999px;
}
.island-toggle span { display: block; width: 19px; height: 2px; background: var(--nav-ink-strong); border-radius: 2px; margin: 0 auto; transition: transform .3s var(--ease), opacity .3s var(--ease), background .4s var(--ease); }
.island.open .island-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.island.open .island-toggle span:nth-child(2) { opacity: 0; }
.island.open .island-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (hover: hover) {
  .island:hover { box-shadow: 0 14px 44px rgba(0,0,0,.16); }
  .island-link:hover { color: var(--nav-ink-strong); background: var(--nav-hover-bg); }
  .island.accent-web .island-link:hover { color: var(--pink-deep); background: var(--pink-soft); }
  .island-cta:hover { background: var(--nav-accent-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(236,78,134,.35); }
  html.theme-runit .island-cta:hover { box-shadow: 0 8px 20px rgba(236,78,134,.35); }
  .island-brand:hover .island-name { color: var(--nav-accent); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px; line-height: 1;
  padding: 16px 28px; border-radius: 999px; min-height: 52px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--pink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--grey-line); }
.btn-block { width: 100%; }

@media (hover: hover) {
  .btn-primary:hover { background: var(--pink-deep); box-shadow: 0 12px 30px rgba(236,78,134,.32); }
  .btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 15px; font-weight: 600; color: var(--pink);
  letter-spacing: 0.02em; margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.section-h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.03em;
  margin: 0 0 18px; color: var(--ink);
}
.section-h2.center { text-align: center; }

.lead {
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5; color: var(--ink-soft); margin: 0 auto;
  font-weight: 400;
}
.lead.center { text-align: center; max-width: 680px; }
.sub-lead { margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 132px) 0; }
.section-grey { background: var(--grey); }

/* Slim differentiator line */
.section-slim { padding: clamp(40px, 7vw, 72px) 0; }
.slim-line {
  text-align: center; margin: 0;
  font-size: clamp(20px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(140px, 20vw, 220px) 0 clamp(72px, 10vw, 120px);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(236,78,134,.10), rgba(236,78,134,0) 70%),
    var(--bg);
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.hero-h1 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.03; font-weight: 800; letter-spacing: -0.04em;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #1B1A1D 0%, #3a373d 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.45; color: var(--ink-soft); margin: 0 auto 34px; max-width: 660px;
  font-weight: 400;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-webdev { margin: 0 0 24px; }
.hero-webdev-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: var(--pink-deep);
  border-bottom: 1.5px solid transparent; padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.hero-webdev-link svg { transition: transform .25s var(--ease); }
@media (hover: hover) {
  .hero-webdev-link:hover { color: var(--pink); border-color: var(--pink); gap: 9px; }
  .hero-webdev-link:hover svg { transform: translate(2px, -2px); }
}
.hero-proof { font-size: 15px; color: var(--ink-faint); font-weight: 500; margin: 0; }

/* ---------- Client marquee (top, seamless infinite loop) ---------- */
.proofbar { background: var(--bg); padding: 22px 0 24px; border-top: 1px solid var(--grey-line); border-bottom: 1px solid var(--grey-line); overflow: hidden; }
.proofbar-label {
  text-align: center; margin: 0 0 14px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pink);
}
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* Two identical halves; translating by exactly -50% wraps with no gap or jump. */
.marquee-track { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; animation: scroll-x 46s linear infinite; will-change: transform; }
.marquee-track span { font-size: 17px; font-weight: 600; color: var(--ink-faint); }
.marquee-track .dot { color: var(--pink); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (hover: hover) { .proofbar:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; transform: none; } }

/* ---------- Card grids ---------- */
.cards-4 { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }

.service-card {
  background: var(--bg); border: 1px solid var(--grey-line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.section-grey .service-card { background: #fff; }
.service-card h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.02em; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(200,54,107,.10); border-color: transparent; }
}

/* ---------- Video grid ---------- */
.video-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.video-card { display: flex; flex-direction: column; }
.video-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
  border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); background: #1B1A1D; box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s var(--ease); }
.video-thumb.tiktok { aspect-ratio: 9 / 14; max-height: 460px; }
.tiktok-art {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #25f4ee 0%, #1B1A1D 45%, #fe2c55 100%);
  display: flex; align-items: center; justify-content: center;
}
.tiktok-art.alt { background: linear-gradient(150deg, #fe2c55 0%, #1B1A1D 50%, #25f4ee 100%); }
.tiktok-note { width: 48px; height: 48px; border-radius: 50%; border: 6px solid rgba(255,255,255,.9); box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.play-badge::after {
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink);
}
.local-ph { position: absolute; left: 12px; bottom: 12px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 999px; display: none; }
.video-meta { display: flex; align-items: center; gap: 10px; padding: 16px 4px 0; }
.video-tag { font-size: 12px; font-weight: 700; color: var(--pink); background: var(--pink-soft); padding: 4px 10px; border-radius: 999px; }
.video-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (hover: hover) {
  .video-thumb:hover img { transform: scale(1.05); }
  .video-thumb:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
}

/* ---------- Web dev ---------- */
.webdev-hero { text-align: center; }
.center-cta { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Portfolio ---------- */
.filterbar { display: flex; gap: 8px; justify-content: center; margin: 44px 0 36px; flex-wrap: wrap; }
.filter-btn {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--grey-line); border-radius: 999px;
  padding: 11px 22px; min-height: 44px; cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.filter-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) {
  .filter-btn:hover { transform: translateY(-1px); border-color: var(--ink); }
  .filter-btn.is-active:hover { background: #000; }
}

.portfolio-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.pcard {
  background: #fff; border: 1px solid var(--grey-line); border-radius: var(--radius-lg);
  padding: 28px 26px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  opacity: 0; transform: translateY(14px); animation: pcard-in .5s var(--ease) forwards;
}
@keyframes pcard-in { to { opacity: 1; transform: none; } }
.pcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pcard h3 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.pcard-niche { font-size: 13px; font-weight: 500; color: var(--ink-faint); text-transform: capitalize; }
.pcard-before {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--grey); border-radius: 999px; padding: 5px 12px; margin: 4px 0 14px;
}
.pcard-before::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.pcard-before.is-none::before { background: #c0392b; }
.pcard-before.is-social::before { background: #2d7ef7; }
.pcard-before.is-site::before { background: var(--pink); }
.pcard-before a { text-decoration: underline; text-underline-offset: 2px; }
.pcard p.pcard-sum { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 22px; flex: 1; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: #fff; background: var(--pink);
  padding: 11px 18px; border-radius: 999px; min-height: 44px;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pcard-live svg { transition: transform .25s var(--ease); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.5); } 70% { box-shadow: 0 0 0 7px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(200,54,107,.11); border-color: transparent; }
  .pcard-live:hover { background: var(--pink-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(236,78,134,.32); }
  .pcard-live:hover svg { transform: translate(2px, -2px); }
}
.loadmore-wrap { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 560px; margin: 48px auto 0; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.opt { color: var(--ink-faint); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; font-family: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1px solid var(--grey-line); border-radius: 14px;
  padding: 15px 16px; min-height: 52px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; }
.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1px solid var(--grey-line); border-radius: 14px;
  padding: 15px 16px; min-height: 52px; cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.radio input { width: 19px; height: 19px; accent-color: var(--pink); }
.radio:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
@media (hover: hover) { .radio:hover { border-color: var(--ink-faint); } }
.contact-form [data-netlify-recaptcha] { margin: 6px 0 22px; }
.form-note { margin: 18px 0 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--pink-deep); }
.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--grey-line); padding: 56px 0 48px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-size: 15px; color: var(--ink-soft); transition: color .25s var(--ease); display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .footer-links a:hover { color: var(--pink); } }
.footer-copy { font-size: 14px; color: var(--ink-faint); margin: 0; }
.footer-copy a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal on scroll ----------
   GUARANTEED-VISIBLE BY DEFAULT. Reveal elements are fully visible unless JS
   has run and added `reveal-ready` to <html>. That means: no JS, JS error,
   no IntersectionObserver, or reduced motion all leave content solid. Only
   when the observer is wired do we hide them for the entrance animation, and
   a JS safety timeout removes `reveal-ready` if anything is left behind.

   Motion language: elements settle in from a little depth (rise + soft scale)
   on a premium ease, and grouped siblings cascade via a per-element
   --rv-delay set in JS, so sections assemble themselves rather than popping. */
.reveal { opacity: 1; transform: none; }
html.reveal-ready .reveal {
  opacity: 0; transform: translate3d(0, 34px, 0) scale(.965);
  transition: opacity .85s var(--ease), transform .95s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
/* Above-the-fold elements revealed on load settle quickly so the page reads as
   solid almost immediately, while still assembling rather than hard-cutting. */
html.reveal-ready .reveal.reveal-now { transition-duration: .5s, .55s; }

/* Staggered assembly of a container's own children (used on the hero so the
   headline, sub, buttons and proof line build in one after another). The
   container itself does not move; only its direct children cascade. */
html.reveal-ready .reveal[data-rv-stagger] { opacity: 1; transform: none; }
html.reveal-ready .reveal[data-rv-stagger] > * {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .72s var(--ease), transform .82s var(--ease);
}
html.reveal-ready .reveal[data-rv-stagger].in > * { opacity: 1; transform: none; }
html.reveal-ready .reveal[data-rv-stagger].in > *:nth-child(1) { transition-delay: .04s; }
html.reveal-ready .reveal[data-rv-stagger].in > *:nth-child(2) { transition-delay: .12s; }
html.reveal-ready .reveal[data-rv-stagger].in > *:nth-child(3) { transition-delay: .20s; }
html.reveal-ready .reveal[data-rv-stagger].in > *:nth-child(4) { transition-delay: .28s; }
html.reveal-ready .reveal[data-rv-stagger].in > *:nth-child(5) { transition-delay: .36s; }
html.reveal-ready .reveal[data-rv-stagger].in > *:nth-child(6) { transition-delay: .44s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, html.reveal-ready .reveal,
  html.reveal-ready .reveal[data-rv-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Local / offline mode ---------- */
.is-local .video-thumb img { display: none; }
.is-local .local-ph { display: block; }
.is-local .video-thumb { background: linear-gradient(150deg, #2a2a2e, #444); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .island-links { display: none; }
  .island-toggle { display: flex; }
  .island.open { border-radius: 26px; flex-direction: column; align-items: stretch; padding: 12px; gap: 6px; }
  .island.open .island-brand { padding: 6px 8px; justify-content: space-between; }
  .island.open .island-toggle { position: absolute; top: 10px; right: 10px; }
  .island.open .island-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .island.open .island-link { font-size: 16px; padding: 13px 16px; min-height: 48px; }
  .island.open .island-cta { justify-content: center; margin-top: 4px; padding: 14px; min-height: 50px; }
}
@media (max-width: 760px) {
  .video-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .video-thumb.tiktok { aspect-ratio: 16 / 10; max-height: none; }
}
@media (max-width: 520px) {
  .cards-4 { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
