/* Anticode home page. Loads after base.css. */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; background: var(--pen); transform: scaleX(0); transform-origin: 0 50%; }
.top { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow var(--t-2) var(--ease); }
.top.is-stuck { box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: var(--s-5); height: 64px; }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-control); font-size: 13.5px; font-weight: 500; color: var(--body); transition: color var(--t-1) var(--ease), background-color var(--t-1) var(--ease); }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .top-in > .split { margin-left: auto; } }

.hero { display: grid; justify-items: center; gap: var(--s-5); text-align: center; padding-top: clamp(56px, 10vh, 112px); padding-bottom: var(--s-7); }
.hero > * { animation: rise var(--t-4) var(--ease-reveal) both; }
.hero > :nth-child(2) { animation-delay: 60ms; } .hero > :nth-child(3) { animation-delay: 120ms; } .hero > :nth-child(4) { animation-delay: 180ms; } .hero > :nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.hero > .hero-title { animation-name: rise-y; }
@keyframes rise-y { from { transform: translateY(8px); } }
.announce { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px 0 6px; border-radius: var(--r-control); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text); transition: background-color var(--t-1) var(--ease); }
.announce:hover { background: var(--raised); }
.announce svg { width: 14px; height: 14px; color: var(--muted); transition: transform var(--t-2) var(--ease); }
.announce:hover svg { transform: translateX(2px); }
.tag-new { padding: 4px 9px; border-radius: var(--r-control); font-size: 11.5px; line-height: 1; color: color-mix(in srgb, var(--ok) 72%, var(--text)); background: color-mix(in srgb, var(--ok) 16%, transparent); font-weight: 600; }
.hero-title { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -0.015em; font-weight: 450; }

