:root {
  color-scheme: dark;
  --graphite: #151619;
  --plate: #24262b;
  --silver: #bdc3ca;
  --frost: #f1f2f3;
  --amber: #efbb77;
  --edge: #4e5057;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--frost);
  background: var(--graphite);
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 1.2rem }
body { margin: 0 }
a { color: inherit; text-underline-offset: 4px }
button, a { touch-action: manipulation }
button { font: inherit; color: inherit; cursor: pointer }
button:disabled { cursor: default; opacity: .6 }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px }
[hidden] { display: none !important }
.wrap { width: min(1200px, 90%); margin-inline: auto }
.bar, .bar nav, .brand, .actions, .toolbar, footer { display: flex; align-items: center }
.bar { height: 78px; justify-content: space-between; border-bottom: 1px solid var(--edge) }
.bar nav { gap: 26px; font-size: .94rem; font-weight: 580 }
.bar nav a, .brand { text-decoration: none }
.bar nav a:hover, .under:hover { color: var(--amber) }
.brand { gap: 10px; font-size: 1.55rem; font-weight: 685; letter-spacing: -.06em }
.hero {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 5%;
  align-items: center;
  padding-block: 54px 70px;
}
.pitch h1, h2, p { margin: 0 }
.pitch h1 { font-size: clamp(3.6rem, 6.8vw, 6.65rem); line-height: .92; letter-spacing: -.075em; font-weight: 635 }
.pitch h1 em { font: italic 400 1.03em/.93 Georgia, serif; letter-spacing: -.075em; color: var(--amber) }
.pitch p, .sectionintro p, .download > div > p {
  max-width: 450px;
  color: var(--silver);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.6;
}
.pitch p { margin: 1.5rem 0 1.65rem }
.actions { gap: 22px; flex-wrap: wrap }
.primary, #shortcut {
  padding: .8rem 1.2rem;
  background: var(--amber);
  color: var(--graphite);
  border: 1px solid #ffe2b6;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 640;
  box-shadow: inset 0 -2px 4px #51331829;
}
.primary:hover, #shortcut:hover:enabled { background: #ffd194 }
.under { font-weight: 560; font-size: .94rem; color: var(--frost) }
.art {
  isolation: isolate;
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 7% 6%;
  aspect-ratio: 1.14;
  overflow: hidden;
  border: 1px solid #676970;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 102% 85%, #98643c66, transparent 39%),
    linear-gradient(143deg, #45474d 0%, #25262b 33%, #393b42 65%, #1c1d20 100%);
  box-shadow: inset 0 1px 0 #ffffff50, 0 26px 65px #0004;
}
.film {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px #08090b85, 0 0 0 1px #e4e6ef77;
  background: var(--plate);
}
.film video { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover }
.filmcontrols { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px }
.filmcontrols > div, .filmcontrols > button {
  background: #1a1b1ee8;
  border: 1px solid #bdc3ca80;
  border-radius: 20px;
  padding: 3px;
  box-shadow: inset 0 1px 1px #fff2;
}
.filmcontrols button { color: var(--frost); border-radius: 16px; padding: .42rem .7rem; font-size: .86rem; line-height: 1.2; font-weight: 560 }
.filmcontrols div button { background: transparent; border: 0 }
.filmcontrols button[aria-pressed=true] { background: var(--frost); color: var(--graphite) }
.filmcontrols > button { min-width: 4.3rem }
.lab { background: #1f2126; border-block: 1px solid var(--edge); padding: 64px 0 42px }
.sectionintro, .download { display: flex; justify-content: space-between; align-items: end; gap: 28px }
.kicker { font: 600 .83rem/1.4 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--amber) }
h2 { font-size: clamp(2.1rem, 4.15vw, 4rem); line-height: 1.06; letter-spacing: -.06em; margin-top: 8px; font-weight: 630 }
.sectionintro p { max-width: 340px }
.demo { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(22px, 4vw, 55px); margin: 32px 0 12px; align-items: start }
.workspace { color-scheme: light; border: 1px solid #d1d3d9; background: var(--frost); color: var(--graphite); border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px #0003 }
.toolbar { gap: 9px; padding: 12px 16px; border-bottom: 1px solid #c3c6cc; background: #e7e8ea }
.toolbar button { margin-left: auto; border: 1px solid #acafb7; border-radius: 6px; background: var(--frost); font-size: .875rem; padding: 6px 9px }
.noteicon { font-size: 1.35rem }
#editor { min-height: 148px; max-height: 340px; overflow: auto; padding: 18px; overflow-wrap: anywhere }
.workspace :focus-visible { outline-color: #86571f }
#editor:focus { outline: 2px solid #86571f; outline-offset: -3px }
#editor:empty:before { content: attr(data-placeholder); color: #596069 }
#editor img { width: 76px; height: 60px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin: 4px }
#tray { margin: 0 12px 12px; padding: 12px; background: linear-gradient(148deg, #41434a, #202125); border: 1px solid #9b9fa7; box-shadow: inset 0 1px 0 #fff3; color: var(--frost); border-radius: 12px }
#cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; touch-action: none; user-select: none }
#cards button { min-width: 0; background: #42454b; color: var(--frost); padding: 4px; border: 2px solid transparent; border-radius: 8px; text-align: left; touch-action: none }
#cards button:focus-visible { outline-color: var(--amber) }
#cards img, #cards .note { width: 100%; height: clamp(62px, 7.5vw, 110px); object-fit: cover; border-radius: 4px; display: block }
.note { background: #e9dfce; color: var(--graphite); text-align: left; padding: 9%; font-size: clamp(.75rem, 1.1vw, .9rem); line-height: 1.2 }
.note b { display: block; font: italic 1.8em Georgia, serif }
#cards small { display: block; padding: 4px 2px 1px; overflow-wrap: anywhere }
.guide ol { list-style: none; padding: 0; margin: 0; counter-reset: step }
.guide li { display: flex; align-items: center; gap: 12px; color: var(--silver); padding: 5px 0; counter-increment: step }
.guide li:before { content: counter(step); display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; border: 1px solid #82868d; font: .78rem ui-monospace, monospace }
.guide li[aria-current] { color: #ffdaac; font-weight: 650 }
.guide li[aria-current]:before { background: var(--amber); color: var(--graphite) }
.guide li.done:before { content: "✓"; color: var(--amber) }
#shortcut { padding: .55rem .8rem }
kbd { font: 500 .8rem ui-monospace, monospace; padding: .15em .4em; background: #22242814; border: 1px solid #4f412f77; border-radius: 4px }
.credit { font-size: .8rem; color: var(--silver) }
.download { align-items: center; padding-block: 68px }
.download h2 { max-width: 580px }
.download > div > p { margin-top: 12px }
.release { display: grid; gap: 8px; min-width: 270px; padding: 20px 28px; border-left: 1px solid var(--edge) }
.release strong { font-size: 1.2rem }
.download > .release p { font-size: .95rem; margin: 0; max-width: 280px }
.release small { font-size: .8rem; color: var(--silver) }
.release .primary { justify-self: start }
footer { justify-content: space-between; border-top: 1px solid var(--edge); padding: 20px 0 26px; color: var(--silver); font-size: .85rem }
footer span:first-child { font-weight: 700 }
@media(max-width:760px) {
  .hero { grid-template-columns: 1fr; padding-block: 36px; gap: 28px }
  .pitch h1 br:last-child { display: none }
  .pitch h1 { font-size: clamp(3.7rem, 11vw, 5.7rem) }
  .art { aspect-ratio: auto; padding: 6% 5% }
  .sectionintro, .download { align-items: start; flex-direction: column }
  .demo { display: flex; flex-direction: column }
  .workspace, .guide { width: 100% }
  .sectionintro p { max-width: none }
  .bar { height: 64px }
  .bar nav { gap: 14px }
  .lab { padding-block: 40px }
  .download { padding-block: 44px }
  .release { border-left: 0; border-top: 1px solid var(--edge); padding: 20px 0; width: 100%; min-width: 0 }
}
@media(max-width:365px) {
  .filmcontrols button { font-size: .8rem; padding-inline: .5rem }
  .brand { gap: 5px }
  .bar nav { gap: 9px }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto } }

.pitch h1 em { display: block; }
#cards img.pdf-cover { object-fit: contain; background: #d6d2c9; }
#editor img { width: min(168px, 65%); height: 104px; }
.attachment { display: inline-flex; align-items: center; padding: 8px 12px; margin: 4px; background: #e2e3e6; border: 1px solid #adafb4; border-radius: 8px; font-size: .9rem; font-weight: 600; vertical-align: middle; }
.install-steps { color: var(--silver); padding-left: 1.25em; line-height: 1.8; }

:root { background:#101213; --graphite:#101213; --amber:#e5b581; }
.bar { height:68px; width:min(1320px,92%); border-color:#ffffff17; }
.cinema { isolation:isolate; overflow:hidden; position:relative; display:grid; grid-template-columns:minmax(240px,.76fr) minmax(0,1.42fr); align-items:center; gap:clamp(24px,4vw,70px); padding:clamp(48px,8vh,96px) max(4vw,calc((100vw - 1320px)/2)) clamp(76px,12vh,155px); min-height:min(75vh,740px); background:#0b0d0e; }
.cinema::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,#0d101226 0%,transparent 47%,#0b0d0ee8 94%),linear-gradient(0deg,#101213 0%,transparent 25%,#0b0d0e55 90%),url("./assets/earthrise.jpg") left 64% / 80% auto no-repeat; opacity:.66; }
.cinema-copy { align-self:start; padding-top:clamp(12px,4vh,58px); }
.cinema h1 { margin:0; font-size:clamp(58px,6.7vw,107px); line-height:.92; font-weight:560; letter-spacing:-.055em; }
.cinema h1 em { display:block; font:italic 400 .96em/.99 Georgia,serif; letter-spacing:-.048em; color:#ecd1ac; }
.cinema-copy p { margin:22px 0 0; font-size:clamp(.98rem,1.45vw,1.22rem); max-width:285px; line-height:1.6; color:#c2c6c8; text-wrap:pretty; }
.cinema-copy kbd { white-space:nowrap; border-color:#ffffff36; background:#ffffff0e; padding:2px 5px; color:#e3e5e4; }
#cards .photo-art img { width:100%; height:100%; object-fit:cover; object-position:50% 68%; display:block; }
.cinema .art { width:100%; margin:0; aspect-ratio:auto; display:flex; flex-direction:column; align-items:stretch; padding:clamp(9px,1vw,16px); gap:0; overflow:hidden; border:1px solid #c5c9cc6b; border-bottom-color:#aa947a9c; border-radius:24px; box-shadow:0 32px 64px -18px #000b,inset 0 1px 1px #fff6; }
.cinema .workspace { position:relative; display:flex; flex-direction:column; min-height:300px; width:100%; border-radius:15px; border:1px solid #fff4; background:linear-gradient(125deg,#f2f0e8,#e9e6dd); box-shadow:0 8px 18px #0003; }
.toolbar { padding:12px 16px; gap:12px; border-color:#2a26211e; background:transparent; }
.toolbar strong { font-size:.9rem; letter-spacing:0; }
.window-dots { width:8px; height:8px; border-radius:50%; background:#b7b5ac; box-shadow:12px 0 #c5c2b9,24px 0 #cfcdc4; margin-right:23px; }
.toolbar #reset { font-size:.76rem; border:0; background:transparent; text-decoration:underline; text-underline-offset:3px; color:#625f56; }
.cinema #editor { flex:1; min-height:78px; padding:14px 18px; color:#313029; font:19px/1.4 Georgia,serif; }
.cinema #editor:empty::before { color:#726e64; font-style:italic; }
#tray { margin:0 8px 8px; padding:13px; border-radius:13px; background:linear-gradient(145deg,#41474a,#202426 68%); border:1px solid #686d70; box-shadow:inset 0 1px 0 #ffffff38,0 4px 12px #252a262e; }
#cards { gap:9px; }
#cards button { position:relative; padding:0; background:transparent; border:0; border-radius:7px; }
#cards .sample-art { position:relative; display:grid; place-items:center; height:clamp(96px,10vw,150px); overflow:hidden; isolation:isolate; border-radius:7px; box-shadow:0 0 0 1px #ffffff32; }
#cards small { padding:6px 1px 0; font-size:clamp(.7rem,1.1vw,.86rem); line-height:1.25; }
#cards .photo-art img { position:absolute; inset:0; border-radius:0; height:100%; }
.book-art { background:radial-gradient(ellipse at 33% 22%,#768085,#454c50 68%,#33383a); }
#cards .book-art img { position:absolute; top:50%; left:50%; width:auto; height:84%; aspect-ratio:580/740; object-fit:contain; border-radius:1px 3px 3px 1px; box-shadow:1px 1px #a29c91,2px 2px #eee9d9,3px 3px #b3ab99,4px 4px #e3dac7,7px 9px 12px #171e2199; transform:translate(-50%,-50%) perspective(420px) rotateY(-13deg) rotateZ(-8deg); }
.note-art { background:linear-gradient(140deg,#d5cec0,#bdb4a3); }
.note-paper { width:72%; height:95%; align-self:end; color:#393a33; padding:14% 8% 0; background:repeating-linear-gradient(transparent 0 18px,#91897940 18px 19px),#f2edde; box-shadow:2px 3px 7px #4d493850; transform:translateY(6px) rotate(5deg); text-align:left; font:clamp(13px,1.8vw,27px)/.97 Georgia,serif; letter-spacing:-.05em; }
#editor .attachment { gap:9px; background:#f6f3eb; border:1px solid #bdb8ab; color:#2f302c; text-decoration:none; border-radius:7px; padding:5px 10px 5px 5px; box-shadow:0 2px 5px #28252015; font:600 13px/1.25 -apple-system,sans-serif; }
#editor .attachment img { border-radius:2px; width:32px; height:41px; margin:0; object-fit:contain; }
.attachment small { display:block; margin-top:3px; font-size:11px; font-weight:400; color:#67645d; }
.demo-actions { position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px -2px -2px; padding:7px 9px; background:#15191bea; border-radius:12px; }
.demo-actions #shortcut { white-space:nowrap; font-size:.75rem; padding:6px 8px; color:#f1f1ed; background:#ffffff0c; border:1px solid #ffffff3a; border-radius:7px; }
.demo-actions #shortcut:hover { background:#41484c; }
.gesture-films { width:min(1320px,92%); border-bottom:1px solid #ffffff19; padding:14px 0 20px; }
.gesture-films summary { cursor:pointer; width:fit-content; font-size:.9rem; font-weight:580; padding:4px 0; }
.gesture-films figure { max-width:640px; margin:12px auto 24px; }
.gesture-films .filmcontrols { margin-top:10px; }
.gesture-films .credit { margin-top:8px; font-size:.8rem; }
@media(max-width:760px) {
  .bar { height:55px; }
  .cinema { display:block; padding:26px 3.5% 40px; min-height:0; }
  .cinema-copy { padding:0 2% 18px; }
  .cinema h1 { font-size:clamp(42px,8vw,60px); }
  .cinema h1 em { display:block; }
  .cinema-copy p { margin-top:9px; font-size:.88rem; max-width:32ch; }
  .cinema::before { background-size:auto,auto,130% auto; }
  .cinema .workspace { min-height:250px; }
  .cinema .art { border-radius:19px; }
  #tray { padding:9px; margin:0 5px 5px; }
  #cards { gap:6px; }
  #cards .sample-art { height:clamp(76px,18vw,118px); }
  .toolbar { padding:8px 12px; }
  .window-dots { display:none; }
  .cinema #editor { min-height:66px; }
}



/* The destination is a message draft. Its attachments travel with the sent turn. */
.cinema .workspace { color-scheme:dark; color:#e7e7e5; min-height:clamp(440px,36vw,492px); padding:0 13px 13px; background:linear-gradient(132deg,#25292c,#191b1e 76%); border-color:#ffffff28; }
.workspace .toolbar { border-bottom-color:#ffffff12; margin:0 -13px 10px; padding:12px 16px; gap:9px; color:#f0f0ec; }
.chat-mark { width:15px; height:12px; border-radius:5px 5px 5px 1px; border:1.5px solid #b3b8ba; }
.toolbar #reset { color:#c3c6c7; }
.thread { display:flex; flex-direction:column; gap:8px; overflow:auto; max-height:190px; }
.thread:not(:empty) { padding:4px 1px 12px; }
.thread article { align-self:flex-end; max-width:92%; padding:10px 13px; border-radius:16px 16px 5px 16px; background:#35393d; color:#f5f4ef; overflow-wrap:anywhere; }
.thread article p { white-space:pre-wrap; margin:0; font-size:.9rem; }
.thread article .attachments:not(:last-child) { margin-bottom:8px; }
.cinema #tray { margin:0 0 10px; background:linear-gradient(136deg,#42494c,#2b3033 70%); box-shadow:0 7px 16px #080a0b54,inset 0 1px 0 #ffffff21; }
.composer { margin-top:auto; background:#2b2d30; border:1px solid #55595d; border-radius:17px; padding:10px 12px 8px; }
.composer:focus-within { border-color:#888b8e; }
.composer.drag-over { outline:2px solid var(--amber); }
.cinema .composer #editor { box-sizing:border-box; width:100%; display:block; min-height:48px; height:48px; max-height:none; padding:1px 2px 4px; border:0; outline:0; background:transparent; color:#f6f5f2; resize:none; font:400 .95rem/1.45 -apple-system,BlinkMacSystemFont,sans-serif; }
.composer #editor::placeholder { color:#b2b4b7; }
.composer-tools { display:flex; align-items:center; gap:8px; }
.composer-tools button { line-height:1; }
.composer-tools #add-file { width:30px; height:30px; padding:0; font-size:24px; border:0; border-radius:9px; color:#dbddde; background:transparent; }
.composer-tools #add-file:hover { background:#42464a; }
.composer-tools #shortcut { background:transparent; border:1px solid #ffffff26; border-radius:8px; color:#d1d3d4; font-size:.73rem; font-weight:500; padding:6px 8px; box-shadow:none; }
.composer-tools #shortcut:hover { background:#42464a; }
.composer-tools kbd { color:#b9bdc0; border:0; background:transparent; }
#send { margin-left:auto; width:30px; height:30px; padding:0 0 2px; border-radius:50%; border:0; background:#f1f0e9; color:#242628; font-size:22px; font-weight:600; }
#send:disabled { background:#464a4d; color:#95999d; opacity:1; }
.attachments { display:flex; flex-wrap:wrap; gap:6px; min-width:0; }
#attachments { max-height:130px; overflow:auto; }
#attachments:not(:empty) { margin-bottom:8px; }
.file-chip { display:flex; align-items:flex-start; max-width:100%; min-width:0; border:1px solid #ffffff26; border-radius:9px; background:#393c3f; color:#f0f0eb; overflow:hidden; }
.file-chip a { display:flex; align-items:center; gap:8px; min-width:0; color:inherit; text-decoration:none; padding:4px 5px; }
.file-chip img { width:42px; height:39px; border-radius:4px; }
.file-chip img.photo-thumb { object-fit:cover; object-position:55% 63%; }
.file-chip img.cover-thumb { object-fit:contain; }
.file-chip .file-label { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.79rem; font-weight:550; }
.file-label small { display:block; margin-top:2px; font-weight:400; font-size:.67rem; color:#c1c4c5; }
.file-chip button { background:transparent; color:#cbd0d2; border:0; padding:1px 5px; font-size:16px; }
.file-icon { width:24px; height:30px; margin:3px 7px; border:1px solid #bdc5c9; border-radius:2px 7px 2px 2px; }
@media (max-width:760px) {
  .cinema .workspace { padding:0 7px 7px; min-height:286px; }
  .workspace .toolbar { margin:0 -7px 7px; padding:9px 12px; }
  .cinema #tray { margin:0 0 7px; }
  .composer { padding:8px; }
}
@media (prefers-reduced-motion:no-preference) {
  #attachments .file-chip { animation:attach-file 180ms ease-out; }
  @keyframes attach-file { from { opacity:.35; transform:translateY(5px) scale(.97); } to { opacity:1; transform:none; } }
}
.gesture-films video { height:auto; aspect-ratio:auto; object-fit:contain; }

.thread article.agent-turn { align-self:flex-start; max-width:min(92%,54ch); background:transparent; border-radius:0; padding:6px 4px; color:#f1f0ec; }
.agent-turn b { display:block; color:#d9b996; font-size:.73rem; font-weight:600; margin-bottom:4px; }
.thread article.agent-turn p { line-height:1.5; }
#cards .clipboard-art { align-content:start; justify-items:start; gap:7px; padding:12px; background:rgba(255,255,255,.035); text-align:left; border-radius:14px; }
.clip-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; overflow-wrap:anywhere; font:400 11px/1.45 -apple-system,BlinkMacSystemFont,sans-serif; color:#eceeed; }
.align-icon { width:13px; height:12px; background:linear-gradient(#a6abad,#a6abad) 0 0/13px 1.5px,linear-gradient(#a6abad,#a6abad) 0 3.5px/9px 1.5px,linear-gradient(#a6abad,#a6abad) 0 7px/13px 1.5px,linear-gradient(#a6abad,#a6abad) 0 10.5px/8px 1.5px; background-repeat:no-repeat; }
@media(max-width:760px) { #cards .clipboard-art { padding:8px; gap:4px; } }

.composer-tools #shortcut[aria-expanded="false"] { color:#f1d6af; border-color:#bf9c6a67; background:#ddbe8e0d; }

@media(max-width:480px) { .clip-text { line-height:13px; -webkit-line-clamp:3; } }

.composer { position:relative; }
.cinema .composer #tray { position:absolute; z-index:3; left:4px; right:4px; bottom:38px; width:auto; max-width:560px; margin:0; background:linear-gradient(125deg,#41474bf5,#202529f7); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid #aaadae88; box-shadow:inset 0 1px 0 #ffffff32,0 12px 28px #0008; }
#file-guide { width:min(360px,calc(100vw - 32px)); box-sizing:border-box; color:#eceeeb; border:1px solid #797f82; border-radius:18px; padding:24px; background:#272b2e; box-shadow:0 22px 65px #0007; }
#file-guide::backdrop { background:#0a0d1080; }
#file-guide h2 { margin:12px 0 8px; font-size:1.5rem; letter-spacing:-.04em; }
#file-guide p { color:#d0d2d2; font-size:.94rem; line-height:1.55; }
#file-guide kbd { white-space:nowrap; }
.guide-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; }
.guide-actions button { border-radius:8px; border:1px solid #ffffff30; padding:7px 10px; color:inherit; background:transparent; }
#guide-dismiss { color:#221d17; background:var(--amber); }
@media(prefers-reduced-motion:no-preference) {
  .composer #tray:not([hidden]) { animation:present-shelf 160ms cubic-bezier(.18,.78,.25,1); transform-origin:14% 100%; }
  @keyframes present-shelf { from { opacity:.45; transform:translateY(4px) scale(.985); } to { opacity:1; transform:none; } }
}

/* Each art direction opens on the same live conversation. */
.entry { display:none; }
html:not([data-intro]) .entry-conversation, [data-intro="conversation"] .entry-conversation,
[data-intro="materials"] .entry-materials, [data-intro="shortcut"] .entry-shortcut { display:block; }
[data-intro="conversation"] .cinema { display:flex; flex-direction:column; gap:24px; padding-block:clamp(22px,4vh,44px) 48px; min-height:0; }
[data-intro="conversation"] .cinema::before { background:radial-gradient(ellipse at 50% 86%,#4b494445,transparent 67%); }
[data-intro="conversation"] .cinema-copy { text-align:center; align-self:center; padding:0; }
[data-intro="conversation"] .cinema h1 { font-size:clamp(44px,6.3vw,88px); }
[data-intro="conversation"] .cinema h1 em { display:inline; }
[data-intro="conversation"] .cinema-copy p { max-width:530px; margin:12px auto 0; }
[data-intro="conversation"] .art { max-width:780px; }
[data-intro="materials"] .cinema { background:#e5e0d4; color:#232729; }
[data-intro="materials"] .cinema::before { background:linear-gradient(90deg,#675e4826 1px,transparent 1px),linear-gradient(#675e4820 1px,transparent 1px); background-size:44px 44px; opacity:.38; }
[data-intro="materials"] .cinema h1 em { color:#725333; }
[data-intro="materials"] .cinema-copy p { color:#4f504a; max-width:370px; }
.material-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); max-width:340px; margin-top:20px; border:1px solid #afa998; border-radius:8px; overflow:hidden; }
.material-grid button { min-width:0; background:#efece3; border:0; border-right:1px solid #c6c0af; color:#292c2e; padding:10px; font:550 12px -apple-system,sans-serif; }
.material-grid button:last-child { border-right:0; }
.material-grid button:focus-visible { outline-offset:-3px; }
.specimen { display:grid; place-items:center; height:42px; margin-bottom:7px; overflow:hidden; }
.specimen img { width:55px; height:38px; object-fit:cover; border-radius:3px; }
.material-grid button:nth-child(2) img { width:29px; object-fit:contain; border-radius:1px; box-shadow:1px 2px 3px #0003; }
.link-specimen { font:32px Georgia,serif; color:#83603d; }
[data-intro="shortcut"] .cinema::before { background:radial-gradient(ellipse at 15% 38%,#72665232,transparent 65%); }
.source-rail { display:flex; gap:8px; align-items:center; position:relative; isolation:isolate; width:fit-content; padding:8px 0; margin-top:20px; }
.source-rail::before { content:""; position:absolute; z-index:-1; left:0; right:0; top:50%; border-top:1px solid #7b7770; }
.source-rail > img,.source-rail button { width:43px; height:43px; object-fit:cover; border:1px solid #9d978970; border-radius:50%; background:#252729; }
.source-rail button { padding:5px; width:66px; height:66px; box-shadow:0 2px 12px #0006; }
.source-rail button img { width:100%; }
.source-rail > span { background:#151718; color:#d6c5aa; }
.rail-reply { padding:4px 9px; border:1px solid #71695d; border-radius:12px; font-size:.8rem; }
@media(prefers-reduced-motion:no-preference) {
  .specimen img,.source-rail button { transition:transform 160ms ease-out; }
  .material-grid button:is(:hover,:focus-visible) img { transform:translateY(-2px) rotate(-5deg); }
  .source-rail button:is(:hover,:focus-visible) { transform:scale(1.06); }
}
@media(max-width:760px) {
  [data-intro="conversation"] .cinema { gap:16px; }
  [data-intro="conversation"] .cinema-copy p { max-width:35ch; }
  .material-grid { max-width:280px; margin-top:12px; }
  .source-rail { margin-top:10px; }
}
[data-intro="conversation"] .cinema::before, [data-intro="shortcut"] .cinema::before {
  background:linear-gradient(0deg,#101213,transparent 16%,#0c0f10aa 68%),linear-gradient(90deg,#0c0f1055,transparent 58%,#0c0f10bb),url("./assets/earthrise.jpg") center 71% / cover;
  opacity:.52;
}

.shortcut-legend { color:#c1c4c5; font-size:.75rem; }
.composer-tools #shortcut { display:none; }
@media(pointer:coarse) {
  .composer-tools #shortcut { display:inline-block; }
  .shortcut-legend { display:none; }
}

.agent-turn .chat-download { display:inline-flex; align-items:center; gap:10px; margin-top:10px; max-width:100%; box-sizing:border-box; padding:7px 12px 7px 7px; border-radius:13px; border:1px solid #a899835e; background:linear-gradient(140deg,#3a3e42,#292c30); box-shadow:inset 0 1px 0 #ffffff13; color:#f4f3ef; text-decoration:none; }
.chat-download:is(:hover,:focus-visible) { border-color:var(--amber); }
.chat-download strong,.chat-download small { display:block; }
.chat-download strong { font-size:.88rem; }
.chat-download small { font-size:.72rem; color:#c9cbce; }
.chat-download strong { display:flex; align-items:center; gap:6px; }
.chat-download .apple-mark { width:13px; height:13px; }

.demo-stage { position:relative; min-width:0; width:100%; }
[data-intro="conversation"] .demo-stage { max-width:780px; }
.demo-coach { position:absolute; z-index:4; right:0; bottom:17%; width:142px; }
.hint-bubble { position:relative; color:#f5f5f4; }
.hint-bubble .glass-pane { border-radius:14px; background:#343b478c; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.hint-bubble .lens-field { opacity:.44; }
.hint-bubble .glass-pane::after { background:linear-gradient(135deg,#e0edff39,#46536219 42%,#181c2266 74%,#ffe1b733); }
.demo-coach p { position:relative; margin:0; padding:12px 14px; font-size:.82rem; line-height:1.5; text-wrap:pretty; }
.hint-bubble::before { content:""; position:absolute; top:50%; left:-4px; width:8px; height:8px; background:#3b4149; border-left:1px solid #aab4c3; border-bottom:1px solid #87919c; transform:translateY(-50%) rotate(45deg); }
#hint-toggle { display:none; }
@media(min-width:1120px) {
  html:not([data-intro="conversation"]) .demo-stage { padding-right:158px; }
  [data-intro="conversation"] .demo-coach { left:calc(100% + 14px); right:auto; }
}
@media(max-width:1119px) {
  .demo-stage { padding-top:27px; }
  .demo-coach { top:0; right:12px; bottom:auto; width:auto; display:grid; justify-items:end; }
  #hint-toggle { display:flex; align-items:center; gap:5px; padding:3px 8px; color:#eeeae3; border:1px solid #77746d; border-radius:99px; background:#24272a; font-size:.75rem; }
  #hint-toggle span { display:grid; place-items:center; width:14px; height:14px; border:1px solid #aaa; border-radius:50%; font-size:10px; }
  .hint-bubble { max-width:min(210px,72vw); margin-top:6px; }
  .hint-bubble::before { top:-5px; left:auto; right:16px; transform:rotate(135deg); }
  #hint-toggle[aria-expanded="false"] + .hint-bubble { clip-path:inset(50%); height:1px; width:1px; overflow:hidden; position:absolute; }
}

.brand small { font-size:.74rem; font-weight:500; color:#c9cace; letter-spacing:0; align-self:center; }
.mobile-story, .mobile-watch { display:none; }
@media (max-width:900px), (pointer:coarse) {
  html[data-intro] .cinema { display:block; padding:32px 5% 36px; min-height:0; }
  #demo .entry, .demo-stage, .gesture-films details, .desktop-watch { display:none; }
  .mobile-watch { display:inline; }
  .bar nav a { align-content:center; min-height:44px; }
  .mobile-story { display:block; width:min(100%,660px); margin:auto; }
  html[data-intro] .mobile-story h1 { font-size:clamp(48px,10vw,78px); line-height:.98; text-wrap:balance; }
  html[data-intro] .mobile-story h1 em { display:block; }
  .mobile-story > p { margin:16px 0 24px; max-width:46ch; color:#c4c8ca; font-size:1rem; line-height:1.5; }
  [data-intro="materials"] .mobile-story > p { color:#49504e; }
  .mobile-story figure { margin:0; scroll-margin-top:16px; }
  .mobile-story video { display:block; width:100%; height:auto; aspect-ratio:880/928; border-radius:16px; background:#212428; box-shadow:0 12px 32px #0004; }
  .mobile-story figcaption { margin:16px 0 0; max-width:50ch; color:inherit; font-size:.94rem; line-height:1.65; }
  .mobile-story kbd { white-space:nowrap; }
}

/* The front sheet of the mark is the same element as the finished frame. */
.lens-defs { position:absolute; pointer-events:none; }
.demo-stage, .mobile-story { --entrance:1.65s; --entrance-delay:.5s; --icon-size:clamp(160px,44vw,224px); }
.glass-reveal { position:relative; min-width:0; }
.cinema .art { background:transparent; border:0; box-shadow:none; overflow:visible; }
.glass-pane {
  position:absolute; inset:0; overflow:hidden; pointer-events:none; border-radius:24px;
  background:rgba(99,111,127,.16); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px);
  box-shadow:0 20px 52px -16px #0009;
}
.lens-field { position:absolute; inset:0; overflow:hidden; background:var(--scene-base,transparent); filter:url(#pasty-refraction); }
.lens-field::before {
  content:""; position:absolute; left:calc(50% + var(--scene-x,0px)); top:calc(50% + var(--scene-y,0px));
  width:var(--scene-width,100%); height:var(--scene-height,100%);
  transform:translate(-50%,-50%); background:var(--scene,transparent); opacity:var(--scene-alpha,1);
}
.glass-pane::after {
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:linear-gradient(145deg,#cad8ec38,transparent 35%,#8798ae0c 71%,#d7b18a27);
  box-shadow:inset 0 1px 1px #eef5ffc7,inset 1px 0 2px #cfdefa70,inset -1px -1px 1px #eec89999,
    inset 0 3px 6px -3px #d3e1fbb8,inset 0 -3px 7px -4px #ffe0c07d;
}
.mobile-story .glass-reveal { padding:8px; }
.mobile-story .glass-pane { border-radius:22px; }
.mobile-story video { position:relative; }
@media (prefers-reduced-motion:no-preference) {
  [data-reveal] :is(.art,.mobile-story .glass-reveal)::before {
    content:""; position:absolute; width:var(--icon-size); height:var(--icon-size); left:50%; top:50%; transform:translate(-50%,-50%);
    background:image-set(url("./media/pasty-icon.png") 1x,url("./media/pasty-icon-large.png") 2x) center/contain no-repeat; pointer-events:none;
    animation:release-sheet var(--entrance) var(--entrance-delay) linear both;
  }
  [data-reveal] :is(.art,.mobile-story .glass-reveal) > .glass-pane { animation:open-glass var(--entrance) var(--entrance-delay) both; }
  [data-reveal] :is(.art,.mobile-story .glass-reveal) > .glass-pane::after { animation:glass-light var(--entrance) var(--entrance-delay) ease-out both; }
  [data-reveal] :is(.workspace,#mobile-film) { animation:settle-content var(--entrance) var(--entrance-delay) ease-out both; }
  [data-reveal] .demo-coach { animation:show-coach var(--entrance) var(--entrance-delay) ease-out both; }
}
@keyframes release-sheet { 0%,6% {opacity:1} 30%,100% {opacity:0} }
@keyframes open-glass {
  /* The icon's 256px artwork places the front sheet at (79,71)–(202,180). */
  from { inset:calc(50% - var(--icon-size)*57/256) calc(50% - var(--icon-size)*74/256) calc(50% - var(--icon-size)*52/256) calc(50% - var(--icon-size)*49/256);
    border-radius:calc(var(--icon-size)*.09); opacity:0; animation-timing-function:cubic-bezier(.42,0,.2,1); }
  12% { opacity:1; }
  100% { inset:0; opacity:1; }
}
@keyframes glass-light { 0%,25% { background-color:#9eabc173; } 82%,100% { background-color:transparent; } }
@keyframes settle-content {
  0%,40% { opacity:0; clip-path:inset(21% 24% round 16px); }
  86%,100% { opacity:1; clip-path:inset(0 round 0); }
}
@keyframes show-coach { 0%,80% {opacity:0} 100% {opacity:1} }

.mac-download {
  display:inline-flex; align-items:center; justify-content:center; justify-self:start; gap:8px;
  min-height:40px; padding:0 14px; border:1px solid #e2e2e3; border-radius:9px;
  background:#f4f4f5; color:#252629; text-decoration:none; white-space:nowrap; font-size:.875rem; font-weight:550;
  box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 #0002,0 0 0 2px #0004,0 2px 8px #ffffff14;
}
.apple-mark { display:inline-block; fill:currentColor; flex:none; }
.mac-download:active { background:#e4e4e5; }
@media(pointer:coarse) { .mac-download { min-height:44px; } }
.mac-download:hover, .bar nav .mac-download:hover { background:white; color:#151619; }
.release .mac-download { margin:6px 0 4px; }
@media(max-width:420px) {
  .bar .mac-download { padding-inline:10px; gap:4px; font-size:.84rem; }
  .bar .brand small { display:none; }
}
@media(max-width:365px) {
  .bar .brand { font-size:1.2rem; }
  .bar .brand img { width:32px; height:32px; }
  .bar nav { gap:8px; }
}

:is(.shortcut-legend,.hint-bubble,.cinema-copy,.mobile-story,#file-guide,#shortcut) kbd {
  display:inline-block; white-space:nowrap; padding:2px 6px; border:1px solid #daa86991; border-radius:5px;
  color:#ffe0ad; background:#433429; box-shadow:inset 0 1px 0 #fff2,0 1px 2px #0005;
  font:600 .79rem/1.25 ui-monospace,monospace;
}

/* Anchor to the text field even when attachment chips grow above it. */
.draft-field { position:relative; }
.composer:has(#attachments:empty) .draft-field { position:static; }
.draft-field textarea { vertical-align:top; }
.cinema .composer #tray {
  inset:auto auto calc(100% + 8px) 0; width:min(100%,444px); box-sizing:border-box;
  padding:10px 10px 6px; border-radius:26px; border:0;
  background:linear-gradient(128deg,#373e46d9,#24272be8 62%,#373330dd);
  backdrop-filter:blur(24px) saturate(1.2); -webkit-backdrop-filter:blur(24px) saturate(1.2);
  box-shadow:0 10px 24px #0005;
}
#tray::before {
  content:""; position:absolute; inset:0; pointer-events:none; padding:1px; border-radius:inherit;
  background:linear-gradient(to bottom right,#c7d9f5cc,#ffffff14 50%,#efbb77b8);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
#cards { position:relative; grid-template-columns:minmax(0,1fr) minmax(0,.84fr) minmax(0,1.18fr); gap:8px; }
#cards button { display:flex; flex-flow:column; align-items:stretch; gap:8px; padding:2px; background:none; }
#cards .sample-art {
  height:124px; border-radius:14px; background:#ffffff07; box-shadow:inset 0 0 0 .5px #ffffff10;
  transform:perspective(500px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) scale(.98);
  transition:transform .20s cubic-bezier(.2,.85,.3,1.12),box-shadow .24s,background-color .24s;
}
#cards .sample-art img { position:static; inset:auto; width:auto; height:auto; max-width:calc(100% - 14px); max-height:110px; object-fit:contain; transform:none; border-radius:5px; box-shadow:0 2px 5px #0005; }
#cards small { text-align:center; padding:0 3px; font-size:11px; font-weight:500; line-height:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#b7b9bd; }
#cards button.is-hovered .sample-art { transform:perspective(500px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1); background-color:#ffffff11; box-shadow:inset 0 0 0 .5px #fff3,0 3px 8px #0002; }
#cards button.is-hovered .sample-art::before { content:""; position:absolute; z-index:1; inset:0; pointer-events:none; background:radial-gradient(circle 145px at var(--light-x) var(--light-y),#ffffff40,#ffffff06 65%,transparent); }
#cards button.picked .sample-art { background-color:#ffffff14; box-shadow:inset 0 0 0 1.25px #efbb77b3; }
#cards button.picked .sample-art::after { content:"✓"; display:grid; place-items:center; position:absolute; z-index:2; top:5px; right:5px; width:20px; height:20px; border:1px solid #fffa; border-radius:50%; background:#efbb77; color:#171411; font:700 11px/1 system-ui; box-shadow:0 1px 3px #0003; }
#cards button:is(.picked,.is-hovered) small { color:#f5f5f3; }
#cards button.picked small { font-weight:600; }
#marquee { position:absolute; z-index:4; border-radius:5px; border:1px solid #efbb77a6; background:#efbb771a; pointer-events:none; }
.shelf-destination { margin:6px 0 0; font:550 11px/18px system-ui; color:#c4c6c9; text-align:center; }
#cards button.is-hovered::after {
  content:attr(data-tooltip); pointer-events:none; position:absolute; z-index:5; bottom:calc(100% + 5px); left:50%; transform:translateX(-50%);
  padding:6px 10px; border-radius:10px; border:1px solid #ffffff30; background:#292c30ed; color:#ececee; box-shadow:0 3px 9px #0004;
  white-space:pre; text-align:left; font:500 11px/1.35 system-ui; opacity:0; animation:shelf-tip .1s .15s forwards;
}
#cards.is-pressing button::after { display:none; }
#cards:focus { outline:none; }
#cards button:focus-visible { outline:2px solid #efbb77; outline-offset:1px; }
@keyframes shelf-tip { to { opacity:1; } }
@media(prefers-reduced-motion:reduce) {
  #cards button .sample-art,#cards button.is-hovered .sample-art { transform:none; transition:none; }
  #cards button.is-hovered .sample-art::before { display:none; }
}

/* The dismiss glyph and its hit area have independent sizes. */
.shelf-bar { display:flex; justify-content:flex-end; align-items:center; height:28px; margin:-2px 0 4px; }
#shelf-close {
  display:grid; place-items:center; width:28px; height:28px; padding:0; border:0; border-radius:50%;
  color:#e0e3e7; background:#ffffff09;
}
#shelf-close svg { display:block; }
#shelf-close:is(:hover,:focus-visible) { color:white; background:#ffffff1c; }
#shelf-close:focus-visible { outline:2px solid #efbb77; outline-offset:2px; }
#shelf-close:active { background:#ffffff28; }
@media(prefers-reduced-motion:no-preference) {
  #shelf-close { transition:background-color .15s,transform .15s; }
  #shelf-close:active { transform:scale(.94); }
}
