@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff") format("woff");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #19131b;
  --paper: #f7ede7;
  --lilac: #d7b5dc;
  --muted: #c5b6c2;
  --quiet: #ac9ba9;
  --line: rgba(222, 191, 215, .18);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", sans-serif;
  --gutter: clamp(1.3rem, 5.8vw, 6rem);
}
*, *::after, *::before { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, h1, h2, p, blockquote { margin: 0; }
button { border: 0; padding: 0; background: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #f0c8ff; outline-offset: 5px; }
::selection { color: #241925; background: var(--lilac); }
.wrap { width: min(82rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: .75rem; left: 1rem; z-index: 20;
  padding: .65rem 1.2rem; background: var(--paper); color: var(--ink); border-radius: .35rem;
}

.masthead { background: #19131b; border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; gap: 2.2rem; align-items: center; min-height: 4.7rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .58rem; width: fit-content; }
.wordmark { font: 400 2.45rem/.9 var(--serif); letter-spacing: -.068em; }
.wordmark i { font-weight: 400; }
.brand-mark { display: inline-block; position: relative; width: 1.95rem; height: 1.82rem; color: var(--lilac); }
.brand-mark i {
  position: absolute; border: 1.7px solid currentColor;
  border-radius: 68% 56% 56% 9%; transform-origin: 12% 91%;
  width: 54%; height: 86%; bottom: 1%; left: 40%;
}
.brand-mark i:first-child { transform: rotate(-45deg); }
.brand-mark i:last-child { transform: rotate(21deg); }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.account-button, .dialog-action {
  display: inline-flex; align-items: center; justify-content: center; gap: .58rem;
  min-height: 2.75rem; border: 1px solid #836a7d; border-radius: 3rem; padding: .45rem 1.12rem;
  color: #eadce6; font-size: .92rem; font-weight: 550;
}
.person-icon { width: .95rem; height: 1rem; position: relative; }
.person-icon::before, .person-icon::after { content: ""; position: absolute; border: 1.4px solid currentColor; }
.person-icon::before { width: .42rem; height: .42rem; border-radius: 50%; top: 0; left: .265rem; }
.person-icon::after { width: .9rem; height: .42rem; border-radius: .7rem .7rem .15rem .15rem; bottom: 0; left: .025rem; }

.hero {
  flex: 1; display: grid; align-items: center; overflow: clip; isolation: isolate;
  background: radial-gradient(ellipse 49% 83% at 79% 47%, rgba(128,49,73,.64), transparent 96%),
    radial-gradient(ellipse 65% 145% at 57% 65%, rgba(74,42,68,.5), transparent 85%),
    linear-gradient(108deg,#19131b 9%,#241824 53%,#361d2c);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr);
  grid-template-areas: "intro gallery" "chat gallery"; grid-template-rows: auto auto;
  align-content: center; column-gap: clamp(1rem,3vw,3rem); padding-block: clamp(2.5rem,5vh,5rem);
}
.introduction { grid-area: intro; align-self: end; }
.introduction h1 { font: 400 clamp(4.4rem,7.3vw,7.5rem)/.93 var(--serif); letter-spacing: -.043em; }
.introduction h1 em { display: block; width: fit-content; color: var(--lilac); font-weight: 400; padding-right: .06em; }
.lede { color: var(--muted); max-width: 22rem; margin-top: 1.35rem; font-size: clamp(1rem,1.23vw,1.2rem); line-height: 1.55; text-wrap: balance; }
.showcase { grid-area: gallery; --card-width: 49%; align-self: center; min-width: 0; position: relative; border-radius: 1rem; }
.photo-stage { width: 100%; aspect-ratio: 1.42; position: relative; isolation: isolate; touch-action: pan-y pinch-zoom; }
.orbits, .portrait-deck { position: absolute; inset: 0; }
.orbits { pointer-events: none; }
.orbit { position: absolute; width: 104%; height: 71%; left: -2%; top: 15%; border: 1px solid #be8ba639; border-radius: 50%; transform: rotate(-17deg); }
.orbit.inner { width: 99%; height: 79%; top: 13%; left: .5%; transform: rotate(12deg); border-color: #c592b022; }
.orbit-star { position: absolute; width: 11px; height: 11px; top: 10%; right: 7%; background: #d8adbc; clip-path: polygon(50% 0%,61% 39%,100% 50%,61% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.portrait, .card-tools {
  --x: 0%; --y: 0%; --angle: 0deg; --size: 1;
  position: absolute; inset: 50% auto auto 50%; width: var(--card-width); aspect-ratio: 4/5;
  margin: 0; transform: translate(-50%,-50%) translate(var(--x),var(--y)) rotate(var(--angle)) scale(var(--size));
}
.portrait {
  display: block; isolation: isolate; overflow: hidden; border-radius: .95rem; background: #372431;
  border: 1px solid #f0d2df99; color: #fff8f0; box-shadow: 0 1.45rem 2.8rem -1.4rem #0d070dd9;
}
.deck-ready .portrait { transition: transform .8s cubic-bezier(.2,.76,.19,1), opacity .52s ease, border-color .5s; }
.portrait[data-pose="front"] { z-index: 4; }
.portrait[data-pose="left"], .portrait[data-pose="right"] { --size: .78; --y: 4%; z-index: 2; border-color: #cdaab484; cursor: pointer; }
.portrait[data-pose="left"] { --x: -52%; --angle: -12deg; }
.portrait[data-pose="right"] { --x: 52%; --angle: 12deg; }
.portrait[data-pose^="away"] { --size: .65; --y: 8%; z-index: 0; opacity: 0; pointer-events: none; }
.portrait[data-pose="away-left"] { --x: -30%; --angle: -15deg; }
.portrait[data-pose="away-right"] { --x: 30%; --angle: 15deg; }
.portrait-image { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.portrait::before, .portrait::after { content: ""; position: absolute; pointer-events: none; z-index: 1; inset: 0; }
.portrait::before { background: #311c2c; opacity: .32; transition: opacity .5s; }
.portrait[data-pose="front"]::before { opacity: 0; }
.portrait::after { background: linear-gradient(180deg,transparent 47%,#1b11181a 59%,#170d16bd 84%,#170d16f2); }
.portrait[data-available="false"] .portrait-image { filter: saturate(.78); }
.portrait[data-available="false"]::before { background: #000; opacity: .3; }
.portrait-caption { position: absolute; left: 7%; bottom: 6.3%; right: 6%; z-index: 2; display: grid; gap: .37rem; }
.portrait[data-available="true"] .portrait-caption { right: 18%; }
.portrait-title { font: 400 clamp(2.95rem,4.2vw,4.7rem)/.98 var(--serif); letter-spacing: -.037em; }
.portrait-title i { color: #f0dade; font-size: .72em; font-weight: 400; }
.portrait-snippet { color: #f9edf4; font: 450 clamp(.88rem,1.07vw,1rem)/1.37 var(--sans); text-wrap: balance; }
.portrait:not([data-pose="front"]) :is(.portrait-caption,.expand-icon) { opacity: 0; }
.portrait-caption, .expand-icon { transition: opacity .4s; }
.name-lock {
  position: relative; display: inline-block; vertical-align: .035em; margin-left: .24em; width: 1.24rem; height: 1rem;
  color: #f1d9e7; border: 2px solid currentColor; border-radius: .23rem;
}
.name-lock::before { content: ""; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); width: .82rem; height: .7rem; border: 2px solid currentColor; border-bottom: 0; border-radius: .5rem .5rem 0 0; }
.name-lock::after { content: ""; position: absolute; left: 50%; top: 30%; transform: translateX(-50%); width: 2px; height: .33rem; border-radius: 2px; background: currentColor; }
.photo-trigger { position: absolute; inset: 0; z-index: 3; cursor: zoom-in; border-radius: inherit; }
.photo-trigger:focus-visible { outline-offset: -4px; }
.expand-icon {
  position: absolute; bottom: 6.3%; right: 5%; width: 1.75rem; height: 1.75rem;
  border: 1px solid #eddbe27d; border-radius: 50%; background: #211720a8;
}
.expand-icon::before, .expand-icon::after { content: ""; position: absolute; width: .38rem; height: .38rem; border: solid #fff1f6; }
.expand-icon::before { top: .42rem; right: .43rem; border-width: 1.5px 1.5px 0 0; }
.expand-icon::after { bottom: .42rem; left: .43rem; border-width: 0 0 1.5px 1.5px; }
.portrait[data-pose="front"] .portrait-image { animation: drift 9s ease-out both; }
.showcase.still .portrait-image { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.036); } }
.card-tools button {
  display: inline-flex; align-items: center; gap: .42rem; height: 1.8rem; padding-inline: .65rem;
  background: #211720c9; border: 1px solid #eddae078; border-radius: 2rem; color: #f6ebf2; font: 550 .75rem/1 var(--sans);
}
.card-tools { pointer-events: none; z-index: 6; }
.card-tools button { pointer-events: auto; position: absolute; top: .8rem; right: .8rem; font-variant-numeric: tabular-nums; }
.card-tools button::after { content: ""; position: absolute; inset: -.5rem -.2rem; }
.play-icon { height: .62rem; width: .46rem; border-inline: 1.7px solid currentColor; }
#play[data-paused="true"] .play-icon { width: 0; border: 0; height: 0; border-block: .31rem solid transparent; border-left: .47rem solid currentColor; }
.browse {
  position: absolute; top: 50%; z-index: 7; display: grid; place-items: center; transform: translateY(-50%);
  width: 2.9rem; height: 2.9rem; padding: 0; border: 1px solid #d0a9bcad; border-radius: 50%;
  color: #f8e6ef; background: #2c1b2ae8; box-shadow: 0 .2rem .8rem #140b1435;
}
.previous { left: .3%; } .next { right: .3%; }
.arrow { position: relative; display: block; width: 1rem; height: 1px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 0; top: -.25rem; width: .56rem; height: .56rem; border: solid currentColor; border-width: 1.3px 1.3px 0 0; transform: rotate(45deg); }
.previous .arrow { transform: rotate(180deg); }
.conversation { grid-area: chat; align-self: start; width: 100%; max-width: 29rem; margin-top: 1.95rem; min-width: 0; }
.composer {
  display: flex; align-items: end; min-height: 3.65rem; gap: .55rem; padding: .43rem .45rem .43rem 1rem; border: 1px solid #88657f;
  border-radius: 1.55rem; background: #211724; box-shadow: 0 .5rem 1.5rem #170c161a;
}
.composer:focus-within { border-color: #d1a9cc; }
.composer textarea {
  flex: 1; min-width: 0; align-self: center; resize: none; max-height: 6rem; width: 100%; padding: .45rem 0; border: 0;
  background: transparent; outline: 0; color: var(--paper); font: 400 1rem/1.35 var(--sans);
}
.composer textarea::placeholder { color: #c2aebe; opacity: 1; }
.send { min-height: 2.65rem; padding: .58rem 1.2rem; border-radius: 1.3rem; color: #2e1c2d; background: #e6cce2; font-size: .92rem; font-weight: 650; }
.send:disabled { color: #bfa9b9; background: #4b3648; cursor: default; }
.composer.is-locked { background: #302e32; border-color: #5f5960; box-shadow: none; }
.composer.is-locked textarea:disabled { opacity: 1; cursor: default; }
.composer.is-locked textarea::placeholder { color: #c2bdc3; -webkit-text-fill-color: #c2bdc3; }
.chat-status { color: #dfc6db; font-size: .875rem; margin-top: .45rem; }
.chat-status:empty { display: none; }
.chat-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .85rem; }
.chat-controls:has(> :not([hidden])) { margin-top: .35rem; }
.chat-controls, .chat-notice { color: var(--muted); font-size: .85rem; }
.chat-notice { margin-top: .35rem; line-height: 1.45; }
.text-button { color: var(--lilac); min-height: 2.75rem; text-decoration: underline; text-underline-offset: .2rem; }
.dialog-alternate { display: block; margin-top: .35rem; }
#thread { max-height: 11rem; overflow: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: start; gap: .42rem; padding: .25rem .25rem .65rem; }
#thread p { max-width: 90%; background: #493145; border-radius: .85rem .85rem .85rem .15rem; padding: .48rem .76rem; font-size: .95rem; overflow-wrap: anywhere; white-space: pre-wrap; }
#thread p.from-you { align-self: end; background: #513849; border-radius: .85rem .85rem .15rem .85rem; }
#thread small { display: block; margin-bottom: .08rem; font-size: .75rem; color: #debfd4; }
.footer { background: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 1.3rem; min-height: 4.65rem; padding-block: .85rem; }
.footer-wordmark { font-size: 1.9rem; color: #e6d4e1; }
.footer p { font-size: .86rem; color: var(--quiet); }
.footer-ending { white-space: nowrap; }
.age-rating { color: #d6c5d0; font-weight: 600; }
.about-link { flex: none; min-height: 2.75rem; margin-left: auto; color: #d6c2d3; font-size: .85rem; text-decoration: underline; text-decoration-color: #856c80; text-underline-offset: .24rem; }
dialog { width: min(25rem,calc(100% - 2.5rem)); padding: 0; color: var(--paper); background: #2c1e2d; border: 1px solid #806279; border-radius: 1rem; box-shadow: 0 1.5rem 5rem #0e091287; }
dialog::backdrop { background: #130c14ce; }
.dialog-inner { padding: 2.4rem 1.65rem 1.85rem; }
.dialog-inner h2 { font: 400 2.85rem/1.05 var(--serif); margin: 1rem 0 .8rem; letter-spacing: -.035em; }
.dialog-inner h2 em { color: var(--lilac); font-weight: 400; }
.dialog-inner p { color: var(--muted); }
.dialog-action { margin-top: 1.25rem; background: #e6cce2; border-color: transparent; color: #2d1f2c; }
.close { position: absolute; right: .6rem; top: .6rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.6rem; color: #deccd9; }
body:has(dialog[open]) { overflow: hidden; }
#about-dialog { width: min(39rem,calc(100% - 2rem)); max-height: min(78vh,48rem); max-height: min(78dvh,48rem); overflow: hidden; }
#about-dialog[open] { display: flex; flex-direction: column; }
.about-header { position: relative; flex: none; padding: 1.25rem 4rem 1rem clamp(1.25rem,4vw,2.2rem); border-bottom: 1px solid var(--line); }
.about-header h2 { margin: 0; font: 400 clamp(2.2rem,5vw,3rem)/1.1 var(--serif); letter-spacing: -.035em; }
.about-header em { color: var(--lilac); font-weight: 400; }
.about-header .close { top: 50%; transform: translateY(-50%); }
.about-copy { overflow-y: auto; overscroll-behavior: contain; padding: 1.3rem clamp(1.25rem,4vw,2.2rem) 2rem; color: #dfd1dc; font-size: .98rem; line-height: 1.7; scrollbar-color: #886a83 transparent; }
.about-copy:focus-visible { outline-offset: -3px; }
.about-copy h3 { margin: 1.65rem 0 .45rem; color: var(--paper); font: 400 1.75rem/1.1 var(--serif); }
.about-copy a { color: var(--lilac); text-decoration: underline; }
#photo-viewer {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; height: 100dvh; max-height: none; max-width: none;
  background: #120e13; border: 0; border-radius: 0; overflow: hidden; overscroll-behavior: contain;
}
#photo-viewer::backdrop { background: #120e13; }
.photo-surface { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.photo-surface img { flex: none; max-width: 100%; max-height: 100%; width: auto; height: auto; transform-origin: center; }
.photo-surface.can-pan { cursor: grab; }
.photo-surface.can-pan:active { cursor: grabbing; }
#photo-error { color: var(--muted); }
.viewer-header {
  position: absolute; inset: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: max(1rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) 2.5rem max(1.2rem,env(safe-area-inset-left));
  pointer-events: none; background: linear-gradient(#110c15a8,transparent);
}
.viewer-header h2 { color: #fff6f2; font: 400 2.4rem/1.1 var(--serif); letter-spacing: -.03em; text-shadow: 0 1px 4px #211321; }
.viewer-close, .zoom-tools { color: #f9edf7; border: 1px solid #b99eaf8a; background: #221923ed; border-radius: 2rem; }
.viewer-close { pointer-events: auto; width: 2.75rem; height: 2.75rem; line-height: 1; font-size: 1.65rem; }
.zoom-tools { position: absolute; left: 50%; bottom: max(1rem,env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; padding-inline: .2rem; }
.zoom-tools button { min-width: 2.75rem; height: 2.75rem; border-radius: 2rem; font-size: 1.35rem; }
#zoom-reset { font: 550 .86rem var(--sans); font-variant-numeric: tabular-nums; }
.zoom-tools button:disabled { color: #92858f; cursor: default; }
@media (hover:hover) {
  .browse:hover,.account-button:hover { background: #493043; }
  .send:not(:disabled):hover,.dialog-action:hover { background: #f3dded; }
  .close:hover { background: #493345; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  :root { --gutter: 3.5vw; }
  .hero-inner { column-gap: .7rem; }
  .introduction h1 { font-size: clamp(4.15rem,8.5vw,5.4rem); }
  .showcase { --card-width: 54%; }
  .photo-stage { aspect-ratio: 1.28; }
  .browse { width: 2.75rem; height: 2.75rem; }
}
@media (max-width: 760px) {
  :root { --gutter: clamp(1.15rem,5vw,2rem); }
  .masthead-inner { min-height: 3.7rem; }
  .brand { gap: .45rem; }
  .wordmark { font-size: 2.15rem; }
  .brand-mark { width: 1.65rem; height: 1.56rem; }
  .account-button { min-height: 2.45rem; padding: .45rem .97rem; }
  .hero { align-items: start; align-content: start; background: radial-gradient(ellipse 93% 56% at 68% 62%,#673047a8,transparent 95%),linear-gradient(145deg,#1c151e 8%,#2b1b2a 58%,#291c28); }
  .hero-inner { display: flex; flex-direction: column; align-items: center; padding-block: 1.25rem clamp(1.1rem,3.4vh,2rem); }
  .introduction { text-align: center; align-self: center; }
  .introduction h1 { font-size: clamp(3.6rem,17.2vw,5.75rem); line-height: .92; }
  .introduction h1 em { margin: 0 auto; }
  .lede { margin: .62rem auto 0; max-width: 21rem; font-size: 1rem; line-height: 1.4; }
  .showcase { width: min(calc(100% + 2 * var(--gutter)),35rem); --card-width: 80%; margin-top: .75rem; }
  .photo-stage { aspect-ratio: 1 / 1.03; }
  .portrait { border-radius: .85rem; }
  .portrait[data-pose="left"],.portrait[data-pose="right"] { --size: .75; --y: 3.5%; }
  .portrait[data-pose="left"] { --x: -36%; --angle: -11deg; }
  .portrait[data-pose="right"] { --x: 36%; --angle: 11deg; }
  .portrait-title { font-size: clamp(2.8rem,10.6vw,3.8rem); }
  .portrait-snippet { font-size: .91rem; }
  .card-tools button { right: .6rem; top: .6rem; }
  .browse { width: 2.75rem; height: 2.75rem; }
  .previous { left: 2%; } .next { right: 2%; }
  .conversation { align-self: center; max-width: 28rem; margin-top: .78rem; }
  .footer-inner { min-height: 3.55rem; gap: .4rem; padding-block: .35rem max(.35rem,env(safe-area-inset-bottom)); }
  .footer-wordmark { display: none; }
  .footer p { font-size: .82rem; }
  .about-link { font-size: .82rem; }
}
@media (max-width: 350px) {
  .portrait-snippet { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deck-ready .portrait, .portrait-caption, .expand-icon, .portrait::before { transition: none; }
  .portrait[data-pose="front"] .portrait-image { animation: none; }
}
