:root {
  color-scheme: light;
  --paper: #faf6ff;
  --ink: #341443;
  --muted: #5e496b;
  --line: #ded1e8;
  --ember: #ff7396;
  --ember-text: #9b225a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.55; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #8b3cbd; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 5rem, 78rem); margin-inline: auto; }
.period { color: var(--ember-text); }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .75rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header { block-size: 4rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-family: var(--display); font-size: 1.24rem; font-weight: 800; letter-spacing: -.065em; line-height: 1; text-decoration: none; white-space: nowrap; }
.header nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); font-weight: 650; }
.header nav a { text-decoration: none; white-space: nowrap; }
.header nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.header nav a[aria-current="page"] { color: var(--ember-text); text-decoration: underline; text-underline-offset: .25em; }

.hero { padding-block: clamp(1.4rem, 3vw, 2.4rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.eyebrow { font-family: var(--display); font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ember-text); }
.hero h1 { margin-top: .45rem; font-family: var(--display); font-size: clamp(1.75rem, 3.6vw, 3.35rem); letter-spacing: -.075em; line-height: 1.08; font-weight: 900; }
.hero-description { margin-top: .55rem; font-size: clamp(1rem, 1.35vw, 1.125rem); color: var(--muted); max-width: 60ch; }
.hero-actions { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.1rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .12rem; font-size: .975rem; font-weight: 750; text-decoration: none; transition: background-color .18s, border-color .18s; }
.button-primary { background: var(--ember); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.button-primary:hover { background: #ff9ab3; }
.button-secondary { border-color: var(--line); }
.button-secondary:hover { border-color: #9577a7; background: #f1e6fa; }
.hero-art {
  width: clamp(6rem, 12vw, 9rem);
  overflow: hidden;
  background: #e9d8f9;
  border-radius: .35rem;
}
.hero-art img { width: 100%; height: auto; }

.featured { padding-top: clamp(1rem, 2.5vw, 1.8rem); }
.featured > h2 { margin-bottom: .8rem; font-size: .875rem; letter-spacing: .12em; }
.featured-slides { background: #23142c; color: #fff8ff; border-radius: .45rem; }
.featured-slide { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 19rem; align-items: center; column-gap: 1.5rem; padding: 1.1rem clamp(1.2rem, 5vw, 4.5rem); border-radius: inherit; color: inherit; text-decoration: none; }
.featured-slide[hidden], .featured-controls[hidden] { display: none; }
.featured-candy { background: radial-gradient(ellipse at 80% 60%, #435134, transparent 58%), #24172d; }
.featured-pip { background: radial-gradient(ellipse at 80% 60%, #55478b, transparent 58%), #24172d; }
.featured-strip { background: radial-gradient(ellipse at 80% 60%, #713454, transparent 58%), #24172d; }
.featured-copy h3 { font-family: var(--display); font-size: clamp(2.15rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.075em; }
.featured-copy p { max-width: 30rem; margin: .95rem 0 1.3rem; color: #eee0f4; font-size: clamp(1rem, 1.8vw, 1.2rem); }
.featured-cta { display: inline-block; padding: .5rem .85rem; border: 1px solid #e2bce9; border-radius: .2rem; font-weight: 700; }
.featured-slide:hover .featured-cta { background: #fff8ff; color: #24172d; }
.featured-slide video { display: block; justify-self: center; width: 100%; height: clamp(16rem, 29vw, 20rem); object-fit: contain; }
.featured-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .65rem; }
.featured-picker { display: flex; flex-wrap: wrap; gap: .4rem; }
.featured-controls button { min-height: 2.5rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .25rem; background: #fffaff; color: var(--ink); cursor: pointer; font: 700 .875rem var(--font); }
.featured-controls button[aria-pressed="true"] { border-color: #9d70ae; background: #eedcf7; }

.services { padding-block: clamp(2.35rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.services-intro { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: clamp(1.25rem, 4vw, 3.5rem); }
.services-intro > div > p { max-width: 49ch; margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
.services h3 { font-family: var(--display); font-size: clamp(1.32rem, 2.5vw, 1.95rem); letter-spacing: -.055em; line-height: 1.2; }
.ai-examples { padding: clamp(1.15rem, 3vw, 2rem); background: #efe2f7; border-left: 4px solid var(--ember); }
.ai-examples h3 { font-size: 1.3rem; }
.ai-examples dl { margin: .85rem 0 0; }
.ai-examples dl > div + div { margin-top: .7rem; }
.ai-examples dt { font-weight: 750; }
.ai-examples dd { margin: .15rem 0 0; color: var(--muted); }
.service-group { margin-top: clamp(1.6rem, 4.5vw, 3.15rem); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; list-style: none; padding: 0; margin: .9rem 0 0; }
.service-grid li { min-width: 0; padding: 1rem; background: #fffaff; border: 1px solid var(--line); border-radius: .35rem; }
.service-grid h4 { margin: 0 0 .3rem; font-size: 1.05rem; line-height: 1.3; }
.service-grid p, .security-note { color: var(--muted); }
.security-note { margin-top: 1rem; }
.security-note strong { color: var(--ink); }
.acquisition { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: clamp(1.6rem, 4.5vw, 3.15rem); padding: clamp(1.15rem, 3.5vw, 2.5rem); color: var(--paper); background: var(--ink); border-radius: .35rem; }
.acquisition p { max-width: 67ch; margin-top: .5rem; color: #f1dff8; }
.acquisition .button { flex: none; border-color: var(--ember); box-shadow: 3px 3px 0 #ffad51; }
.acquisition a:focus-visible { outline-color: #ffc36e; }

h2 { font-family: var(--display); font-size: clamp(2.55rem, 5vw, 4.6rem); letter-spacing: -.055em; line-height: 1.04; font-weight: 800; }
.portfolio { padding-block: clamp(2rem, 5vw, 4.5rem); }
.portfolio h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -.08em; line-height: 1.05; }
.portfolio-intro { margin-top: .65rem; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.project { display: flex; flex-direction: column; min-width: 0; }
.project-link { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .35rem; background: #fffaff; text-decoration: none; }
.project-link:hover { border-color: #9577a7; }
.project-link:hover h2 { text-decoration: underline; text-underline-offset: .17em; }
.project-image { display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; background: #eee2f6; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-image.portrait { position: relative; }
.project-image.portrait img { position: absolute; inset: .6rem 0; height: calc(100% - 1.2rem); object-fit: contain; }
.project-copy { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.project-copy .eyebrow { font-size: .81rem; letter-spacing: .06em; }
.project-copy h2 { margin: .3rem 0 .4rem; font-size: clamp(1.12rem, 2vw, 1.6rem); line-height: 1.15; }
.project-copy p:not(.eyebrow) { color: var(--muted); }
.project-media { margin-top: auto; padding-top: .85rem; font-size: .875rem; font-weight: 700; }
.project:has(.project-stores) .project-link { border-bottom: 0; border-radius: .35rem .35rem 0 0; }
.project-stores { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; padding: 0 .65rem .65rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 .35rem .35rem; background: #fffaff; }
.project-stores a { display: inline-flex; align-items: center; min-height: 52px; }
.project-stores img { width: auto; height: 40px; }
.project-stores img[src$="google-play.png"] { height: 52px; }

.gallery-dialog { width: min(100% - 2rem, 52rem); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); color: var(--ink); }
.gallery-dialog::backdrop { background: #24112ce0; }
body:has(.gallery-dialog[open]) { overflow: hidden; }
.gallery-panel { display: grid; gap: .85rem; padding: clamp(.8rem, 2.6vw, 1.35rem); }
.gallery-header, .gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.gallery-header h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
.gallery-header button, .gallery-controls button { cursor: pointer; color: var(--ink); font-family: var(--font); }
.gallery-header button { flex: none; }
.gallery-stage figure { display: grid; place-items: center; gap: .45rem; text-align: center; }
.gallery-stage img, .gallery-stage video { display: block; width: 100%; height: min(56dvh, 35rem); object-fit: contain; background: #eee2f6; }
.gallery-stage figcaption, .gallery-status { font-size: .875rem; color: var(--muted); }
.gallery-status { text-align: center; }
.gallery-controls[hidden] { display: none; }
button:focus-visible { outline: 3px solid #8b3cbd; outline-offset: 3px; }

.about { padding-block: clamp(1.8rem, 4vw, 3.25rem); border-top: 1px solid var(--line); }
.about h2 { font-size: clamp(1.9rem, 4vw, 3.75rem); }
.about p { max-width: 54ch; margin-top: .65rem; color: var(--muted); font-size: 1.125rem; }

.contact { margin-bottom: 2.2rem; padding: clamp(1.6rem, 5vw, 4.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--paper); background: var(--ink); border-radius: .35rem; }
.contact h2 { max-width: 18ch; font-size: clamp(2.1rem, 5vw, 4.15rem); }
.contact p { margin-top: .6rem; color: #f1dff8; }
.contact .period { color: var(--ember); }
.contact .button { flex: 0 0 auto; border-color: var(--ember); box-shadow: 3px 3px 0 #ffad51; }
.contact a:focus-visible { outline-color: #ffc36e; }
.footer { min-height: 5rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer .wordmark { font-size: 1.08rem; }

.investor-page { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.investor-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.4rem, 5vw, 4.7rem); color: var(--paper); background: radial-gradient(ellipse at top right, #54225e, var(--ink) 58%); border-radius: .35rem; }
.investor-hero .eyebrow, .investor-hero .period { color: #ff9ab3; }
.investor-hero h1 { margin-top: .8rem; max-width: 13ch; font-family: var(--display); font-size: clamp(2.35rem, 6vw, 5.85rem); font-weight: 900; letter-spacing: -.095em; line-height: .99; text-wrap: balance; }
.investor-lead { max-width: 47ch; margin: 1.1rem 0 1.45rem; color: #f1dff8; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.investor-hero a:focus-visible { outline-color: #ffc36e; }
.investor-metrics { margin: 0; padding-left: clamp(1.15rem, 3vw, 2.2rem); border-left: 1px solid #a278ae; }
.investor-metrics > div + div { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #a278ae; }
.investor-metrics dt { font-family: var(--display); font-size: .875rem; font-weight: 800; color: #ffc3d2; }
.investor-metrics dd { margin: .2rem 0 0; color: #f1dff8; }
.investor-metrics strong { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.075em; line-height: 1.1; color: var(--paper); }
.investor-metrics a { display: block; width: fit-content; margin-top: .2rem; text-underline-offset: .2em; }
.investor-section { padding-block: clamp(1.7rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.investor-section h2, .investor-pipeline h2 { font-size: clamp(1.9rem, 4vw, 3.75rem); text-wrap: balance; }
.investor-record { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.35rem; }
.investor-record article { padding: clamp(1rem, 2.1vw, 1.55rem); background: #fffaff; border: 1px solid var(--line); border-radius: .35rem; }
.investor-record h3 { margin-top: .3rem; font-size: clamp(1.3rem, 2.3vw, 1.95rem); letter-spacing: -.035em; line-height: 1.18; }
.investor-record article > p:not(.eyebrow) { margin: .55rem 0 .65rem; color: var(--muted); }
.investor-record a, .investor-split a { display: inline-block; margin-right: .75rem; font-weight: 650; color: var(--ember-text); text-underline-offset: .2em; }
.investor-split { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(1rem, 4vw, 3.5rem); align-items: start; }
.investor-split p { max-width: 60ch; color: var(--muted); }
.investor-split p + p, .investor-split a { margin-top: .65rem; }
.investor-pipeline { margin-block: clamp(1.5rem, 4vw, 3.4rem); padding: clamp(1.1rem, 3.2vw, 2.4rem); background: #efe2f7; border-left: 4px solid var(--ember); }
.investor-pipeline p { max-width: 65ch; margin-top: .55rem; color: var(--muted); }

@media (max-width: 850px) {
  .shell { width: min(100% - 3rem, 78rem); }
  .service-grid, .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header { block-size: 6.5rem; flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; }
  .header nav { flex-wrap: wrap; gap: .2rem clamp(.55rem, 2.4vw, 1.05rem); font-size: .9rem; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .featured-slide { grid-template-columns: 1fr; min-height: 0; row-gap: .85rem; padding-block: .85rem 1.1rem; }
  .featured-slide video { grid-row: 1; height: clamp(13rem, 56vw, 16rem); }
  .featured-copy p { margin-block: .5rem .65rem; }
  .services-intro { grid-template-columns: 1fr; }
  .acquisition { flex-direction: column; align-items: flex-start; }
  .contact { flex-direction: column; align-items: flex-start; }
  .investor-hero, .investor-split { grid-template-columns: 1fr; }
  .investor-metrics { padding: 1rem 0 0; border-top: 1px solid #a278ae; border-left: 0; }
  .investor-record { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .service-grid, .projects { grid-template-columns: 1fr; }
}
@media (max-width: 365px) {
  .header .wordmark { font-size: 1.08rem; }
  .header .wordmark img { width: 30px; height: 30px; }
  .hero-actions .button { padding-inline: .77rem; }
  .footer { gap: .8rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.wordmark img { border-radius: .18rem; }
