/* IndexLark sections. The services list, the Monday board on its stage, Pete as
   a letter, the FAQ, the encore chat and the closing staff. Editorial: hairline
   rows, one tinted stage, dark product cards. Tokens come from site.css. */

.sprite--u { position: absolute; width: 0; height: 0; overflow: hidden; }
.u { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------- retune, unpinned */
@media (min-width: 861px) {
  .retune__stage { padding-block: var(--section); }
}

/* --------------------------------------------------------------------- menu */
.menu { background: var(--white); border-top: 1px solid var(--line); padding-block: var(--section); }
.menu__head { text-align: center; max-width: 40rem; margin-inline: auto; }
.menu__head .lede { margin-top: var(--s4); color: var(--slate); }
.menu__grid { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.tile {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s5) clamp(24px, 4vw, 72px);
  padding-block: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); min-width: 0;
}
.tile h3 { font: 650 clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem)/1.15 var(--sc-font-display); letter-spacing: -0.025em; }
.tile ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); }
.tile li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s3); align-items: start; font-size: 16px; line-height: 1.45; color: var(--slate); }
.tile li .u { margin-top: 1px; color: var(--forest); }
.tile li b { color: var(--ink); font-weight: 650; }
.engs { display: inline-flex; gap: 6px; vertical-align: -3px; margin-left: 2px; color: var(--ink); }
.engs .ico { width: 18px; height: 18px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font: 600 14px/1.6 var(--sc-font-mono); color: var(--ink); white-space: nowrap;
}
.chip del { color: var(--slate); }
.chip ins { box-shadow: inset 0 -.45em 0 color-mix(in oklab, var(--citrus) 80%, transparent); }
html[data-theme="dark"] .chip ins { color: #0E1A16; background: var(--citrus); box-shadow: none; }

/* ------------------------------------------------------------------- monday */
.monday { background: var(--fog); border-top: 1px solid var(--line); padding-block: var(--section); }
.monday__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s2) clamp(24px, 5vw, 88px); align-items: end; }
.monday__head h2 { grid-row: span 2; }
.monday__head .lede { color: var(--slate); max-width: 30em; }
.monday__head .link { margin-top: calc(var(--s2) * -1); }
.board {
  --p-bg: #10231C; --p-ink: #EEF2F0; --p-soft: #A9B9B1; --p-line: rgba(238,242,240,.12);
  --stage: color-mix(in oklab, var(--mist) 62%, var(--fog));
  position: relative; margin-top: clamp(36px, 4.5vw, 56px);
  display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(16px, 3.5vw, 56px); border-radius: 28px; background: var(--stage);
}
html[data-theme="dark"] .board { --stage: #10221B; border: 1px solid var(--line); }
.board__tag { grid-column: 1 / -1; font: 600 13px/1 var(--sc-font-mono); color: var(--forest); letter-spacing: 0.02em; }
.panel {
  background: var(--p-bg); color: var(--p-ink); border-radius: 20px; padding: clamp(20px, 2vw, 28px);
  box-shadow: var(--e2); min-width: 0; display: flex; flex-direction: column;
}
html[data-theme="dark"] .panel { background: #12271F; border: 1px solid var(--p-line); box-shadow: none; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.panel__head h3 { font: 640 1.0625rem/1.25 var(--sc-font-display); letter-spacing: -0.015em; }
.panel__meta { font-size: 14px; color: var(--p-soft); white-space: nowrap; }
.panel__big { margin-top: var(--s5); display: flex; align-items: baseline; gap: 10px; color: var(--p-soft); font-size: 16px; }
.panel__big b { font: 650 clamp(2.75rem, 2rem + 2vw, 3.5rem)/1 var(--sc-font-display); letter-spacing: -0.04em; color: var(--p-ink); font-variant-numeric: tabular-nums; }
.meter { margin-top: var(--s4); height: 8px; border-radius: 99px; background: var(--p-line); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--citrus); border-radius: inherit; transform-origin: left; }
.js .board .meter i { transform: scaleX(0); transition: transform 900ms var(--ease) 200ms; }
.js .board.is-in .meter i { transform: none; }
.engs-ok { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.engs-ok li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 9px; border-radius: 999px;
  border: 1px solid var(--p-line); font-size: 14px; line-height: 1;
}
.engs-ok .ico { width: 15px; height: 15px; }
.engs-ok .yes { color: var(--citrus); font-weight: 700; }
.engs-ok .nope { color: var(--p-soft); }
.counts { margin-top: var(--s4); display: grid; }
.counts div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding-block: 12px; border-bottom: 1px solid var(--p-line); }
.counts dt { color: var(--p-soft); font-size: 16px; }
.counts dd { font: 650 1.75rem/1 var(--sc-font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; }
.d { font: 700 13px/1 var(--sc-font-text); letter-spacing: 0.02em; padding: 5px 8px; border-radius: 999px; }
.d--up { background: var(--citrus); color: #0E1A16; }
.d--down { border: 1px solid #F0A898; color: #F6C3B8; }
.panel__note { margin-top: var(--s4); font-size: 15px; line-height: 1.5; color: var(--p-soft); }
.log { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; }
.log li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: var(--s3); align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--p-line); font-size: 16px; line-height: 1.4; }
.log li:last-child { border-bottom: 0; }
.log time { font-size: 14px; color: var(--p-soft); white-space: nowrap; }
.panel .st { color: var(--p-ink); }
.panel .st--proposed::before { border-color: var(--p-ink); }
.ask__q { margin-top: var(--s4); font: 600 1.25rem/1.3 var(--sc-font-display); letter-spacing: -0.02em; }
.ask__opts { margin-top: var(--s4); display: grid; gap: 10px; }
.ask__opts button {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left;
  min-height: 52px; padding: 8px 14px 8px 8px; border-radius: 14px; cursor: pointer;
  background: transparent; color: var(--p-ink); border: 1px solid var(--p-line); font: 500 16px/1.35 var(--sc-font-text);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 120ms var(--ease);
}
.ask__opts button b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--p-line); font: 700 16px/1 var(--sc-font-mono); }
.ask__opts button:active { transform: translateY(1px); }
.ask__opts button[aria-pressed="true"] { border-color: var(--citrus); background: rgba(213,232,106,.08); }
.ask__opts button[aria-pressed="true"] b { background: var(--citrus); color: #0E1A16; }
.ask__opts button:focus-visible { outline-color: var(--citrus); }
@media (hover: hover) and (pointer: fine) {
  .ask__opts button:hover { border-color: rgba(238,242,240,.38); background: rgba(238,242,240,.04); }
}
.ask__reply { margin-top: var(--s3); min-height: 1.5em; font-size: 15px; color: var(--p-soft); }
.ask__reply b { color: var(--citrus); font-weight: 650; }

/* --------------------------------------------------------------------- pete */
.pete { padding-block: clamp(72px, 7.5vw, 112px); }
.pete__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pete .pete__photo { display: flex; flex-direction: column; align-items: center; }
.pete .pete__photo img { width: 160px; height: 160px; border-radius: 50%; box-shadow: var(--e2); outline: 6px solid var(--fog); }
.pete .pete__photo figcaption {
  margin-top: -18px; position: relative; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 8px;
  padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--e1); font-size: 15px;
}
.pete .pete__photo strong { font-size: 1rem; }
.pete .pete__note { max-width: 42rem; margin-top: var(--s6); }
.pete .pete__note h2 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); }
.pete .pete__note .lede { margin-top: var(--s5); }
.pete .pete__note p:not(.lede) { color: var(--slate); }
.pete__facts {
  list-style: none; margin: var(--s7) 0 0; padding: 0; width: 100%; max-width: 56rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.pete__facts li { padding: var(--s5) var(--s5); display: grid; gap: 4px; align-content: start; }
.pete__facts li + li { border-left: 1px solid var(--line); }
.pete__facts b { font: 650 clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem)/1.1 var(--sc-font-display); letter-spacing: -0.025em; }
.pete__facts span { font-size: 15px; line-height: 1.4; color: var(--slate); }
.pete .pete__links { justify-content: center; margin-top: var(--s5) !important; }

