/* ============================================================
   HOME v2 — Editorial / animated styles
   ============================================================ */

/* ---- Hero ---- */
.v2-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 90% -10%, color-mix(in oklab, var(--accent) 14%, transparent), transparent),
    radial-gradient(900px 600px at -10% 110%, color-mix(in oklab, var(--brand) 14%, transparent), transparent),
    var(--bg);
  padding: clamp(36px, 5vw, 64px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.v2-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10,23,38,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(10,23,38,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
html[data-mode="dark"] .v2-hero::before {
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}
.v2-hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  position: relative; z-index: 2;
}

.v2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink); font-weight: 600; font-size: 13px;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
}
.v2-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.6);
  animation: pulse 2s infinite;
}

.v2-h1 {
  font-size: clamp(52px, 8.4vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 22px 0;
  font-family: var(--h-font);
}
.v2-h1 .line { display: block; position: relative; }
.v2-h1 .line-1 {
  font-style: italic;
  color: var(--brand);
  margin-bottom: -.05em;
}
html[data-mode="dark"] .v2-h1 .line-1 { color: var(--accent); }
.v2-h1 .line-2 i {
  font-style: italic;
  position: relative;
  background: linear-gradient(180deg, transparent 70%, color-mix(in oklab, var(--accent) 80%, transparent) 70%);
  padding: 0 6px;
}
html[data-mode="dark"] .v2-h1 .line-2 i { background: none; color: var(--accent); }

.v2-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.55;
  margin: 16px 0 0;
}
.v2-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.v2-hero-foot {
  display: flex; align-items: center; gap: 16px; margin-top: 36px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.v2-hero-foot .avatars { display: flex; }
.v2-hero-foot .avatars span {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px;
  margin-left: -10px;
  border: 2px solid var(--bg);
}
.v2-hero-foot .avatars span:first-child { margin-left: 0; }

/* Collage */
.v2-hero-collage {
  position: relative;
  aspect-ratio: 1/1.05;
  width: 100%;
}
.v2-hero-collage .card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #102b4a;
}
.v2-hero-collage .card img,
.v2-hero-collage .card .ba { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-hero-collage .card-1 {
  top: 0; right: 0; width: 58%; aspect-ratio: 3/4;
  transform: rotate(2deg);
  animation: floatA 8s ease-in-out infinite;
}
.v2-hero-collage .card-2 {
  bottom: 0; left: 0; width: 46%; aspect-ratio: 4/5;
  transform: rotate(-3deg);
  animation: floatB 9s ease-in-out infinite;
}
.v2-hero-collage .card-3 {
  bottom: 14%; right: 8%; width: 52%; aspect-ratio: 4/3;
  z-index: 3;
  border-radius: var(--radius-lg);
  animation: floatC 11s ease-in-out infinite;
}
@keyframes floatA { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
@keyframes floatB { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
@keyframes floatC { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(8px) rotate(-1deg); } }

.v2-hero-collage .card .tag {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; border-radius: 999px;
  font-weight: 800; font-size: 11px; letter-spacing: 0.1em;
  background: rgba(0,0,0,0.7); color: #fff;
}
.v2-hero-collage .card .tag-y { background: var(--accent); color: var(--accent-ink); }

.v2-hero-collage .float-chip {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 4;
}
.v2-hero-collage .float-chip .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand); color: var(--accent);
  display: grid; place-items: center;
}
.v2-hero-collage .float-chip .t { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.v2-hero-collage .float-chip .v { font-weight: 700; font-size: 14px; }
.v2-hero-collage .chip-1 { top: 8%; left: -5%; animation: floatD 6s ease-in-out infinite; }
.v2-hero-collage .chip-2 { bottom: 6%; right: -4%; animation: floatE 7s ease-in-out infinite; }
@keyframes floatD { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatE { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.v2-hero-collage .float-blob {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.7;
  pointer-events: none; z-index: 0;
}
.v2-hero-collage .blob-1 {
  width: 220px; height: 220px;
  background: color-mix(in oklab, var(--accent) 60%, transparent);
  top: 30%; left: 30%;
  animation: blob 12s ease-in-out infinite;
}
.v2-hero-collage .blob-2 {
  width: 280px; height: 280px;
  background: color-mix(in oklab, var(--brand) 35%, transparent);
  bottom: 10%; right: 30%;
  animation: blob 14s ease-in-out infinite reverse;
}
@keyframes blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(20px, -20px) scale(1.1); }
  66%     { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Marquee ---- */
.marquee {
  background: var(--brand);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
  border-block: 1px solid color-mix(in oklab, var(--brand) 70%, transparent);
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marqueeRoll 40s linear infinite;
  width: max-content;
}
.marquee .m-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--h-font); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em;
}
.marquee .m-dot { color: var(--accent); }
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ---- Stats ---- */
.v2-stats-section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.v2-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: hidden;
}
.v2-stats .stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.v2-stats .stat:last-child { border-right: none; }
.v2-stats .stat::before {
  content: ""; position: absolute; top: 28px; left: 28px;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent);
  opacity: 0.4;
}
.v2-stats .stat-num {
  font-family: var(--h-font);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-top: 24px;
  font-variant-numeric: tabular-nums;
}
.v2-stats .stat-lbl {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---- About v2 ---- */
.v2-about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.v2-about-photos {
  position: relative;
  aspect-ratio: 1/1;
  min-height: 460px;
}
.v2-about-photos .ph {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.v2-about-photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-about-photos .ph-a { top: 0; left: 0; width: 64%; aspect-ratio: 4/5; transform: rotate(-2deg); }
.v2-about-photos .ph-b { bottom: 0; right: 0; width: 56%; aspect-ratio: 5/4; transform: rotate(2deg); }
.v2-about-photos .ph-stamp {
  position: absolute; top: 38%; right: 6%;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; text-align: center;
  box-shadow: var(--shadow-lg);
  transform: rotate(-6deg);
  z-index: 2;
  padding: 14px;
  transition: transform .4s ease;
}
.v2-about-photos .ph-stamp:hover { transform: rotate(0deg) scale(1.03); }
.v2-about-photos .ph-stamp > * { transform: none; }
.v2-about-photos .ph-stamp .big {
  font-family: var(--h-font); font-weight: 800;
  font-size: 38px; letter-spacing: -0.03em; line-height: 1;
}
.v2-about-photos .ph-stamp .sml {
  font-size: 11px; line-height: 1.3;
  margin-top: 6px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.v2-h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  font-family: var(--h-font);
}
.v2-h2 i {
  font-style: italic;
  color: var(--brand);
}
html[data-mode="dark"] .v2-h2 i { color: var(--accent); }

.v2-ulchecks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.v2-ulchecks li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 16px; line-height: 1.5; color: var(--ink);
  font-style: normal; font-weight: 500;
  font-feature-settings: normal;
  word-spacing: normal; letter-spacing: normal;
}
.v2-ulchecks li span { display: inline-block; }
.v2-ulchecks li b { font-weight: 700; color: var(--ink); }
.v2-ulchecks li svg {
  width: 26px; height: 26px; padding: 4px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  flex-shrink: 0;
}

/* About body copy — explicit defaults so it never inherits weird font-features */
.v2-about p {
  font-style: normal;
  font-weight: 400;
  font-feature-settings: normal;
  word-spacing: normal;
  letter-spacing: normal;
  line-height: 1.6;
}
.v2-about p b { font-weight: 700; color: var(--ink); }

/* ---- Services stacked ---- */
.v2-svc-stack {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.v2-svc {
  display: grid;
  grid-template-columns: 70px 220px 1.4fr 1fr auto auto;
  gap: 32px; align-items: center;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: padding .35s cubic-bezier(.16,1,.3,1), background .35s ease;
}
.v2-svc:hover { padding-left: 28px; background: color-mix(in oklab, var(--accent) 8%, transparent); }
.v2-svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--accent);
  transition: width .35s cubic-bezier(.16,1,.3,1);
}
.v2-svc:hover::before { width: 6px; }
.v2-svc-num {
  font-family: var(--h-font); font-weight: 800;
  font-size: 32px; letter-spacing: -0.03em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.v2-svc:hover .v2-svc-num { color: var(--brand); }
.v2-svc-photo {
  width: 220px; height: 130px; border-radius: 14px; overflow: hidden;
  transition: transform .35s ease;
}
.v2-svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.v2-svc:hover .v2-svc-photo img { transform: scale(1.08); }
.v2-svc-name {
  font-family: var(--h-font); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}
.v2-svc-blurb { font-size: 14px; color: var(--ink-2); line-height: 1.5; max-width: 38ch; }
.v2-svc-price {
  font-family: var(--h-font); font-weight: 500; font-size: 16px;
  color: var(--ink-3); white-space: nowrap;
}
.v2-svc-price b { color: var(--ink); font-weight: 800; font-size: 22px; }
.v2-svc-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-2); display: grid; place-items: center;
  transition: background .25s ease, transform .25s ease, color .25s ease;
}
.v2-svc:hover .v2-svc-arrow { background: var(--ink); color: var(--bg); transform: translateX(4px); }