.rot { position: relative; display: inline-block; text-align: left; white-space: nowrap; }
.rot-word { display: inline-block; }
.rot-line { position: absolute; left: 0; top: 54%; height: 0.07em; min-height: 3px; width: var(--uw, 0px); border-radius: 4px; background: var(--danger); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.rot.is-struck .rot-line { transform: scaleX(1); transition: transform 420ms var(--ease-snap); }
.rot.is-clearing .rot-line { opacity: 0; transition: opacity 120ms linear; }
.hero-sub { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 46ch; }
.fine { font-size: 13px; color: var(--muted); }

.composer { display: grid; gap: var(--s-3); width: 100%; max-width: 760px; padding: var(--s-3); border-radius: 24px; background: var(--surface); text-align: left;
  box-shadow: 0 0 0 1px transparent, 0 40px 100px -50px rgba(0, 0, 0, 0.8); transition: box-shadow var(--t-2) var(--ease); }
.composer:focus-within { box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -50px rgba(0, 0, 0, 0.8); }
.composer textarea { width: 100%; min-height: 60px; resize: none; padding: 10px 12px; border: 0; background: transparent; font-size: 18px; line-height: 1.4; color: var(--text); outline: none; }
.composer textarea::placeholder { color: var(--muted); }
.composer-row { display: flex; align-items: flex-end; gap: var(--s-3); }
.engine-mini { flex: none; width: 26px; align-self: center; margin: 0 2px 0 6px; }
.engine-mini .engine-ring { inset: -40%; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.send svg { transition: transform var(--t-2) var(--ease); }
.send:hover svg { transform: translateX(3px); }
.send.is-empty { opacity: 0.38; }
@media (max-width: 560px) {
  .composer-row { flex-wrap: wrap; }
  .send { width: 100%; }
  .hero-title br { display: none; }
}

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: var(--s-6); }
.tile { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 320px; border-radius: var(--r-card); background: var(--surface); overflow: hidden; isolation: isolate; }
.t-log, .t-preview { grid-column: span 2; }
.tile-stage { position: relative; min-height: 0; overflow: hidden; padding: 20px 22px 0; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px 16px; font-size: 14px; font-weight: 500; color: var(--text); }
.explore { color: var(--muted); transition: color var(--t-2) var(--ease); white-space: nowrap; }
.tile:hover .explore { color: var(--text); }
.log { position: absolute; left: 22px; right: 22px; bottom: 0; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.35;
  -webkit-mask-image: linear-gradient(transparent, #000 40%); mask-image: linear-gradient(transparent, #000 40%); }
.log li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; animation: log-in 320ms var(--ease-reveal) both; }
.log b { font-weight: 500; color: var(--muted); }
.log li.live b { color: var(--pen); }
.log span { color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log em { font-style: normal; color: var(--ok); font-variant-numeric: tabular-nums; }
@keyframes log-in { from { opacity: 0; filter: blur(3px); transform: translateY(4px); } }
.sn-count { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.sn-count b { font-size: 44px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.sn-count span { font-size: 13px; color: var(--muted); }
.sn-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13.5px; }
.sn-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color var(--t-2) var(--ease); }
.sn-list li::before { content: ""; flex: none; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow var(--t-2) var(--ease), background-color var(--t-2) var(--ease); }
.sn-list li.on { color: var(--body); }
.sn-list li.on::before { background: var(--ok); box-shadow: none; }
.sn-list li.run::before { box-shadow: inset 0 0 0 1.5px var(--pen); }
.mini { --g: #fbfaf6; --t: #17160f; --a: #1f3a5f; --rr: 0px; --rb: 99px; position: relative; height: 176px; border-radius: 10px; background: var(--g); overflow: hidden; transition: background-color 500ms var(--ease); }
.mini i { position: absolute; display: block; background: var(--t); transition: background-color 500ms var(--ease), border-radius 500ms var(--ease); }
.mini .m-nav { left: 14px; right: 14px; top: 16px; height: 1px; opacity: 0.25; }
.mini .m-h1 { left: 14px; top: 34px; width: 64%; height: 14px; border-radius: var(--rr); }
.mini .m-h2 { left: 14px; top: 54px; width: 44%; height: 14px; border-radius: var(--rr); }
.mini .m-p { left: 14px; top: 80px; width: 52%; height: 5px; opacity: 0.4; border-radius: var(--rr); }
.mini .m-btn { left: 14px; top: 96px; width: 56px; height: 18px; background: var(--a); border-radius: var(--rb); }
.mini .m-card { top: 128px; height: 34px; width: calc(50% - 19px); left: 14px; opacity: 0.12; border-radius: var(--rr); }
.mini .m-card + .m-card { left: auto; right: 14px; }
.mini-name { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13.5px; }
.mini-name b { font-weight: 500; color: var(--text); }
.mini-name span { color: var(--muted); }
.t-preview .tile-stage { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.pv-desk, .pv-phone { position: relative; background: var(--ground); box-shadow: 0 0 0 1px var(--line-2); overflow: hidden; }
.pv-desk { width: min(70%, 460px); height: 226px; border-radius: 10px 10px 0 0; }
.pv-phone { width: 104px; height: 200px; border-radius: 18px 18px 0 0; }
.pv-bar { display: block; height: 18px; border-bottom: 1px solid var(--line); }
.pv-body { display: grid; gap: 8px; padding: 12px; }
.pv-body i { display: block; height: 26px; border-radius: 4px; background: var(--raised); transform-origin: 0 50%; transform: scaleX(0.001); opacity: 0;
  outline: 1.5px dashed transparent; outline-offset: 3px; transition: transform 520ms var(--ease-reveal), opacity 300ms var(--ease), outline-color 200ms var(--ease); }
.pv-body i:first-child { height: 46px; }
.pv-body i.on { transform: none; opacity: 1; }
.pv-body i.focus { outline-color: var(--pen); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .t-log, .t-preview { grid-column: auto; } }

.band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: var(--s-7); }
.band div { display: grid; gap: 8px; padding: 32px 24px; min-width: 0; }
.band div:first-child { padding-left: 0; }
.band div + div { border-left: 1px solid var(--line); }
.band b { font-size: clamp(36px, 4vw, 52px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.band span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr 1fr; } .band div:nth-child(3) { border-left: 0; padding-left: 0; } .band div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.sec { padding-top: 104px; padding-bottom: var(--s-4); }
.sec-head { display: grid; gap: var(--s-4); max-width: 640px; margin-bottom: var(--s-7); }
.sec-head h2, .cta h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.015em; }
.sec-head > p:not(.label) { color: var(--body); font-size: 17px; max-width: 52ch; }
.home > .sec, .home > .cta { content-visibility: auto; contain-intrinsic-size: auto 760px; }

.tells { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--s-7); align-items: start; }
.mock-wrap { display: grid; gap: var(--s-3); min-width: 0; }
.mock { border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.7); transition: opacity var(--t-3) var(--ease); }
.mock.is-resetting { opacity: 0; transition-duration: var(--t-2); }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--raised); }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted); }
.mock-page { position: relative; isolation: isolate; display: grid; gap: 22px; padding: clamp(20px, 4vw, 40px); min-height: 380px; background: #f7f6f2; color: #fff; text-align: center;
  transition: color var(--t-3) var(--ease); }
