/* Rebuilt from tatianalourenco.com (home-* rules, final cascade values), plus shared Work card styles. */

/* ---------- Tokens ---------- */
:root {
  --brand-apricot: #f8cf91;
  --brand-lavender: #c1bcf0;
  --brand-lemon: #fdaf08;
  --brand-charcoal: #2b2431;
  --brand-soft-gray: #fdfcf1;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", sans-serif;
  --font-serif: "Inter", sans-serif;
  --radius: 12px;
  --r-lg: 24px;
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --reveal-duration: .8s;
  --reveal-stagger: 70ms;
  --slow: 1;

  /* dark is the base layer, exactly like the original */
  --surface-100: #2b2431;
  --surface-200: #896996;
  --ink-c: #fdfcf1;
  --ink-muted: #c1bcf0;
  --accent-text: #fdaf08;
  --hairline: #896996;
  --ink: #fdfcf1;
  --paper: #2b2431;
  --fill-lavender: #c1bcf0;
  --fill-lemon: #fdaf08;
  --fill-ink: #2b2431;
  --fill-line: #896996;
  --background: var(--surface-100);
  --foreground: var(--ink-c);
  --card: var(--surface-200);
  --muted-foreground: var(--ink-muted);
  --border: var(--hairline);
  --primary: var(--fill-lemon);
  --primary-foreground: var(--fill-ink);
  --primary-hover: #f8cf91;
  --primary-active: var(--accent-text);
  --secondary: var(--fill-lavender);
  --accent: var(--brand-lemon);
  --muted-text: color-mix(in oklab, var(--ink-c) 72%, var(--background));
  --veil: color-mix(in oklab, var(--background) 88%, transparent);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --surface-100: #fdfcf1;
  --surface-200: #f7f7fc;
  --ink-c: #2b2431;
  --ink-muted: #896996;
  --accent-text: #896996;
  --hairline: #f8cf91;
  --ink: #2b2431;
  --paper: #fdfcf1;
  --primary-hover: #fdaf08;
  --fill-lavender: #e2b1d6;
  --fill-lemon: #f8cf91;
  --fill-ink: #2b2431;
  color-scheme: light;
}
:root[data-theme="dark"] { --ring: var(--fill-lemon); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { color: #fdfcf1; background: #5d5a7c; }
:focus-visible { outline: 2px solid var(--ink-c); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Accessibility helpers ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; padding: .7rem 1.1rem; border-radius: 999px; background: var(--fill-lemon); color: var(--fill-ink); font-size: .875rem; translate: 0 -200%; transition: translate .2s; }
.skip-link:focus, .skip-link:focus-visible { translate: 0 0; outline: 2px solid var(--fill-ink); outline-offset: 2px; }
main:focus { outline: none; }

.portfolio-home { overflow: clip; }

/* ---------- Header ---------- */
.home-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 60px; padding: 0 6vw;
  background: color-mix(in oklab, var(--background) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.home-wordmark { display: inline-flex; align-items: center; gap: .55rem; width: fit-content; text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; font-weight: 400; }
.home-wordmark img { width: 2rem; height: 2rem; object-fit: contain; flex: none; }
.home-header nav { display: flex; gap: 2.25rem; text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; font-weight: 400; }
.home-header nav a, .home-contact-link { transition: color .2s; }
.home-header nav a:hover, .home-contact-link:hover, .home-header nav a[aria-current="page"] { color: var(--accent-text); }
.home-contact-link { display: inline-flex; align-items: center; gap: .4rem; justify-self: end; text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; font-weight: 400; }
.home-contact-link svg { width: .9rem; }
.home-header-actions { justify-self: end; display: inline-flex; align-items: center; gap: .6rem; }
.home-theme-toggle {
  display: inline-flex; justify-content: center; align-items: center;
  width: 2.1rem; height: 2.1rem; padding: 0;
  border: 1px solid var(--ink-c); border-radius: var(--r-lg);
  background: var(--surface-100); color: var(--ink-c); cursor: pointer;
  transition: background .2s, transform .2s;
}
.home-theme-toggle:hover { background: var(--surface-200); transform: translateY(-2px); }
.home-theme-toggle svg { width: .95rem; height: .95rem; }
.home-menu-toggle { display: none; }
.home-resume-link { border: 1px solid var(--ink-c); border-radius: var(--r-lg); background: var(--surface-100); color: var(--ink-c); padding: .55rem 1.1rem; transition: background .2s, color .2s, transform .2s; }
.home-resume-link:hover { background: var(--surface-200); color: var(--ink-c); transform: translateY(-2px); }
.home-resume-link svg { width: .9rem; height: .9rem; }

/* ---------- Hero ---------- */
.home-hero { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; align-items: center; gap: 2rem; min-height: calc(100svh - 60px); padding: 2rem max(6vw, 6rem) 2.5rem; }
.home-hero-main { display: grid; grid-template-columns: auto 1fr; justify-content: center; justify-self: center; align-items: center; gap: clamp(2.5rem, 6vw, 5.5rem); }
.home-hero-text { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.home-hero h1 { display: flex; flex-direction: column; margin: 0; font: 400 clamp(2rem, 3.2vw + .9rem, 3.75rem)/1.05 var(--font-serif); letter-spacing: -.015em; text-wrap: balance; }
.home-hero h1 span:last-child { align-self: flex-start; }
@media (min-width: 801px) { .home-hero h1 span:last-child { white-space: nowrap; } }
.home-portrait-wrap { position: relative; aspect-ratio: 1; width: min(26vw, 22rem); margin-left: 1.5rem; }
.home-portrait-wrap::before, .home-portrait-wrap::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.home-portrait-wrap::before { background: var(--fill-lavender); transform: translate(-1rem, 1rem); }
.home-portrait-wrap::after { background: var(--fill-lemon); transform: translate(1rem, -1rem); }
.home-portrait-wrap img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: var(--r-lg); outline: 1px solid var(--ink); outline-offset: -1px; transform: rotate(-8deg); }
.home-hero-lead { max-width: 34rem; margin: 0; font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.5; }
.home-hero-stats { display: flex; gap: 0; max-width: 38rem; }
.home-hero-stats > div { display: flex; flex-direction: column; flex: 1; gap: .25rem; padding: 0 1.25rem; border-right: 1px solid var(--hairline); }
.home-hero-stats > div:first-child { padding-left: 0; }
.home-hero-stats > div:last-child { border-right: 0; padding-right: 0; }
.home-hero-stats strong { font: 400 clamp(1.5rem, 2.4vw, 2.25rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.home-hero-stats span { color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .09em; font-size: .75rem; line-height: 1.3; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.home-cta {
  display: inline-flex; justify-content: center; align-items: center; gap: .6rem;
  min-height: 3rem; padding: .85rem 1rem;
  border: 1px solid var(--fill-ink); border-radius: var(--r-lg);
  text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; font-weight: 400;
  transition: background .2s, color .2s, transform .2s; cursor: pointer;
}
.home-cta svg { width: 1rem; }
.home-cta-primary { background: var(--fill-lemon); color: var(--fill-ink); }
.home-cta-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }
.home-cta-secondary { background: var(--surface-100); color: var(--ink-c); border-color: var(--ink-c); }
.home-cta-secondary:hover { background: var(--surface-200); color: var(--ink-c); transform: translateY(-2px); }
.home-scroll-cue { display: inline-flex; flex-direction: column; justify-self: center; align-items: center; gap: .35rem; color: var(--ink-muted); letter-spacing: .1em; text-transform: uppercase; font-size: .6875rem; font-weight: 400; line-height: 1; }
.home-scroll-cue svg { width: 1.25rem; height: 1.25rem; animation: tl-bounce 1.8s ease-in-out infinite; }
.home-scroll-cue:hover { color: var(--ink); }
@keyframes tl-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.35rem); } }

/* ---------- Section heading ---------- */
.home-section-heading { display: grid; grid-template-columns: 1fr 2.5fr; align-items: start; gap: 3rem; margin-bottom: 5rem; }
.home-section-heading.home-section-heading-center { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.home-section-heading > p { margin: .4rem 0 0; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; font-weight: 400; line-height: 16px; }
.home-section-heading :is(h1, h2) { max-width: 55rem; margin: 0; font: 400 clamp(1.75rem, 2.2vw + .75rem, 3rem)/1.08 var(--font-serif); letter-spacing: -.01em; text-wrap: balance; }

/* ---------- About ---------- */
.home-testimonials, .home-about { padding: 8rem 6vw; }
.home-about { display: flex; flex-direction: column; align-items: center; gap: 3rem; background: var(--fill-lavender); color: var(--fill-ink); }
.home-about .home-section-heading > p { color: var(--fill-ink); }
.home-timeline { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 70rem; }
.home-timeline-group { display: flex; flex-direction: column; border-bottom: 1px solid var(--fill-line); }
.home-timeline-group:first-child { border-top: 1px solid var(--fill-line); }
.home-timeline-trigger { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1.5rem .25rem; border: none; background: none; text-align: left; cursor: pointer; transition: background-color .2s; }
.home-timeline-trigger:hover { background: color-mix(in oklab, var(--fill-ink) 4%, transparent); }
.home-timeline-label { flex: 1; margin: 0; color: var(--fill-ink); font-size: clamp(1.1rem, 1vw + .7rem, 1.5rem); font-weight: 400; }
.home-timeline-count { color: var(--fill-ink); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 400; }
.home-timeline-chevron { width: 1.1rem; height: 1.1rem; flex: none; color: var(--fill-ink); transition: transform .45s cubic-bezier(.22, .8, .24, 1); }
.home-timeline-trigger.is-open .home-timeline-chevron { transform: rotate(180deg); }
.home-timeline-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0; transition: grid-template-rows .45s var(--ease-out), opacity .3s ease, visibility 0s linear .45s; }
.home-timeline-panel.is-open { grid-template-rows: 1fr; visibility: visible; opacity: 1; transition: grid-template-rows .45s var(--ease-out), opacity .45s ease, visibility 0s; }
.home-timeline-panel-inner { min-height: 0; overflow: hidden; }
.home-experience-list { width: 100%; padding-bottom: .5rem; border-top: 1px solid var(--fill-line); }
.home-experience-list > div { display: grid; grid-template-columns: 2fr 7fr 3fr; align-items: start; gap: clamp(1.5rem, 4vw, 3rem); padding: 1.75rem 0; border-bottom: 1px solid var(--fill-line); transition: background-color .2s; }
.home-experience-list > div:hover { background: color-mix(in oklab, var(--fill-ink) 4%, transparent); }
.home-experience-list span { padding-top: .15rem; color: var(--fill-ink); text-transform: uppercase; letter-spacing: .16em; font-variant-numeric: tabular-nums; font-size: .6875rem; font-weight: 400; }
.home-experience-list h3 { margin: 0; font: 400 clamp(1.15rem, .7vw + .8rem, 1.6rem)/1.2 var(--font-display); }
.home-exp-content { display: flex; flex-direction: column; gap: .5rem; }
.home-exp-inst { margin: 0; padding-top: .15rem; color: var(--fill-ink); text-align: right; font-size: .8rem; font-weight: 400; line-height: 1.45; }
.home-experience-detail { margin: 0; color: var(--fill-ink); font-size: .82rem; line-height: 1.6; }
.home-tech-block { margin-top: 6rem; }
.home-tech-label { margin: 0 0 2rem; color: var(--fill-ink); text-align: center; text-transform: uppercase; letter-spacing: .11em; font-size: .75rem; font-weight: 400; }
.home-tech-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; }
.home-tech-grid > a { position: relative; display: inline-flex; justify-content: center; align-items: center; min-width: 0; opacity: .85; transition: transform .2s, opacity .2s; }
.home-tech-grid > a:hover { opacity: 1; transform: translateY(-3px); }
.home-tech-grid > a:hover .home-tech-name, .home-tech-grid > a:focus-visible .home-tech-name { opacity: 1; transform: translate(-50%); }
.home-tech-grid > a:focus-visible { opacity: 1; }
.home-tech-name { position: absolute; top: calc(100% + .5rem); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; color: var(--fill-ink); opacity: 0; pointer-events: none; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 400; transition: opacity .2s, transform .2s; }
.home-tech-grid img.home-tech-icon { width: 2.75rem; height: 2.75rem; object-fit: contain; }

/* ---------- Testimonials ---------- */
.home-testimonials { background: var(--background); }
.home-testimonial-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.2rem; }
.home-testimonial { grid-column: span 4; grid-row: span 3; display: grid; grid-template-rows: subgrid; min-width: 0; border: 1px solid var(--ink-c); border-radius: var(--r-lg); background: none; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.home-testimonial-card { grid-row: span 3; display: grid; grid-template-rows: subgrid; gap: 16px; padding: 24px; color: var(--ink-c); }
.home-testimonial-head { display: grid; grid-template-columns: 64px 1fr; align-items: start; gap: 16px; }
.home-testimonial-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.home-testimonial-head strong { display: block; font-size: 24px; font-weight: 400; line-height: 30px; }
.home-testimonial-head span { display: block; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.home-testimonial-card blockquote { flex: 1; margin: 0; font: 300 clamp(1rem, .35vw + .95rem, 1.1rem)/1.7 var(--font-sans); quotes: "“" "”"; }
.home-testimonial-card blockquote::before { content: open-quote; }
.home-testimonial-card blockquote::after { content: close-quote; }
.home-testimonial-card:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.home-testimonial-foot { margin: 0; padding-top: 16px; border-top: 1px solid var(--hairline); color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; font-weight: 400; line-height: 16px; }
.home-testimonial-dots { display: none; }

/* ---------- Closing + footer ---------- */
.home-closing { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 75svh; padding: 8rem 6vw 3rem; background: var(--fill-lemon); color: var(--fill-ink); text-align: center; }
.home-closing .home-section-heading { margin-bottom: 1.75rem; }
.home-closing .home-section-heading > p { color: var(--fill-ink); }
.home-closing h2 { margin: 0; font: 400 clamp(2rem, 5vw, 6rem)/.98 var(--font-serif); letter-spacing: -.015em; }
.home-closing-sub { max-width: 40rem; margin: 0 0 3rem; font-size: 1rem; }
.home-closing .home-hero-actions { justify-content: center; }
:root[data-theme="dark"] .home-about, :root[data-theme="dark"] .home-closing, :root[data-theme="dark"] .home-footer { --ring: var(--fill-ink); }
:root[data-theme="dark"] .home-closing .home-cta-secondary { border-color: var(--fill-ink); }
.home-closing-socials { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.home-closing-socials a { display: inline-flex; align-items: center; }
.home-closing-socials svg { width: 1.75rem; height: 1.75rem; transition: transform .3s var(--ease-out); }
.home-footer { display: flex; justify-content: space-between; padding: 1.5rem 6vw; background: var(--fill-lemon); color: var(--fill-ink); text-transform: uppercase; letter-spacing: .09em; font-size: .6875rem; font-weight: 400; }
.home-footer a { display: inline-flex; align-items: center; gap: .4rem; }
.home-footer svg { width: .85rem; }

/* ---------- Work section on the home page ---------- */
.home-work { padding: 8rem 6vw; background: var(--background); }
.home-work .home-section-heading { margin-bottom: 4rem; }
.home-section-heading > p.home-work-lead { max-width: 36rem; margin: 0; color: var(--muted-text); text-transform: none; letter-spacing: normal; font-size: 1rem; line-height: 1.6; text-wrap: balance; }
.home-work-more { display: flex; justify-content: center; margin-top: 3.5rem; }

/* ---------- Work cards (shared by home and work page) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1360px; margin: 0 auto; }
@media (max-width: 1080px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .work-grid { grid-template-columns: 1fr; } }
.wcard { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 18px 18px 22px; border: 1px solid var(--ink-c); border-radius: var(--r-lg); color: var(--ink-c); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.stack { position: relative; aspect-ratio: 4 / 3; max-width: 100%; }
/* cards share rows with their neighbours, so titles, text, the footer line and the tags line up across a row */
@supports (grid-template-rows: subgrid) {
  .work-grid > .wcard { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .work-grid > .wcard .card-body { display: contents; }
  .work-grid > .wcard .stack { margin-bottom: 20px; }
  .work-grid > .wcard .card-title, .work-grid > .wcard .card-body > p, .work-grid > .wcard .card-foot { margin-inline: 6px; }
  .work-grid > .wcard .card-title { margin-bottom: 10px; }
  .work-grid > .wcard .card-body > p { margin-bottom: 10px; }
  .work-grid > .wcard .card-foot { align-self: start; margin-top: 4px; }
}
.stack::before, .stack::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); transition: transform calc(.45s * var(--slow)) var(--ease-out); }
.stack::before { background: var(--b1); }
.stack::after { background: var(--b2); }
.frame { position: relative; z-index: 2; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius); outline: 1px solid var(--ink); outline-offset: -1px; background: var(--surface-200); transition: transform calc(.45s * var(--slow)) var(--ease-out); }
.frame > img, .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.frame > video.reel-v { z-index: 3; opacity: 0; transition: opacity calc(.2s * var(--slow)) ease; }
.still { position: absolute; inset: 0; display: grid; gap: 6px; padding: 6px; background: var(--b0); }
.tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 8px; background: var(--tc); }
.tile::after { content: attr(data-label); position: absolute; left: 8px; bottom: 7px; color: #2b2431; opacity: .6; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
.tile.ui::before {
  content: ""; position: absolute; inset: 16% 12%; border-radius: 8px;
  outline: 1px solid #2b2431; outline-offset: -1px;
  background:
    linear-gradient(#2b2431, #2b2431) 10% 16% / 30% 7px no-repeat,
    linear-gradient(rgba(43,36,49,.18), rgba(43,36,49,.18)) 10% 38% / 76% 6px no-repeat,
    linear-gradient(rgba(43,36,49,.18), rgba(43,36,49,.18)) 10% 54% / 60% 6px no-repeat,
    linear-gradient(rgba(43,36,49,.18), rgba(43,36,49,.18)) 10% 70% / 68% 6px no-repeat,
    #fdfcf1;
}
.still.mosaic { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; }
.still.mosaic .tile:first-child { grid-row: 1 / 3; }
.still.single { grid-template-columns: 1fr; }
.still.trio { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.still.trio .tile:first-child { grid-column: 1 / 3; }
.still.trio .tile:nth-child(4) { grid-column: 2 / 4; }
.reel { position: absolute; inset: 0; z-index: 3; opacity: 0; transition: opacity calc(.2s * var(--slow)) ease; pointer-events: none; }
.reel canvas { display: block; width: 100%; height: 100%; }
.card-body { display: grid; gap: 10px; padding-inline: 6px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title :is(h2, h3) { margin: 0; font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.card-title span { color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
.card-body p { margin: 0; color: var(--muted-text); font-size: 15px; line-height: 23px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 8px; border: 1px solid var(--ink-c); border-radius: 24px; color: var(--ink-c); text-transform: uppercase; letter-spacing: .09em; font-size: 11px; line-height: 1.5; transition: background-color calc(.25s * var(--slow)) var(--ease-out), color .25s; transition-delay: calc(var(--t, 0) * 40ms * var(--slow)); }
.open-cue { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.open-cue svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
@media (hover: hover) {
  .wcard:hover, .wcard:focus-visible { transform: translateY(-3px); }
  .wcard:hover .stack::before, .wcard:focus-visible .stack::before { transform: translate(12px, -10px) rotate(4deg); }
  .wcard:hover .stack::after, .wcard:focus-visible .stack::after { transform: translate(-10px, 10px) rotate(-3deg); }
  .wcard:hover .frame, .wcard:focus-visible .frame { transform: rotate(-2deg); }
  .wcard:hover .reel, .wcard:focus-visible .reel, .wcard:hover .reel-v, .wcard:focus-visible .reel-v { opacity: 1; }
  .wcard:hover .tag, .wcard:focus-visible .tag { background: var(--tbg); color: #2b2431; border-color: #2b2431; }
  .wcard:hover .open-cue svg { transform: translateX(4px); }
}
.wcard:focus-visible { outline: 2px solid var(--ink-c); outline-offset: 4px; }

/* ---------- Responsive (original breakpoints) ---------- */
@media (max-width: 1000px) {
  .home-hero { padding-inline: 6vw; }
  .home-testimonial-grid {
    --carousel-gutter: 6vw;
    grid-template-columns: none; grid-template-rows: auto 1fr auto; grid-auto-columns: min(85%, 26rem); grid-auto-flow: column;
    gap: 1rem; margin-inline: calc(var(--carousel-gutter) * -1); padding-inline: var(--carousel-gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--carousel-gutter); scrollbar-width: none;
  }
  .home-testimonial-grid::-webkit-scrollbar { display: none; }
  .home-testimonial { grid-column: auto; scroll-snap-align: start; }
  .home-testimonial-dots { display: flex; justify-content: center; margin-top: 1rem; }
  .home-testimonial-dots button { display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; }
  .home-testimonial-dots button::before { content: ""; width: .625rem; height: .625rem; border: 1px solid var(--ink-c); border-radius: 50%; transition: background .2s; }
  .home-testimonial-dots button[aria-current="true"]::before { background: var(--ink-c); }
}
@media (max-width: 800px) {
  .home-header { grid-template-columns: 1fr auto; padding-inline: 1.5rem; }
  .home-wordmark-name { white-space: nowrap; }
  .home-header nav { display: none; }
  .home-header nav.is-open { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; padding: .5rem 1.5rem 1rem; background: var(--background); border-bottom: 1px solid var(--hairline); }
  .home-header nav.is-open a { display: flex; align-items: center; min-height: 2.75rem; }
  .home-menu-toggle { display: inline-flex; }
  .home-hero { gap: 1.6rem; min-height: calc(100svh - 4.2rem); padding: 1.4rem 1.5rem 2rem; }
  .home-hero-main { grid-template-columns: 1fr; gap: 2rem; }
  .home-hero-text { gap: 1.5rem; }
  .home-hero h1 { font-size: clamp(1.6rem, 8.2vw, 3rem); line-height: 1.05; }
  .home-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 0; max-width: 100%; }
  .home-hero-stats > div { padding: 0 1rem; }
  .home-hero-stats > div:nth-child(odd) { padding-left: 0; }
  .home-hero-stats > div:nth-child(2n) { border-right: 0; padding-right: 0; }
  .home-portrait-wrap { justify-self: start; width: min(40vw, 10rem); margin-left: .5rem; }
  .home-portrait-wrap::before { transform: translate(-.5rem, .5rem); }
  .home-portrait-wrap::after { transform: translate(.5rem, -.5rem); }
  .home-hero-actions { width: 100%; }
  .home-cta { flex: auto; white-space: nowrap; }
  .home-testimonials, .home-about, .home-work { padding: 5rem 1.5rem; }
  .home-section-heading { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3.5rem; }
  .home-section-heading :is(h1, h2) { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .home-about { gap: 2rem; }
  .home-experience-list > div { grid-template-columns: 1fr; gap: .5rem; }
  .home-experience-list span { letter-spacing: .12em; }
  .home-exp-inst { text-align: left; padding-top: 0; }
  .home-experience-list > div:hover { background: none; }
  .home-tech-grid { gap: 1.25rem; }
  .home-tech-block { margin-top: 4rem; }
  .home-testimonial-grid { --carousel-gutter: 1.5rem; }
  .home-closing { min-height: 60svh; padding: 5rem 1.5rem; }
  .home-closing .home-section-heading { margin-bottom: 1.5rem; }
  .home-closing h2 { font-size: clamp(2rem, 12vw, 3.5rem); }
  .home-closing-socials { gap: .5rem; margin-top: 2rem; }
  .home-closing-socials a { padding: .5rem; }
  .home-footer { flex-wrap: wrap; gap: .5rem 1rem; padding-inline: 1.5rem; }
}
@media (max-width: 480px) {
  .home-resume-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .home-resume-link { padding-inline: .7rem; }
}
@media (max-width: 360px) { .home-wordmark-name { display: none; } }

/* ---------- Motion (original choreography) ---------- */
@keyframes home-reveal { 0% { opacity: 0; translate: 0 16px; } }
@keyframes home-float { to { translate: 0 -8px; } }
@media screen and (prefers-reduced-motion: no-preference) {
  .home-portrait-wrap { --i: 0; }
  .home-hero h1 span:first-child { --i: 1; }
  .home-hero h1 span:last-child { --i: 2; }
  .home-hero-lead { --i: 3; }
  .home-hero-stats { --i: 4; }
  .home-hero .home-hero-actions { --i: 5; }
  .home-scroll-cue { --i: 7; }
  .home-portrait-wrap, .home-hero h1 span, .home-hero-lead, .home-hero-stats, .home-hero .home-hero-actions, .home-scroll-cue,
  .motion [data-reveal].is-visible, .motion [data-reveal-group].is-visible > * {
    animation: home-reveal calc(var(--reveal-duration) * var(--slow)) var(--ease-out) calc(var(--i, 0) * var(--reveal-stagger) * var(--slow)) backwards;
  }
  .home-portrait-wrap img { animation: home-float 4s ease-in-out infinite alternate; }
  .motion [data-reveal]:not(.is-visible), .motion [data-reveal-group]:not(.is-visible) > * { opacity: 0; }
  .motion [data-count]:not(.is-counted) { visibility: hidden; }
  .home-cta:active { transform: scale(.98); }
  .home-closing-socials a:hover svg, .home-closing-socials a:focus-visible svg { transform: translateY(-3px) scale(1.08); }
}
@media (hover: hover) and (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  .home-testimonial:hover, .home-testimonial:focus-within { box-shadow: 0 16px 32px -24px var(--ink-c); transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-timeline-panel, .home-timeline-panel.is-open, .home-timeline-chevron, .home-testimonial, .home-closing-socials svg, .wcard, .stack::before, .stack::after, .frame { transition: none; }
}

/* Beyond Mattrix cover (built by site.js): a tilted phone with brand icons floating around it.
   On hover the icons fly out, the phone straightens and zooms, and a belt of the same posts moves behind it in step. */
.frame > .bmc { position: absolute; inset: 0; }
.bmc { --k: 0; container-type: size; overflow: hidden; color: #121016; font-family: 'Inter', system-ui, sans-serif; background: linear-gradient(180deg, #8f3cf0, #3d2a8c); }
.bmc img { display: block; }
.bmc-track { display: flex; width: 100%; height: 100%; transition: transform .75s cubic-bezier(.7, 0, .25, 1); }

/* Belt: slot = 30cqw poster + 3cqw gap; slot (n + k) sits centred behind the phone */
.bmc-feed { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .5s ease; }
.bmc-belt { display: flex; gap: 3cqw; transform: translateX(calc(35cqw - (var(--n) + var(--k)) * 33cqw)); transition: transform .75s cubic-bezier(.7, 0, .25, 1); }
.bmc-belt img { flex: 0 0 30cqw; width: 30cqw; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2cqw; box-shadow: 0 2cqw 4cqw rgba(18, 16, 22, .35); }
.bmc.is-playing .bmc-feed { opacity: 1; }

.bmc-float { position: absolute; z-index: 2; aspect-ratio: 1; color: var(--c); transition: translate .55s cubic-bezier(.5, 0, .75, 0), opacity .4s ease, scale .55s ease; }
.bmc-float svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1cqw 1.6cqw rgba(18, 16, 22, .3)); animation: bmc-bob 4.8s ease-in-out var(--d) infinite alternate; }
@keyframes bmc-bob { from { translate: 0 -1.2cqh; rotate: -4deg; } to { translate: 0 1.2cqh; rotate: 4deg; } }
.bmc.is-playing .bmc-float { translate: var(--ex) var(--ey); scale: .6; opacity: 0; }

/* Same phone as the case's results grid (.bt-phone, 249px wide): the box scaled to its 40cqw width, its insides in the phone's own cqw */
.bmc-phone { position: absolute; z-index: 1; left: 50%; top: 12cqh; width: 40cqw; aspect-ratio: 9 / 18.5; container-type: inline-size; translate: -50% 0; rotate: -3deg; transform-origin: 50% 15%; border: 1.12cqw solid #121016; border-radius: 5.46cqw; background: #fff; overflow: hidden; box-shadow: 0 4.82cqw 8.03cqw -3.21cqw rgba(0, 0, 0, .45); transition: scale .7s cubic-bezier(.22, .8, .24, 1), rotate .7s cubic-bezier(.22, .8, .24, 1); }
.bmc.is-playing .bmc-phone { scale: 1.22; rotate: 0deg; }
.bmc-notch { position: absolute; z-index: 2; top: 2.13cqw; left: 50%; width: 34%; height: 5.11cqw; translate: -50% 0; border-radius: 99px; background: #121016; }
.bmc-ig-top { display: flex; align-items: center; gap: 2.55cqw; padding: 7.66cqw 4.26cqw 3.40cqw; font-size: 4.26cqw; font-weight: 500; color: #121016; }
.bmc-ig-top img { width: 8.51cqw; height: 8.51cqw; border-radius: 50%; }
.bmc-ig-media { overflow: hidden; aspect-ratio: 4 / 5; }
.bmc-ig-media img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.bmc-dots { display: flex; justify-content: center; gap: 1.28cqw; padding: 3.40cqw 0 1.70cqw; }
.bmc-dots i { width: 1.70cqw; height: 1.70cqw; border-radius: 50%; background: #121016; opacity: .25; transition: opacity .2s ease, background .2s ease; }
.bmc-dots i.on { opacity: 1; background: #ff2d95; }
.bmc-ig-lines { display: grid; gap: 2.13cqw; margin: 0; padding: 1.70cqw 4.26cqw; }
.bmc-ig-lines i { height: 2.13cqw; border-radius: 1.28cqw; background: #121016; opacity: .12; }
.bmc-ig-lines i:last-child { width: 60%; }
@media (prefers-reduced-motion: reduce) { .bmc-track, .bmc-belt, .bmc-phone, .bmc-feed, .bmc-float { transition: none; } .bmc-float svg { animation: none; } }

/* Leptis cover: components from the "What you can do" section, dark theme. Sizes are in cqw of the cover. */
.frame > .lxc { position: absolute; inset: 0; }
.lxc { container-type: size; overflow: hidden; color: #e9eaeb; font-family: 'Source Sans 3', 'Inter', system-ui, sans-serif; line-height: 1.3; background: radial-gradient(60% 55% at 62% 18%, rgba(15, 78, 144, .55), transparent 70%), radial-gradient(40% 40% at 10% 95%, rgba(97, 200, 141, .12), transparent 70%), #0b0c0d; }
.lxc svg { display: block; }
.lxc p { margin: 0; }
.lxc b { font-weight: 600; }
.lxc small { display: block; font-size: .86em; color: #a2a6aa; }
.lxc-w, .lxc-biz { position: absolute; font-size: 1.9cqw; border-radius: 1.8cqw; box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .55); overflow: hidden; }
/* the frame of each component: a tinted gradient along its top and left edges, around a dark pane */
.lxc-w { border: .22cqw solid #2b4560; background: linear-gradient(100deg, #21323f 35%, var(--g)); }
.lxc-pane { position: absolute; inset: 2.6cqw 0 0 2.6cqw; padding: 2cqw; border-top-left-radius: 1.3cqw; border: .22cqw solid #2d3a44; border-right: 0; border-bottom: 0; background: #161819; }
.lxc-ic { display: grid; place-items: center; flex: none; width: 4.6cqw; height: 4.6cqw; border-radius: 1.2cqw; }
.lxc-ic svg { width: 55%; height: 55%; }
.lxc-head { display: flex; align-items: center; gap: 1.6cqw; }
.lxc-head p { flex: 1; min-width: 0; }

.lxc-map { left: 3cqw; top: 5.4cqh; width: 46cqw; height: 45.3cqh; }
.lxc-map .lxc-pane { padding: 1.6cqw 0 0 1.6cqw; display: flex; flex-direction: column; gap: 1.6cqw; }
.lxc-search { display: flex; align-items: center; gap: 1.2cqw; padding: 1.2cqw 1.6cqw; border-radius: 1.2cqw 0 0 1.2cqw; background: #2d3032; color: #b5b8bb; white-space: nowrap; }
.lxc-search svg { width: 2.2cqw; height: 2.2cqw; flex: none; }
.lxc-mapbox { position: relative; flex: 1; border-top-left-radius: 1.2cqw; overflow: hidden; background: #26292b; }
.lxc-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.lxc-chip { position: absolute; left: 4%; top: 10%; display: flex; align-items: center; gap: .8cqw; padding: .7cqw 1.3cqw; border-radius: 99px; background: #161819; border: .2cqw solid #2d3032; font-size: .9em; }
.lxc-chip svg { width: 2cqw; height: 2cqw; color: #4d93e1; }
.lxc-pin { position: absolute; width: 3.4cqw; height: 3.4cqw; translate: -50% -100%; filter: drop-shadow(0 .4cqw .6cqw rgba(0, 0, 0, .5)); }
.lxc-pin svg { width: 100%; height: 100%; }
.lxc-main { width: 4.6cqw; height: 4.6cqw; }
.lxc-tip { position: absolute; left: 54%; top: 22%; padding: 1cqw 1.6cqw; border-radius: 1.2cqw; background: #161819; border: .2cqw solid #2d3032; box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .4); }
.lxc-tip small { display: flex; align-items: center; gap: .7cqw; margin-top: .3cqw; color: #c8cbce; }
.lxc-tip small i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #61c88d; }

.lxc-chat { left: 51cqw; top: 5.4cqh; width: 46cqw; height: 45.3cqh; font-size: 1.7cqw; background: linear-gradient(90deg, var(--g2), #21323f 40%, var(--g)); }
.lxc-chat .lxc-pane { padding: 0; }
.lxc-chat .lxc-head { padding: 1.6cqw 2cqw; border-bottom: .2cqw solid #2a2d30; }
.lxc-chat .lxc-ic { border-radius: 50%; }
.lxc-msgs { display: grid; gap: 1.3cqw; padding: 1.6cqw 2cqw; }
.lxc-msg { display: flex; align-items: center; gap: 1.2cqw; }
.lxc-msg .av { display: grid; place-items: center; flex: none; width: 3.6cqw; height: 3.6cqw; border-radius: 50%; font-style: normal; font-weight: 600; font-size: .9em; }
.lxc-msg span { padding: .9cqw 1.5cqw; border-radius: 1.2cqw; background: #2d3032; color: #dfe1e3; white-space: nowrap; }
.lxc-msg.me { justify-content: flex-end; padding-right: 2cqw; }
.lxc-msg.me span { background: #106fd7; color: #fff; }
.lxc-typing { display: flex; gap: .6cqw; }
.lxc-typing i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #fff; }

.lxc-loyal { left: 3cqw; top: 54.7cqh; width: 37cqw; height: 40cqh; }
.lxc-loyal .lxc-pane { display: flex; flex-direction: column; gap: 1.5cqw; }
.lxc-count { font-size: 1.05em; }
.lxc-stamps { display: flex; gap: .55cqw; }
.lxc-stamps i { flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: #2d3032; box-shadow: inset 0 0 0 .5cqw #2d3032, inset 0 0 0 .7cqw #3a3e41; transition: background .25s ease, box-shadow .25s ease, scale .25s ease; }
.lxc-stamps i.on { background: #fff; box-shadow: inset 0 0 0 .6cqw #61c88d; }
.lxc-bar { display: block; height: 1cqw; border-radius: 99px; background: #2d3032; overflow: hidden; }
.lxc-code { display: flex; align-items: center; gap: .9cqw; align-self: flex-start; margin-top: auto; padding: .9cqw 1.6cqw; border-radius: 99px; background: #106fd7; color: #fff; font-weight: 600; }
.lxc-code svg { width: 2.1cqw; height: 2.1cqw; }
.lxc.is-playing .lxc-code { animation: lxc-press 6s ease-in-out infinite; }
@keyframes lxc-press { 0%, 62% { scale: 1; } 66% { scale: .92; } 70%, 100% { scale: 1; } }
.lxc-bar i { display: block; height: 100%; border-radius: inherit; background: #61c88d; transition: width .35s ease; }

.lxc-biz { left: 42cqw; top: 54.7cqh; width: 22cqw; height: 40cqh; padding: 1.6cqw; font-size: 1.7cqw; border: .22cqw solid #2b4560; background: linear-gradient(200deg, #0f4e91, #213341 60%); }
.lxc-biz .lxc-pane { position: relative; inset: auto; padding: 1.3cqw; border: .22cqw solid #3a4f63; border-radius: 1.3cqw; }
.lxc-visits { display: flex; align-items: baseline; justify-content: space-between; margin-top: .2cqw !important; }
.lxc-visits b { font-size: 2.3em; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lxc-visits em { font-style: normal; font-size: .85em; color: #4d93e1; }
.lxc-cw { position: relative; margin-top: .6cqw; }
.lxc-chart { width: 100%; height: 5.4cqw; overflow: visible; }
.lxc-chart .ln { stroke-dasharray: 1; stroke-dashoffset: 0; }
.lxc-dot { position: absolute; right: 0; top: 20%; translate: 50% -50%; width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #facc15; box-shadow: 0 0 0 .5cqw rgba(250, 204, 21, .2); }
.lxc-days { display: flex; justify-content: space-between; margin-top: .6cqw !important; }
.lxc-bizt { display: block; margin-top: 1.4cqw; font-size: 1.2em; }
.lxc-grow { display: flex; align-items: center; gap: .8cqw; margin-top: .5cqw; color: #facc15; font-weight: 600; }
.lxc-grow svg { width: 2cqw; height: 2cqw; }

.lxc-blog { left: 66cqw; top: 54.7cqh; width: 31cqw; height: 40cqh; font-size: 1.75cqw; }
.lxc-blog .lxc-pane { padding: 0 0 0 1.8cqw; overflow: hidden; }
.lxc-posts { display: flex; flex-direction: column; }
.lxc-post { display: flex; align-items: center; gap: 1.4cqw; height: 10.4cqw; padding-right: 1cqw; border-bottom: .2cqw solid #2a2d30; }
.lxc-post .lxc-ic { width: 5.2cqw; height: 5.2cqw; background: #564a18; color: #f4c815; }
.lxc-post b { display: block; line-height: 1.2; }
.lxc-post small { margin-top: .4cqw; }

/* hover: the components play in one 6 s round */
.lxc.is-playing .lxc-pin { animation: lxc-drop 6s cubic-bezier(.3, 1.5, .5, 1) calc(.2s + var(--i) * .22s) infinite backwards; }
.lxc.is-playing .lxc-main svg { animation: lxc-bounce 1.2s ease-in-out 1.6s infinite; }
.lxc.is-playing .lxc-chip { animation: lxc-pop 6s ease-out .9s infinite backwards; }
.lxc.is-playing .lxc-tip { animation: lxc-pop 6s ease-out 1.5s infinite backwards; transform-origin: 0 100%; }
.lxc.is-playing .lxc-msg { animation: lxc-msg 6s ease-out calc(.3s + var(--i) * .85s) infinite backwards; }
.lxc.is-playing .lxc-typing i { animation: lxc-dots 1s ease-in-out infinite; }
.lxc.is-playing .lxc-typing i:nth-child(2) { animation-delay: .15s; }
.lxc.is-playing .lxc-typing i:nth-child(3) { animation-delay: .3s; }
.lxc.is-playing .lxc-posts { animation: lxc-posts 6s cubic-bezier(.6, 0, .3, 1) infinite; }
.lxc.is-playing .lxc-chart .ln { animation: lxc-line 6s ease-out infinite; }
.lxc.is-playing .lxc-dot { animation: lxc-dot 6s ease-out infinite; }
@keyframes lxc-drop { 0% { opacity: 0; translate: -50% -220%; } 7% { opacity: 1; translate: -50% -100%; } 86% { opacity: 1; } 93%, 100% { opacity: 0; translate: -50% -100%; } }
@keyframes lxc-bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12%; } }
@keyframes lxc-pop { 0% { opacity: 0; scale: .7; } 6% { opacity: 1; scale: 1; } 80% { opacity: 1; scale: 1; } 88%, 100% { opacity: 0; scale: .9; } }
@keyframes lxc-msg { 0% { opacity: 0; translate: 0 1.6cqw; } 5% { opacity: 1; translate: 0 0; } 78% { opacity: 1; } 86%, 100% { opacity: 0; } }
@keyframes lxc-dots { 0%, 60%, 100% { translate: 0 0; opacity: .5; } 30% { translate: 0 -40%; opacity: 1; } }
@keyframes lxc-posts { 0%, 12% { translate: 0 0; } 22%, 34% { translate: 0 -16.667%; } 44%, 56% { translate: 0 -33.333%; } 66%, 78% { translate: 0 -50%; } 88%, 100% { translate: 0 -66.667%; } }
@keyframes lxc-line { 0% { stroke-dashoffset: 1; } 35%, 100% { stroke-dashoffset: 0; } }
@keyframes lxc-dot { 0%, 30% { opacity: 0; scale: 0; } 38%, 100% { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .lxc * { animation: none !important; transition: none !important; } }

/* Vuri cover: the hero in a browser window on Vuri green; the thermal lens shows on hover */
.frame > .vrc { position: absolute; inset: 0; }
.vrc { container-type: size; overflow: hidden; background: #c2e88c; }
.vrc img { display: block; }
.vrc-win { position: absolute; left: 9cqw; top: 11cqh; width: 104cqw; border-top-left-radius: 2.6cqw; overflow: hidden; background: #f2f2f2; outline: 1px solid #2b2431; outline-offset: -1px; box-shadow: 0 3cqw 6cqw -2cqw rgba(43, 36, 49, .35); }
.vrc-bar { display: flex; align-items: center; gap: 1.1cqw; height: 5.6cqw; padding: 0 2.4cqw; background: #21323f; color: #c7d2dc; font-family: 'Inter', system-ui, sans-serif; font-size: 2.1cqw; }
.vrc-bar i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #4a5b69; }
.vrc-bar span { margin-left: 2.2cqw; }
.vrc-screen { --x: 70%; --y: 30%; --lens: 0; position: relative; aspect-ratio: 1440 / 900; }
.vrc-screen > img { width: 100%; height: 100%; }
.vrc-heat { position: absolute; inset: 0; opacity: var(--lens); -webkit-mask: radial-gradient(ellipse 8% 12.8% at var(--x) var(--y), #000 52%, transparent 74%); mask: radial-gradient(ellipse 8% 12.8% at var(--x) var(--y), #000 52%, transparent 74%); }
.vrc-heat img { position: absolute; left: 42.57%; top: 0; width: 50.24%; height: 100.44%; }
.vrc-ret { position: absolute; left: var(--x); top: var(--y); width: 13%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: .25cqw solid rgba(124, 107, 214, .9); box-shadow: 0 0 0 .5cqw rgba(194, 232, 140, .35); opacity: var(--lens); pointer-events: none; }
.vrc-ret i { position: absolute; left: 50%; top: 50%; width: 1cqw; height: 1cqw; translate: -50% -50%; border-radius: 50%; background: #7c6bd6; }
.vrc:not(.is-playing) .vrc-heat, .vrc:not(.is-playing) .vrc-ret { transition: opacity .3s ease; opacity: 0; }

/* the cover outline sits above the cover's own layers, so a window or phone that runs off the edge never hides it */
.frame > .bmc, .frame > .lxc, .frame > .vrc { border-radius: inherit; }
.bmc::after, .lxc::after, .vrc::after { content: ""; position: absolute; inset: 0; z-index: 9; border: 1px solid var(--cover-line, var(--ink)); border-radius: inherit; pointer-events: none; }
