:root {
  --navy: #141a38;
  --navy-2: #232b57;
  --peri: #8794ff;
  --tint: #eff1fa;
  --paper: #ffffff;
  --lime: #b9f44e;
  --lime-bright: #cdff73;
  --ink-soft: #535a7a;
  --accent-tint: #e2f8b4;
  --accent-tint-ink: #2c4a00;
  --accent-wash: #f0fbd4;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --edge: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* Header */

.top {
  background: var(--navy);
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.1rem var(--edge);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  text-decoration: none;
  line-height: 1;
}
.wm-main { font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; }
.wm-sub { font-weight: 500; font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; margin-top: 0.2rem; padding-left: 0.34em; }

.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
}

.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Buttons and links */

.button {
  display: inline-block;
  background: var(--lime);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
}
.button:hover { background: var(--lime-bright); }
.contact .button { background: var(--navy); color: #fff; }
.contact .button:hover { background: var(--navy-2); }
.top nav .button:hover { text-decoration: none; }
.button-small { font-size: 0.95rem; padding: 0.5rem 1rem; }

.text-link {
  font-family: var(--display);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  text-decoration-color: currentColor;
}
.text-link:hover { text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.text-link.on-dark { color: var(--paper); }

/* Hero */

.hero {
  background: var(--navy);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--edge) clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 13ch;
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  max-width: 34ch;
  margin: 1.6rem 0 2rem;
  color: #cfd4ee;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 0;
}

/* Hero demo */

.demo {
  background: var(--navy-2);
  border-radius: 18px;
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
}

.demo-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.step-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--peri);
  color: var(--navy);
  font-size: 0.9rem;
}

.bubble {
  display: inline-block;
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--lime);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}

.step-note {
  margin: 0.6rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #cfd4ee;
  max-width: 48ch;
}

.ask {
  background: var(--paper);
  color: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.35;
  max-width: 30rem;
}
.ask-q {
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--tint);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.ask-q span { font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; }
.ask ul { list-style: none; margin: 0; padding: 0; }
.ask li {
  position: relative;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border-top: 1px solid #dfe2f0;
  color: var(--ink-soft);
}
.ask li b { display: block; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ask li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 2px solid #a9afcf;
  background: #fff;
}
.ask li.picked::before { border: 5px solid var(--navy); }

.script i {
  font-style: normal;
  background: var(--tint);
  border-radius: 4px;
  padding: 0 0.3em;
  color: var(--ink-soft);
}

.sheet {
  background: var(--paper);
  color: var(--navy);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.92rem;
  line-height: 1.4;
}
.sheet p { margin: 0; }
.sheet b { font-family: var(--display); font-weight: 700; display: block; font-size: 0.86rem; color: var(--ink-soft); }