.mock-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 20% 0%, #c084fc, transparent 60%), linear-gradient(135deg, #7c3aed, #2563eb 70%, #06b6d4); transition: opacity 600ms var(--ease); }
.mock-hero { display: grid; justify-items: center; gap: 12px; transition: justify-items 0s; }
.mock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); font-size: 12px; font-weight: 600; transition: background-color var(--t-3) var(--ease); }
.mock-h { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; }
.mock-p { font-size: 14.5px; opacity: 0.85; max-width: 40ch; }
.mock-cta { display: inline-flex; padding: 11px 22px; border-radius: 12px; font-size: 14px; font-weight: 700; background: linear-gradient(90deg, #f472b6, #a855f7); box-shadow: 0 10px 30px -6px rgba(168, 85, 247, 0.8);
  transition: border-radius var(--t-3) var(--ease), box-shadow var(--t-3) var(--ease), background-color var(--t-3) var(--ease), color var(--t-3) var(--ease); }
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mock-card { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.14); box-shadow: 0 12px 30px -10px rgba(15, 0, 60, 0.6); font-size: 13px;
  transition: border-radius var(--t-3) var(--ease), box-shadow var(--t-3) var(--ease), background-color var(--t-3) var(--ease); }
.mock-card b { font-weight: 700; }
.mock-card i { font-style: normal; opacity: 0.75; font-size: 12px; }
.mock .emo { font-size: 20px; line-height: 1; transition: opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease); }
.mock-badge .emo { font-size: 13px; }
.mock .drawn { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mock-badge .drawn { width: 14px; height: 14px; }
.swap { transition: opacity var(--t-2) var(--ease), filter var(--t-2) var(--ease); }
.swap.is-swapping { opacity: 0; filter: blur(4px); }

.mock.f1 .mock-page { color: #16150f; }
.mock.f1 .mock-page::before { opacity: 0; }
.mock.f1 .mock-badge { background: transparent; padding-left: 0; padding-right: 0; color: #6a675e; }
.mock.f1 .mock-card { background: transparent; }
.mock.f1 .mock-cta { background: #16150f; color: #f7f6f2; box-shadow: none; }
.mock.f2 .emo { display: none; }
.mock.f2 .drawn { display: block; animation: draw 700ms var(--ease-reveal) both; stroke-dasharray: 80; }
@keyframes draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.mock.f4 .mock-cta { border-radius: 999px; }
.mock.f4 .mock-card { border-radius: 0; box-shadow: inset 0 1px 0 rgba(22, 21, 15, 0.16); }
.mock.f5 .mock-cards { grid-template-columns: 1fr; gap: 0; }
.mock.f5 .mock-card { grid-template-columns: 26px 1fr auto; justify-items: start; align-items: center; gap: 12px; padding: 12px 0; text-align: left; }
.mock.f5 .mock-card i { opacity: 0.7; font-variant-numeric: tabular-nums; }
.mock.f6 .mock-page { text-align: left; }
.mock.f6 .mock-hero { justify-items: start; }
.mock.f6 .mock-h { max-width: 16ch; }
.mock-state { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.mock-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pen); transition: background-color var(--t-2) var(--ease); }
.mock-state.is-after .dot { background: var(--ok); }

.tell-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: tell; }
.tell-list li { position: relative; display: grid; gap: 2px; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); counter-increment: tell; }
.tell-list li:last-child { border-bottom: 1px solid var(--line); }
.tell-list li::before { content: counter(tell); position: absolute; left: 0; top: 15px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2);
  font-variant-numeric: tabular-nums; transition: color var(--t-2) var(--ease), background-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease); }
