/* VFenix — shared styles. Clean, light, video-first. */
:root {
  --bg: #f6f5f2;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: rgba(17, 17, 17, 0.1);
  --card: #ffffff;
  --accent: #111111;
  --veil: rgba(246, 245, 242, 0.5);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 16px 16px auto 16px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
/* Logo only: small frosted circle so it stays visible over the video */
.brand {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease;
}
.brand:hover { transform: scale(1.06); background: #fff; }
.brand img { width: 28px; height: 28px; }
.header-link {
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  transition: transform .2s ease;
}
.header-link:hover { transform: translateY(-1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.small-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.small-links a { color: var(--muted); font-size: 15px; border-bottom: 1px solid transparent; }
.small-links a:hover { color: var(--ink); border-color: var(--ink); }

/* =====================================================================
   NICHE PAGE (hero → reel → contact), one fixed video stage
   ===================================================================== */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #ddd; }
.stage-bg {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover; filter: blur(40px) saturate(1.1); transform: scale(1.1);
}
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (orientation: portrait) { .stage-video { object-fit: contain; } }
.stage-veil {
  position: absolute; inset: 0;
  background: var(--veil);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: var(--blur, 1);
  will-change: opacity;
}

.scroller { position: relative; z-index: 1; }
.hero {
  height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 0 16px;
}
.hero-inner { max-width: 900px; opacity: var(--hero, 1); transform: translateY(calc((1 - var(--hero, 1)) * -40px)); }
.greeting { display: none; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.greeting.show { display: block; }
.eyebrow { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 9vw, 120px); line-height: .95; letter-spacing: -0.035em;
}
/* Stats row under the hero text (3D page) */
.stats { display: flex; justify-content: center; gap: 40px; margin-top: 34px; text-align: left; }
.stats > div { display: flex; align-items: center; gap: 12px; max-width: 280px; }
.stats b { font-family: var(--display); font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.stats span { font-size: 14px; line-height: 1.35; color: #333; }
.stats em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 600px) {
  .stats { flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }
  .stats > div { max-width: 320px; }
}

/* Little GIF next to "Hey Name" in the lead version */
.hey-gif { display: inline-block; vertical-align: middle; margin-left: .18em; }
.hey-gif img {
  width: 1em; height: 1em; border-radius: 50%; object-fit: cover; object-position: 50% 40%;
  box-shadow: 0 0 0 .05em #fff, 0 10px 30px -10px rgba(0, 0, 0, .35);
  transform: translateY(-.04em);
}
.hero p.lead { margin: 22px auto 0; max-width: 600px; text-wrap: balance; font-size: clamp(16px, 2vw, 19px); color: #333; }
/* "SCROLL" + long thin arrow drifting down. Reads as a hint, not a button. */
.scroll-hint {
  position: fixed; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink); opacity: var(--hero, 1);
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.scroll-hint span { padding-left: .22em; } /* optically centre the tracked letters */
.scroll-hint svg { width: 16px; height: 44px; animation: hint-drift 2.2s cubic-bezier(.45, 0, .55, 1) infinite; }
html:not(.at-top) .scroll-hint { pointer-events: none; }
@keyframes hint-drift {
  0% { transform: translateY(-6px); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

.reel-space { height: 100svh; }

/* Niche pages (html.snap): one wheel scroll glides to the next part — handled in reel.js */
html.snap { scroll-behavior: auto; }

.contact {
  min-height: 100svh; display: grid; place-items: center; padding: 96px 16px 40px;
}
.contact-card {
  width: 100%; max-width: 560px; text-align: center;
  opacity: var(--contact, 0); transform: translateY(calc((1 - var(--contact, 0)) * 40px));
}
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; box-shadow: 0 0 0 4px #fff; }
.contact h2 { font-family: var(--display); font-size: clamp(34px, 6vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.contact p.sub { margin: 16px auto 30px; color: #333; max-width: 440px; }
.contact .buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.contact .buttons .btn { flex: 1 1 200px; }
.footnote { margin-top: 48px; font-size: 13px; color: var(--muted); }

.sound-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.8); color: var(--ink);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 13px var(--font);
}
.sound-btn svg { width: 18px; height: 18px; }

/* ---------- Video controls (bottom, only while the video is sharp) ---------- */
.player {
  position: fixed; left: 50%; bottom: 16px; z-index: 35;
  width: min(620px, calc(100% - 32px));
  display: flex; align-items: center; gap: 4px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
html.in-reel.show-controls .player { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
html.in-reel .scroller { cursor: pointer; } /* the video area is clickable */

/* "Click the video for controls" — appears once, fades out by itself */
.controls-hint {
  position: fixed; left: 50%; bottom: 24px; z-index: 34;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(17, 17, 17, 0.72); color: #fff; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.controls-hint svg { width: 18px; height: 18px; }
html.in-reel.hint-on:not(.show-controls) .controls-hint { opacity: 1; transform: translate(-50%, 0); }
.player button {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink); transition: background .2s ease;
}
.player button:hover { background: rgba(17, 17, 17, .08); }
.player button[data-act="play"] { background: var(--ink); color: #fff; }
.player button[data-act="play"]:hover { background: #333; }
.player svg { width: 20px; height: 20px; }
.timeline { flex: 1; height: 40px; display: flex; align-items: center; cursor: pointer; padding: 0 8px; touch-action: none; }
.timeline:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 8px; }
.track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(17, 17, 17, .14); transition: height .15s ease; }
.timeline:hover .track, .timeline.dragging .track { height: 6px; }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--ink); }
.knob {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px #fff; transform: translate(-50%, -50%);
}
.time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 78px; text-align: right; }
@media (max-width: 480px) { .time { display: none; } .player { padding-right: 6px; } }

/* the standalone sound button steps aside while the player is visible */
.sound-btn { transition: opacity .3s ease; }
html.in-reel.show-controls .sound-btn { opacity: 0; pointer-events: none; }

/* ---------- Upright phones: video as a rounded card on its blurred backdrop ---------- */
@media (orientation: portrait) and (max-width: 900px) {
  .stage-video {
    inset: 50% 12px auto 12px; width: calc(100% - 24px); height: auto;
    aspect-ratio: 16 / 9; object-fit: cover;
    transform: translateY(-50%); border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
  }
  .player { bottom: 20px; }
}

/* ---------- Phones (upright) ---------- */
@media (max-width: 600px) {
  /* bigger headline */
  .hero h1 { font-size: clamp(46px, 14vw, 76px); }
  .hero p.lead { font-size: 17px; }
  /* contact links become easy-to-tap pills */
  .contact .small-links { display: flex; flex-wrap: wrap; gap: 10px; max-width: 360px; margin: 0 auto; }
  .contact .small-links a {
    flex: 1 1 calc(50% - 5px);
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border: 0; border-radius: 999px; background: rgba(255, 255, 255, .85);
    color: var(--ink); font-weight: 600; font-size: 15px;
    box-shadow: 0 0 0 1px var(--line);
  }
  .contact .small-links a:active { background: var(--ink); color: #fff; }
}

/* Touch screens: each swipe lands on a part (hero / video / contact) */
@media (hover: none) {
  /* phones page with swipes in reel.js (one swipe = one part); no CSS snapping */
  html.snap { overscroll-behavior-y: none; }
  /* live blur over a playing video is too heavy for phones while scrolling: use a soft veil instead */
  .stage-veil { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246, 245, 242, 0.8); }
}

/* Phones in landscape: keep the hero compact */
@media (orientation: landscape) and (max-height: 500px) {
  .hero h1 { font-size: clamp(36px, 7vw, 64px); }
  .hero p.lead { margin-top: 12px; font-size: 15px; }
  .eyebrow { margin-bottom: 10px; }
  .scroll-hint { display: none; }
  .contact { padding-top: 80px; }
  .avatar { width: 64px; height: 64px; margin-bottom: 12px; }
  .contact p.sub { margin: 10px auto 18px; }
}

/* =====================================================================
   SPLATS PAGE: live splat carousel on the stage
   ===================================================================== */
.splats-page .stage { background: #e9e7e2; }
.splats-page .stage-veil { pointer-events: none; }
.splats-page .scroller { pointer-events: none; }          /* clicks fall through to the cards… */
.splats-page .scroller .contact { pointer-events: auto; } /* …except on the contact part */

.carousel { position: absolute; inset: 0; }
.splat-card {
  position: absolute; left: 0; top: 50%;
  border-radius: 22px; overflow: hidden; cursor: pointer; outline: none;
  background: #17191d;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
  transition: left .65s cubic-bezier(.7, 0, .2, 1), top .65s cubic-bezier(.7, 0, .2, 1),
              width .65s cubic-bezier(.7, 0, .2, 1), height .65s cubic-bezier(.7, 0, .2, 1),
              border-radius .65s ease, opacity .4s ease, box-shadow .3s ease;
  will-change: transform;
}
.splat-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.splat-card::after { /* soft ring on hover / keyboard focus */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0); transition: box-shadow .3s ease;
}
html.in-reel .splat-card:hover::after, .splat-card:focus-visible::after { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9); }
.splat-label {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 16px; border-radius: 14px; pointer-events: none;
  background: rgba(255, 255, 255, .85); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.splat-label strong { font-family: var(--display); font-size: 16px; letter-spacing: -0.01em; }
.splat-label small { font-size: 12px; color: var(--muted); }

/* title above + client benefit below the carousel */
.reel-title, .reel-caption {
  position: fixed; left: 50%; z-index: 30; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .45s ease, transform .45s ease;
}
.reel-title {
  top: calc(50% - var(--card-h, 300px) / 2 - 28px);
  transform: translate(-50%, calc(-100% + 12px));
  font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(34px, 5vw, 64px); white-space: nowrap;
}
.reel-caption {
  top: calc(50% + var(--card-h, 300px) / 2 + 26px);
  transform: translate(-50%, -12px);
  display: flex; flex-direction: column; gap: 2px;
}
.reel-caption strong { font-family: var(--display); font-size: 22px; letter-spacing: -0.015em; transition: opacity .18s ease; }
.reel-caption span { color: var(--muted); font-size: 15px; transition: opacity .18s ease; }
.reel-caption.swap strong, .reel-caption.swap span { opacity: 0; }
html.in-reel:not(.splat-open) .reel-title { opacity: 1; transform: translate(-50%, -100%); }
html.in-reel:not(.splat-open) .reel-caption { opacity: 1; transform: translate(-50%, 0); }

/* phones: swipe the carousel; edges fade out; caption may wrap */
.carousel { touch-action: pan-y; }
@media (max-width: 699px) {
  .carousel {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  }
  html .carousel-arrow { display: none; }
  .reel-caption { width: min(88vw, 420px); }
  .reel-caption strong { font-size: 20px; line-height: 1.2; }
  .reel-title { font-size: 38px; }
  .splat-label { left: 12px; bottom: 12px; padding: 8px 12px; }
}

/* the CTA under the carousel, only while the splats are sharp */
.splat-cta {
  position: fixed; left: 50%; bottom: 7vh; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.splat-cta svg { width: 20px; height: 20px; animation: tap 1.8s ease-in-out infinite; }
@keyframes tap { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px) scale(.92); } }
html.in-reel:not(.splat-open) .splat-cta { opacity: 1; transform: translate(-50%, 0); }

/* one splat open: it grows into a big box, the rest step back */
html.splat-open .stage { z-index: 45; }
html.splat-open .scroll-hint { opacity: 0 !important; }
.splat-card.is-open { z-index: 2; transform: none !important; cursor: auto; }
.splat-card.is-open iframe { pointer-events: auto; }
.splat-card.is-open .splat-label { opacity: 0; transform: translateY(10px); }
html.splat-open .splat-card:not(.is-open) { opacity: 0; pointer-events: none; }
html.splat-open .splat-card.is-open::after { display: none; }

/* "Explore other splats": same spot and look as the CTA it replaces */
.splat-ui {
  position: fixed; left: 50%; bottom: 7vh; z-index: 48;
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none;
  transition: opacity .35s ease .25s, transform .35s ease .25s;
}
html.splat-open .splat-ui { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.splat-back {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 48px; padding: 0 24px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font: 600 15px var(--font);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4);
  transition: transform .2s ease, background .2s ease;
}
.splat-back svg { width: 18px; height: 18px; }
.splat-back:hover { background: #333; transform: translateY(-2px); }

/* controls reminder, top of the open box, fades out after a few seconds */
.splat-help {
  position: fixed; left: 50%; top: 100px; z-index: 48;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .85); font-size: 13px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translate(-50%, -6px); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
html.splat-open.help-on .splat-help { opacity: 1; transform: translate(-50%, 0); transition-delay: .5s; }
@media (max-width: 760px) { .splat-help { display: none; } }

/* arrows on both sides of the carousel */
.carousel-arrow {
  position: fixed; top: 50%; z-index: 30;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .2s ease, background .2s ease;
  transform: translateY(-50%);
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }
.carousel-arrow:hover { background: var(--ink); color: #fff; }
html.in-reel:not(.splat-open) .carousel-arrow { opacity: 1; pointer-events: auto; }
html.carousel-dragging, html.carousel-dragging .splat-card { cursor: grabbing; }
html.carousel-dragging .splat-card { transition: none; }

/* =====================================================================
   HUB PAGE
   ===================================================================== */
.hub { max-width: 1080px; margin: 0 auto; padding: 120px 16px 40px; }
.about { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; margin-bottom: 80px; }
.about .avatar { width: 128px; height: 128px; margin: 0; }
.about h1 { font-family: var(--display); font-size: clamp(36px, 6.5vw, 72px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.about p { margin: 18px auto 0; max-width: 620px; color: #333; font-size: 18px; text-wrap: balance; }
@media (max-width: 640px) {
  .about { gap: 18px; margin-bottom: 48px; }
  .about .avatar { width: 96px; height: 96px; }
  .about p { font-size: 16px; }
}

.section-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
/* One rounded box; rows split by thin lines; hover fill runs edge to edge */
.services {
  list-style: none; overflow: hidden; isolation: isolate;
  background: var(--card); border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0, 0, 0, .25);
}
.service { border-top: 1px solid var(--line); transition: border-color .3s ease; }
.service:first-child { border-top: 0; }
/* hide the lines touching the hovered row so the black reads as one shape */
@media (hover: hover) and (min-width: 721px) {
  .service:has(a:hover), .service:has(a:hover) + .service { border-top-color: transparent; }
}
.service a, .service > div {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 200px; gap: 24px; align-items: center;
  padding: 20px 20px 20px 32px;
}
.service.soon > div { opacity: .45; }
.service.soon .badge { position: absolute; right: 120px; top: 50%; transform: translate(50%, -50%); background: #fff; }
.service h3 { font-family: var(--display); font-size: clamp(24px, 3.6vw, 40px); letter-spacing: -0.025em; line-height: 1.1; transition: color .35s ease .1s; }
.service .desc { color: var(--muted); font-size: 15px; margin-top: 4px; transition: color .35s ease .1s; }
.service .thumb { width: 200px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #e7e5e0; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.service .thumb video, .service .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Hover: black fill sweeps in from the left, text turns white */
/* Angled leading edge: an oversized, skewed panel slides in from the left */
.service a::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -20%; width: 140%; z-index: -1;
  background: var(--ink);
  transform: translateX(-100%) skewX(-24deg);
  transition: transform .6s cubic-bezier(.7, 0, .2, 1);
}
@media (hover: hover) and (min-width: 721px) {
  .service a:hover::before, .service a:focus-visible::before { transform: translateX(0) skewX(-24deg); }
  .service a:hover h3, .service a:hover .desc { transition-delay: .22s; }
  .service a:hover h3, .service a:focus-visible h3 { color: #fff; }
  .service a:hover .desc, .service a:focus-visible .desc { color: rgba(255, 255, 255, .7); }
  .service a:hover .thumb, .service a:focus-visible .thumb { transform: scale(1.04); }
}
.service a:focus-visible { outline: none; }

.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e7e5e0; justify-self: end; white-space: nowrap; }
@media (max-width: 720px) {
  .services { border-radius: 20px; }
  .service a, .service > div { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .service.soon .badge { right: 50%; top: calc(16px + (100vw - 64px) * 9 / 32); }
  .service .thumb { grid-column: 1 / -1; width: 100%; order: -1; }
  .service a::before { display: none; }
}

.hub-contact { margin-top: 110px; text-align: center; scroll-margin-top: 80px; }
.hub-contact h2 { font-family: var(--display); font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.035em; line-height: 1; }
.hub-contact > p { color: var(--muted); margin: 14px auto 32px; max-width: 460px; font-size: 17px; }

/* Contact links: same rounded box + angled black sweep as the services */
.links {
  list-style: none; overflow: hidden; isolation: isolate; text-align: left;
  max-width: 760px; margin: 0 auto;
  background: var(--card); border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0, 0, 0, .25);
}
.links li { border-top: 1px solid var(--line); transition: border-color .3s ease; }
.links li:first-child, .links li[hidden] + li:not([hidden]):nth-child(2) { border-top: 0; }
.links a {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 28px 18px 22px;
}
.links .icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #f1f0ec; transition: background .35s ease, color .35s ease;
}
.links .icon svg { width: 20px; height: 20px; }
.links .label { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2.4vw, 24px); letter-spacing: -0.015em; transition: color .35s ease; }
.links .handle { color: var(--muted); font-size: 15px; transition: color .35s ease; }
.links a::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -20%; width: 140%; z-index: -1;
  background: var(--ink);
  transform: translateX(-100%) skewX(-24deg);
  transition: transform .6s cubic-bezier(.7, 0, .2, 1);
}
.links a:focus-visible { outline: none; }
@media (hover: hover) and (min-width: 721px) {
  .links li:has(a:hover), .links li:has(a:hover) + li { border-top-color: transparent; }
  .links a:hover::before, .links a:focus-visible::before { transform: translateX(0) skewX(-24deg); }
  .links a:hover .label, .links a:hover .handle, .links a:hover .icon { transition-delay: .18s; }
  .links a:hover .label, .links a:focus-visible .label { color: #fff; }
  .links a:hover .handle, .links a:focus-visible .handle { color: rgba(255, 255, 255, .65); }
  .links a:hover .icon, .links a:focus-visible .icon { background: #fff; color: var(--ink); }
}
@media (max-width: 720px) {
  .links { border-radius: 20px; }
  .links a { grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 16px; }
  .links .icon { width: 40px; height: 40px; }
  .links .handle { display: none; }
}
.hub-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 40px 0 10px; }

/* ---------- "Copied" popup ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .25s ease;
}
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.toast svg { width: 18px; height: 18px; flex: none; color: #7ee2a8; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
