/* ============================================================
   HELLO MARMOT — HOME V2 (Aeline-inspired layout, Marmot theme)
   Loads AFTER styles.css. Only used by index-v2.html.
   ============================================================ */

/* Scroll-reveal headline — words darken as they enter view */
.reveal-text { color: var(--ink-mute); }
.reveal-text .rw { transition: color .3s var(--ease), opacity .3s var(--ease); color: var(--line-2); }
.reveal-text .rw.on { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .reveal-text, .reveal-text .rw { color: var(--ink); } }

.v-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); background: transparent; border-radius: 100px; padding: 7px 15px; }
.v-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e5301c; }
.v-head { text-align: center; max-width: 20ch; margin: 0 auto; }
.v-head .v-eyebrow { margin-bottom: 20px; }
.v-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.02em; }
.v-head p { color: var(--ink-dim); font-size: 1.05rem; max-width: 52ch; margin: 20px auto 0; }

/* ---- HERO ------------------------------------------------- */
.v-hero { position: relative; text-align: center; padding: clamp(48px, 8vw, 90px) 0 0; overflow: hidden; }
body.home { background: #fff; }
.dotfield { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.v-hero__glow { position: absolute; z-index: -1; top: -20%; left: 50%; transform: translateX(-50%); width: 90vw; height: 60vw; max-width: 1100px; max-height: 720px;
  background: radial-gradient(ellipse at center, rgba(23,147,249,0.18), rgba(46,127,224,0.12) 45%, transparent 70%); filter: blur(30px); }
.v-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16ch; margin: 22px auto 0; }
.v-hero .lead { margin: 22px auto 0; max-width: 46ch; }
.v-hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* Endless overlapping coverflow — sized + animated by app-v2.js */
.fan { position: relative; height: clamp(340px, 36vw, 500px); margin-top: clamp(28px, 5vw, 56px); }
.fan__card {
  position: absolute; top: 50%; left: 50%;
  width: clamp(200px, 22vw, 320px); aspect-ratio: 3 / 4; border-radius: 20px;
  background: var(--surface); overflow: hidden;
  box-shadow: 0 34px 64px -34px rgba(60,40,30,0.45);
  display: grid; place-items: center;
  transform: translate(-50%, -50%); will-change: transform, opacity;
}
.fan__card img, .fan__card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fan__card .slot__label { color: var(--ink-mute); text-align: center; }
.fan__card .slot__label .plus { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; display: block; color: var(--line-2); }
.fan__card--mid { background: var(--espresso); color: #EAF2FE; }
.fan__stat { padding: 26px; text-align: left; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.fan__stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1; }
.fan__stat span { font-size: 0.82rem; opacity: 0.82; margin-top: 8px; }
.v-rating { margin-top: 30px; font-size: 0.9rem; color: var(--ink-dim); text-align: center; }
.v-rating .stars { color: var(--accent); letter-spacing: 3px; display: block; margin-top: 6px; }

/* ---- LOGO MARQUEE (reuses .trust/.marquee vibe) ----------- */
.v-logos { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; }
.v-logos__track { display: flex; gap: 64px; align-items: center; white-space: nowrap; animation: vslide 30s linear infinite; }
.v-logos__track span { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; color: var(--ink-mute); opacity: 0.6; }
@keyframes vslide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .v-logos__track { animation: none; } }

/* ---- BENTO STATS ------------------------------------------ */
.bento-stats { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.bstat { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.bstat--img { grid-row: span 2; padding: 0; overflow: hidden; position: relative; background: var(--surface-2); }
.bstat--img .slot__label { position: absolute; inset: 0; display: grid; place-content: center; color: var(--ink-mute); }
.bstat--wide { grid-column: span 2; }
.bstat--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.bstat--dark { background: var(--espresso); color: #EAF2FE; border-color: var(--espresso); }
.bstat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.bstat p { font-size: 0.95rem; opacity: 0.86; margin-top: 12px; }
.bstat__avatars { display: flex; margin-bottom: 12px; }
.bstat__avatars span { width: 30px; height: 30px; border-radius: 50%; background: var(--tan); border: 2px solid var(--surface); margin-left: -8px; }
.bstat__avatars span:first-child { margin-left: 0; }
@media (max-width: 860px) { .bento-stats { grid-template-columns: 1fr 1fr; } .bstat--wide { grid-column: span 2; } .bstat--img { grid-row: span 1; min-height: 220px; } }

/* ---- SERVICES 3-UP ---------------------------------------- */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.svc-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; min-height: 340px; transition: transform .3s var(--ease), border-color .3s; overflow: hidden; }
.svc-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.svc-card__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: auto; }
.svc-card__icon svg { width: 22px; height: 22px; }
.svc-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 26px 0 10px; }
.svc-card p { color: var(--ink-dim); font-size: 0.96rem; line-height: 1.5; }
.svc-card__foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.svc-card__price { font-weight: 600; }
.svc-card__price b { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.svc-card__go { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.svc-card__media { margin: 22px -30px -30px; aspect-ratio: 16/10; background: var(--surface-2); display: grid; place-items: center; border-top: 1px solid var(--line); }
.svc-card__media .slot__label { color: var(--ink-mute); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } }

/* ---- 2x2 FEATURE GRID ------------------------------------- */
.feat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; min-height: 320px; display: flex; flex-direction: column; text-align: center; align-items: center; transition: transform .3s var(--ease), border-color .3s; }
.feat-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.feat-card__media { flex: 1; width: 100%; display: grid; place-items: center; color: var(--ink-mute); }
.feat-card__media .plus { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--line-2); }
.feat-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-top: 20px; }
.feat-card p { color: var(--ink-dim); font-size: 0.95rem; margin-top: 10px; max-width: 42ch; }
@media (max-width: 760px) { .feat2 { grid-template-columns: 1fr; } }

