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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-soft);
  color: var(--text-on-soft);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Masthead ---------------- */

.masthead {
  padding: 28px 0;
}

.lockup {
  display: inline-flex;
}

/* The asset's viewBox is 330 units wide but its content ends near x=245 —
   roughly 26% trailing whitespace. Kept deliberately rather than cropped: the
   wordmark is a live <text> element, so its rendered width varies with which
   fallback font the visitor resolves, and a tightened viewBox would clip on
   some machines. Inert in a left-aligned masthead; revisit only if the lockup
   is ever centred. */
.lockup__svg {
  display: block;
  height: 34px;
  width: auto;
}
.lockup__bars {
  stroke: var(--brand-mark);
}
.lockup__dot {
  fill: var(--accent);
}
.lockup__text {
  fill: var(--brand-wordmark);
  font-family: var(--font-mono);
}

/* ---------------- Hero ---------------- */

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 40px 0 72px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-subtle);
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 6.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 600;
  max-width: 15ch;
  text-wrap: balance;
}

.lede {
  margin: 18px 0 0;
  max-width: 54ch;
  font-size: clamp(1rem, 2.1vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------------- Signature: the turn-taking waveform ----------------
   Bars are grouped into conversational turns. Subtle bars are the
   moderator, accent bars the respondent — the gaps are the handoffs.   */

.turns {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 60px;
  margin: 40px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
}

.turn {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
}

.turn i {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: var(--border);
  transform-origin: center;
  animation: rise 620ms var(--ease-out) backwards;
  animation-delay: calc(var(--i) * 16ms);
}

.turn--respondent i {
  background: var(--accent);
  opacity: 0.85;
}

@keyframes rise {
  from {
    transform: scaleY(0.06);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ---------------- Actions ---------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 140ms var(--ease-out);
}
.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.btn svg {
  width: 15px;
  height: 15px;
}

.contact {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}
.contact a {
  color: var(--text-muted);
}
.contact a:hover {
  color: var(--text);
}

/* ---------------- Footer ---------------- */

footer {
  border-top: 1px solid var(--border-faint);
  padding: 20px 0 28px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}

@media (max-width: 480px) {
  .turns {
    height: 48px;
    margin: 32px 0;
    gap: 10px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .turn i {
    animation: none;
  }
  * {
    transition-duration: 1ms !important;
  }
}
