@font-face {
    font-family: Inter;
    src: url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
:root { --brand-purple: #37146c; --plum: #260d32; --ink: #211427; --muted: #655966; --line: #e8dfe9; --link: var(--brand-purple); --shadow: 0 0 0 1px rgb(0 0 0 / 6%), 0 2px 3px rgb(0 0 0 / 5%), 0 8px 20px rgb(0 0 0 / 4%); color-scheme: light; font-family: var(--gh-font-body, Inter), system-ui, sans-serif; color: var(--ink); background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.container { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.site-header { padding-block: clamp(.75rem, 2vw, 1.5rem); }
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem clamp(1rem, 3vw, 3rem);
    padding-block: .25rem;
}
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.header-search {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}
.header-cta { padding: .7rem 1.3rem; color: white; background: var(--link); border-radius: .65rem; font-weight: 600; text-decoration: none; }
.header-cta:hover { background: var(--plum); }
.header-search:hover { background: var(--brand-purple); color: white; }
@media (max-width: 42rem) {
    .header-inner { padding-block: .65rem; gap: .6rem; }
    .header-inner nav { order: 1; width: 100%; padding-inline: .4rem; }
    .header-cta { padding-inline: .8rem; }
}
.site-title { display: inline-flex; align-items: center; gap: .65rem; color: inherit; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.site-intro { padding-block: 3rem 1rem; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -.04em; font-family: var(--gh-font-heading, Inter), system-ui, sans-serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2rem; }
.post-card { border-top: 1px solid var(--line); padding-block: 1rem; }
.article { max-width: 48rem; margin: 3rem auto; }
.content { overflow-wrap: anywhere; }
.site-footer { margin-top: 4rem; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; background: var(--ink); color: white; }
.footer-directory { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: start; gap: 2rem; }
.site-footer .site-title { justify-self: start; font-size: 1.5rem; }
.site-footer .site-mark { background: currentColor; }
.site-footer h2 { margin: 0 0 .7rem; font-size: .95rem; letter-spacing: 0; }
.site-footer address { font-style: normal; color: #d7ccd9; line-height: 1.7; }
.footer-directory :is(nav, address) a { display: block; width: fit-content; color: white; text-underline-offset: .25em; }
.footer-directory nav a { padding-block: .15rem; }
.footer-directory nav span { display: inline-block; margin-left: .3rem; color: #d7ccd9; }
.site-footer :focus-visible { outline-color: white; }
.site-footer small { display: block; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 18%); color: #d7ccd9; }
@media (max-width: 44rem) {
    .footer-directory { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
    .footer-directory .site-title { grid-column: 1 / -1; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body { container-type: inline-size; }
.content .kg-width-wide,
.content .kg-width-full {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: none;
    margin-inline: 0;
}
.content .kg-width-wide { width: min(70rem, 100cqw - 2rem); }
.content .kg-width-full { width: 100cqw; }
.kg-image-card img { display: block; width: 100%; }

.site-mark {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    background: var(--brand-purple);
    mask: url("../images/demograpo-logo.png") center / contain no-repeat;
}
.nav a { color: var(--ink); font-weight: 550; text-decoration: none; }
.nav a:hover, .post-card h2 a:hover { text-decoration: underline; }
.home-template { background: white; }
.home-template { --home-content-width: 62rem; }
.home-template .container { max-width: var(--home-content-width); }
.home-template .site-footer { margin-top: 0; }
.landing-opening {
    position: relative;
    isolation: isolate;
    color: var(--ink);
    margin-inline: calc(50% - 50cqw);
    padding-inline: max(1rem, calc((100cqw - 62rem) / 2));
    margin-bottom: 0;
    background-color: white;
    background-image: linear-gradient(to bottom, transparent 65%, rgb(55 20 108 / 6%)),
        radial-gradient(circle, #dedede .85px, transparent 1px),
        radial-gradient(ellipse at 90% 35%, rgb(55 20 108 / 5%), transparent 64%);
    background-size: cover, 20px 20px, cover;
    background-repeat: no-repeat, repeat, no-repeat;
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(6rem, 9vw, 9rem);
}
.landing-opening::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("../images/lupain-cover-outline.webp") right center / cover no-repeat;
    mix-blend-mode: multiply;
    opacity: .14;
    mask-image: linear-gradient(105deg, transparent, rgb(0 0 0 / 20%) 35%, black 80%);
}
.launch-section {
    position: relative;
    isolation: isolate;
    margin-top: clamp(-5rem, -5vw, -3rem);
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    scroll-margin-top: 1rem;
}
.launch-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 max(-2.5rem, calc((100% - 100cqw) / 2 + .5rem)) auto;
    height: 10rem;
    border-radius: clamp(1.25rem, 3vw, 2.75rem) clamp(1.25rem, 3vw, 2.75rem) 0 0;
    background: white;
    box-shadow: 0 -12px 30px -22px rgb(55 20 108 / 35%);
    pointer-events: none;
}
@media (max-width: 44rem) {
    .launch-section { padding-inline: .75rem; }
}

.landing-intro h1 { letter-spacing: .01em; margin: 0 0 1.5rem; max-width: 26ch; text-wrap: balance; font-size: clamp(2.35rem, 4vw, 3.6rem); line-height: 1.12; color: inherit; }
.landing-intro p { margin: 0; max-width: 54ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.55; }
.intro-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.secondary-action { padding: .7rem 1.3rem; border-radius: .65rem; color: var(--ink); background: white; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.launch-intro { margin: 1rem 0 0; max-width: 56ch; text-wrap: balance; color: var(--muted); line-height: 1.65; letter-spacing: .01em; }
#projects-title { margin: 0; line-height: 1.2; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: .015em; }
:root {
  --stagger-dur: 500ms;
  --stagger-distance: 12px;
  --stagger-stagger: 40ms;
  --stagger-blur: 3px;
  --stagger-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media screen and (prefers-reduced-motion: no-preference) {
    .item-arriving {
        animation: item-arrival var(--stagger-dur) var(--stagger-ease) backwards;
        animation-delay: calc(var(--arrival-order, 0) * var(--stagger-stagger));
    }
    @keyframes item-arrival {
        from { opacity: 0; transform: translateY(var(--stagger-distance)); filter: blur(var(--stagger-blur)); }
        to { opacity: 1; transform: translateY(0); filter: blur(0); }
    }
}
.institution-list { display: grid; gap: 1rem; margin-top: clamp(1.25rem, 2vw, 1.75rem); }
.institution {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1rem, 3vw, 2rem);
    border-radius: 1.5rem;
    background-color: color-mix(in srgb, var(--brand-purple) 4%, white);
}
.engagement-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; min-width: 0; padding: clamp(1rem, 3vw, 2rem); border-radius: 1.5rem; background: linear-gradient(115deg, #f5f3f8, #fbfafc); }
.engagement-card h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.2; }
.engagement-heading p { margin: .75rem 0 0; max-width: 38ch; color: var(--muted); line-height: 1.55; }
.engagement-gallery { display: grid; justify-self: center; width: min(85%, 19rem); min-width: 0; gap: 1.4rem; }
/* The card faces share a perspective plane; pagination sits below it. */
.engagement-gallery::before,
.engagement-gallery::after,
#engagement-list {
    grid-area: 1 / 1;
    border: 1px solid #dedbe3;
    border-radius: .85rem;
    transform-origin: 50% 75%;
    transform: perspective(48rem) rotateX(16deg) rotate(var(--card-angle));
}
.engagement-gallery { isolation: isolate; }
.engagement-gallery::before,
.engagement-gallery::after {
    content: "";
    pointer-events: none;
    box-shadow: 0 7px 12px -6px #30243933;
}
.engagement-gallery::before { --card-angle: 8deg; background: #e9e5ef; }
.engagement-gallery::after { --card-angle: 2deg; background: #f7f5fa; }
.engagement-controls:not([hidden]) { justify-self: center; display: flex; }
.engagement-controls button { display: grid; place-items: center; width: 28px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.engagement-controls button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); box-sizing: border-box; }
.engagement-controls button[aria-current="true"]::before { border-color: var(--brand-purple); background: var(--brand-purple); }
#engagement-list { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0; padding: 0;
    background: linear-gradient(150deg, white 60%, #faf9fc);
    --card-angle: -4deg;
    z-index: 1;
    min-width: 0;
    box-shadow: 0 3px 7px -3px #30243940;
}
.engagement-card:has(.engagement-controls:not([hidden])) #engagement-list { scrollbar-width: none; }
#engagement-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 4 / 3; box-sizing: border-box; gap: .75rem; margin: 0; padding: 1.15rem; list-style: none; scroll-snap-align: start; }
#engagement-list.is-deck { position: relative; perspective: 60rem; overflow: visible; touch-action: pan-y pinch-zoom; background: transparent; }
#engagement-list.is-deck ul {
    grid-area: 1 / 1;
    background: linear-gradient(150deg, white 60%, #faf9fc);
    border-radius: inherit;
    backface-visibility: hidden;
}
#engagement-list.is-deck > ul {
    transform-origin: center bottom;
    box-shadow: 0 2px 6px #30243928;
}
#engagement-list.is-deck ul[hidden] { display: none; }
.engagement-card li { display: grid; place-items: center; }
#engagement-list li:only-child { grid-area: 1 / 1 / -1 / -1; }
.engagement-card img { width: min(80%, 6.5rem); height: clamp(3.5rem, 7vw, 4.5rem); object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); }
@media (hover: hover) { .engagement-card li:hover img { filter: grayscale(0); } }
@media (prefers-reduced-motion: no-preference) {
    .engagement-card img { transition: filter 180ms ease-out; }
    #engagement-list { scroll-behavior: smooth; }
}
@media (max-width: 44rem) {
    .engagement-card { grid-template-columns: minmax(0, 1fr); }
}
.institution-story header { display: flex; align-items: center; gap: .7rem; font-size: .94rem; font-weight: 580; }
.institution-seal { width: 2.65rem; height: 2.65rem; object-fit: contain; }
.institution-story h3 { margin: 1.3rem 0 .65rem; font-size: clamp(2.15rem, 4vw, 3.4rem); font-weight: 620; line-height: 1.03; letter-spacing: -.04em; }
.institution-story p { margin: 0 0 1.25rem; max-width: 39ch; color: var(--muted); font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }
.institution-project { display: inline-flex; align-items: center; gap: .3rem; color: var(--brand-purple); text-decoration: none; font-weight: 600; }
.institution-project:hover, .institution-project:focus-visible { text-decoration: underline; }
.launch-gallery { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.25rem; min-width: 0; background: #252128; }
.photo-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
.launch-gallery { aspect-ratio: 1.52; }
.launch-gallery:has(.photo-controls:not([hidden])) .photo-track { scrollbar-width: none; }
.photo-track:focus-visible { outline-offset: -4px; }
.photo-track figure { position: relative; flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.photo-track img, .photo-outgoing { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-track figcaption { position: absolute; inset: auto 0 0; padding: 4rem 1.4rem 2.8rem; color: white; background: linear-gradient(transparent, rgb(12 10 16 / 82%)); font-size: .88rem; line-height: 1.35; }
.photo-track figcaption a { color: inherit; }
.photo-controls:not([hidden]) { position: absolute; z-index: 2; bottom: .25rem; left: 50%; transform: translateX(-50%); display: flex; }
.photo-controls button { display: grid; place-items: center; width: 32px; height: 36px; background: none; border: 0; padding: 0; cursor: pointer; }
.photo-controls button::before { content: ""; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; }
.photo-controls button[aria-current="true"]::before { background: white; }
.photo-controls button:focus-visible { outline: 2px solid white; outline-offset: -4px; border-radius: 50%; }
.photo-outgoing { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 44rem) {
    .institution { grid-template-columns: minmax(0, 1fr); }
    .institution { gap: 1.3rem; }
}
#latest { padding-block-start: clamp(1.5rem, 4vw, 3rem); }
#latest-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}
.latest-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.latest-story { padding: 1.25rem 0 0; }
.latest-story a { display: grid; gap: 1.25rem; color: inherit; text-decoration: none; }
.latest-story img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .75rem; }
.story-copy { align-self: center; min-width: 0; }
.story-copy time { color: var(--muted); font-size: .82rem; }
.story-copy h3 { margin: .5rem 0; font-size: 1.4rem; line-height: 1.15; overflow-wrap: anywhere; }
.story-copy p { max-width: 52ch; margin: 0; color: var(--muted); line-height: 1.6; }
.story-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; color: var(--brand-purple); font-weight: 600; }
.latest-story a:is(:hover, :focus-visible) h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.latest-story:first-child { grid-column: 1 / -1; }
.latest-story:first-child h3 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 3.8vw, 3rem); }
@media (min-width: 44.01rem) {
    .latest-story:first-child a:has(img) { grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
}
@media (max-width: 44rem) {
    .latest-stories { grid-template-columns: 1fr; }
}
.institution-story header span { text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--brand-purple); }
.contact-invitation {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-content: center;
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
    min-height: 100svh;
    margin-top: clamp(3rem, 7vw, 5rem);
    margin-inline: calc(50% - 50cqw);
    padding: clamp(3rem, 7vw, 6rem) calc(50cqw - 50%);
    background: #f7f5f9;
}
.contact-invitation::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    bottom: -8%;
    left: -3%;
    width: min(44rem, 60%);
    aspect-ratio: 1;
    background: radial-gradient(var(--brand-purple) 1.25px, transparent 1.6px) 0 0 / 7px 7px;
    mask: url("../images/demograpo-logo.png") center / contain no-repeat;
    opacity: .16;
}
#email-chooser {
    width: min(25rem, calc(100% - 2rem));
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    padding: 2rem;
    color: var(--ink);
    background: white;
}
#email-chooser::backdrop { background: rgb(26 14 34 / 50%); }
#email-chooser h2 { margin: 0 1rem .4rem 0; font-size: 1.45rem; }
#email-chooser p { margin: 0 0 1.25rem; color: var(--muted); }
#email-chooser button { color: var(--brand-purple); background: white; font: inherit; border: 0; cursor: pointer; }
#email-chooser form button { position: absolute; right: .5rem; top: .5rem; width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
.email-options { display: grid; gap: .4rem; }
.email-options a { border-radius: .55rem; padding: .65rem .9rem; background: #f7f5f9; text-decoration: none; font-weight: 550; }
.email-options a:hover { background: var(--line); }
#email-chooser .copy-address { padding: .75rem 0; text-decoration: underline; text-underline-offset: .2em; }
#email-chooser small { display: block; }
.contact-invitation h2 {
    margin: 0;
    color: var(--brand-purple);
    font-size: clamp(2.35rem, 4.4vw, 3.75rem);
    line-height: 1.06;
    text-wrap: balance;
}
.contact-invitation p { max-width: 38ch; margin: 1.25rem 0; color: var(--muted); }
.contact-email { text-underline-offset: .22em; font-weight: 550; }
.contact-form {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border-radius: 1.25rem;
    background: white;
}
.contact-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; }
.contact-form :is(input, textarea) {
    width: 100%;
    min-width: 0;
    padding: .7rem .85rem;
    border: 1px solid #aba1af;
    border-radius: .6rem;
    background: #fcfbfd;
    color: var(--ink);
    line-height: 1.5;
    font-family: inherit;
    font-size: 1rem;
}
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.contact-submit small { color: var(--muted); }
.contact-submit button { border: 0; font-family: inherit; font-size: 1rem; cursor: pointer; }
@media (max-width: 46rem) { .contact-invitation { grid-template-columns: 1fr; } }
@media (max-width: 24rem) { .contact-names { grid-template-columns: 1fr; } }
.article > header { padding-block: 1.5rem; }
.article h1 { margin: .4em 0; }
.article header img { border-radius: 1rem; }
.content { line-height: 1.75; }
.content blockquote { margin-inline: 0; padding-inline-start: 1.3rem; border-inline-start: 3px solid var(--link); }
.post-card h2 a { color: var(--ink); text-decoration: none; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

:root {
  --learn-shift: 2px;
  --learn-spread: 8deg;
  --learn-in: 350ms;
  --learn-out: 350ms;
  --learn-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-learn-chevron {
  display: inline-flex;
  transform: translateX(0);
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn-arm {
  transform-box: view-box;
  transform-origin: 10px 8px;
  vector-effect: non-scaling-stroke;
  transition: transform var(--learn-out) var(--learn-ease);
}
.t-learn:hover .t-learn-chevron { transform: translateX(var(--learn-shift)); transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm { transition-duration: var(--learn-in); }
.t-learn:hover .t-learn-arm-top { transform: rotate(var(--learn-spread)); }
.t-learn:hover .t-learn-arm-bot { transform: rotate(calc(var(--learn-spread) * -1)); }

@media (prefers-reduced-motion: reduce) {
  .t-learn-chevron, .t-learn-arm { transition: none !important; }
}

.engagement-next {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
    margin-top: 1rem;
    color: var(--brand-purple);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}
.engagement-next:hover { text-decoration: underline; }
#service-flow { margin-block: 0 5rem; scroll-margin-top: 1rem; }
.workflow-intro {
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2rem) .5rem;
    background: radial-gradient(ellipse at 18% 0%, rgb(55 20 108 / 4%), transparent 65%);
}
.workflow-label { color: var(--brand-purple); font-size: .875rem; font-weight: 600; }
#service-flow h2 { margin: .55rem 0 .8rem; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.workflow-intro p { margin: 0; line-height: 1.6; }
#service-flow p { color: var(--muted); max-width: 62ch; }
#product-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-block: 0 5rem;
    padding: clamp(1rem, 4vw, 3rem);
    border-radius: 1.5rem;
    background: radial-gradient(ellipse at 76% 64%, #e8e3ef, #f8f7fa 68%, #fbfafc);
}
.product-intro h2 { margin: 0; }
.product-intro p { margin: .75rem 0 0; max-width: 35ch; color: var(--muted); line-height: 1.6; }
@media (max-width: 48rem) {
    #product-gallery { grid-template-columns: minmax(0, 1fr); }
    .product-intro p { max-width: 52ch; }
}
.product-laptop { width: min(100%, 52rem); margin-inline: auto; }
@media (width > 48rem) {
    .laptop-device { transform: perspective(80rem) rotateY(-7deg) rotateX(3deg) rotateZ(-1deg); }
}
.laptop-lid {
    position: relative;
    width: 90%;
    margin: auto;
    box-sizing: border-box;
    padding: clamp(6px, 1.1vw, 12px) clamp(4px, .7vw, 8px) clamp(6px, .9vw, 10px);
    border-radius: 1rem 1rem .25rem .25rem;
    background: #242326;
    box-shadow: inset 0 0 0 1px #959399;
}
.laptop-lid::before { content: ""; position: absolute; left: 50%; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: #5f6065; }
.laptop-display { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: white; }
.laptop-display .photo-track a { display: block; height: 100%; cursor: zoom-in; }
.laptop-display .photo-track a:focus-visible { outline-offset: -3px; }
.laptop-display .photo-track img { object-fit: cover; background: white; }
.product-laptop:has(.photo-controls:not([hidden])) .photo-track { scrollbar-width: none; }
.laptop-base {
    height: clamp(6px, 1vw, 11px);
    border-radius: 2px 2px 4% 4% / 2px 2px 90% 90%;
    background: linear-gradient(#cfced1, #b8b7bb 48%, #86848a);
    box-shadow: 0 6px 10px -5px #38313f80;
}
.laptop-base::before { content: ""; display: block; width: 14%; height: 45%; margin: auto; background: #929196; border-radius: 0 0 .5rem .5rem; }
.product-laptop .photo-controls:not([hidden]) { position: static; transform: none; justify-content: center; margin-top: 1rem; }
.product-laptop .photo-controls button { position: relative; width: min(8%, 28px); }
.product-laptop .photo-controls button::before { border-color: var(--muted); }
.slide-progress {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transform: rotate(-90deg);
    fill: none;
    stroke: var(--brand-purple);
    stroke-width: 1.7;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.product-laptop .photo-controls button[aria-current="true"]::before { border-color: var(--brand-purple); background: var(--brand-purple); }
.product-laptop .photo-controls button:focus-visible { outline-color: var(--brand-purple); }
.service-model { min-width: 0; margin: 1.5rem 0 0; padding: .65rem; border: 1px solid var(--line); border-radius: 1.1rem; background: white; }
.service-model label { display: inline-block; padding: .7rem 1rem; border-radius: .6rem; font-size: .95rem; cursor: pointer; }
.flow-choice:checked + label { color: var(--brand-purple); font-weight: 700; }
.flow-choice:focus-visible + label { outline: 3px solid var(--link); outline-offset: 2px; }
.mechanism-layout { clear: both; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: .75rem; }
.service-line { display: block; width: 100%; max-height: 30rem; height: auto; }
.flow-scene { display: none; margin: 0; }
#stage-0:checked ~ .mechanism-layout #scene-0,
#stage-1:checked ~ .mechanism-layout #scene-1,
#stage-2:checked ~ .mechanism-layout #scene-2 { display: block; visibility: visible; }
.request-carriage { transition: transform 850ms cubic-bezier(.4,0,.2,1); }
#stage-1:checked ~ .mechanism-layout .request-carriage { transform: translate(var(--step-x),var(--step-y)); }
#stage-2:checked ~ .mechanism-layout .request-carriage { transform: translate(calc(2 * var(--step-x)),calc(2 * var(--step-y))); }
#stage-0:checked ~ .mechanism-layout .lamp-0,
#stage-1:checked ~ .mechanism-layout .lamp-1,
#stage-2:checked ~ .mechanism-layout .lamp-2 { fill: var(--brand-purple); }
.count-closed, #stage-2:checked ~ .mechanism-layout .count-open { display: none; }
#stage-2:checked ~ .mechanism-layout .count-closed { display: inline; }
@media (prefers-reduced-motion: reduce) { .request-carriage { transition: none; } }
.flow-scene figcaption { align-self: center; padding: clamp(1.2rem, 3vw, 2.5rem); }
.flow-scene h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: .6rem 0; }
.flow-scene p { margin: 0; }
@media (min-width: 52rem) {
    .mechanism-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
        align-items: center;
    }
    /* Stack captions in one grid cell so autoplay keeps the card height steady. */
    .flow-scene {
        display: block;
        visibility: hidden;
        grid-area: 1 / 2;
    }
    .flow-scene figcaption { padding: 1.5rem; }
    .flow-scene h3 { font-size: 1.65rem; }
}
@media(max-width: 45rem) {
    .service-model label { padding: .55rem .7rem; }
}

.dispatch-drone { transition: transform 750ms cubic-bezier(.22,.61,.36,1); }
#stage-1:checked ~ .mechanism-layout .dispatch-drone { transform: translate(21px,-43px); }
.report-ready { opacity: 0; }
#stage-2:checked ~ .mechanism-layout .report-ready { opacity: 1; }
#stage-2:checked ~ .mechanism-layout .insight-glass { fill: #e0d2ee; }
@media (prefers-reduced-motion: reduce) { .dispatch-drone { transition: none; } }
.flow-playback {
    float: right;
    margin-inline-start: .5rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.flow-playback svg { display: block; margin: auto; }
.flow-playback:hover, .flow-playback:focus-visible { background: #f5f3f7; color: var(--brand-purple); }
.flow-playback:focus-visible { outline: 2px solid currentColor; }
.playback-track, .playback-progress { fill: none; stroke-width: 1.5; }
.playback-track { stroke: var(--line); }
.playback-progress { stroke: var(--brand-purple); stroke-dasharray: 1; stroke-dashoffset: 1; }
@media (prefers-reduced-motion: reduce) { .playback-progress { visibility: hidden; } }

:root {
  --page-slide-dur: 250ms;
  --page-fade-dur: 250ms;
  --page-slide-distance: 8px;
  --page-blur: 3px;
  --page-stagger: 0ms;
  --page-exit-enabled: 1;
  --page-slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-fade-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.t-page-slide {
  position: relative;
}
.t-page-slide .t-page[data-page-id="1"] {
  --t-page-from-x: calc(var(--page-slide-distance) * -1);
}
.t-page-slide .t-page[data-page-id="2"] {
  --t-page-from-x: var(--page-slide-distance);
}
.t-page-slide .t-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(var(--t-page-from-x, 0px) * var(--page-exit-enabled)));
  filter: blur(calc(var(--page-blur) * var(--page-exit-enabled)));
  transition:
    opacity   var(--page-fade-dur)  var(--page-fade-ease),
    transform var(--page-slide-dur) var(--page-slide-ease),
    filter    var(--page-slide-dur) var(--page-slide-ease);
  will-change: opacity, transform, filter;
}
.t-page-slide[data-page="1"] .t-page[data-page-id="1"],
.t-page-slide[data-page="2"] .t-page[data-page-id="2"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  filter: blur(0);
  transition-delay: var(--page-stagger);
}

@media (prefers-reduced-motion: reduce) {
  .t-page-slide .t-page { transition: none !important; }
}
.laptop-display > .t-page { z-index: 1; }

.system-catalog { margin-block: 0 4rem; }
.system-catalog h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.system-catalog p { color: var(--muted); line-height: 1.55; }
.system-catalog > p { max-width: 55ch; margin: .65rem 0 1.5rem; }
.system-catalog ul { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.systems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.systems-grid li { padding: 0 1rem 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: #fbfbfa; }
.systems-grid img { display: block; width: 100%; height: auto; }
.system-catalog :is(h3, h4) { margin: 0; font-size: 1.08rem; }
.system-catalog li p { margin: .4rem 0 0; font-size: .94rem; }
.modules-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modules-grid li { padding: 1.15rem; border-radius: .8rem; background: #f7f5f9; }
@media (max-width: 52rem) {
    .systems-grid, .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
    .systems-grid, .modules-grid { grid-template-columns: minmax(0, 1fr); }
    .systems-grid li { display: grid; grid-template-columns: 30% 1fr; gap: 0 .8rem; align-content: center; padding: 1rem; }
    .systems-grid img { grid-row: span 2; align-self: center; }
}

.systems-enterprise { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.systems-enterprise li { display: block; align-content: start; padding: 0 .9rem 1rem; scroll-snap-align: start; }
.systems-enterprise img { height: clamp(8rem, 13vw, 10rem); object-fit: contain; margin: .5rem auto; }
.systems-featured li { display: flex; flex-direction: column; padding: 0 clamp(1.25rem, 3vw, 2rem) 1.75rem; }
.system-gallery { aspect-ratio: 16 / 9; margin: 1rem 0 1.1rem; border-radius: .65rem; background: #fbfbfa; }
.system-gallery .photo-track img { width: 100%; height: 100%; object-fit: contain; }
.system-gallery .photo-controls:not([hidden]) { bottom: .35rem; padding-inline: .2rem; border-radius: 1rem; background: rgb(30 24 35 / 75%); }
.system-gallery .photo-controls button { width: 24px; height: 24px; }
.systems-featured h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.systems-grid li p { font-size: .875rem; }
#systems-title { font-size: clamp(1.5rem, 2.5vw, 1.95rem); }
#systems > p { font-size: .94rem; }
.systems-supporting h3, .systems-enterprise h4 { font-size: 1rem; }
.system-catalog .systems-supporting { margin-top: 1rem; }
.systems-supporting li { display: grid; grid-template-columns: 26% 1fr; column-gap: .75rem; align-content: center; padding: 1rem; }
.systems-supporting img { grid-row: span 2; align-self: center; }
.system-catalog .enterprise-title { margin: 2.5rem 0 1rem; font-size: 1.25rem; }
@media (max-width: 34rem) {
    .systems-featured, .systems-supporting { grid-template-columns: minmax(0, 1fr); }
}

.system-gallery .photo-controls button { position: relative; }
.system-gallery .product-playback { color: white; }
.system-gallery .slide-progress { stroke: white; }

.modules-grid h3 { display: flex; align-items: center; gap: .55rem; }
.modules-grid h3 svg { flex: none; color: var(--brand-purple); }
@media (max-width: 52rem) {
    .systems-enterprise { grid-template-columns: repeat(4, minmax(13rem, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .5rem; }
}

.systems-enterprise li p { font-size: .8125rem; line-height: 1.5; }

:root {
  --acc-expand: 250ms;
  --acc-collapse: 250ms;
  --acc-chevron: 250ms;
  --acc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.enterprise-description { overflow: hidden; }
.t-acc[data-open="false"] .enterprise-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
/* Flip the chevron vertically to turn the "v" into a "^".
   scaleY(-1) about the centre passes through a flat line at
   the midpoint (same look as a `d:` path morph) but animates
   in every browser, unlike CSS `d:` morphing (Chromium only).
   The chevron path is symmetric about the 16x16 viewBox
   centre, so the flip lands exactly on the "^"; non-scaling
   -stroke keeps the stroke width constant through the flip. */
.t-acc-chevron {
  display: inline-flex;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.t-acc-chevron path { vector-effect: non-scaling-stroke; }
.t-acc[data-open="true"] .t-acc-chevron {
  transform: scaleY(-1);
}

@media (prefers-reduced-motion: reduce) {
  .t-acc-chevron {
    transition: none !important;
  }
}
.systems-enterprise .t-acc-head {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    width: 100%; min-height: 2rem; padding: 0; border: 0; background: transparent;
    color: inherit; font: inherit; text-align: start; cursor: pointer;
}
.t-acc-head .t-acc-chevron { color: var(--brand-purple); }
.t-acc-head:disabled .t-acc-chevron { visibility: hidden; }
.systems-enterprise .t-acc-head:hover { color: var(--brand-purple); }

#experience {
    --experience-inset: clamp(1.25rem, 4vw, 3rem);
    --experience-columns: minmax(0, 2fr) minmax(0, 3fr);
    margin-block: 0 4rem;
}
.experience-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: var(--experience-columns);
    align-items: center;
    gap: 2rem;
    margin-inline: calc(50% - 50cqw);
    padding-inline: calc(50cqw - 50% + var(--experience-inset));
    padding-block: clamp(2.75rem, 6vw, 5rem) calc(clamp(2.75rem, 6vw, 5rem) + 1rem);
    background: var(--brand-purple);
    color: white;
}
.experience-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 50%;
    background: url("../images/lupain-cover-outline.webp") right center / cover;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: .23;
    mask-image: linear-gradient(100deg, transparent 20%, black);
}
.experience-intro h2,
#experience h3 { font-family: Georgia, serif; font-weight: 400; }
.experience-intro h2 {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}
.experience-intro p {
    max-width: 38ch;
    margin: 0;
    color: rgb(255 255 255 / 93%);
    line-height: 1.55;
    text-wrap: pretty;
}
#experience > div {
    position: relative;
    display: grid;
    grid-template-columns: var(--experience-columns);
    align-items: center;
    gap: .5rem 2rem;
    margin-inline: var(--experience-inset);
    padding-block: clamp(1.25rem, 3vw, 2rem);
}
#experience .experience-intro + div {
    margin-top: -1rem;
    isolation: isolate;
}
.experience-intro + div::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 calc(var(--experience-inset) * -.55);
    background: white;
    border-radius: .875rem .875rem 0 0;
}
#experience > div + div { border-top: 1px solid var(--line); }
.experience-label { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); }
.experience-art { width: clamp(4rem, 8vw, 7rem); flex: none; }
#experience h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
#experience > div p { max-width: 64ch; margin: 0; color: var(--muted); line-height: 1.65; text-wrap: pretty; }
@media (max-width: 44rem) {
    #experience { --experience-columns: 1fr; }
    .experience-intro { gap: .65rem; }
    .experience-label { gap: .75rem; }
}

:root {
  --icon-swap-dur: 250ms;
  --icon-swap-blur: 2px;
  --icon-swap-start-scale: 0.25;
  --icon-swap-ease: ease-in-out;
}

.t-icon-swap {
  position: relative;
  display: inline-grid;
}
.t-icon-swap .t-icon {
  grid-area: 1 / 1;
  transition:
    opacity   var(--icon-swap-dur) var(--icon-swap-ease),
    filter    var(--icon-swap-dur) var(--icon-swap-ease),
    transform var(--icon-swap-dur) var(--icon-swap-ease);
  /* No will-change: it would freeze each icon's raster at its 0.25 start
     scale, so a large icon scales up blurry and pixelated. */
}
.t-icon-swap[data-state="a"] .t-icon[data-icon="a"],
.t-icon-swap[data-state="b"] .t-icon[data-icon="b"] {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}
.t-icon-swap[data-state="a"] .t-icon[data-icon="b"],
.t-icon-swap[data-state="b"] .t-icon[data-icon="a"] {
  opacity: 0;
  filter: blur(var(--icon-swap-blur));
  transform: scale(var(--icon-swap-start-scale));
}

@media (prefers-reduced-motion: reduce) {
  .t-icon-swap .t-icon { transition: none !important; }
}
.photo-controls .product-playback::before { content: none; }
.product-playback { color: var(--brand-purple); }
.flow-playback .t-icon { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .header-cta, .secondary-action, .flow-playback {
        transition: background-color var(--page-slide-dur) var(--page-slide-ease), color var(--page-slide-dur) var(--page-slide-ease);
    }
    .secondary-action:hover { background-color: #f7f5f9; }
    .engagement-next span { transition: transform var(--page-slide-dur) var(--page-slide-ease); }
    .engagement-next:hover span { transform: translateY(2px); }
    .photo-controls button::before, .engagement-controls button::before {
        transition: background-color var(--page-slide-dur) var(--page-slide-ease), border-color var(--page-slide-dur) var(--page-slide-ease);
    }
}
