/* Homepage styles. Loaded after /style.css on every page, so every selector here starts with .home- */

/* ---------- Base rhythm ---------- */
.home-sec { padding-block: clamp(48px, 7vw, 88px); }
.home-white { background: var(--white); border-block: 1px solid var(--line); }
.home-tint { background: var(--accent-wash); border-block: 1px solid #e1e6ff; }
.home-ink { background: var(--ink); color: var(--white); }
.home-ink h2, .home-ink h3 { color: var(--white); }
.home-ink h2 em { color: var(--accent-light); }

.home-hero, .home-sec { --home-text: #3b4256; }
.home-sec p, .home-hero p { color: var(--home-text); }
.home-ink p { color: var(--body-dark); }

.home-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent) !important; }
.home-ink .home-label { color: var(--accent-light) !important; }
.home-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.home-head > div { display: flex; flex-direction: column; gap: 14px; }
.home-head h2 { font-size: clamp(30px, 4vw, 48px); max-width: 20ch; }
.home-head p:not(.home-label) { font-size: 17px; line-height: 1.6; max-width: 48ch; }
@media (min-width: 900px) {
  .home-head-row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
}

.home-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.home-icon svg { width: 22px; height: 22px; }
.home-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-hover); font-size: 13px; font-weight: 600; }
.home-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--white); color: var(--accent); font-size: 13px; font-weight: 600; }

/* ---------- Hero ---------- */
.home-hero { padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 72px); overflow: hidden; }
.home-hero-grid { display: grid; gap: 36px; align-items: center; }
.home-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.home-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.home-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #14a44d; }
.home-hero h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1; letter-spacing: -0.045em; max-width: 12ch; }
.home-hero h1 em { color: var(--accent); }
.home-lead { font-size: 18px; line-height: 1.6; max-width: 46ch; }
.home-hero .actions { width: 100%; }
.home-proofs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.home-proofs li { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink); }
.home-hero-art { min-width: 0; }
.home-sketch { display: block; width: 100%; height: auto; }
@media (min-width: 1000px) {
  .home-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 640px) {
  .home-hero h1 { font-size: clamp(40px, 11.2vw, 50px); }
  .home-lead { font-size: 17px; }
  .home-hero .actions { flex-direction: column; }
  .home-hero .actions .button { width: 100%; }
}

