/* spekko.ai home v7 (MARLOW 10/18): a normal scrolling page. A 12-column container, generous rhythm (sections 136px
   apart, 24px gutters), the planet in its own frame in the hero, white cards with hairlines. Pearl and ink; colour
   only from Spekko's work. Loads after style.css. */
.home { --ink: #17131a; --mute: #5b6272; --hair: #e3e5eb; --card: #fff; --soft: #f7f7fa;
  --r-card: 22px; --gap: 24px; --sec: clamp(88px, 11vw, 140px);
  background: radial-gradient(120% 60% at 100% 0%, #fbf8ff 0%, #f4f5f8 45%) no-repeat, #f4f5f8; color: var(--ink); }
.home h1, .home h2, .home h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; margin: 0; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)); box-sizing: border-box; }
.home .sub { color: var(--mute); font-size: 17px; line-height: 1.6; margin: 14px 0 0; max-width: 56ch; }

/* ---- header ---- */
.home .top { position: sticky; top: 0; z-index: 30; transition: background-color .3s, box-shadow .3s; padding: 0; max-width: none; display: block; }
.home .top.scrolled { background: rgb(244 245 248 / 80%); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--hair); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.home .wordmark .logo { height: 28px; }
.home .wordmark sup { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.home .top nav { display: flex; align-items: center; gap: 2px; }
.home .top nav a { color: var(--mute); font: 500 14px/1 var(--body); padding: 10px 12px; border-radius: 10px; text-decoration: none; transition: color .2s, background-color .2s; }
.home .top nav a:hover { color: var(--ink); background: rgb(23 19 26 / 5%); }
.home .top nav .nav-cta { color: var(--ink); border: 1px solid rgb(23 19 26 / 18%); border-radius: 999px; padding: 9px 15px; margin-left: 8px; }
.home .top nav .nav-cta:hover { border-color: var(--ink); background: #fff; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 80px) var(--sec); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 20px; }
.home h1#hero-title, .home .section h2 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); -webkit-text-fill-color: var(--ink); animation: none; }
.hero h1 { font-weight: 700; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.0; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; }
.hero .lede { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: #464c5a; margin: 22px 0 0; max-width: 46ch; }
.hero .join { margin-top: 30px; max-width: 460px; }
.home .join { border: 1px solid var(--hair); box-shadow: 0 1px 2px rgb(23 19 26 / 6%), 0 16px 36px -22px rgb(23 19 26 / 35%); }
.home .note { margin-top: 12px; font-size: 13px; color: var(--mute); }

.world-card { display: grid; gap: 14px; min-width: 0; }
.planet { position: relative; aspect-ratio: 1 / 0.9; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 70% at 50% 45%, color-mix(in oklab, var(--glow, #c9c3d6) 16%, #ffffff) 0%, #f3f2f8 55%, #ebebf3 100%);
  border: 1px solid var(--hair); box-shadow: 0 1px 2px rgb(23 19 26 / 5%), 0 40px 80px -50px rgb(23 19 26 / 40%); transition: background .8s; }
.planet-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* before the planet loads (or where it can't): a soft pearl sphere with Spekko on top */
.planet:not(.live)::before { content: ""; position: absolute; left: 50%; top: 52%; width: 66%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 0%, #f1eef7 45%, #dcd7e8 85%, #cfc9de 100%); box-shadow: inset -20px -30px 60px rgb(120 110 160 / 18%), 0 30px 60px -30px rgb(60 50 100 / 30%); }
.spk-wrap { position: absolute; left: 0; top: 0; width: 92px; aspect-ratio: 1; z-index: 3; pointer-events: none;
  transform: translate(var(--wx, 50%), var(--wy, 30%)) translate(-50%, -92%); }
.planet:not(.live) .spk-wrap { --wx: 50%; transform: translate(-50%, 0); left: 50%; top: 9%; width: 96px; }
.spk { position: absolute; inset: 0; transform: rotate(calc(var(--travel, 0) * 6deg)) scale(calc(1 + var(--travel, 0) * .06), calc(1 - var(--travel, 0) * .05)); transform-origin: 50% 90%; transition: transform .2s; }
.spk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 8px 10px rgb(40 30 80 / 22%)); }
.spk img.on { opacity: 1; animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 92%; }
.spk-glow { position: absolute; inset: -55%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--glow, #c9c3d6) 55%, transparent), transparent 70%); filter: blur(10px); opacity: .55; transition: background .8s; }
.spk-shadow { position: absolute; left: 20%; right: 20%; bottom: 2%; height: 10%; border-radius: 50%; background: radial-gradient(closest-side, rgb(30 24 60 / 30%), transparent); filter: blur(2px); }
.pin { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: rgb(255 255 255 / 86%); border: 1px solid var(--hair); border-radius: 999px; padding: 6px 10px; cursor: pointer; transition: opacity .3s, background-color .2s, border-color .2s; backdrop-filter: blur(6px); }
.pin:hover, .pin:focus-visible { background: #fff; border-color: var(--ink); }
.planet:not(.live) .pin { display: none; }
.place-card { position: absolute; left: 18px; bottom: 18px; z-index: 4; width: min(320px, calc(100% - 36px)); box-sizing: border-box; padding: 14px 16px; border-radius: 16px;
  background: rgb(255 255 255 / 92%); border: 1px solid var(--hair); box-shadow: 0 1px 2px rgb(23 19 26 / 6%), 0 18px 36px -22px color-mix(in oklab, var(--c, #c9c3d6) 70%, rgb(23 19 26 / 40%)); backdrop-filter: blur(10px); }
.place-card.in { animation: cardin .45s cubic-bezier(.2,.8,.2,1); }
@keyframes cardin { from { opacity: 0; transform: translateY(8px); } }
.place-k { display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.place-k b { color: var(--ink); font-weight: 600; }
.place-k i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #c9c3d6); box-shadow: 0 0 0 1px rgb(23 19 26 / 10%), 0 0 10px var(--c, #c9c3d6); }
.place-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #464c5a; }
.place-card .place-ex { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: 15px; }
.places { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.places button { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--hair); border-radius: 999px; padding: 10px 14px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.places button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgb(23 19 26 / 12%); }
.places button:hover { border-color: #c4c7d1; transform: translateY(-1px); }
.places button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 6px 16px -10px rgb(23 19 26 / 50%); }

/* ---- sections ---- */
.section { padding-block: 0 var(--sec); }
.section-head { margin-bottom: 40px; }
.section-head.row { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section h2 { font-weight: 700; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.tile h3, .panel h2 { font-weight: 700; letter-spacing: -0.02em; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tile { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 18px 18px 26px; display: grid; align-content: start; gap: 10px; }
.tile h3 { font-size: 21px; margin: 10px 8px 0; }
.tile > p { margin: 0 8px; color: var(--mute); font-size: 15px; line-height: 1.55; }
.tile-art { height: 220px; border-radius: 16px; background: var(--soft); border: 1px solid #eef0f4; display: grid; place-items: center; overflow: hidden; position: relative; }
.talk { align-content: center; gap: 10px; padding: 18px; justify-items: start; }
.bubble { max-width: 88%; background: #fff; border: 1px solid var(--hair); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 6px 16px -12px rgb(23 19 26 / 40%); }
.bubble span { display: block; font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
.bubble.him { justify-self: end; border-radius: 14px 14px 4px 14px; background: color-mix(in oklab, #8b5cf6 7%, #fff); }
.colours { grid-template-columns: repeat(4, 1fr); padding: 0 12px; }
.colours img { width: 100%; max-width: 92px; justify-self: center; filter: drop-shadow(0 10px 12px rgb(40 30 80 / 16%)); }
.colours img:nth-child(odd) { transform: translateY(-10px); }
.ask { padding: 16px; }
.card-ask { width: 100%; max-width: 300px; background: color-mix(in oklab, #ff3040 4%, #fff); border: 1px solid color-mix(in oklab, #ff3040 24%, var(--hair)); border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 30px -20px rgb(255 48 64 / 45%); transition: opacity .3s, transform .3s; }
.card-ask .k { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #c41a2c; }
.card-ask b { display: block; font: 700 17px/1.25 var(--display); margin: 8px 0 4px; letter-spacing: -0.01em; }
.card-ask .s { font-size: 13px; color: var(--mute); }
.card-ask .acts { display: flex; gap: 8px; margin-top: 12px; }
.card-ask button { font: 600 13px/1 var(--body); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; }
.card-ask button.yes { background: var(--ink); border-color: var(--ink); color: #fff; }
.ask .done { position: absolute; inset: auto 16px 16px; margin: 0; font-size: 14px; text-align: center; opacity: 0; transition: opacity .3s; }
.ask.answered .card-ask { opacity: .25; transform: translateY(-14px) scale(.96); }
.ask.answered .done { opacity: 1; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.panel { background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card); padding: clamp(28px, 3.2vw, 44px); }
.panel h2 { font-size: clamp(26px, 2.4vw, 34px); }
.devices { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--hair); border-radius: 14px; background: var(--soft); }
.devices b { font-weight: 600; }
.devices span { color: var(--mute); font-size: 14px; text-align: right; }
.memories { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.memories li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--hair); border-radius: 999px; background: #fff; font-size: 14px; transition: opacity .6s, filter .6s, transform .6s; }
.memories .forgettable { border-style: dashed; }
.memories button { font: 600 12px/1 var(--body); border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.memories .gone { opacity: 0; filter: blur(8px); transform: scale(.85); }
.memories .forgot { opacity: .6; filter: none; transform: none; border-style: solid; color: var(--mute); }

.studio .studio-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.studio .studio-tabs button { font: 500 13.5px/1 var(--body); color: var(--ink); background: #fff; border: 1px solid var(--hair); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.studio .studio-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.studio .studio-frame { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hair); background: #fff; aspect-ratio: 16 / 10; box-shadow: 0 1px 2px rgb(23 19 26 / 5%), 0 50px 90px -50px rgb(23 19 26 / 45%); }
.studio .studio-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.studio .try-note { color: var(--mute); font-size: 13px; margin-top: 14px; }

.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.points li { display: grid; align-content: start; gap: 6px; padding: 26px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card); }
.points svg { width: 40px; height: 40px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--soft); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.points b { font-weight: 600; font-size: 16px; }
.points span { color: var(--mute); font-size: 15px; line-height: 1.5; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.home .faq { margin: 0; border-top: 1px solid var(--hair); background: none; box-shadow: none; border-radius: 0; }
.home .faq details { border-bottom: 1px solid var(--hair); background: none; }
.home .faq summary { padding: 22px 0; font-size: 17px; font-weight: 500; }
.home .faq p { padding: 0 0 22px; margin: 0; color: var(--mute); max-width: 62ch; line-height: 1.6; }

.closing { display: grid; justify-items: center; text-align: center; padding-top: 24px; }
.close-spk { width: 112px; height: 112px; object-fit: contain; margin-bottom: 20px; filter: drop-shadow(0 16px 22px rgb(40 30 80 / 18%)); animation: breathe 3.6s ease-in-out infinite; transform-origin: 50% 92%; }
.closing h2 { font-size: clamp(36px, 4vw, 56px); }
.closing .sub { margin-inline: auto; }
.closing .join { margin: 30px auto 0; width: min(460px, 100%); }
.closing .note { text-align: center; }
.home .foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--hair); padding-block: 28px 40px; color: var(--mute); font-size: 14px; }
.home .foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.home .foot a { color: var(--mute); text-decoration: none; }
.home .foot a:hover { color: var(--ink); }
.ts-box { margin-top: 10px; }

/* ---- tablets and phones ---- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .world-card { order: -1; }
  .trio { grid-template-columns: 1fr; max-width: 560px; }
  .duo { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container { padding-inline: max(18px, env(safe-area-inset-left, 0px)); }
  .home .top nav .hide-sm { display: none; }
  .planet { aspect-ratio: 1 / 1.05; border-radius: 22px; }
  .place-card { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 12px 14px; }
  .place-card p:not(.place-ex) { display: none; }
  .spk-wrap { width: 60px; }
  .points { grid-template-columns: 1fr; }
  .devices li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .devices span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .spk img.on, .close-spk, .place-card.in { animation: none; } }

/* resets for older style.css rules that share these class names */
.home .devices { grid-template-columns: none; border: 0; border-radius: 0; overflow: visible; }
.home .devices b { display: inline; font: 600 16px var(--body); margin: 0; }
.home .devices span { font-size: 14px; }
.home .points li { grid-template-columns: none; color: inherit; }
.colours img { height: auto; aspect-ratio: 1; }
.home .closing { text-align: center; }
/* the active district's glow, a little softer */