.tell-t { position: relative; justify-self: start; font-weight: 500; text-decoration-line: line-through; text-decoration-thickness: 2px; text-decoration-color: transparent; text-decoration-skip-ink: none; transition: color var(--t-3) var(--ease), text-decoration-color 380ms var(--ease-snap); }
.tell-fix { font-size: 14px; color: var(--ok); opacity: 0; filter: blur(4px); transform: translateY(-2px); transition: opacity var(--t-3) var(--ease-reveal) 160ms, filter var(--t-3) var(--ease-reveal) 160ms, transform var(--t-3) var(--ease-reveal) 160ms; }
.tell-list li.is-active::before { color: #fff; background: var(--pen); box-shadow: none; }
.tell-list li.is-struck .tell-t { color: var(--muted); }
/* a real line-through, so a title that wraps is struck on every line */
.tell-list li.is-struck .tell-t { text-decoration-color: var(--danger); }
.tell-list li.is-struck .tell-fix { opacity: 1; filter: none; transform: none; }
.tell-list li.is-struck::before { content: "✓"; color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent); background: none; }
.tells.is-reset .tell-t, .tells.is-reset .tell-fix { transition-duration: var(--t-exit); transition-delay: 0s; }
@media (max-width: 900px) { .tells { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mock-cards { grid-template-columns: 1fr; } .mock-card { grid-template-columns: 26px 1fr auto; justify-items: start; align-items: center; } }

.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.agent { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-6) var(--s-5) var(--s-6) 0; min-width: 0; }
.agent + .agent { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.agent svg { color: var(--text); margin-bottom: var(--s-3); }
.agent h3 { font-size: var(--fs-3); letter-spacing: -0.015em; }
.agent p { color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) {
  .team { grid-template-columns: 1fr 1fr; }
  .agent, .agent + .agent { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .agent:nth-child(even) { padding-left: var(--s-4); border-left: 1px solid var(--line); }
}
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } .agent:nth-child(even) { padding-left: 0; border-left: 0; } }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.compare figure { margin: 0; display: grid; align-content: start; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); min-width: 0; }
.compare figcaption { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-1); color: var(--muted); }
.compare figcaption b { font-weight: 500; color: var(--text); }
.essay p { font-size: 15px; line-height: 1.6; color: var(--muted); max-height: 210px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.brief { background: var(--raised); }
.brief-q { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.025em; }
.taps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.taps li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.taps span { color: var(--muted); }
.taps b { font-weight: 500; text-align: right; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

.sec-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.sec-split .sec-head { margin-bottom: 0; }
.report-card { padding: var(--s-5); border-radius: var(--r-card); background: var(--surface); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-bottom: var(--s-4); font-size: var(--fs-1); color: var(--muted); }
.ok-pill { padding: 3px 10px; border-radius: var(--r-control); font-size: 12.5px; font-weight: 600; color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 40%, transparent); }
.checks { display: grid; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.checks code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--raised); }
.ck { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); position: relative; }
.ck::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .sec-split { grid-template-columns: 1fr; } }

.cta { display: grid; justify-items: center; gap: var(--s-7); padding-top: var(--s-9); padding-bottom: var(--s-9); text-align: center; }
.cta h2 { max-width: 20ch; }
.starts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; text-align: left; }
.start { display: grid; align-content: start; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); }
.start h3 { font-size: 22px; letter-spacing: -0.01em; }
.start > p { color: var(--muted); font-size: 15px; }
.start .btn { justify-self: start; margin-top: var(--s-2); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 5px; border: solid var(--ok); border-width: 0 0 1.6px 1.6px; transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 760px) { .starts { grid-template-columns: 1fr; } }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-6); padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.foot-nav a { color: var(--muted); transition: color var(--t-1) var(--ease); }
.foot-nav a:hover { color: var(--text); }
.brand-sm .mark { width: 18px; height: 20px; }
.brand-sm .brand-word { font-size: 15px; color: var(--text); }

.label.is-here { animation: here 1600ms var(--ease) both; }
@keyframes here { 0%, 45% { color: var(--pen); } 100% { color: var(--muted); } }
h2[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

.tile .tile-stage > * { transition: transform 700ms var(--ease-reveal); }
.tile:hover .tile-stage > * { transform: scale(1.018); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 300ms var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--text) 7%, transparent), transparent 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 7%, transparent); }
.tile:hover::after { opacity: 1; }