/* ---- Process / dark ---- */
.v2-process { position: relative; overflow: hidden; }
.v2-process .v2-process-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 10% 20%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(500px 300px at 90% 80%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.v2-proc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.v2-proc-step {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background .3s ease, transform .3s ease;
}
.v2-proc-step:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.v2-proc-num {
  font-family: var(--h-font); font-weight: 800;
  font-size: 64px; letter-spacing: -0.04em; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.v2-proc-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.v2-proc-step h4 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.v2-proc-step p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ---- Testimonial rotator ---- */
.v2-tmnl-stage {
  position: relative;
  display: grid;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 5vw, 64px);
  min-height: 280px;
}
.v2-tmnl-card {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; gap: 22px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.v2-tmnl-card.on { opacity: 1; transform: translateY(0); pointer-events: auto; }
.v2-tmnl-card .qmark { font-family: var(--h-font); font-size: 96px; line-height: 0.5; color: var(--accent); font-weight: 800; }
.v2-tmnl-quote { font-family: var(--h-font); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.v2-tmnl-who { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; }
.v2-tmnl-who .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 16px;
}
.v2-tmnl-who .name { font-weight: 700; font-size: 15px; }
.v2-tmnl-who .loc { font-size: 13px; color: var(--ink-3); }
.v2-tmnl-who .stars { color: #FFB400; font-size: 18px; letter-spacing: 2px; }
.v2-tmnl-dots {
  position: absolute; bottom: 24px; right: 28px;
  display: flex; gap: 6px;
}
.v2-tmnl-dots button {
  width: 22px; height: 6px; border-radius: 3px;
  background: var(--line-strong); border: none;
  transition: background .2s ease, width .2s ease;
}
.v2-tmnl-dots button.on { background: var(--ink); width: 38px; }

/* ---- v2 CTA ---- */
.v2-cta {
  position: relative;
  background: var(--brand);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
}
.v2-cta-marquee {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.v2-cta-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: marqueeRoll 30s linear infinite;
  width: max-content;
  font-family: var(--h-font); font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--accent);
}
.v2-cta-track i { font-style: italic; color: #fff; }
.v2-cta-inner {
  padding: clamp(36px, 5vw, 72px) clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px; align-items: center;
}
.v2-cta-inner h2 {
  font-family: var(--h-font); font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 22ch;
}
.v2-cta-inner h2 i { font-style: italic; color: var(--accent); }
.v2-cta-inner p { color: rgba(255,255,255,0.8); margin-top: 14px; max-width: 50ch; }
.v2-cta-inner .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Eyebrow style (override for v2) ---- */
.home-v2 .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px;
}
html[data-mode="dark"] .home-v2 .eyebrow { color: var(--accent); }
.home-v2 .eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .v2-hero-grid { grid-template-columns: 1fr; }
  .v2-hero-collage { aspect-ratio: 4/3; max-width: 600px; margin: 0 auto; }
  .v2-stats { grid-template-columns: repeat(2, 1fr); }
  .v2-stats .stat:nth-child(2) { border-right: none; }
  .v2-stats .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .v2-about-grid { grid-template-columns: 1fr; }
  .v2-svc { grid-template-columns: 50px 160px 1fr auto auto; }
  .v2-svc-blurb { display: none; }
  .v2-proc-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .v2-h1 { font-size: 60px; }
  .v2-stats { grid-template-columns: 1fr; }
  .v2-stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .v2-svc { grid-template-columns: 1fr; gap: 14px; }
  .v2-svc-photo { width: 100%; height: 180px; }
  .v2-svc-arrow { display: none; }
  .v2-proc-grid { grid-template-columns: 1fr; }
  .marquee .m-item { font-size: 16px; }
}

/* Mobile preview adaptations */
body.mobile-preview .site-shell .v2-hero-grid,
body.mobile-preview .site-shell .v2-about-grid,
body.mobile-preview .site-shell .v2-proc-grid,
body.mobile-preview .site-shell .v2-cta-inner {
  grid-template-columns: 1fr !important;
}
body.mobile-preview .site-shell .v2-stats { grid-template-columns: 1fr !important; }
body.mobile-preview .site-shell .v2-stats .stat { border-right: none; border-bottom: 1px solid var(--line); }
body.mobile-preview .site-shell .v2-svc { grid-template-columns: 1fr !important; gap: 14px; }
body.mobile-preview .site-shell .v2-svc-photo { width: 100%; height: 180px; }
body.mobile-preview .site-shell .v2-svc-arrow { display: none; }
body.mobile-preview .site-shell .v2-svc-blurb { display: block; }
body.mobile-preview .site-shell .v2-h1 { font-size: 56px; }
body.mobile-preview .site-shell .v2-hero-collage { aspect-ratio: 1/1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .v2-hero-collage .card-1,
  .v2-hero-collage .card-2,
  .v2-hero-collage .card-3,
  .v2-hero-collage .float-chip,
  .v2-hero-collage .float-blob,
  .v2-about-photos .ph-stamp,
  .marquee-track, .v2-cta-track { animation: none !important; }
}