/* ---------------------------------------------------------------------- faq */
.faq { interpolate-size: allow-keywords; }
.faq__head { position: sticky; top: calc(var(--bar) + 32px); }
.faq__head .lede { margin-top: var(--s4); color: var(--slate); }
.faq .faq__list { border-top: 1.5px solid var(--ink); display: grid; }
.faq details { border-bottom: 1px solid var(--line); transition: background-color 240ms var(--ease); }
.faq summary { justify-content: flex-start; gap: var(--s4); min-height: 76px; padding: 16px 4px 16px 0; }
.faq summary::after { content: none; }
.faq__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line); color: var(--forest); transition: background-color 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease); }
.faq details[open] .faq__ico { background: var(--citrus); border-color: var(--ink); color: #0E1A16; }
.faq__q { flex: 1; min-width: 0; }
.faq__pm { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); transition: transform 280ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease); }
.faq__pm::before, .faq__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); }
.faq__pm::after { transform: rotate(90deg); }
.faq details[open] .faq__pm { transform: rotate(45deg); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .faq details:not([open]) summary:hover .faq__ico { border-color: var(--forest); }
  .faq details:not([open]) summary:hover .faq__pm { border-color: var(--ink); }
}
.faq summary:focus-visible { outline-offset: 2px; }
.faq details .faq__a p { padding: 0 var(--s7) var(--s5) calc(40px + var(--s4)); color: var(--slate); max-width: 44em; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease), content-visibility 320ms var(--ease) allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ------------------------------------------------------------------- encore */
.encore { position: relative; z-index: 1; background: var(--fog); border-top: 1px solid var(--line); padding-block: var(--section) clamp(40px, 5vw, 72px); }
.encore__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.encore h2 { display: grid; gap: 10px; }
.encore__q { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); color: var(--slate); letter-spacing: -0.025em; }
.encore__a { font-size: clamp(2.5rem, 1rem + 3.6vw, 4.5rem); line-height: 0.95; letter-spacing: -0.045em; padding-left: .45em; white-space: nowrap; }
.chat {
  width: 100%; max-width: 760px; justify-self: end;
  background: var(--white); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--e3);
  padding: clamp(20px, 3vw, 36px);
}
.chat__screen { position: relative; display: grid; align-content: start; gap: var(--s4); }
.chat__hello {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--sc-font-display); letter-spacing: -0.025em; color: var(--ink);
}
.chat__bubble {
  justify-self: end; max-width: 80%; padding: 12px 18px; border-radius: 22px 22px 6px 22px;
  background: var(--fog); font-size: 17px; line-height: 1.4;
}
.chat__think { font-size: 15px; color: var(--slate); display: grid; }
.chat__think > span { grid-area: 1 / 1; transition: opacity 240ms var(--ease); }
.chat__think-on { background: linear-gradient(90deg, var(--slate) 30%, var(--mist) 50%, var(--slate) 70%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chat-shimmer 1.4s linear infinite; }
.chat__a { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.55; }
.chat__a mark { background: none; color: inherit; font-weight: 700; box-shadow: inset 0 -.42em 0 color-mix(in oklab, var(--citrus) 85%, transparent); padding-inline: 1px; }
html[data-theme="dark"] .chat__a mark { color: #0E1A16; background: var(--citrus); box-shadow: none; }
.chat__a .w { transition: opacity 260ms var(--ease), filter 260ms var(--ease); }
.chat__cites { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__cites span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font: 500 13px/1.4 var(--sc-font-mono); color: var(--slate); transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.chat__named { display: flex; align-items: center; gap: 10px; padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }
.chat__named-t { margin-right: 4px; }
.chat__named .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--fog); color: var(--ink); transition: opacity 260ms var(--ease), transform 260ms var(--ease), background-color 260ms var(--ease); }
.chat__named .ico.is-on { background: var(--citrus); color: #0E1A16; }
.chat__composer {
  margin-top: var(--s5); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--fog);
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.chat__composer:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in oklab, var(--forest) 15%, transparent); }
.chat__composer input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: 500 17px/1.2 var(--sc-font-text); }
.chat__composer input:focus { outline: none; }
.chat__composer input::placeholder { color: var(--slate); opacity: 1; }
.chat__composer .btn { flex: none; }
.chat.is-ready .chat__composer { animation: chat-ready 1.2s var(--ease) 1; }