/* ---- THREE WAYS · full-bleed image cards ------------------ */
.ways2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wcard { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; padding: 24px; color: #fff; text-decoration: none; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.wcard:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -26px rgba(20,15,12,0.5); }
.wcard__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.wcard__img img, .wcard__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcard__slides { position: absolute; inset: 0; z-index: -2; background: #05130d; }
.wcard__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.wcard__slide.is-active { opacity: 1; }

/* Floating iPhone mockup (Build card) */
.wcard--device .wcard__scrim { display: none; }
.wcard__phoneglow { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: 78%; height: 66%; background: radial-gradient(ellipse at center, rgba(150,170,200,0.22), rgba(150,170,200,0) 68%); filter: blur(24px); pointer-events: none; }
.phone { position: absolute; left: 50%; top: 50%; height: 84%; aspect-ratio: 9 / 19.5; border-radius: 40px; padding: 6px; background: #0a0a0c; box-shadow: 0 36px 72px -24px rgba(0,0,0,0.9), inset 0 0 0 1.5px rgba(255,255,255,0.08); transform: translate(-50%, -50%); }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 30%; height: 13px; background: #000; border-radius: 20px; z-index: 2; }
.wcard__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(15,18,30,0.34) 0%, rgba(15,18,30,0) 34%); }
.wcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wcard__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.9vw, 2rem); letter-spacing: -0.02em; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,0.28); }
.wcard__icon { flex: none; width: 52px; height: 52px; border-radius: 15px; background: #fff; color: var(--espresso); display: grid; place-items: center; }
.wcard__icon svg { width: 24px; height: 24px; }
.wcard__box { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px 22px 20px; }
.wcard__price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.wcard__price span { font-size: 0.9rem; color: var(--ink-dim); }
.wcard__price b { font-weight: 800; font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -0.02em; line-height: 1; }
.wcard__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.wcard__list li { position: relative; padding-left: 18px; font-size: 0.95rem; color: var(--ink-dim); line-height: 1.35; }
.wcard__list li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 820px) { .ways2 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* Card with copy overlaid in white directly on the image (no white box) */
.wcard--over .wcard__scrim { background: linear-gradient(to top, rgba(4,14,9,0.9) 0%, rgba(4,14,9,0.35) 38%, rgba(4,14,9,0) 62%), linear-gradient(to bottom, rgba(4,14,9,0.4), rgba(4,14,9,0) 26%); }
.wcard__over { position: relative; z-index: 2; color: #fff; }
.wcard__over .wcard__price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.wcard__over .wcard__price span { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.wcard__over .wcard__price b { font-weight: 800; font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -0.02em; line-height: 1; text-shadow: 0 2px 14px rgba(0,0,0,0.4); }
.wcard__over .wcard__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.wcard__over .wcard__list li { position: relative; padding-left: 18px; font-size: 0.95rem; color: rgba(255,255,255,0.92); line-height: 1.35; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.wcard__over .wcard__list li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 6px; height: 6px; border-radius: 50%; background: #4fe08a; }

/* Cards sit close under the hero copy; each frame capped so all three fit one screen */
.threeways { padding-top: 0; padding-bottom: clamp(36px, 6vh, 72px); margin-top: -14px; }  /* hero padding-bottom (64px) - 14 = 50px gap */
.threeways .ways2 { display: flex; gap: 16px; align-items: stretch; justify-content: center; }
.threeways .wcell { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.threeways .wcell .wcard { flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 5; max-height: 76vh; }
.wcta { display: inline-flex; align-self: center; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; text-decoration: none; transition: transform .2s var(--ease), background .25s var(--ease); }
.wcta:hover { transform: translateY(-2px); background: var(--accent); }
.wcta .arrow { font-weight: 400; }
.threeways .ways-cta { margin-top: clamp(16px, 3vh, 30px); }
@media (max-width: 820px) {
  .threeways { margin-top: 0; padding-top: 8px; }
  .threeways .ways2 { flex-direction: column; max-width: 460px; margin-inline: auto; align-items: stretch; }
  .threeways .wcell .wcard { flex: 0 0 auto; max-height: none; width: 100%; }
}

/* ---- MODERN TOOLS / LIVING ECOSYSTEM ---------------------- */
.ecosys { margin-bottom: clamp(28px, 5vw, 72px); }
.ecosys__head { text-align: center; }
.ecosys__head .display { margin-top: 14px; }
.ecosys__lead { text-align: center; max-width: 64ch; margin: 20px auto 0; }
.ecosys__points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 60px); }
.ecosys__pt { border-top: 2px solid var(--accent); padding-top: 18px; }
.ecosys__pt h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.ecosys__pt p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.5; }
.ecosys__tools { margin-top: clamp(26px, 4vw, 44px); text-align: center; }
.ecosys__toolslabel { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.ecosys__logos { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: clamp(8px, 2vw, 28px); margin-top: 24px; }
.ecosys__logos .tool { flex: 1 1 0; min-width: 0; max-width: 132px; display: grid; place-items: center; aspect-ratio: 1 / 1; transition: transform .25s var(--ease); }
.ecosys__logos .tool:hover { transform: translateY(-4px); }
.ecosys__logos .tool img { max-width: 74%; max-height: 74%; width: auto; height: auto; object-fit: contain; display: block; }
.ecosys__logos .tool img[src*="adobe-cc"] { max-width: 96%; max-height: 96%; }
.ecosys__logos .tool img[src*="figma"] { max-width: 64%; max-height: 64%; }
.ecosys__logos .tool img[src*="lovable"] { max-width: 64%; max-height: 64%; }
.ecosys__logos .tool-txt { display: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem); color: var(--ink-mute); letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 760px) { .ecosys__points { grid-template-columns: 1fr; } }

/* ---- TESTIMONIAL PHOTO CAROUSEL --------------------------- */
.tcar__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.tcar__arrows { display: flex; gap: 10px; }
.tcar__nav { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.wrap-bleed--clip { overflow: hidden; }
.tcar__track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.tcar-card { position: relative; flex: 0 0 clamp(378px, 35vw, 513px); aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--espresso); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.tcar-card__img { position: absolute; inset: 0; background: var(--surface-2); }
.tcar-card__img img { width: 100%; height: 100%; object-fit: cover; }
.tcar-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,12,10,0.78) 0%, rgba(15,12,10,0.28) 42%, rgba(15,12,10,0) 72%); }
.tcar-card__co { position: absolute; top: 24px; left: 26px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.tcar-card__mark { position: relative; z-index: 2; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 0.5; margin-bottom: 12px; opacity: 0.92; }
.tcar-card__q { position: relative; z-index: 2; font-size: 1.02rem; line-height: 1.42; text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.tcar-card__by { position: relative; z-index: 2; align-self: flex-end; text-align: right; margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.82); text-shadow: 0 1px 8px rgba(0,0,0,0.35); }

/* ---- WORK / POSTS ----------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.post { position: relative; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 24px; }
.post img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover img { transform: scale(1.05); }
.post__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,15,12,0.72), transparent 55%); }
.post h3 { position: relative; z-index: 2; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.post .slot__label { position: absolute; inset: 0; display: grid; place-content: center; color: var(--ink-mute); z-index: 0; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .posts { grid-template-columns: 1fr; } }

/* ---- BIG CTA CARD ----------------------------------------- */
.vcta { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(40px, 6vw, 80px); color: #fff; min-height: 380px; display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(55% 120% at 100% 12%, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(80% 120% at 0% 8%, #ff5a1f 0%, rgba(255,90,31,0) 58%),
    radial-gradient(85% 120% at 4% 96%, #e5301c 0%, rgba(229,48,28,0) 55%),
    radial-gradient(95% 130% at 96% 96%, #1f6fe0 0%, rgba(31,111,224,0) 60%),
    linear-gradient(100deg, #e5301c 0%, #6a3fd0 48%, #2e7fe0 100%); }
.vcta::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.13; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vcta > * { position: relative; z-index: 1; }
.vcta__avatars { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 0.9rem; }
.vcta__avatars .row { display: flex; }
.vcta__avatars .row span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.6); margin-left: -8px; }
.vcta__avatars .row span:first-child { margin-left: 0; }
.vcta h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 18ch; }
.vcta p { margin: 18px 0 0; max-width: 46ch; color: rgba(255,255,255,0.9); }
.vcta__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.vcta .btn { align-self: flex-start; }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.btn--outline-light:hover { background: rgba(255,255,255,0.14); border-color: #fff; }

/* ---- FOOTER NEWSLETTER ------------------------------------ */
.newsletter { margin-top: 20px; }
.newsletter h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.newsletter__form { display: flex; gap: 10px; max-width: 380px; }
.newsletter__form input { flex: 1; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 100px; padding: 12px 18px; }
.newsletter__form input:focus { outline: none; border-color: var(--accent); }