.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 500;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid #dfe2f0;
}
.sheet-count { margin-right: auto; color: var(--ink-soft); }
.sheet-btn { border: 1px solid #c3c8de; border-radius: 7px; padding: 0.25rem 0.65rem; }
.sheet-btn-go { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }

.sheet-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.7rem;
}
.sheet-pill {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--tint);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.tiles {
  margin: 0.7rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.tiles div { border: 1px solid #dfe2f0; border-radius: 8px; padding: 0.45rem 0.55rem; background: #fff; }
.tiles dt { font-family: var(--display); font-weight: 500; font-size: 0.78rem; color: var(--ink-soft); }
.tiles small { display: block; font-weight: 500; font-size: 0.78rem; color: var(--ink-soft); }
.tiles dd { margin: 0.1rem 0 0; font-family: var(--display); font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.tiles .good { color: #1d7a43; }

.sheet-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0.6rem; }
.script { border: 1px solid #dfe2f0; border-radius: 8px; padding: 0.6rem 0.7rem; background: #fff; display: grid; gap: 0.5rem; }
.sheet-head { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.side { display: grid; gap: 0.6rem; align-content: start; }
.check { background: var(--accent-wash); border-radius: 8px; padding: 0.55rem 0.65rem; }
.voicemail { border: 1px solid var(--navy); border-radius: 8px; padding: 0.55rem 0.65rem; background: #fff; }

.outcomes {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #3a4480;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lime);
}

.demo-note {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: #aab1d6;
}

.done-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #e6e9f7;
}
.done-list li { padding-left: 1.8rem; position: relative; }
.done-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--lime);
}
.done-list li::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.38em;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Player: one step at a time, added by player.js */

.tabs { display: flex; gap: 0.4rem; margin: 0 0 1.2rem; }
.tab {
  flex: 1;
  position: relative;
  background: none;
  border: 0;
  border-top: 3px solid #3a4480;
  padding: 0.55rem 0 0.2rem;
  min-height: 44px;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: #aab1d6;
  cursor: pointer;
}
.tab.is-active, .tab.is-done { color: #fff; }
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  height: 3px;
  width: 0;
  background: var(--lime);
}
.tab.is-done::after { width: 100%; }
.tab.is-active::after { width: 100%; }
.player-toggle {
  flex: none;
  background: none;
  border: 1px solid #3a4480;
  border-radius: 999px;
  color: #cfd4ee;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.75rem;
  min-height: 32px;
  align-self: center;
  cursor: pointer;
}

.demo.is-player .step { display: none; }
.demo.is-player .step.is-active { display: block; }
.demo.is-player .demo-steps { display: grid; align-items: start; }
.demo.is-player .bubble[data-type] { font-size: clamp(1.5rem, 2.6vw, 2.1rem); padding: 0.8rem 1.3rem; }
.demo.is-player .done-list, .demo.is-player .step-note { font-size: 1.1rem; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .demo.is-player .tab.is-active::after { width: 0; animation: fill var(--ms, 4000ms) linear forwards; }
  .demo.is-player.is-paused .tab.is-active::after { animation-play-state: paused; }
  .demo.is-player .step.is-active [data-stagger] > * {
    opacity: 0;
    animation: arrive 0.4s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.28s + var(--lead, 0.2s));
  }
  .demo.is-player .step.is-active .done-list { --lead: 1.4s; }
  .demo.is-player .step.is-active .side { --lead: 1.5s; }
  .demo.is-player .step.is-active .script { --lead: 0.9s; }
  .demo.is-player .step.is-active .ask li.picked::before { border: 2px solid #a9afcf; animation: pick 0.25s ease-out 1.9s forwards; }
  .demo.is-player .step.is-active .step-note { opacity: 0; animation: arrive 0.4s ease-out 1.5s forwards; }
  .caret::after { animation: blink 0.8s steps(1) infinite; }
  @keyframes fill { to { width: 100%; } }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes pick { to { border: 5px solid var(--navy); } }
  @keyframes blink { 50% { opacity: 0; } }
}

/* Content bands: heading on the left, content on the right */

.band {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) var(--edge);
  border-top: 2px solid var(--navy);
}

.band > h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.band-body { max-width: 62rem; }

/* Services */

.services { margin: 0; }
.services div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid #d9dcec;
}
.services div:first-child { border-top: 0; padding-top: 0; }
.services dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.services dd { margin: 0; max-width: 58ch; }

.aside {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--tint);
  border-radius: 10px;
  max-width: 62ch;
}

/* Work */

.work {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.75rem clamp(2rem, 4vw, 4rem);
}

.work h3 { font-size: 1.6rem; }
.work p { margin: 0; max-width: 46ch; }

.status {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin: 0.6rem 0 0.7rem !important;
}
.status-live { background: var(--accent-tint); color: var(--accent-tint-ink); }
.status-proto { background: #e4e7ff; color: #2a3180; }

.work-intro {
  margin: 0 0 2.25rem;
  max-width: 60ch;
  color: var(--ink-soft);
}

/* Products */

.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
}
.shot {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid #d9dcec;
  box-shadow: 0 8px 24px rgba(20, 26, 56, 0.08);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.products h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.products h3 a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}
