/* The Connection Room. Colors and fonts follow Jillian's original page and her Connection Room emails. */
:root {
  --ink: #232125;
  --ink-2: #2d2a31;
  --text: #4b474e;
  --white: #fff;
  --ivory: #fcfaf1;
  --cream: #f7f1e5;
  --line: #e3dccc;
  --gold: #e6b31e;
  --gold-soft: #f7d96b;
  --gold-text: #876200;
  --coral: #f28a67;
  --lav: #b79be0;
  --plum: #4f4470;
  --glow: linear-gradient(105deg, #d9b8ec 0%, #f5b9a0 48%, #f7d36a 100%);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { background: var(--ivory); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .final :focus-visible, .thanks-copy :focus-visible { outline-color: var(--gold-soft); }

.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.center { text-align: center; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; }
h2 em, h1 em { font-style: italic; color: var(--gold-text); }
.brand { font: 600 1.4rem/1 var(--serif); letter-spacing: -.02em; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: .75rem; line-height: 1.5; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ""; flex: none; width: 32px; height: 2px; background: var(--gold); }
.eyebrow.light { color: var(--gold-soft); }
.eyebrow.plain { display: block; color: var(--ink); }
.eyebrow.plain::before { display: none; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 16px 30px; border: 0; border-radius: 6px; cursor: pointer; font-size: .86rem; line-height: 1.25; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; text-align: center; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.btn.gold { background: var(--gold); color: #201d17; box-shadow: 0 14px 34px rgba(230, 179, 30, .28); }
.btn.dark { background: var(--ink); color: var(--white); box-shadow: 0 16px 34px rgba(60, 40, 70, .25); }
.btn.wide { width: 100%; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
.btn.dark::after { opacity: .35; }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: wait; opacity: .75; }
@media (hover: hover) {
  .btn:not(:disabled):hover { transform: translateY(-2px); }
  .btn.gold:not(:disabled):hover { background: var(--gold-soft); box-shadow: 0 20px 42px rgba(230, 179, 30, .36); }
  .btn:not(:disabled):hover::after { transform: translateX(110%); transition: transform .8s var(--ease); }
}

/* Top */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-photo { position: absolute; z-index: -3; overflow: hidden; inset: 0 0 auto; height: 112vw; max-height: 620px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 12%; }
.hero-shade { position: absolute; z-index: -2; inset: 0 0 auto; height: 112vw; max-height: 620px; background: linear-gradient(180deg, rgba(35, 33, 37, .5) 0, rgba(35, 33, 37, 0) 22%, rgba(35, 33, 37, 0) 42%, rgba(35, 33, 37, .88) 80%, var(--ink) 100%); }
.hero-net { position: absolute; z-index: -1; inset: auto 0 0 0; width: 100%; height: 46%; opacity: .3; pointer-events: none; }
.net-lines path { fill: none; stroke: var(--gold-soft); stroke-width: 1.2; opacity: .6; }
.net-dots circle { fill: var(--gold-soft); }
.net-dots circle:nth-child(3n) { fill: var(--coral); }
.net-dots circle:nth-child(3n + 1) { fill: var(--lav); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; }
.topnote { display: none; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 99px; background: rgba(35, 33, 37, .62); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topnote i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-body { padding: min(62vw, 400px) 0 56px; }
.hero-body .eyebrow { margin-bottom: 14px; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 12.4vw, 6.4rem); line-height: .96; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding: .04em .08em .12em 0; margin-bottom: -.1em; }
.hero h1 .line > * { display: inline-block; }
.hero h1 em { color: var(--gold-soft); }
.hero-lead { max-width: 20em; margin-top: 18px; font: italic 500 clamp(1.35rem, 2.6vw, 2rem)/1.3 var(--serif); text-wrap: balance; }
.hero-sub { margin-top: 14px; color: rgba(255, 255, 255, .86); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.pills li { padding: 8px 15px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: .86rem; font-weight: 700; line-height: 1.4; }

/* Intro */
.intro { padding: clamp(76px, 10vw, 140px) 0; }
.intro-grid { display: grid; gap: 52px; }
.room { width: min(100%, 440px); margin: 44px auto 0; overflow: visible; }
.room-fill { opacity: .85; }
.room-line { fill: none; stroke: var(--gold); stroke-width: 3; }
.ties path { fill: none; stroke: var(--plum); stroke-width: 1.6; opacity: .55; }
.people { fill: var(--plum); }
.people .host { fill: var(--ink); }
.people g:nth-child(3n) { fill: #7a4b8f; }
.people g:nth-child(3n + 1) { fill: #a1482f; }
.people g.host { fill: var(--ink); }
.talks path { fill: var(--white); stroke: var(--ink); stroke-width: 1.6; }
.talks circle { fill: var(--ink); }
.talks g { transform-box: fill-box; transform-origin: 50% 100%; }

.intro-text > p, .host-section p { text-wrap: pretty; }
.intro-text > p { margin-top: 22px; }
.intro-text .strong { color: var(--ink); font-weight: 600; }
.nots { border-top: 1px solid var(--line); }
.nots li { position: relative; padding: 20px 0 20px 40px; border-bottom: 1px solid var(--line); color: var(--ink); }
.nots li::before, .nots li::after { content: ""; position: absolute; left: 4px; top: 33px; width: 16px; height: 2px; background: var(--coral); transform: rotate(45deg); }
.nots li::after { transform: rotate(-45deg); }
.need { margin: 36px 0 32px; padding: clamp(26px, 4vw, 40px); border-radius: 18px; background: var(--glow); }
.need h3 { font-size: 1.2rem; font-style: italic; }
.need p { margin-top: 8px; color: var(--ink); font: 500 clamp(1.55rem, 2.9vw, 2.2rem)/1.2 var(--serif); letter-spacing: -.02em; text-wrap: balance; }

/* Inside the room */
.inside { padding: clamp(76px, 10vw, 136px) 0; background: var(--ink); color: rgba(255, 255, 255, .8); }
.inside h2 { max-width: 15em; color: var(--white); }
.cards { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 60px); }
.card { position: relative; overflow: hidden; padding: clamp(28px, 3.6vw, 44px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: var(--ink-2); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--glow); transform: scaleX(0); transform-origin: left; transition: transform 1.1s .25s var(--ease); }
.card.on::before { transform: scaleX(1); }
.card h3 { margin: 24px 0 10px; color: var(--white); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.2; }
.icon { width: 60px; height: 60px; fill: none; stroke: var(--gold-soft); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.icon .spark, .icon .wave { stroke: var(--coral); }
.icon .coin { stroke: var(--lav); }
.icon .l2 { stroke: var(--lav); }

/* Details */
.details { padding: clamp(76px, 10vw, 136px) 0; background: var(--cream); }
.details-grid { display: grid; gap: 40px; }
.ticket { border-radius: 20px; background: var(--white); box-shadow: 0 28px 70px rgba(80, 60, 30, .13); }
.ticket dl { padding: clamp(14px, 3vw, 28px) clamp(24px, 4vw, 44px); }
.ticket dl div { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.ticket dl div:last-child { border: 0; }
.ticket dt { padding-top: 4px; color: var(--gold-text); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ticket dd { color: var(--ink); font-weight: 600; line-height: 1.5; }
.stub { position: relative; padding: 28px clamp(24px, 4vw, 44px) 32px; border-top: 2px dashed rgba(35, 33, 37, .28); border-radius: 0 0 20px 20px; background: var(--glow); color: var(--ink); }
.stub::before, .stub::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); }
.stub::before { left: -14px; }
.stub::after { right: -14px; }
.local { display: block; font-size: .94rem; }
.count { display: flex; gap: 10px; margin-top: 18px; }
.count span { flex: 1; max-width: 108px; padding: 12px 6px; border-radius: 10px; background: rgba(255, 255, 255, .62); color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.3; text-align: center; }
.count b { display: block; font: 600 1.85rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* Color band */
.band { padding: clamp(84px, 11vw, 150px) 0; background: linear-gradient(105deg, #d9b8ec, #f5b9a0, #f7d36a, #f5b9a0, #d9b8ec); background-size: 300% 100%; }
.band h2 { max-width: 12em; margin-inline: auto; font-size: clamp(2.5rem, 6.4vw, 5.2rem); }
.band-sub { margin: 20px 0 34px; color: var(--ink); font-size: 1.2rem; }

/* Host */
.host-section { padding: clamp(76px, 10vw, 140px) 0; }
.host-grid { display: grid; gap: 48px; align-items: center; }
.arch { position: relative; width: min(100%, 460px); margin-inline: auto; }
.arch::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 999px 999px 18px 18px; background: var(--glow); }
.arch img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 18px 18px; }
.host-name { font-size: clamp(2rem, 4vw, 3.3rem); }
.host-section p:not(.eyebrow) { margin-top: 20px; }
.host-section .quote { color: var(--ink); font: italic 500 clamp(1.7rem, 3vw, 2.4rem)/1.2 var(--serif); }
.sign { color: var(--ink); font-weight: 600; }
.sign span { display: block; margin-top: 4px; color: var(--gold-text); font: italic 500 2.5rem/1.2 var(--serif); }

/* Last call to action and footer */
.final { padding: clamp(84px, 11vw, 150px) 0; background: radial-gradient(90% 130% at 50% 120%, #5b4a78 0, rgba(91, 74, 120, 0) 70%), var(--ink); color: rgba(255, 255, 255, .86); }
.final h2 { max-width: 13em; margin-inline: auto; color: var(--white); }
.final p { text-wrap: balance; max-width: 34em; margin: 22px auto 34px; }
.footer { padding: 34px 0; background: #18161a; color: rgba(255, 255, 255, .78); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer .brand { color: var(--white); }

/* Fixed button on phones */
.sticky { position: fixed; z-index: 20; inset: auto 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(35, 33, 37, .94); transition: transform .35s var(--ease), visibility .35s; }
.sticky .btn { width: 100%; min-height: 54px; box-shadow: none; }
.sticky.hide { transform: translateY(110%); visibility: hidden; }

/* Signup popup */
.popup { width: min(600px, 100% - 24px); max-height: calc(100dvh - 24px); margin: auto; border: 0; border-radius: 20px; background: var(--ivory); color: var(--text); overflow: auto; overscroll-behavior: contain; box-shadow: 0 40px 120px rgba(0, 0, 0, .45); }
.popup::backdrop { background: rgba(24, 22, 26, .74); }
.popup-inner { position: relative; padding: clamp(26px, 5vw, 46px) clamp(20px, 5vw, 46px); border-top: 6px solid var(--gold); }
.popup .eyebrow { margin: 0 52px 14px 0; }
.popup h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; }
.popup-date { margin: 14px 0 24px; }
.popup-date strong { color: var(--ink); }
.close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.field { margin-bottom: 16px; }
.field label, .choices legend { display: block; margin-bottom: 7px; color: var(--ink); font-size: .95rem; font-weight: 700; line-height: 1.4; }
.field input { width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid #8d8678; border-radius: 10px; background: var(--white); color: var(--ink); font-size: 1rem; }
.field input::placeholder { color: #706a60; }
.field input:focus { border-color: var(--plum); outline: 3px solid rgba(183, 155, 224, .5); outline-offset: 0; }
.choices { display: grid; gap: 9px; min-width: 0; border: 0; }
.choices legend { margin-bottom: 10px; }
.choices label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1.5px solid #cfc7b6; border-radius: 10px; background: var(--white); color: var(--ink); font-weight: 600; line-height: 1.35; cursor: pointer; transition: border-color .2s, background .2s; }
.choices input { flex: none; width: 20px; height: 20px; accent-color: var(--plum); }
.choices label:has(input:checked) { border-color: var(--plum); background: #f3ecfa; }
.choices label:has(input:focus-visible) { outline: 3px solid rgba(183, 155, 224, .7); }
.form-error { display: none; margin-top: 18px; padding: 14px 16px; border-left: 4px solid #b3402a; border-radius: 6px; background: #fdebe5; color: #7a2413; font-size: .96rem; line-height: 1.5; overflow-wrap: anywhere; }
.form-error.on { display: block; }
#submitButton { margin-top: 20px; }
.form-note { margin-top: 14px; font-size: .86rem; line-height: 1.5; text-align: center; }

/* Thank you page */
.thanks { background: var(--ink); }
.thanks-main { padding: 26px 0 64px; background: radial-gradient(70% 60% at 0 100%, rgba(91, 74, 120, .75) 0, rgba(91, 74, 120, 0) 75%), var(--ink); }
.thanks-grid { display: grid; gap: 40px; }
.thanks-copy { color: rgba(255, 255, 255, .86); }
.thanks-copy .brand { color: var(--white); }
.thanks-copy h1 { margin-bottom: 20px; color: var(--white); font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.03; letter-spacing: -.03em; }
.thanks-copy h1 em { display: block; color: var(--gold-soft); }
.thanks-copy p + p { margin-top: 14px; }
.thanks-copy .pills { margin-bottom: 0; }
.check { width: 72px; height: 72px; margin: 40px 0 24px; fill: none; stroke: var(--gold-soft); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.cal { overflow: hidden; padding: 0 clamp(20px, 4vw, 40px) clamp(26px, 4vw, 38px); border-radius: 22px; background: var(--ivory); box-shadow: 0 36px 90px rgba(0, 0, 0, .35); }
.cal-top { display: flex; align-items: center; gap: 20px; margin-inline: calc(-1 * clamp(20px, 4vw, 40px)); padding: 22px clamp(20px, 4vw, 40px); background: var(--glow); color: var(--ink); line-height: 1.4; }
.cal-top img { flex: none; width: 84px; height: 84px; border: 3px solid var(--white); border-radius: 50%; object-fit: cover; object-position: 55% 14%; }
.cal-label { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cal-date { font: 600 clamp(1.15rem, 2.4vw, 1.5rem)/1.25 var(--serif); text-wrap: balance; }
.cal .count span { max-width: none; background: var(--cream); }
.cal h2 { margin-top: 28px; font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
.cal-sub { margin: 8px 0 20px; }
.cal-buttons { display: grid; gap: 10px; }
.cal-btn { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; position: relative; min-height: 58px; padding: 10px 16px 10px 60px; border: 1.5px solid #cfc7b6; border-radius: 12px; background: var(--white); color: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.cal-btn small { font-size: .84rem; font-weight: 500; }
.cal-btn i { position: absolute; left: 14px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; border-radius: 8px; color: var(--white); font: 800 .95rem/1 var(--sans); }
.cal-btn .g { background: #1a66c9; } .cal-btn .a { background: var(--ink); } .cal-btn .o { background: #0f6cbd; } .cal-btn .m { background: #b23c17; } .cal-btn .f { background: var(--plum); }
@media (hover: hover) { .cal-btn:hover { transform: translateY(-2px); border-color: var(--plum); box-shadow: 0 12px 26px rgba(79, 68, 112, .16); } }
.cal-note { margin-top: 14px; font-size: .93rem; line-height: 1.5; }
#skipNote { color: var(--ink); font-weight: 700; }

/* Larger screens */
@media (min-width: 600px) {
  .cal-buttons { grid-template-columns: 1fr 1fr; }
  .cal-btn.wide { grid-column: 1 / -1; }
  .choices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  .ticket dl div { grid-template-columns: 90px 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .topnote { display: flex; }
}
@media (min-width: 900px) {
  .sticky { display: none; }
  .hero { display: flex; flex-direction: column; min-height: min(900px, 100svh); }
  .hero-photo, .hero-shade { inset: 0; height: auto; max-height: none; }
  .hero-photo img { object-position: 100% 22%; }
  .hero-shade { background: linear-gradient(90deg, rgba(35, 33, 37, .98) 0, rgba(35, 33, 37, .95) 28%, rgba(35, 33, 37, .72) 47%, rgba(35, 33, 37, .2) 66%, rgba(35, 33, 37, 0) 80%); }
  .hero-net { inset: 0 auto 0 0; width: 58%; height: 100%; opacity: .34; }
  .topbar { padding-top: 30px; }
  .hero-body { margin-block: auto; padding: 44px 0 56px; }
  .hero-body > * { max-width: 620px; }
  .hero-body > h1 { max-width: none; } /* or "CONNECTION" is cut off on large screens */
  .hero h1 { font-size: clamp(4.2rem, 6.6vw, 6.4rem); }
  .intro-grid { grid-template-columns: 1.12fr 1fr; gap: clamp(44px, 6vw, 90px); }
  .intro h2 { font-size: clamp(2.1rem, 3.7vw, 3.4rem); }
  .intro h2 em { white-space: nowrap; }
  .intro-text { padding-top: 40px; }
  .details-grid { grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
  .host-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 7vw, 100px); }
  .thanks-main { display: flex; align-items: center; min-height: calc(100svh - 92px); padding: 48px 0; }
  .thanks-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
}
@media (max-width: 899px) { body:not(.thanks) .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ---------- Motion (skipped for people who choose less motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Top: plays by itself, without waiting for any script */
  .hero-photo img { animation: settle 2.4s var(--ease) both; }
  .hero h1 .line > * { animation: lift 1s calc(var(--i) * .13s) var(--ease) both; }
  .rise { animation: rise .9s calc(.15s + var(--i) * .11s) var(--ease) both; }
  .net-lines path { stroke-dasharray: 1; animation: draw 2.8s .7s ease-in-out both; }
  .net-lines path:nth-child(2n) { animation-delay: 1.3s; }
  .net-dots circle { transform-box: fill-box; transform-origin: center; animation: pulse 4s ease-in-out infinite; }
  .net-dots circle:nth-child(2n) { animation-delay: -1.4s; }
  .net-dots circle:nth-child(3n) { animation-delay: -2.7s; }
  .hero .btn::after { animation: shine 6s 2.4s infinite; }
  .band { animation: drift 16s ease-in-out infinite alternate; }

  /* Scroll reveals */
  .js [data-show] { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
  .js [data-show].on { opacity: 1; transform: none; }
  .js .cards .card:nth-child(2n) { transition-delay: .12s; }
  /* Hide the picture inside, never the watched box itself: a fully clipped box never counts as "on screen" */
  .js .arch[data-show] { opacity: 1; transform: none; }
  .js .arch::before, .js .arch img { clip-path: inset(0 0 100% 0 round 999px 999px 18px 18px); transition: clip-path 1.3s var(--ease); }
  .js .arch img { transition-delay: .2s; }
  .js .arch.on::before, .js .arch.on img { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }

  /* The room: people come in, lines connect them, conversations start */
  .js .room-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease-in-out; }
  .js .room-fill { opacity: 0; transition: opacity 1.4s .5s; }
  .js .people g { opacity: 0; transform: translate(var(--x), var(--y)); transition: transform 1.3s calc(.6s + var(--n) * .1s) var(--ease), opacity .6s calc(.6s + var(--n) * .1s); }
  .js .ties path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s 2.1s ease-in-out; }
  .js .talks g { opacity: 0; transform: scale(.3); transition: transform .6s calc(2.9s + var(--n) * .3s) var(--ease), opacity .3s calc(2.9s + var(--n) * .3s); }
  .js .room.on .room-line, .js .room.on .ties path { stroke-dashoffset: 0; }
  .js .room.on .room-fill { opacity: .85; }
  .js .room.on .people g, .js .room.on .talks g { opacity: 1; transform: none; }
  .js .room.on .talks circle { animation: typing 1.5s 3.8s infinite; }
  .js .room.on .talks circle:nth-of-type(2) { animation-delay: 4s; }
  .js .room.on .talks circle:nth-of-type(3) { animation-delay: 4.2s; }

  /* Icons */
  .js .icon path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s .35s ease-in-out; }
  .js .card.on .icon path[pathLength] { stroke-dashoffset: 0; }
  .js .icon.link .l1 { transform: translateX(-12px); transition: transform 1s .4s var(--ease); }
  .js .icon.link .l2 { transform: translateX(12px); transition: transform 1s .4s var(--ease); }
  .js .card.on .icon.link rect { transform: none; }
  .card.on .spark, .card.on .coin { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s 1.4s ease-in-out infinite; }
  .card.on .wave { animation: blink 1.8s 1.4s ease-in-out infinite; }

  /* Popup and thank you page */
  .popup[open] { animation: pop .5s var(--ease); }
  .popup[open]::backdrop { animation: fade .35s; }
  .check circle, .check path { stroke-dasharray: 1; animation: draw .9s .2s ease-out both; }
  .check path { animation-delay: .9s; animation-duration: .5s; }
  .cal { animation: rise .9s .25s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes lift { from { transform: translateY(112%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
@keyframes shine { 0% { transform: translateX(-110%); } 18%, 100% { transform: translateX(110%); } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes typing { 0%, 60%, 100% { opacity: 1; } 30% { opacity: .2; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pop { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