/* states: JS sets data-s on .chat. Without JS, everything is simply there. */
.chat[data-s] .chat__hello { transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.chat[data-s] :is(.chat__bubble, .chat__think, .chat__cites, .chat__named) { transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.chat[data-s="0"] .chat__hello { opacity: 1; }
.chat[data-s]:not([data-s="0"]) .chat__hello { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.chat[data-s="0"] .chat__bubble { opacity: 0; transform: translateY(10px); }
.chat[data-s="0"] .chat__think, .chat[data-s="1"] .chat__think { opacity: 0; }
.chat[data-s] :is(.chat__cites, .chat__named) { opacity: 0; transform: translateY(6px); }
.chat[data-s="4"] .chat__cites, .chat[data-s="5"] :is(.chat__cites, .chat__named) { opacity: 1; transform: none; }
.chat:not([data-s="2"]) .chat__think-on { opacity: 0; }
.chat[data-s="2"] .chat__think-off { opacity: 0; }
.chat .w.is-off { opacity: 0; filter: blur(3px); }
.chat .chat__named .ico:not(.is-on) { opacity: .45; }
html:not(.js) .chat__hello { display: none; }

@keyframes chat-shimmer { to { background-position: -300% 0; } }
@keyframes chat-ready { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--citrus) 55%, transparent); border-color: var(--ink); } }

