/* =========================================================
   LARO Digital — final merge (Nov 3, 2026)
   Juan's site is the base (laro.css). This file adds Alex's pieces:
   the bridge hero with the cursor light, the live service demos,
   laptop + phone work previews, the arena beam on the riverfront,
   real Sacramento photos and the inner-page layout.
   ========================================================= */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The bridge hero is a night photo, so it (and the menu bar while it sits over it)
   always uses the dark palette, whichever theme the visitor picked. */
.hero--bridge,
.nav[data-theme="dark"] {
  color-scheme: dark;
  --bg: #030617;
  --bg-2: #060b26;
  --surface: rgba(13, 21, 58, .72);
  --surface-2: rgba(255, 255, 255, .04);
  --ink: #f2f5ff;
  --ink-2: #c3cae6;
  --muted: #8c98c0;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --blue: #7d93ff;
  --grad-logo: linear-gradient(100deg, #2cc7f7 0%, #5468f8 50%, #a52fdd 100%);
  --grad: linear-gradient(100deg, #0b6e9e 0%, #2b3bc9 50%, #6a1c9e 100%);
  --grad-hover: linear-gradient(100deg, #0e7fb5 0%, #3446dc 50%, #7b23b5 100%);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .3), 0 34px 70px -24px rgba(0, 0, 0, .7);
}

/* ---------- Hero: Tower Bridge at night, lit where the cursor goes ---------- */
.hero--bridge {
  isolation: isolate; background: #030617; color: var(--ink-2);
  min-height: 100vh; min-height: 100svh; padding-bottom: clamp(72px, 10vh, 120px);
}
.hero__bridge { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__bridge-media {
  position: absolute; left: -3%; top: -3%; width: 106%; max-width: none; height: 106%;
  object-fit: cover; object-position: 100% 62%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 1.4s var(--ease), opacity 1.4s ease;
}
.hero__bridge-video { opacity: 0; }
.hero__bridge.is-playing .hero__bridge-video { opacity: 1; }
/* the dark veil; the cursor's light is a hole in it */
.hero__shade {
  position: absolute; inset: 0; background: rgba(3, 6, 23, .64);
  /* taste-skill-ignore: a soft mask is the cursor's light, not a decorative gradient */
  -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 62%) var(--my, 52%), transparent 0%, transparent 30%, #000 100%); /* taste-skill-ignore: mask over a photo */
  mask-image: radial-gradient(circle var(--r, 0px) at var(--mx, 62%) var(--my, 52%), transparent 0%, transparent 30%, #000 100%); /* taste-skill-ignore: mask over a photo */
}
/* keeps the headline readable over the river */
.hero__bridge::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(3, 6, 23, .78) 0%, rgba(3, 6, 23, .42) 38%, rgba(3, 6, 23, 0) 62%), linear-gradient(0deg, rgba(3, 6, 23, .85) 0%, rgba(3, 6, 23, 0) 26%); /* taste-skill-ignore: scrim over a photo */
}
.hero__sparks { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }

.hero--bridge .hero__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; }
.hero--bridge .hero__title { color: #fff; text-shadow: 0 2px 30px rgba(3, 6, 23, .5); }
.hero--bridge .hero__lede { color: #d7dcf2; max-width: 520px; }
.hero--bridge .hero__quiz { color: #b7c0e3; }
/* Juan's floating cards, smaller, on the right edge beside the towers */
.hero--bridge .hero__visual {
  /* over the open river, between the headline and Tower Bridge */
  width: 560px; max-width: none; justify-self: start; align-self: end; margin: 0 0 -96px -64%;
  transform: scale(.56); transform-origin: 0 100%;
}
.hero--bridge .float-card { box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hero--bridge .glass, .hero--bridge .float-card { background: rgba(9, 15, 44, .62); border-color: rgba(255, 255, 255, .12); }
.hero__hint {
  position: absolute; right: var(--gutter); bottom: 30px; margin: 0; z-index: 2;
  font-size: 13px; letter-spacing: .02em; color: rgba(215, 220, 242, .72); transition: opacity .6s;
}
.hero--bridge.has-moved .hero__hint { opacity: 0; }
@media (hover: none) { .hero__hint { display: none; } }

@media (max-width: 920px) {
  .hero--bridge { min-height: 0; padding-bottom: calc(80vw + 24px); }
  .hero--bridge .hero__inner { grid-template-columns: 1fr; }
  .hero--bridge .hero__visual { display: none; }
  /* on phones the photo becomes a band along the bottom with both towers in view */
  .hero__bridge-media { top: auto; bottom: 0; left: -60%; width: 170%; max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .hero__bridge::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, #0a0f33 0%, #0d1238 40%, rgba(13, 18, 56, 0) 70%); /* taste-skill-ignore: blends the photo's sky into the hero */
  }
  .hero__bridge-media { z-index: -1;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%); /* taste-skill-ignore: fades the photo's top edge into the hero */
    mask-image: linear-gradient(180deg, transparent 0%, #000 34%); /* taste-skill-ignore: fades the photo's top edge into the hero */
  }
  .hero__bridge::after { background: linear-gradient(0deg, rgba(3, 6, 23, .55) 0%, rgba(3, 6, 23, 0) 30%); } /* taste-skill-ignore: scrim over a photo */
}

/* ---------- Inner pages start below the menu bar ---------- */
.section--first { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 112px)); }
.section--first h1.h2 { font-size: clamp(40px, 5.4vw, 76px); }

/* ---------- Live service demos (in Services) ---------- */
.live-demos { margin-top: clamp(64px, 8vw, 112px); }
.live-demos__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.live-demos__head .eyebrow { margin-bottom: 14px; }
.live-demos__title { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 14px; }
.live-demos__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
[data-theme="dark"] .live-demos__title em { background-image: var(--grad-logo); }
.live-demos__head p { color: var(--ink-2); font-size: 16.5px; margin: 0; }
.live-demos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.demo { margin: 0; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.demo figcaption { margin-top: 16px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.demo figcaption strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.demo--social { --demo-bg: radial-gradient(120% 80% at 20% 0%, rgba(44, 199, 247, .12), transparent 60%); }

/* the cards look like the apps they come from, so they stay light in both themes */
.ui-card { overflow: hidden; border-radius: 18px; background: #fff; color: #1f2430; font-family: var(--font-body); font-size: 14.5px; line-height: 1.45; box-shadow: 0 18px 50px -24px rgba(7, 13, 43, .45); max-width: 440px; margin-inline: auto; }
.ui-card img { display: block; }
.ui-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ui-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #070d2b; }
.ui-handle { font-weight: 700; font-size: 14px; color: #1f2430; }
.ui-sub { font-size: 12px; color: #6a7080; }
.post-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.post-grid img { width: 100%; height: 100%; object-fit: cover; }
.post-grid img:first-child { grid-row: span 2; aspect-ratio: 1 / 1; }
.ui-caption { padding: 12px 14px 6px; color: #2c3140; }
.ui-caption strong { margin-right: 4px; color: #1f2430; }
.post-actions { display: flex; align-items: center; gap: 12px; padding: 6px 14px 14px; }
.like {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #eef0f5; color: #1f2430; font: 600 14px/1 var(--font-body); cursor: pointer; transition: background-color .2s;
}
.like:hover { background: #e3e6ee; }
.like:focus-visible { outline: 2px solid #3d5af1; outline-offset: 2px; }
.like svg { width: 20px; height: 20px; fill: none; stroke: #1f2430; stroke-width: 2; transition: transform .35s var(--ease), fill .2s, stroke .2s; }
.like[aria-pressed="true"] svg { fill: #ed4956; stroke: #ed4956; transform: scale(1.18); }
.like-count { font-size: 13.5px; color: #4a5160; }

.review-card .ui-body { display: grid; gap: 12px; padding: 18px; }
.sms { justify-self: start; max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: #e9e9eb; color: #1f2430; }
.review { padding: 12px 14px; border-radius: 12px; background: #f6f7fb; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ui-stars { display: inline-flex; gap: 1px; }
.review p { margin: 6px 0 0; color: #2c3140; }
.reply { padding: 12px 14px; border-radius: 12px; background: #e8f0fe; min-height: 76px; }
.reply-label { margin: 0; font-size: 12px; font-weight: 700; color: #1a56c4; }
.reply-text { margin: 4px 0 0; color: #1f2430; }
.reply-text .is-typing::after { content: "|"; margin-left: 1px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

@media (max-width: 820px) {
  .live-demos__grid { grid-template-columns: 1fr; }
}

/* ---------- Our Work: laptop + phone previews that scroll on hover ---------- */
.case__media--preview {
  aspect-ratio: auto; display: grid; place-items: center;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 52px);
  background: radial-gradient(120% 90% at 30% 10%, #1b2a6b 0%, #0a1030 55%, #070b22 100%); /* taste-skill-ignore: the dark stage behind the devices */
}
.preview { position: relative; width: 100%; max-width: 640px; padding: 0 9% 7% 0; border-radius: 14px; cursor: ns-resize; }
.preview:focus-visible { outline: 2px solid #7d93ff; outline-offset: 8px; }
.preview__laptop { position: relative; }
.preview__screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px 12px 4px 4px;
  border: 7px solid #1e2547; background: #000; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75);
}
.preview__screen img { display: block; width: 100%; height: auto; transition: transform 6s cubic-bezier(.45, 0, .3, 1); will-change: transform; }
.preview:hover .preview__screen img, .preview:focus-visible .preview__screen img, .preview.is-scrolling .preview__screen img { transform: translateY(var(--to, -80%)); }
.preview__base { height: 10px; margin: 0 -5%; border-radius: 0 0 12px 12px; background: linear-gradient(#2a3260, #161b3d); box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .6); } /* taste-skill-ignore: shading on the laptop's base */
.preview__phone {
  position: absolute; right: 0; bottom: 0; width: 23%; border-radius: 20px; overflow: hidden;
  border: 5px solid #1e2547; background: #000; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .8);
  transition: transform .8s var(--ease);
}
.preview__phone img { display: block; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.case:hover .preview__phone { transform: translateY(-8px) rotate(-1.5deg); }
.preview__hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  background: rgba(7, 11, 34, .78); color: #e8ecff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  transition: opacity .4s; pointer-events: none;
}
.preview:hover .preview__hint, .preview:focus-visible .preview__hint, .preview.is-scrolling .preview__hint { opacity: 0; }
@media (max-width: 700px) {
  .preview__screen { border-width: 4px; }
  .preview__phone { border-width: 3px; border-radius: 12px; }
}

/* ---------- Riverfront: the arena's purple beam rises when the scene comes into view ---------- */
.scene-beam { opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.scene-beam rect:not(.b-sky) { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.scene-beam .b-flare { opacity: 0; }
.sac-pano.is-beaming .scene-beam { opacity: 1; }
.sac-pano.is-beaming .scene-beam rect:not(.b-sky) { animation: scene-beam-rise 1.6s var(--ease) forwards; }
.sac-pano.is-beaming .scene-beam .b-glow { animation-delay: .08s; }
.sac-pano.is-beaming .scene-beam .b-haze { animation: scene-beam-rise 2s var(--ease) .15s forwards, scene-beam-breathe 4.5s ease-in-out 2.2s infinite; }
.sac-pano.is-beaming .scene-beam .b-flare { animation: scene-beam-flare 1.2s ease-out forwards; }
.sac-pano.is-beaming .scene-beam .b-sky { animation: scene-beam-sky 2.4s ease-out forwards; }
.b-sky { opacity: 0; }
@keyframes scene-beam-rise { to { transform: scaleY(1); } }
@keyframes scene-beam-breathe { 50% { opacity: .55; } }
@keyframes scene-beam-flare { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .55; } }
@keyframes scene-beam-sky { to { opacity: 1; } }
[data-theme="light"] .scene-beam .b-sky { opacity: .5; }
[data-theme="light"] .sac-pano.is-beaming .scene-beam { opacity: .9; }
@media (prefers-reduced-motion: reduce) {
  .sac-pano.is-beaming .scene-beam rect:not(.b-sky), .sac-pano.is-beaming .scene-beam .b-haze { animation: none; transform: none; }
  .sac-pano.is-beaming .scene-beam .b-sky, .sac-pano.is-beaming .scene-beam .b-flare { animation: none; opacity: .6; }
}

/* ---------- Founders: no portraits yet, so the cards lead with the names ---------- */
.founder .person__media .founder__ph { display: none; }

/* ---------- Footer credit line ---------- */
.footer__credits { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); max-width: 70ch; }

/* ---------- Privacy page ---------- */
.privacy__inner { max-width: 760px; }
.privacy__inner .eyebrow { margin-bottom: 16px; }
.privacy__inner h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
[data-theme="dark"] .privacy__inner h1 em { background-image: var(--grad-logo); }
.privacy__date { margin: 18px 0 0; color: var(--muted); }
.privacy__inner h2 { margin: 44px 0 10px; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; }
.privacy__inner p { color: var(--ink-2); max-width: 65ch; }
.privacy__inner a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Review fixes ---------- */
.preview__phone img { height: auto; }
.founder__grid { align-items: start; }
@media (min-width: 981px) {
  .founders { position: sticky; top: calc(var(--nav-h) + 48px); }
}
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 14.5px; }
.footer__contact a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 100% / 0 1.5px; transition: background-size .4s var(--ease); }
.footer__contact a:hover, .footer__contact a:focus-visible { background-size: 100% 1.5px; }
.plans__sheet { margin: 26px 0 0; text-align: center; }
.plans__sheet a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .3s, border-color .3s; }
.plans__sheet a:hover { background: var(--surface-2); border-color: var(--blue); }
.plans__sheet span { font-weight: 400; color: var(--muted); }
.person__tag small { font-size: 13.5px; }
.contact__photo { position: relative; margin: 28px 0 0; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16 / 10; background: var(--bg-2); }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.6s var(--ease); }
.contact__photo:hover img { transform: scale(1.04); }
.contact__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 11, 34, .74); color: #e8ecff; font-size: 13px; font-weight: 600; }
/* smaller laptops and tablets on their side: no room between the headline and Tower Bridge, so the photo carries the hero */
@media (min-width: 921px) and (max-width: 1359px) {
  .hero--bridge .hero__visual { display: none; }
}

/* ---------- Photo credits ---------- */
.footer__credits a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.privacy__inner .credits { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; color: var(--ink-2); max-width: 70ch; }
.privacy__inner .credits li { line-height: 1.55; }

/* ---------- Our Work: the two projects, one beside the other's mirror ---------- */
.works { gap: clamp(24px, 3vw, 36px); }
@media (min-width: 981px) {
  .case--flip { grid-template-columns: 1fr 1.25fr; }
  .case--flip .case__media { order: 2; }
}
.case__strip--one { grid-template-columns: minmax(0, 340px); }
.case__strip--one img { aspect-ratio: 3 / 2; object-fit: cover; padding: 0; }

/* ---------- 404 page ---------- */
.notfound .privacy__inner > p:not(.eyebrow) { margin-top: 18px; font-size: 18px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.privacy__inner .notfound__actions a { text-decoration: none; }
.privacy__inner .notfound__actions .btn--primary { color: #fff; }
.privacy__inner .notfound__actions .btn--ghost { color: var(--ink); }

/* ---------- Netlify's free-plan badge (bottom-right, about 64px tall): keep our controls clear of it ---------- */
.has-host-badge .hero__hint { bottom: 100px; }
@media (max-width: 760px) {
  .has-host-badge .mobile-cta { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); }
}