.composer { view-transition-name: ac-panel; }
.rail { view-transition-name: ac-panel; }
#hero-engine { view-transition-name: ac-mark; }
#stage-engine { view-transition-name: ac-mark; }
.top .brand .mark { view-transition-name: ac-brand; }
.bbar .brand .mark { view-transition-name: ac-brand; }
::view-transition-group(ac-panel), ::view-transition-group(ac-mark), ::view-transition-group(ac-brand) { animation-duration: 680ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-group(ac-panel) { overflow: clip; border-radius: 24px; }
::view-transition-old(ac-panel), ::view-transition-new(ac-panel) { height: 100%; width: 100%; object-fit: cover; object-position: top left; }
::view-transition-old(ac-panel) { animation: 220ms var(--ease) both vt-fade-out; }
::view-transition-new(ac-panel) { animation: 420ms var(--ease) 160ms both vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

@supports (animation-timeline: view()) {
  .hero { animation: hero-recede linear both; animation-timeline: view(); animation-range: exit 5% exit 95%; }
  @keyframes hero-recede { to { opacity: 0.12; transform: translateY(-32px) scale(0.955); } }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .tile:hover .tile-stage > * { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* the dashboard's backdrop behind the hero: dot field, rising light and the red pen line (same values as dashboard.css) */
.home { position: relative; }
.home > :not(.home-backdrop) { position: relative; z-index: 1; }
.home-backdrop { position: absolute; inset: -64px 0 auto; height: clamp(760px, 110vh, 1040px); z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); } /* fades out instead of ending in a line */
.hb-par { position: absolute; inset: 0; animation: hb-enter 1600ms cubic-bezier(0.33, 1, 0.68, 1) both; }
@keyframes hb-enter { from { opacity: 0; transform: translateY(50vh); } }
.home-backdrop .bd-grid { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(75% 55% at 50% 48%, #000, transparent 80%); mask-image: radial-gradient(75% 55% at 50% 48%, #000, transparent 80%); }
.home-backdrop .bd-glow { position: absolute; left: 50%; bottom: 0; width: min(1400px, 150vw); aspect-ratio: 2 / 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 13%, transparent), color-mix(in srgb, var(--text) 4%, transparent) 55%, transparent); }
.home-backdrop .bd-pen { position: absolute; left: 50%; bottom: 38%; width: 46vw; height: 2px; translate: -50% 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--pen), transparent); opacity: 0.55; }
@supports (animation-timeline: scroll()) {
  .hb-par { animation: hb-enter 1600ms cubic-bezier(0.33, 1, 0.68, 1) both, hb-par linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0px 900px; }
  @keyframes hb-par { to { transform: translate3d(0, 240px, 0); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .hb-par { animation: none !important; } }

/* the header's "more" menu: settings, pricing, sales, help, status */
#more-menu { width: min(232px, calc(100vw - 32px)); }
#more-menu > :is(button, a) { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 8px; text-align: left; color: var(--text); }
#more-menu .i { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
#more-menu > :is(button, a):focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }

/* the settings overlay (public/settings.js): a native modal dialog */
.settings { width: min(480px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 48px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--ground); color: var(--body); box-shadow: 0 24px 80px -20px rgba(0, 0, 0, 0.55); overflow: auto; }
.settings::backdrop { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.settings[open] { animation: settings-in 220ms var(--ease-reveal); }
@keyframes settings-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) { .settings[open] { animation: none; } }
.settings-in { display: grid; gap: var(--s-5); padding: var(--s-5) var(--s-5) var(--s-6); }
.settings-head { display: flex; align-items: center; justify-content: space-between; }
.settings-head h2 { font-size: 20px; color: var(--text); letter-spacing: -0.01em; }
.settings-x { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.settings-x:hover { background: var(--surface); color: var(--text); }
.settings-x .i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.settings-sec { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.settings-sec h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.settings-theme { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: var(--r-control); background: var(--surface); }
.settings-theme button { min-height: 36px; border-radius: var(--r-control); font-size: 14px; font-weight: 500; color: var(--body); }
.settings-theme button[aria-checked="true"] { background: var(--ground); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.settings-theme button:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.settings-note { font-size: 13.5px; color: var(--muted); }
.settings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.settings-who { display: grid; gap: 2px; min-width: 0; }
.settings-who b { font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.settings-who span { font-size: 13.5px; color: var(--muted); }
.settings-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.settings-links { display: grid; gap: var(--s-2); font-size: 14.5px; }
.settings-links a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.settings-links a:hover { text-decoration-color: var(--text); }