/* ------------------------------------------------------ start, closing staff */
/* The page opens on a staff and ends on one: five lines into the footer, the
   lark at rest on the top line. */
.start { position: relative; padding-top: clamp(40px, 5vw, 72px); padding-bottom: calc(clamp(48px, 5vw, 80px) + 88px); }
.coda { position: absolute; left: 0; right: 0; bottom: 0; height: 88px; pointer-events: none; }
.coda i { position: absolute; left: 0; right: 0; height: 1px; background: var(--mist); }
html[data-theme="dark"] .coda i { background: var(--line); }
.coda i:nth-child(1) { bottom: 72px; } .coda i:nth-child(2) { bottom: 56px; } .coda i:nth-child(3) { bottom: 40px; }
.coda i:nth-child(4) { bottom: 24px; } .coda i:nth-child(5) { bottom: 8px; }
.coda svg { position: absolute; bottom: 72px; right: max(var(--gutter), calc((100% - var(--maxw)) / 2)); width: 64px; height: 64px; fill: var(--forest); }
.js .coda i { transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease); }
.js .coda i:nth-child(2) { transition-delay: 80ms; } .js .coda i:nth-child(3) { transition-delay: 160ms; }
.js .coda i:nth-child(4) { transition-delay: 240ms; } .js .coda i:nth-child(5) { transition-delay: 320ms; }
.js .coda svg { opacity: 0; translate: 0 -10px; transition: opacity 500ms var(--ease) 900ms, translate 500ms var(--ease) 900ms; }
.js .coda.is-on i { transform: none; }
.js .coda.is-on svg { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------ narrow */
@media (max-width: 1100px) {
  .tile { grid-template-columns: minmax(0, 1fr); }
  .encore__in { grid-template-columns: minmax(0, 1fr); }
  .chat { justify-self: stretch; max-width: none; }
}
@media (max-width: 860px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .monday__head { grid-template-columns: minmax(0, 1fr); }
  .monday__head h2 { grid-row: auto; }
  .monday__head .link { margin-top: 0; }
  .faq__head { position: static; }
  .faq details .faq__a p { padding: 0 0 var(--s5) calc(40px + var(--s4)); }
}
@media (max-width: 640px) {
  .tile ul { grid-template-columns: minmax(0, 1fr); }
  .board { border-radius: 20px; }
  .pete__facts { grid-template-columns: minmax(0, 1fr); }
  .pete__facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pete__facts li { padding: var(--s4) 0; }
  .log li { grid-template-columns: minmax(0, 1fr) auto; }
  .log li .st { grid-column: 1 / -1; }
  .faq summary { gap: 12px; }
  .faq details .faq__a p { padding: 0 0 var(--s5) 0; }
  .chat { border-radius: 22px; }
  .chat__composer { padding-left: 16px; }
  .chat__composer .btn { padding: 0 16px; }
  .chat__named { flex-wrap: wrap; }
  .encore__a { font-size: clamp(2.5rem, 1.6rem + 6vw, 3.5rem); padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chat__think-on { animation: none; color: var(--slate); background: none; }
  .js .board .meter i { transform: none; transition: none; }
  .js .coda i, .js .coda svg { transform: none; opacity: 1; translate: none; transition: none; }
  .faq details::details-content { transition: none; }
}
