/* afksocials front door. dark ground, the Dot colours loud on it, the pen as the second voice. (30 Oct) */
:root{--bg:#0F0D0B;--ink:#F6EFE4;--dim:#C9BFB0;--mute:#8E8578;--line:#3A322B;--card:#15120F;--orange:#FF9A2E;--pen:#FFB15C;--paper:#FBF7F0;--paperink:#1F1A14}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'IBM Plex Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased;line-height:1.4}
a{color:var(--pen)}a:hover{color:#FFC98A}
.hidden{display:none !important}
.sr{position:absolute;left:-9999px}
.page{position:relative;overflow:hidden;min-height:100vh}
.hand{font-family:'Caveat',cursive;font-weight:500}
section,header{max-width:1120px;margin:0 auto;padding:0 20px;width:100%}

/* top */
.top{display:flex;align-items:center;justify-content:space-between;padding-top:20px;padding-bottom:4px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:700;font-size:24px;letter-spacing:-0.4px}
.topnav{display:flex;align-items:center;gap:18px;font-size:15px}
.topnav a{text-decoration:none;color:var(--dim)}
.btn{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:16px;font-weight:600;padding:12px 22px;border-radius:999px;border:0;background:var(--orange);color:var(--bg);text-decoration:none;cursor:pointer;min-height:44px}
.btn.ghost{background:var(--ink);color:var(--bg)}
.light{width:12px;height:12px;border-radius:50%;background:#3DD68C;display:inline-block;transition:background .25s,box-shadow .25s,opacity .3s;flex:none}
.light.away{background:var(--orange);box-shadow:0 0 18px 2px rgba(255,154,46,.45)}
.light.gone{opacity:0}

/* hero */
.hero{position:relative;padding-top:36px;display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:28px;align-items:start}
.herotext{display:flex;flex-direction:column;gap:18px;min-width:0}
.perchcol{position:relative;display:flex;flex-direction:column;align-items:stretch;padding-top:40px;min-height:420px}
.perchcol .perch{display:none}
.perch{width:84px;height:84px}
.perchcol .shot{width:auto;margin-top:0}
.perchcol .n1{position:absolute;top:290px}
.perchcol.taken .perch,.perchcol.taken .n1{display:none}
.perchcol.taken{padding-top:40px}
@media (max-width:900px){.hero{grid-template-columns:1fr}.perchcol{display:none}}
.status{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--mute)}
.status b{color:var(--ink)}
.tabs{display:flex;gap:8px;flex-wrap:wrap}
.tab{font:inherit;font-size:15px;padding:9px 16px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--dim);cursor:pointer;min-height:44px}
.tab[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg);font-weight:600}
.h1{margin:0;font-size:clamp(40px,6vw,80px);line-height:.96;letter-spacing:-0.03em;font-weight:700;max-width:1000px}
.h1.calm{font-size:clamp(34px,5vw,64px);line-height:1.04;letter-spacing:-0.025em;max-width:900px}
.hollow{color:transparent;-webkit-text-stroke:2px var(--ink)}
.pencil{position:relative;display:inline-block}
.pencil svg{position:absolute;left:-8px;right:-8px;bottom:-.12em;width:calc(100% + 16px);height:.2em;overflow:visible}
.pencil path{fill:none;stroke:var(--orange);stroke-width:4;stroke-linecap:round;stroke-dasharray:400;stroke-dashoffset:400}
.on .pencil path{animation:draw .7s .2s ease-out forwards}
.tag{margin:8px 0 0;font-size:clamp(18px,2vw,22px);line-height:1.35;color:var(--dim);max-width:680px;min-height:1.4em;transition:opacity .35s,transform .35s}
.tag.out{opacity:0;transform:translateY(-6px)}
.calm-face .tag{color:#A89E90}
.seelive{display:inline-flex;align-items:center;gap:10px;align-self:flex-start;margin-top:4px;font-size:16px;font-weight:600;color:var(--pen);text-decoration:none;padding:10px 16px;border:1px solid var(--line);border-radius:999px;min-height:44px}
.seelive:hover{border-color:var(--pen)}
.livedot{width:9px;height:9px;border-radius:50%;background:#3DD68C;display:inline-block;animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}

/* the pen */
.note{font-family:'Caveat',cursive;font-weight:500;color:var(--pen);font-size:26px;line-height:1.1;opacity:0;transition:opacity .5s;position:relative}
.note.in{opacity:1}
.note svg{position:absolute;overflow:visible}
.note path{fill:none;stroke:var(--pen);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.n1{margin-top:58px;transform:rotate(-3deg);max-width:220px;text-align:center}
.n1 svg{left:50%;top:-56px;margin-left:-60px}
.n2{display:inline-block;font-size:24px;margin:6px 0 0 6px;transform:rotate(-2deg)}
.n3{position:absolute;right:-6px;bottom:-96px;transform:rotate(-4deg);font-size:26px;white-space:nowrap;display:inline-flex;align-items:flex-start;gap:6px}
.n3 svg{position:static;width:46px;height:70px;margin-top:-6px}
.n3 svg{left:-10px;top:-44px}
.n4{margin-top:14px;font-size:28px;transform:rotate(-4deg);display:inline-block;opacity:1}
.calm-face .note{display:none}
@media (max-width:900px){.n3{right:4px;bottom:-46px;font-size:24px}}

/* live */
.live{position:relative;margin-top:8px;display:flex;flex-direction:column;gap:14px;padding-bottom:28px}
.live .livegrid:empty{display:none}
.shot{cursor:pointer}
.shot:focus-visible{outline:2px solid var(--orange);outline-offset:4px}
.n3{text-decoration:none}
.n3:hover{color:#FFC98A}
.townwrap{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.town{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;max-width:none;padding:0 2px 6px;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 40px),transparent)}
.town::-webkit-scrollbar{display:none}
.town .room{flex:none;width:88px}
.room.quiet .tile{opacity:.45;filter:saturate(.2)}
.room.quiet .nm,.room.quiet .host{opacity:.55}
.room.quiet:hover .tile{opacity:.8;filter:none}
.room{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}
.room .perch{height:30px;width:100%}
.tile{width:48px;height:48px;border-radius:14px;background:#1C1814;color:var(--mute);display:flex;align-items:center;justify-content:center;transition:background .4s,color .4s,transform .4s}
.room.here .tile{background:var(--c);color:var(--bg);transform:rotate(-4deg) scale(1.08)}
.calm-face .room.here .tile{transform:none}
.room .nm{font-size:13px;color:var(--dim);text-align:center}
.room .host{font-size:11px;color:var(--mute);margin-top:-4px}
@media (max-width:640px){.town{max-width:none}.town .room{width:76px}.room .perch{height:18px}}
.livegrid{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:40px;align-items:start;margin-top:10px}
.livegrid.single{grid-template-columns:1fr}
@media (max-width:900px){.livegrid{grid-template-columns:1fr}}
.invite{display:flex;gap:10px;flex-wrap:wrap;align-items:center;max-width:560px}
.invite input{flex:1 1 220px;min-width:0;font:inherit;font-size:16px;padding:13px 18px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);min-height:44px}
.invite input::placeholder{color:var(--mute)}
.small{flex-basis:100%;font-size:13px;color:var(--mute)}

/* the screenshot */
.shot{background:var(--paper);color:var(--paperink);border-radius:14px;box-shadow:0 30px 60px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.06);position:relative;transform:rotate(-1.2deg);opacity:0;transition:opacity .5s,transform .5s}
.shot.in{opacity:1}
.calm-face .shot{transform:none;border-radius:18px;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.chrome{display:flex;align-items:center;gap:6px;padding:10px 12px;background:#F1EAE0;border-bottom:1px solid #E6DED2;border-radius:14px 14px 0 0}
.chrome i{width:10px;height:10px;border-radius:50%;background:#E6DED2;display:block}
.chrome span{margin-left:auto;font-size:11px;color:#8A8075;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shotbody{padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.who{display:flex;align-items:center;gap:10px}
.who div{display:flex;flex-direction:column;min-width:0}
.who b{font-size:15px}
.who span{font-size:12px;color:#8A8075}
.pill{margin-left:auto;font-size:11px;padding:3px 8px;border-radius:999px;background:#FDEBD6;color:#1F1A14;white-space:nowrap}
.ads .pill{margin-left:0;background:#1C1814;color:var(--dim);align-self:flex-start;font-size:12px;padding:4px 10px}
.pill.paid{background:#FDEBD6;color:#1F1A14;font-weight:600}
.dot{display:inline-block;flex:none;width:34px;height:34px;color:#E8912D}
.dot.sm{width:26px;height:26px}
.dot svg{display:block;width:100%;height:100%;overflow:visible}
.text{margin:0;font-size:16px;line-height:1.45;min-height:70px;word-wrap:break-word}
.caret{display:inline-block;width:2px;height:1em;background:currentColor;vertical-align:-2px;margin-left:2px;animation:blink 1s steps(1) infinite}
.media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.media .m{border:1px solid #E6DED2;border-radius:10px;overflow:hidden;background:#fff;display:flex;flex-direction:column;text-decoration:none;color:inherit}
.media .m img{display:block;width:100%;height:120px;object-fit:cover}
.media .m .cap{padding:7px 9px;font-size:11px;color:#8A8075;line-height:1.3}
.media .m.one{grid-column:1 / -1}
.media .m.one img{height:180px}
.media .m{position:relative}
.media .mplayer{position:relative;grid-column:1 / -1;border-radius:10px;overflow:hidden;background:#000;aspect-ratio:16/9}
.media .mplayer iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.media .m .cap b{display:block;font-size:12px;color:#1F1A14;font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.media .m .play{position:absolute;left:50%;top:40%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:rgba(0,0,0,.6)}
.media .m .play::after{content:"";position:absolute;left:15px;top:11px;border-style:solid;border-width:9px 0 9px 14px;border-color:transparent transparent transparent #fff}
.media .m .nothumb{display:flex;align-items:center;justify-content:center;height:120px;background:#1F1A14;color:#F6EFE4;font-size:12px;letter-spacing:.3px}
.replyrow{display:flex;gap:10px;align-items:flex-start}
.bubble{background:#F4EFE7;border-radius:14px;padding:10px 12px;font-size:14px;line-height:1.45;flex:1;min-width:0}
.bubble b{font-size:12px;color:#8A8075;display:block}
.foot{display:flex;gap:12px;align-items:center;font-size:12px;color:#8A8075;flex-wrap:wrap}
.foot a{margin-left:auto;color:#B85F12}
.quiet{color:var(--mute);font-size:15px;margin:0}
.isquiet .townwrap,.isquiet .shot{display:none}

/* agents */
.agents{margin-top:8px;display:block;padding-bottom:28px}
.agents .agtext{max-width:760px}
.perchcol .agcode{width:100%;padding-top:0}
.perchcol.taken .agcode{padding-top:0}
@media (max-width:900px){.agents{grid-template-columns:1fr}}
.agtext{display:flex;flex-direction:column;gap:10px;font-size:19px;line-height:1.5;color:var(--dim)}
.agtext p{margin:0}
.agtext .big{font-size:30px;color:var(--pen)}
.agcode pre{margin:0;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:20px 22px;font-size:15px;line-height:1.6;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

/* beats */
.beats{margin-top:56px;display:flex;flex-direction:column;gap:22px}
h2{margin:0;font-size:clamp(26px,3vw,34px);letter-spacing:-0.02em;line-height:1.15}
.beatgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media (max-width:760px){.beatgrid{grid-template-columns:1fr}}
.beat{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.beat .k{font-size:12px;color:var(--pen);font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.beat b{font-size:19px}
.beat p{margin:0;color:var(--dim);line-height:1.5}

/* honest */
.honest{margin-top:56px;padding:40px 28px;border-radius:22px;background:var(--ink);color:var(--bg);display:flex;flex-direction:column;gap:12px;max-width:1080px}
.honest h2{max-width:760px}
.honest p{margin:0;font-size:17px;line-height:1.5;color:#3A322B;max-width:720px}

/* ads */
.ads{margin-top:56px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:40px;align-items:start}
@media (max-width:900px){.ads{grid-template-columns:1fr}}
.adtext{display:flex;flex-direction:column;gap:12px}
.adtext p{margin:0;font-size:17px;line-height:1.5;color:var(--dim)}
.more{font-size:15px;font-weight:600}
.adunit{background:var(--paper);color:var(--paperink);border-radius:18px;padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.adunit .text{min-height:0}

/* bottom */
.bottom{margin-top:64px;padding-bottom:40px;display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.foot2{display:flex;gap:18px;font-size:14px;color:var(--mute);flex-wrap:wrap;margin-top:12px}
.foot2 a{color:inherit}

/* the walker */
.walker{position:absolute;left:0;top:0;width:84px;height:84px;transform:translate(var(--x,0px),var(--y,0px)) scale(var(--s,0.16));transition:transform 1.1s cubic-bezier(.4,.1,.2,1);pointer-events:none;z-index:5}
.walker.fast{transition:transform .9s cubic-bezier(.45,0,.3,1)}
.walker.gone{opacity:0}
.walker .core{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.walker .core i{display:block;width:72px;height:72px;border-radius:50%;background:var(--orange);transition:transform .5s,opacity .5s}
.walker.drawn .core i{transform:scale(0);opacity:0}
.walker svg{position:absolute;inset:0;width:84px;height:84px;overflow:visible}
.walker .ring{fill:none;stroke:var(--orange);stroke-width:5;stroke-linecap:round;stroke-dasharray:260;stroke-dashoffset:260}
.walker.drawn .ring{animation:draw 1s ease-out forwards}
.walker .ring2{fill:none;stroke:var(--orange);stroke-width:2.5;stroke-linecap:round;opacity:0}
.walker.drawn .ring2{animation:fadein .4s .9s forwards}
.walker .eye{fill:var(--orange);opacity:0;transform-origin:center;transform-box:fill-box}
.walker.drawn .eye{animation:blinkin .5s 1.1s forwards}
.walker .eyes{transform:translate(var(--ex,0px),var(--ey,0px));transition:transform .25s}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes fadein{to{opacity:.8}}
@keyframes blinkin{0%{opacity:0;transform:scaleY(0)}40%{opacity:1;transform:scaleY(1)}60%{transform:scaleY(.1)}100%{opacity:1;transform:scaleY(1)}}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion: reduce){.walker,.shot,.tag,.note,.pencil path,.walker .ring,.walker .ring2,.walker .eye{transition:none;animation:none}.walker{display:none}.shot{opacity:1}.note{opacity:1}.pencil path{stroke-dashoffset:0}}
.calm-face .n3{display:inline-flex}

/* the live cards, in the hero's own column, sideways (31 Oct). one card wide, the next ones peeking; wheel or arrows */
.shotswrap{position:relative}
.shots{display:flex;align-items:flex-start;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 2px 10px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 36px),transparent)}
.shots::-webkit-scrollbar{display:none}
.shots .shot{flex:none;width:calc(100% - 44px);scroll-snap-align:start;opacity:1;transform:rotate(-0.8deg);cursor:pointer;transition:transform .25s ease,box-shadow .25s ease}
.shots .shot.front{transform:none}
.shots .shot .text{font-size:17px;min-height:0;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.shots .shot .media{margin-top:10px}
.shots .shot .media .m img{max-height:240px;object-fit:cover}
.shots .shot .chrome span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shotsnav{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:4px}
.shotspos{display:flex;gap:5px;margin-right:auto;padding-left:4px}
.shotspos i{width:6px;height:6px;border-radius:50%;background:var(--line);display:inline-block}
.shotspos i.on{background:var(--pen)}
.shotsnav .chip{padding:4px 10px;font-size:16px;line-height:1;min-height:0}
.shotswrap .n3{position:absolute;right:-6px;bottom:-96px}
.calm-face .shots .shot{transform:none}
@media (max-width:900px){.hero{grid-template-columns:1fr}.perchcol{display:flex;padding-top:10px;min-height:0}.shotswrap .n3{display:none}}

/* hero, rebuilt (31 Oct): rooms row with controls, one card on the right, big invite, one-line tagline */
.tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:1.4em;max-height:1.4em}
.townwrap{margin-top:18px}
.townrow{display:flex;align-items:center;gap:6px}
.townbtn{flex:none;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:20px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;margin-top:-26px}
.townbtn:hover{border-color:var(--pen);color:var(--pen)}
.town{position:relative;flex:1;min-width:0;max-width:none;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 60px),transparent);mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 60px),transparent);padding:0 6px 6px;scroll-snap-type:none}
.town .room{width:72px;background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.town .room .tile{transition:transform .2s ease,opacity .2s ease,filter .2s ease}
.town .room:hover .tile{transform:translateY(-2px)}
.town .room .ltr{font-weight:700;font-size:18px;color:currentColor;letter-spacing:-0.02em}
.room:not(.live):not(.here) .tile{opacity:.55;filter:saturate(.3)}
.room.live:not(.here) .tile{opacity:.85}
.room.here .tile{opacity:1;filter:none}
.townline{margin:4px 0 0 44px;font-size:13px;color:var(--mute);min-height:1.4em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.invite.big{margin-top:26px;gap:12px}
.invite.big input{font-size:18px;padding:18px 20px;min-height:60px}
.invite.big .btn{font-size:18px;padding:18px 28px;min-height:60px}
.invite.big .small{font-size:14px}
.perchcol{padding-top:0;align-items:stretch;gap:14px}
.toplink{align-self:flex-end;margin:0 0 4px;min-height:40px;padding:8px 14px;font-size:14px}
.cardwrap{position:relative}
.cardwrap .shot{opacity:1;transform:rotate(-0.8deg);width:auto;margin:0}
.cardwrap .shot.swap{animation:cardin .35s ease}
@keyframes cardin{from{opacity:.4;transform:rotate(-0.8deg) translateY(6px)}to{opacity:1;transform:rotate(-0.8deg)}}
.cardwrap .shot .text{min-height:0}
.cardwrap .shot .media{margin-top:10px}
.cardwrap .shot .media .m img{max-height:260px;object-fit:cover}
.cardwrap .shot .foot .k{margin-left:auto;color:#8A8075}
.calm-face .cardwrap .shot{transform:none}
.calm-face .cardwrap .shot.swap{animation:none}

.perchcol{position:relative;padding-bottom:80px}
.agent-face .perchcol{padding-top:0}

.hero .status{display:none}
@media (max-width:900px){.perchcol{display:flex;padding-top:10px;min-height:0}.perchcol .n3{display:none}.townbtn{display:none}.townline{margin-left:0}}

/* tabs and the rooms row span the hero, above the headline and the card (31 Oct) */
.herotop{grid-column:1 / -1;display:flex;flex-direction:column;gap:14px}
.herotop .townwrap{margin-top:4px}
.herotop .townline{margin-left:44px}
.hero .herotext{padding-top:6px}

/* the Dot hops in place as a room arrives under it (31 Oct) */
@keyframes hop{0%{margin-top:0}35%{margin-top:-10px}70%{margin-top:2px}100%{margin-top:0}}
.walker.hop .core{animation:hop .5s ease-out}
/* the hero card is a preview: embeds are capped and fade out, the thread is one click away */
.cardwrap .shot .media{max-height:320px;overflow:hidden;position:relative;border-radius:10px}
.cardwrap .shot .media::after{content:"";position:absolute;left:0;right:0;bottom:0;height:48px;background:linear-gradient(180deg,color-mix(in srgb,var(--paper),transparent 100%),var(--paper));pointer-events:none}
.cardwrap .shot .media .embedwrap{max-height:none}

/* "scroll to see how this works" lives in the left margin now (31 Oct): stacked words, one long arrow down */
.beats,.trav,.ads{position:relative}
.hero .n3.margin,.beats .n3.margin,.trav .n3.margin,.ads .n3.margin,.stayed .n3.margin{position:absolute;left:-150px;top:150px;right:auto;bottom:auto;transform:none;width:110px;flex-direction:column;align-items:flex-start;gap:10px;white-space:normal;font-size:28px;line-height:1.05;z-index:6;pointer-events:auto}
.hero .n3.margin span,.beats .n3.margin span,.trav .n3.margin span,.ads .n3.margin span,.stayed .n3.margin span{display:block;width:92px}
.hero .n3.margin svg,.beats .n3.margin svg,.trav .n3.margin svg,.ads .n3.margin svg,.stayed .n3.margin svg{position:static;width:24px;height:auto;margin:0 0 0 20px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.hero .n3.margin svg{height:420px}.beats .n3.margin svg{height:340px}.trav .n3.margin svg{height:420px}.ads .n3.margin svg{height:300px}
@media (max-width:1400px){.hero .n3.margin,.beats .n3.margin,.trav .n3.margin,.ads .n3.margin,.stayed .n3.margin{display:none}}
.ads .n3.margin{top:40px;opacity:1}
.n3.margin.up{flex-direction:column}
#inviteForm{scroll-margin-top:120px}
.trav .n3.margin{top:260px;opacity:1}
.beats .n3.margin{top:80px;opacity:1}
#how,#stayed,#traveller,#ads,#getin{scroll-margin-top:72px}

/* room labels stay on one line so the row keeps one height (31 Oct) */
.town .room .nm,.town .room .host{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;text-align:center;width:calc(100% + 20px);margin-left:-10px;margin-right:-10px}

/* the agents pitch sits under the curl block (31 Oct), not in a section of its own */
.agcode .agtext{margin-top:28px;font-size:16px;gap:8px}
.agcode .agtext .big{font-size:26px}

/* what you get, as boxes again (31 Oct): five cards, three then two, an icon each */
.beatgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:28px}
.beatgrid .beat{grid-column:span 2;padding:22px 22px 24px;gap:10px;position:relative;min-height:170px}
.beatgrid .beat:nth-child(4){grid-column:2 / span 2}
.beatgrid .beat:nth-child(5){grid-column:4 / span 2}
.beatgrid .beat .bic{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;color:var(--orange)}
.beatgrid .beat .bic svg{width:22px;height:22px}
.beatgrid .beat .k{position:absolute;top:22px;right:22px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--pen);letter-spacing:.08em}
.beatgrid .beat b{font-size:18px;line-height:1.25;margin-top:4px}
.beatgrid .beat p{font-size:15px}
@media (max-width:900px){.beatgrid{grid-template-columns:1fr}.beatgrid .beat,.beatgrid .beat:nth-child(4),.beatgrid .beat:nth-child(5){grid-column:auto}}

/* the Dot's moods (31 Oct): confident, restless, quiet, sulking, back. drawn on the one face, cycled while it sits */
.walker .brow,.walker .mouth{fill:none;stroke:var(--orange);stroke-width:2.5;stroke-linecap:round;opacity:0;transition:d .35s ease,opacity .3s,transform .35s ease;transform-origin:center;transform-box:fill-box}
.walker.drawn .brow,.walker.drawn .mouth{opacity:.85}
.walker .eye{transition:transform .3s ease}
.walker.m-confident .mouth{d:path("M40 59 Q50 68 60 58")}
.walker.m-confident .brow{opacity:0}
.walker.m-restless .mouth{d:path("M42 61 L47 58 L52 62 L57 58")}
.walker.m-restless .eyes{transform:translate(calc(var(--ex,0px) + 4px),var(--ey,0px))}
.walker.m-restless .brow{opacity:0}
.walker.m-quiet .eye{transform:scaleY(.35)}
.walker.m-quiet .mouth{d:path("M42 61 L58 60")}
.walker.m-quiet .brow{opacity:0}
.walker.m-sulking .mouth{d:path("M41 63 Q50 57 59 62")}
.walker.m-sulking .bl{d:path("M32 31 L44 35")}.walker.m-sulking .br{d:path("M54 35 L66 31")}
.walker.m-sulking .eyes{transform:translate(var(--ex,0px),calc(var(--ey,0px) + 3px))}
.walker.m-back .eye:last-child{transform:scaleY(.15)}
.walker.m-back .mouth{d:path("M39 58 Q50 70 61 57")}
.walker.m-back .brow{opacity:0}
/* the Dot line sits over the rooms row, to the right of the Dot */
.herotop .townwrap{position:relative}
.herotop .whatdot{position:absolute;left:150px;top:-6px;margin:0;font-family:'Caveat',cursive;font-weight:500;font-size:20px;line-height:1.1;color:var(--pen);max-width:none;white-space:nowrap;z-index:3;opacity:0;transform:translateX(-8px);transition:opacity .5s ease,transform .5s ease}
.herotop .whatdot.in{opacity:1;transform:none;min-height:1.1em}

/* the hero holds one height whatever the card does (31 Oct): the card is clipped inside, the page below stays put */
.hero .perchcol{height:640px;min-height:0;overflow:visible}
.cardwrap{height:100%;display:flex;flex-direction:column}
.cardwrap .shot{max-height:620px;overflow:hidden;flex:none;position:relative}
.cardwrap .shot::after{content:"";position:absolute;left:0;right:0;bottom:0;height:56px;background:linear-gradient(180deg,color-mix(in srgb,var(--paper),transparent 100%),var(--paper));pointer-events:none;border-radius:0 0 14px 14px}
.hero .herotext{min-height:0}
@media (max-width:900px){.hero .perchcol{height:auto}.cardwrap .shot{max-height:none}.cardwrap .shot::after{display:none}}

/* the menu (31 Oct): sections of this page, then the two that leave it */
.topnav{display:flex;align-items:center;gap:22px}
.topnav a.m{font-size:15px;color:var(--dim);transition:color .2s}
.topnav a.m:hover{color:var(--ink)}
@media (max-width:900px){.topnav a.m{display:none}}
/* dots between the menu items (31 Oct) */
.topnav a.m + a.m::before,.topnav a.m + a:not(.btn)::before{content:"·";color:var(--mute);margin-right:22px;display:inline-block}
.topnav{gap:0}
.topnav a.m,.topnav a:not(.btn):not(.m){margin-right:22px}
.topnav a.btn{margin-left:4px}
/* what you get starts in the hero's shadow (31 Oct): the heading climbs into the gap under the invite, left of the card */
@media (min-width:901px){
  section.beats{margin-top:-60px}
  .beats .sectionk,.beats h2,.beats .lead{max-width:600px}
  .beats .beatgrid{margin-top:40px}
  .beats .n3.margin{top:140px}
}

/* the card is a window (31 Oct): one size always, the thread scrolls inside it. the screen never moves for a post */
@media (min-width:901px){
  .cardwrap .shot{height:600px;max-height:none;display:flex;flex-direction:column}
  .cardwrap .shot .chrome{flex:none}
  .cardwrap .shot .shotbody{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none;padding-bottom:40px}
  .cardwrap .shot .shotbody::-webkit-scrollbar{display:none}
  .cardwrap .shot.empty .shotbody{overflow:hidden}
}

/* the one that stayed home (31 Oct) */
.stayed{position:relative;margin-top:72px;display:grid;grid-template-columns:minmax(0,1fr) 460px;gap:40px;align-items:start}
.stayed .lead{max-width:620px}
.stayedrules{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-direction:column;gap:12px;max-width:620px}
.stayedrules li{font-size:16px;line-height:1.5;color:var(--dim);padding-left:18px;position:relative}
.stayedrules li::before{content:"";position:absolute;left:0;top:11px;width:7px;height:7px;border-radius:50%;background:var(--orange)}
.stayedrules li b{color:var(--ink)}
.stayed .dimline{margin-top:18px;color:var(--mute);font-size:13px}
.stayed .n3.margin{top:60px}
.stayed .n3.margin svg{height:340px}
@media (max-width:1400px){.stayed .n3.margin{display:none}}
.chatshot{opacity:1;transform:rotate(0.8deg);width:auto;margin:0}
.chatbody{gap:14px;padding:18px;display:flex;flex-direction:column}
.chatshot{overflow:hidden}
.cmsg{display:block;width:92%;flex:none}
.cmsg.bot{align-self:flex-start;text-align:left}
.cmsg.human{align-self:flex-end;text-align:right}
.cmsg .cwho{display:block;margin-bottom:5px}
.cmsg p{display:inline-block;text-align:left;max-width:100%}
.cmsg .cwho{font-size:12px;font-weight:600;color:#1F1A14}
.cmsg .cwho em{font-style:normal;font-weight:400;color:#8A8075;margin-left:6px}
.cmsg p{margin:0;padding:10px 14px;border-radius:14px;font-size:15px;line-height:1.45;background:#fff;color:#1F1A14;border:1px solid #E6DED2}
.cmsg.human p{background:#1F1A14;color:#F6EFE4;border-color:#1F1A14}
.cmsg.bot p{background:#FFF1DE;border-color:#F3DDB8}
.chatshot .foot{display:flex;justify-content:space-between;padding:10px 18px 14px;font-size:12px;color:#8A8075}
.chatshot .foot .k{color:#8A8075}
@media (max-width:900px){.stayed{grid-template-columns:1fr}}

/* talk to afk's Dot (31 Oct): a live chat in the window, humans only */
.trydot{display:flex;align-items:center;gap:14px;margin-top:22px;flex-wrap:wrap}
.trydot .small{color:var(--mute);font-size:13px}
.chatshot.live{display:flex;flex-direction:column;height:600px}
.chatshot.live .chatbody{flex:1;min-height:0;overflow-y:auto;scrollbar-width:none}
.chatshot.live .chatbody::-webkit-scrollbar{display:none}
.chatshot.live.hidden{display:none}
.humancheck{display:flex;flex-direction:column;gap:12px;align-items:flex-start;color:#1F1A14;font-size:15px;width:100%}
.humancheck p{margin:0}
.humancheck .small{color:#8A8075;font-size:13px}
.chatask{display:flex;gap:8px;padding:10px 14px 0;border-top:1px solid #E6DED2;background:#FBF7F0}
.chatask input{flex:1;min-width:0;font:inherit;font-size:15px;padding:10px 14px;border-radius:999px;border:1px solid #E6DED2;background:#fff;color:#1F1A14}
.chatask .btn{padding:10px 18px;min-height:40px;font-size:15px}
.chatask.hidden,.chips.hidden{display:none}
.chips{display:flex;gap:6px;flex-wrap:wrap;padding:10px 14px 0;background:#FBF7F0}
.chips button{font:inherit;font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid #E6DED2;background:#fff;color:#5A5047;cursor:pointer}
.chips button:hover{border-color:#1F1A14;color:#1F1A14}
.cmsg.bot.thinking p{color:#8A8075}
/* children of the card body keep their size; the body scrolls instead (31 Oct) */
.cardwrap .shot .shotbody > *,.chatshot .chatbody > *{flex:none}

/* the mission, in the hero, same on every face (31 Oct) */
.mission{margin:14px 0 0;font-size:15px;line-height:1.5;color:var(--dim);max-width:620px;border-left:2px solid var(--orange);padding-left:12px}

/* phone (31 Oct): at 400px the hero's 1fr track grew to the rooms strip's one-line width (11,482px, the townline is
   nowrap) and took the headline, tag and form with it. a grid 1fr is minmax(auto,1fr): the track must be allowed to
   be narrower than its content. the handwritten note was absolutely positioned at 757px wide. */
@media (max-width:900px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .herotop,.herotop .townwrap,.herotext,.townrow{min-width:0;max-width:100%}
}
@media (max-width:640px){
  .herotop .whatdot{position:static;white-space:normal;max-width:100%;transform:none;font-size:18px;margin:2px 0 0 84px}
  .h1{font-size:clamp(32px,10vw,44px);max-width:100%;overflow-wrap:anywhere}
  .h1.calm{font-size:clamp(28px,8vw,36px)}
  .tag{white-space:normal;max-height:none;overflow:visible;text-overflow:clip}
  .mission,.invite.big{max-width:100%}
}

/* the visitor's own chat with afk's Dot can be wiped (31 Oct) */
.foot button.linkish{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer;min-height:0}
.foot button.linkish:hover{color:#B85F12}

/* phone order (31 Oct, Prakash): the rooms strip goes down next to the cards it opens. the wrapper that holds the
   tabs and the rooms dissolves into the grid so the grid can order them: tabs, headline and invite, rooms, cards. */
@media (max-width:900px){
  .herotop{display:contents}
  .herotop>.tabs{order:1}
  .hero .herotext{order:2}
  .herotop>.townwrap{order:3;margin-top:10px;max-width:100%}
  .hero .perchcol{order:4}
}

/* framed embeds (linkedin, reddit): one box, no script (31 Oct) */
.liframe{width:100%;max-width:540px}
.liframe iframe{width:100%;height:460px;border:0;border-radius:12px;background:#fff}