.products h3 a:hover { text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.products p { margin: 0; }
.products .domain {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.about img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.about p { max-width: 60ch; }
.about-lead {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 24ch !important;
}

/* Contact */

.contact {
  background: var(--lime);
  padding: clamp(3rem, 7vw, 6rem) var(--edge);
}
.contact h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.contact > p { max-width: 52ch; margin-top: 1.25rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem !important;
  max-width: none !important;
}
.email {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 2px;
}

/* Footer */

footer {
  background: var(--navy);
  color: #aab1d6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.5rem var(--edge);
  font-family: var(--display);
  font-size: 0.95rem;
}
footer p { margin: 0; }

/* Smaller screens */

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 14ch; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band > h2 { position: static; }
  .products { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .products li {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
    align-items: start;
  }
  .products .shot { grid-row: 1 / span 3; aspect-ratio: 1; margin: 0; }
  .products .shot img { object-position: top left; }
  .products li > h3, .products li > p { grid-column: 2; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .top nav { gap: 0.4rem 1.1rem; font-size: 0.95rem; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .services div { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about img { max-width: 15rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { font-size: 0.8rem; white-space: nowrap; }
  .player-toggle { padding: 0.2rem 0.55rem; }
  .sheet-cols { grid-template-columns: minmax(0, 1fr); }
}

/* Theme: the site ships with data-theme="light" and data-accent="marigold" on <html>.
   The other accents are kept so the color can be changed in one attribute. */

html[data-accent="marigold"] { --lime: #f6b73c; --lime-bright: #ffcb63; --accent-tint: #fdebc0; --accent-tint-ink: #5a3d00; --accent-wash: #fff4d9; }
html[data-accent="coral"] { --lime: #ff7a59; --lime-bright: #ff9479; --accent-tint: #ffe0d7; --accent-tint-ink: #7a2410; --accent-wash: #fff0eb; }
html[data-accent="mint"] { --lime: #5fd9a8; --lime-bright: #7fe6bb; --accent-tint: #d3f5e6; --accent-tint-ink: #0b4d36; --accent-wash: #e9faf2; }
html[data-accent="sky"] { --lime: #7cc0ff; --lime-bright: #9bd0ff; --accent-tint: #d9ecff; --accent-tint-ink: #0d3c6b; --accent-wash: #edf6ff; }
html[data-accent="lilac"] { --lime: #b7a4ff; --lime-bright: #c9baff; --accent-tint: #e7e0ff; --accent-tint-ink: #35247a; --accent-wash: #f3efff; }

html[data-theme="light"] .top,
html[data-theme="light"] .hero { background: var(--paper); color: var(--navy); }
html[data-theme="light"] .top { border-bottom: 1px solid #dfe2f0; }
html[data-theme="light"] .lede { color: var(--ink-soft); }
html[data-theme="light"] .top .button,
html[data-theme="light"] .hero .button { background: var(--navy); color: #fff; }
html[data-theme="light"] .top .button:hover,
html[data-theme="light"] .hero .button:hover { background: var(--navy-2); }
html[data-theme="light"] .text-link.on-dark { color: var(--navy); }
html[data-theme="light"] .demo { background: var(--tint); }
html[data-theme="light"] .tab { color: var(--ink-soft); border-top-color: #cfd4ea; }
html[data-theme="light"] .tab.is-active,
html[data-theme="light"] .tab.is-done { color: var(--navy); }
html[data-theme="light"] .tab::after { background: var(--navy); }
html[data-theme="light"] .player-toggle { color: var(--ink-soft); border-color: #cfd4ea; }
html[data-theme="light"] .step-note,
html[data-theme="light"] .done-list,
html[data-theme="light"] .demo-note,
html[data-theme="light"] .who { color: var(--ink-soft); }
html[data-theme="light"] .outcomes { color: var(--navy); border-top-color: #cfd4ea; }
html[data-theme="light"] .sheet, html[data-theme="light"] .ask { box-shadow: 0 1px 0 #cfd4ea, 0 8px 24px rgba(20, 26, 56, 0.08); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