/* sketch drawing */
.hs-bg { fill: var(--accent-wash); }
.hs-dot { fill: #c9d1f5; }
.hs-hatch { stroke: #d5dae6; stroke-width: 2; }
.hs-arrow { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hs-frame { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; filter: drop-shadow(8px 10px 0 rgba(47, 72, 232, 0.12)); }
.hs-rule { stroke: var(--ink); stroke-width: 1; }
.hs-light { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.hs-url { fill: var(--paper); stroke: var(--line-strong); }
.hs-url-text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.hs-ink { fill: var(--ink); }
.hs-soft { fill: #dfe3eb; }
.hs-accent { fill: var(--accent); }
.hs-ghost { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.hs-btn-text { font-family: var(--body); font-size: 11px; font-weight: 600; fill: var(--white); }
.hs-img { stroke: var(--ink); stroke-width: 1.2; }
.hs-cross { stroke: #b4bccc; stroke-width: 1; }
.hs-card { fill: var(--paper); stroke: #c3c9d6; }
.hs-select { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 4; }
.hs-pen { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.hs-note { font-family: ui-serif, Georgia, 'Times New Roman', serif; font-style: italic; font-size: 19px; fill: var(--accent-hover); }
.hs-sticky-paper { fill: #fff3c4; stroke: #e6d58f; }
.hs-sticky-text { font-family: var(--body); font-size: 14px; font-weight: 600; fill: #5a4a12; }
.hs-ring { fill: var(--accent-tint); stroke: var(--accent); stroke-width: 1; }
.hs-pointer { fill: var(--ink); stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }

/* ---------- Platform line ---------- */
.home-platforms { background: var(--white); border-block: 1px solid var(--line); }
.home-platforms .wrap { display: flex; flex-direction: column; gap: 10px; padding-block: 20px; }
.home-platforms-label { font-size: 15px; color: var(--muted); }
.home-platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.home-platforms li { font-family: var(--display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; letter-spacing: -0.02em; color: #2c3446; }
@media (min-width: 1000px) {
  .home-platforms .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
}

/* ---------- Services ---------- */
.home-shopify { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: 16px; background: var(--accent-wash); border: 1px solid #dfe4ff; margin-bottom: 16px; }
.home-shopify-intro { display: flex; gap: 16px; align-items: flex-start; }
.home-shopify-intro .home-icon { background: var(--accent); color: var(--white); }
.home-shopify h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; }
.home-shopify-intro p { margin-top: 4px; font-size: 17px; }
.home-shopify-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-shopify-links a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--white); border: 1px solid #dfe4ff; font-size: 15px; font-weight: 600; color: var(--ink); transition: border-color 0.15s, color 0.15s; }
.home-shopify-links a:hover { border-color: var(--accent); color: var(--accent); }
.home-shopify .button { justify-self: start; }
@media (min-width: 760px) {
  .home-shopify-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .home-shopify { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); align-items: center; column-gap: 40px; }
  .home-shopify .button { grid-column: 1; grid-row: 2; align-self: start; }
  .home-shopify-links { grid-column: 2; grid-row: 1 / span 2; }
}

.home-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.home-card { height: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; padding: 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.home-card .home-icon { grid-row: 1 / span 2; }
.home-card h3 { font-size: 19px; padding-top: 2px; }
.home-card p { font-size: 16px; line-height: 1.5; }
.home-card:hover { border-color: #b9c3ff; transform: translateY(-2px); }
.home-card:hover h3 { color: var(--accent); }
@media (min-width: 640px) { .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) {
  .home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-card { grid-template-columns: 1fr; row-gap: 10px; padding: 24px; }
  .home-card .home-icon { grid-row: auto; margin-bottom: 6px; }
}

/* ---------- Industries ---------- */
.home-industry-wrap { display: grid; gap: 8px; }
.home-industry-wrap .home-head { margin-bottom: 20px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.home-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid #d7ddff; font-size: 15px; font-weight: 600; color: var(--ink); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.home-chips a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
@media (min-width: 1000px) {
  .home-industry-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
  .home-industry-wrap .home-head { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .home-chips a { font-size: 15px; padding: 0 14px; }
}

/* ---------- Work ---------- */
.home-work-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--white); transition: border-color 0.15s; }
.home-work-card:hover { border-color: var(--accent-light); }
.home-work-media { display: block; aspect-ratio: 16 / 9; background: #11172a; overflow: hidden; }
.home-work-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.home-work-card:hover .home-work-media img { transform: scale(1.02); }
.home-work-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted-dark); font-weight: 600; }
.home-work-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 64px 22px 20px; }
.home-work-text .home-chip { background: rgba(143, 161, 255, 0.16); color: var(--accent-light); }
.home-work-text h3 { font-size: clamp(22px, 2.4vw, 28px); }
.home-work-line { font-size: 16px; color: var(--body-dark); }
.home-work-go { position: absolute; right: 20px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) {
  .home-work-text { padding: 24px 88px 26px 28px; }
  .home-work-go { right: 28px; bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .home-work-card:hover .home-work-media img { transform: none; } }

/* ---------- Process ---------- */
.home-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.home-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; padding: 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.home-step-num { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.home-steps h3 { font-size: 19px; padding-top: 2px; }
.home-steps p { font-size: 16px; line-height: 1.5; }
@media (min-width: 640px) { .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) {
  .home-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
  .home-steps::before { content: ''; position: absolute; left: 44px; right: 44px; top: 46px; border-top: 2px dashed #c9d1ff; z-index: 0; }
  .home-steps li { position: relative; z-index: 1; grid-template-columns: 1fr; row-gap: 10px; padding: 24px; }
  .home-step-num { grid-row: auto; margin-bottom: 6px; }
}

/* ---------- Pricing ---------- */
.home-price-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.home-price-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; background: var(--white); border: 1px solid var(--line-strong); }
.home-price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-price-top h3 { font-size: 20px; }
.home-price { display: flex; align-items: baseline; gap: 8px; }
.home-price strong { font-family: var(--display); font-size: 38px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }
.home-price span { font-size: 15px; color: var(--muted); }
.home-price-pages { font-size: 16px; font-weight: 600; color: var(--accent) !important; }
.home-price-card ul { list-style: none; margin: 0 0 4px; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.home-price-card li { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--home-text); }
.home-price-card li .check { margin-top: 2px; }
.home-price-card .text-link { margin-top: auto; }
.home-price-card.is-featured { background: var(--accent); border-color: var(--accent); color: var(--white); box-shadow: 0 24px 40px -28px rgba(47, 72, 232, 0.8); }
.home-price-card.is-featured h3, .home-price-card.is-featured .home-price strong, .home-price-card.is-featured li, .home-price-card.is-featured .text-link { color: var(--white); }
.home-price-card.is-featured .home-price span { color: #dfe4ff; }
.home-price-card.is-featured .home-price-pages { color: var(--white) !important; }
.home-price-card.is-featured ul { border-color: rgba(255, 255, 255, 0.25); }
.home-price-card.is-featured .check { color: var(--white); }
.home-price-note { margin-top: 24px; font-size: 16px; }
.home-price-note a { font-weight: 600; white-space: nowrap; }
@media (min-width: 640px) { .home-price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .home-price-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Studio note + why us ---------- */
.home-why { display: grid; gap: 40px; }
.home-note { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(24px, 3.4vw, 40px); border-radius: 16px; background: var(--accent-wash); border: 1px solid #dfe4ff; }
.home-quote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.home-quote p { font-family: ui-serif, Georgia, 'Times New Roman', serif; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: var(--ink) !important; }
.home-quote cite { font-style: normal; font-size: 15px; font-weight: 600; color: var(--accent-hover); }
.home-reasons { display: flex; flex-direction: column; gap: 24px; }
.home-reasons h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 18ch; }
.home-reasons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.home-reasons li { display: flex; gap: 14px; align-items: flex-start; }
.home-reasons h3 { font-size: 18px; }
.home-reasons li p { margin-top: 2px; font-size: 16px; line-height: 1.5; }
@media (min-width: 640px) { .home-reasons ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1000px) {
  .home-why { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
}

/* ---------- FAQ ---------- */
.home-faq { display: grid; gap: 8px; }
.home-faq .faq summary { min-height: 60px; padding: 16px 0; font-size: 17px; }
.home-faq .faq details p { font-size: 16px; }
@media (min-width: 1000px) {
  .home-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .home-faq .home-head { position: sticky; top: 120px; margin-bottom: 0; }
}

/* ---------- Closing CTA ---------- */
.home-cta .wrap { padding-block: clamp(56px, 7vw, 88px); }
.home-cta h2 { max-width: 14ch; font-size: clamp(34px, 4.6vw, 56px); }
.home-cta h2 em { color: var(--accent-light); }
.home-faq .faq details p { color: var(--home-text); }
.home-shopify-links a { line-height: 1.25; padding: 8px 14px; }

/* Phone order: heading, content, then the section link. */
@media (max-width: 899px) {
  .home-flow { display: flex; flex-direction: column; }
  .home-flow > .home-head { display: contents; }
  .home-flow > .home-head > div { order: 1; margin-bottom: 24px; }
  .home-flow > :not(.home-head) { order: 2; }
  .home-flow > .home-head > .home-head-cta { order: 3; align-self: flex-start; margin-top: 20px; }
  .home-flow > .home-head > .text-link.home-head-cta { margin-top: 12px; }
}
@media (max-width: 640px) {
  .home-card { padding: 16px; column-gap: 14px; }
  .home-cards { gap: 10px; }
  .home-steps li { padding: 16px; }
  .home-steps { gap: 10px; }
}
.home-price-note a { display: inline-block; padding-block: 12px; margin-block: -12px; }


/* Work carousel: a strip of project cards that slides from right to left. Pauses on hover or keyboard focus. */
.home-marquee { position: relative; overflow: hidden; margin-top: 8px; padding-block: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.home-work-track { display: flex; gap: 20px; width: max-content; margin: 0; padding: 0; list-style: none; animation: home-work-slide var(--work-duration, 40s) linear infinite; }
.home-marquee:hover .home-work-track, .home-marquee:focus-within .home-work-track { animation-play-state: paused; }
.home-work-item { flex: 0 0 auto; width: min(78vw, 340px); }
.home-work-item .home-work-card { height: 100%; }
.home-work-media { aspect-ratio: 16 / 10; }
.home-work-text { padding: 18px 64px 20px 18px; gap: 6px; }
.home-work-name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.home-work-line { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-work-go { right: 16px; bottom: 18px; width: 40px; height: 40px; }
@keyframes home-work-slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@media (min-width: 1100px) { .home-work-item { width: calc((min(100vw, 1600px) - 80px) / 4.6); } }
@media (prefers-reduced-motion: reduce) {
  .home-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
  .home-work-track { animation: none; padding-inline: 16px; }
  .home-work-item { scroll-snap-align: start; }
  .home-work-item[aria-hidden="true"] { display: none; }
}

/* ============================================================
   Homepage design refresh: browser-frame hero, numbers band,
   dark Shopify panel, and one-time entrance motion.
   ============================================================ */

/* ---------- Decorative backdrops ---------- */
.home-hero { position: relative; isolation: isolate; }
.home-dots { position: absolute; inset: -60px; z-index: -1; pointer-events: none; background-image: radial-gradient(#ccd2e0 1.1px, transparent 1.1px); background-size: 40px 40px; opacity: 0.5; }
.home-glow { position: absolute; top: -160px; right: -140px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(47, 72, 232, 0.13), transparent 68%); }
.home-ink .home-dots, .home-shopify.is-dark .home-dots { background-image: radial-gradient(#232b40 1.2px, transparent 1.2px); background-size: 34px 34px; opacity: 1; }

/* ---------- Hero browser frame ---------- */
.home-frame { border-radius: 20px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 50px 90px -50px rgba(10, 14, 26, 0.5); overflow: hidden; }
.home-frame-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #eef0f4; background: #fbfcfd; }
.home-frame-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.home-frame-bar em { flex: 1; margin-left: 10px; padding: 5px 12px; border-radius: 7px; background: #f1f3f7; font-family: var(--mono); font-style: normal; font-size: 11.5px; color: var(--muted); }
.home-frame-body { padding: 26px 24px 28px; }
.home-frame-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.home-frame-logo { display: block; width: 74px; height: 11px; border-radius: 4px; background: var(--ink); }
.home-frame-nav { display: flex; align-items: center; gap: 8px; }
.home-frame-nav i { width: 34px; height: 6px; border-radius: 3px; background: var(--line); }
.home-frame-nav b { width: 50px; height: 20px; border-radius: 6px; background: var(--accent); }
.home-frame-h { width: 78%; height: 17px; border-radius: 5px; background: var(--ink); margin-bottom: 9px; }
.home-frame-h.is-short { width: 54%; margin-bottom: 16px; }
.home-frame-p { width: 86%; height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 7px; }
.home-frame-p.is-short { width: 68%; margin-bottom: 20px; }
.home-frame-cta { display: flex; gap: 10px; margin-bottom: 24px; }
.home-frame-cta b { padding: 9px 16px; border-radius: 8px; background: var(--accent); color: var(--white); font-size: 12.5px; font-weight: 600; }
.home-frame-cta i { width: 92px; border-radius: 8px; border: 1px solid var(--line); }
.home-frame-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.home-frame-tiles i { height: 58px; border-radius: 9px; background: #f1f3f7; border: 1px solid #eef0f4; }

/* ---------- Numbers band ---------- */
.home-stats { background: var(--paper); padding-block: clamp(32px, 4.5vw, 56px); }
.home-stat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-stat { padding: 20px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.home-stat-num { margin: 0; font-family: var(--display); font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.home-stat-title { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink) !important; }
.home-stat-note { margin: 2px 0 0; font-size: 14px; color: var(--muted) !important; }
@media (min-width: 900px) { .home-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .home-stat { padding: 24px; } }

/* ---------- Dark Shopify panel ---------- */
.home-shopify.is-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); border-color: var(--ink); color: var(--white); }
.home-shopify.is-dark h3 { color: var(--white); }
.home-shopify.is-dark p { color: var(--body-dark) !important; }
.home-shopify.is-dark .home-icon { background: var(--accent); color: var(--white); }
.home-shopify.is-dark .home-shopify-links a { background: var(--ink-2); border-color: var(--ink-line); color: var(--white); }
.home-shopify.is-dark .home-shopify-links a:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* ---------- Work card result + pause control ---------- */
.home-work-result { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--ink-line); font-size: 14px; font-weight: 600; color: #6ee7a8; }

/* ---------- Studio quote: brand face, not a serif fallback ---------- */
.home-quote p { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Motion: one-time entrances, hover states ---------- */
@keyframes home-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes home-pop { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
.home-w { display: inline-block; animation: home-rise 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) both; animation-delay: var(--d, 0s); }
.home-hero-copy > :not(h1), .home-hero-art { animation: home-rise 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
.home-hero-copy > .home-pill { animation-delay: 0.02s; }
.home-hero-copy > .home-lead { animation-delay: 0.5s; }
.home-hero-copy > .actions { animation-delay: 0.56s; }
.home-hero-copy > .home-proofs { animation-delay: 0.62s; }
.home-hero-art { animation-delay: 0.3s; }
.home-card, .home-price-card, .home-stat, .home-steps li { transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.2s, box-shadow 0.3s; }
.home-stat:hover, .home-price-card:hover, .home-steps li:hover { transform: translateY(-3px); border-color: #c9cfdd; }
.home-work-card:hover { transform: translateY(-3px); }
.home-work-card { transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.15s; }

@supports (animation-timeline: view()) {
  .home-stat-grid, .home-cards > li, .home-price-cards > li, .home-steps li, .home-shopify, .home-note, .home-reasons {
    animation: home-pop 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-w, .home-hero-copy > :not(h1), .home-hero-art,
  .home-stat-grid, .home-cards > li, .home-price-cards > li, .home-steps li, .home-shopify, .home-note, .home-reasons { animation: none !important; }
  .home-stat:hover, .home-price-card:hover, .home-steps li:hover, .home-work-card:hover { transform: none; }
}

/* ---------- Hero frame: gentle float ---------- */
@keyframes home-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.home-frame { animation: home-float 7s ease-in-out 1s infinite; }

/* ---------- Platform strip: slides right to left ---------- */
@keyframes home-platform-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.home-platforms-marquee { width: 100%; max-width: 100%; align-self: stretch; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.home-platforms-track { display: flex; width: max-content; gap: 36px; margin: 0; padding: 0; list-style: none; animation: home-platform-slide 42s linear infinite; }
.home-platforms-marquee:hover .home-platforms-track, .home-platforms-marquee:focus-within .home-platforms-track { animation-play-state: paused; }
.home-platforms-track li { white-space: nowrap; }

/* ---------- Industries: three featured cards above the chips ---------- */
.home-industry-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.home-industry-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.home-industry-cards li { padding: 20px; border-radius: 14px; background: var(--white); border: 1px solid #dfe4ff; transition: transform 0.3s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.2s; }
.home-industry-cards li:hover { transform: translateY(-3px); border-color: #b9c3ff; }
.home-industry-cards h3 { font-size: 18px; margin-bottom: 4px; }
.home-industry-cards p { font-size: 15px; line-height: 1.5; color: var(--home-text) !important; }
@media (min-width: 700px) { .home-industry-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Nav quote button: sheen sweep ---------- */
@keyframes home-sweep { from { transform: translateX(-140%) skewX(-18deg); } to { transform: translateX(420%) skewX(-18deg); } }
.site-header .button.quote { position: relative; overflow: hidden; }
.site-header .button.quote::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); animation: home-sweep 3.6s ease-in-out 1.4s infinite; pointer-events: none; }

/* ---------- Dark contact band: dot grid ---------- */
.home-cta { position: relative; isolation: isolate; overflow: hidden; }
.home-cta .home-dots { background-image: radial-gradient(#1b2234 1.2px, transparent 1.2px); background-size: 38px 38px; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .home-frame, .home-platforms-track, .site-header .button.quote::after { animation: none !important; }
  .home-industry-cards li:hover { transform: none; }
}

/* Keep the "We build on" label on one line and let the strip take the rest of the row. */
.home-platforms-label { white-space: nowrap; }
@media (min-width: 760px) {
  .home-platforms .wrap { align-items: center; }
  .home-platforms-label { flex: none; }
  .home-platforms-marquee { flex: 1 1 auto; width: auto; }
}

/* ---------- Platform wordmarks ----------
   Official brand marks, shown as supplied: no recolouring or filtering,
   which most brand guidelines require. Sized by height so they sit on one baseline. */
.home-platforms-track.is-logos { gap: 44px; align-items: center; }
.home-platforms-track.is-logos li { display: flex; align-items: center; }
.home-platforms-track.is-logos img { height: 26px; width: auto; max-width: none; display: block; }
/* Squarespace and Wix ship near-square marks; trim them so optical weight matches the wordmarks. */
.home-platforms-track.is-logos li:nth-child(7) img, .home-platforms-track.is-logos li:nth-child(14) img { height: 30px; }
.home-platforms-track.is-logos li:nth-child(6) img, .home-platforms-track.is-logos li:nth-child(13) img { height: 22px; }
@media (max-width: 700px) { .home-platforms-track.is-logos { gap: 32px; } .home-platforms-track.is-logos img { height: 22px; } }

/* ============================================================
   Hero stage: the same site shown on desktop and phone.
   Replaces the flat wireframe — colour, depth, and a build-in
   sequence that plays once. Decorative; aria-hidden in markup.
   ============================================================ */
.home-stage { position: relative; padding: 8px 0 34px 0; }

/* ---- Browser ---- */
.home-frame { position: relative; z-index: 1; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 80px -44px rgba(10, 14, 26, 0.45), 0 2px 6px -2px rgba(10, 14, 26, 0.08); overflow: hidden; }
.home-frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid #eef0f4; background: linear-gradient(180deg, #fbfcfd, #f6f8fa); }
.home-frame-bar > span { width: 8px; height: 8px; border-radius: 50%; background: #dfe3ea; }
.home-frame-bar em { flex: 1; margin-left: 8px; padding: 5px 11px; border-radius: 6px; background: var(--white); border: 1px solid #eef0f4; font-family: var(--mono); font-style: normal; font-size: 11px; color: #8b93a5; }
.home-frame-body { padding: 18px 18px 20px; }
.home-frame-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.home-frame-logo { display: block; width: 58px; height: 9px; border-radius: 3px; background: var(--ink); }
.home-frame-nav { display: flex; align-items: center; gap: 7px; }
.home-frame-nav i { width: 26px; height: 5px; border-radius: 3px; background: #e3e6ec; }
.home-frame-nav b { width: 42px; height: 17px; border-radius: 5px; background: var(--accent); }

/* Hero band inside the mock: copy on the left, a tinted image block on the right */
.home-frame-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #f3f5ff, #fafbff 60%); border: 1px solid #e9ecff; margin-bottom: 14px; }
.home-frame-hero-copy { display: flex; flex-direction: column; gap: 6px; }
.home-frame-h { width: 92%; height: 11px; border-radius: 4px; background: var(--ink); }
.home-frame-h.is-short { width: 62%; margin-bottom: 4px; }
.home-frame-p { width: 100%; height: 5px; border-radius: 3px; background: #ccd2e0; }
.home-frame-p.is-short { width: 72%; }
.home-frame-cta { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.home-frame-cta b { padding: 7px 12px; border-radius: 7px; background: var(--accent); color: var(--white); font-size: 10.5px; font-weight: 600; box-shadow: 0 6px 14px -6px rgba(47, 72, 232, 0.8); }
.home-frame-cta i { width: 56px; height: 24px; border-radius: 7px; border: 1px solid #d9dEEF; }
.home-frame-hero-art { position: relative; aspect-ratio: 4 / 3; border-radius: 9px; background: linear-gradient(145deg, var(--ink), #1d2740); overflow: hidden; }
.home-frame-hero-art span { position: absolute; border-radius: 4px; background: rgba(143, 161, 255, 0.5); }
.home-frame-hero-art span:nth-child(1) { left: 12%; top: 22%; width: 44%; height: 7px; background: rgba(255, 255, 255, 0.85); }
.home-frame-hero-art span:nth-child(2) { left: 12%; top: 40%; width: 30%; height: 5px; }
.home-frame-hero-art span:nth-child(3) { right: -14%; bottom: -24%; width: 58%; height: 58%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 72, 232, 0.75), transparent 68%); }
.home-frame-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.home-frame-tiles i { height: 42px; border-radius: 8px; background: #f4f6fa; border: 1px solid #eef0f4; }

/* ---- Phone, overlapping the browser ---- */
.home-phone { position: absolute; z-index: 2; left: -10px; bottom: 0; width: 104px; padding: 5px; border-radius: 16px; background: var(--ink); box-shadow: 0 26px 48px -22px rgba(10, 14, 26, 0.6); }
.home-phone-screen { position: relative; border-radius: 12px; background: var(--white); padding: 12px 9px 11px; overflow: hidden; }
.home-phone-screen::before { content: ''; position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 28px; height: 4px; border-radius: 99px; background: #e3e6ec; }
/* Screenshot variants: the frames stay CSS, only the page content is an image. The speaker slit
   is drawn over the screenshot so the phone still reads as a phone. */
.home-phone-screen.is-shot { padding: 0; }
.home-phone-screen.is-shot::before { z-index: 2; background: rgba(255, 255, 255, 0.75); }
.home-phone-screen.is-shot img { width: 100%; height: auto; display: block; }
.home-frame-shot { line-height: 0; }
.home-frame-shot img { width: 100%; height: auto; display: block; }
.home-phone-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.home-phone-bar i { width: 30px; height: 5px; border-radius: 3px; background: var(--ink); }
.home-phone-bar b { width: 13px; height: 9px; border-radius: 3px; background: #e3e6ec; }
.home-phone-hero { display: flex; flex-direction: column; gap: 4px; padding: 9px; border-radius: 8px; background: linear-gradient(145deg, var(--ink), #1d2740); margin-bottom: 8px; }
.home-phone-hero span { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.home-phone-hero span:last-child { width: 58%; background: rgba(143, 161, 255, 0.6); }
.home-phone-cta { height: 18px; border-radius: 6px; background: var(--accent); margin-bottom: 8px; }
.home-phone-cards { display: grid; gap: 6px; }
.home-phone-cards i { height: 22px; border-radius: 6px; background: #f4f6fa; border: 1px solid #eef0f4; }

@media (max-width: 560px) { .home-phone { width: 86px; left: -4px; } }

/* ---- Motion: one build-in on load, then a slow drift ---- */
@keyframes home-stage-in { from { opacity: 0; transform: translateY(22px) scale(0.975); } to { opacity: 1; transform: none; } }
@keyframes home-wipe { from { opacity: 0; transform: scaleX(0.3); } to { opacity: 1; transform: none; } }
@keyframes home-pop-in { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: none; } }

.home-frame { animation: home-stage-in 0.85s cubic-bezier(0.22, 0.9, 0.3, 1) 0.1s both, home-float 8s ease-in-out 1.2s infinite; }
.home-phone { animation: home-stage-in 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) 0.45s both, home-float 8s ease-in-out 1.6s infinite; }

.home-frame-h, .home-frame-p, .home-frame-logo, .home-frame-nav i { transform-origin: left; animation: home-wipe 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
.home-frame-logo { animation-delay: 0.5s; }
.home-frame-nav i:nth-child(1) { animation-delay: 0.55s; }
.home-frame-nav i:nth-child(2) { animation-delay: 0.6s; }
.home-frame-h { animation-delay: 0.68s; }
.home-frame-h.is-short { animation-delay: 0.74s; }
.home-frame-p { animation-delay: 0.8s; }
.home-frame-p.is-short { animation-delay: 0.86s; }
.home-frame-nav b, .home-frame-cta b, .home-frame-cta i { animation: home-pop-in 0.5s cubic-bezier(0.22, 0.9, 0.3, 1) 0.94s both; }
.home-frame-tiles i { animation: home-pop-in 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both; }
.home-frame-tiles i:nth-child(1) { animation-delay: 1.02s; }
.home-frame-tiles i:nth-child(2) { animation-delay: 1.09s; }
.home-frame-tiles i:nth-child(3) { animation-delay: 1.16s; }

@media (prefers-reduced-motion: reduce) {
  .home-frame, .home-phone, .home-frame-h, .home-frame-p, .home-frame-logo,
  .home-frame-nav i, .home-frame-nav b, .home-frame-cta b, .home-frame-cta i, .home-frame-tiles i { animation: none !important; }
}

/* Hero stage corrections: keep the mock CTA on one line, and hang the phone off
   the frame's bottom-left corner instead of sitting over its content. */
.home-frame-cta b { white-space: nowrap; }
.home-frame-cta i { flex: none; }
.home-stage { padding-bottom: 46px; }
.home-phone { left: -20px; bottom: 0; }
@media (max-width: 900px) {
  .home-frame-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .home-frame-hero-art { aspect-ratio: 16 / 7; }
  .home-phone { left: -10px; bottom: -6px; width: 92px; }
}
@media (max-width: 420px) {
  .home-frame-cta b { font-size: 9.5px; padding: 6px 10px; }
  .home-phone { width: 80px; left: -6px; }
}
