@import url("vendor/cipherware-kit/cipherware.css?v=0.2.1");

/* Site-specific layout (marketing pages) — chrome/tokens come from cipherware-kit */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

#book {
  scroll-margin-top: 5.5rem;
}

.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 8vw, 5rem);
  min-height: calc(100svh - 10rem);
}

.hero {
  min-height: calc(100svh - 5.5rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.hero-copy {
  max-width: 32rem;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 11vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
  animation: rise 0.9s ease both;
}

.hero h1,
.page-intro h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--accent);
}

.hero h1 {
  animation: rise 0.9s ease 0.12s both;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero .lede {
  animation: rise 0.9s ease 0.22s both;
}

.aside {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  animation: rise 0.9s ease 0.32s both;
}

.mark {
  display: flex;
  justify-content: flex-start;
  animation: rise 1s ease 0.2s both;
}

.sad-computer {
  width: min(100%, 280px);
  color: var(--text);
  animation: float 5.5s ease-in-out infinite;
}

.sad-computer circle,
.sad-computer path[d^="M100"] {
  animation: blink 4.5s ease-in-out infinite;
}

.page-intro {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
  max-width: 40rem;
}

.page-intro .lede {
  margin-bottom: 0;
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.service-list {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .service-item {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1.5rem;
  }
}

.service-item h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  padding-bottom: 1rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    align-items: start;
  }
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-block h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-block p,
.contact-block a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.02rem;
}

.contact-block a:hover,
.contact-block a:focus-visible {
  color: var(--accent);
  outline: none;
}

.booking {
  min-height: 640px;
}

.booking h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#cal-embed {
  width: 100%;
  min-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}

.mobile-only {
  display: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    opacity: 1;
  }
  96% {
    opacity: 0.15;
  }
}

/* Phone-first polish — most Cipherware traffic is mobile */
@media (max-width: 719px) {
  #book {
    scroll-margin-top: 4.25rem;
  }

  .page {
    min-height: 0;
    padding-bottom: 2.5rem;
  }

  .hero {
    min-height: 0;
    align-items: start;
    gap: 1.5rem;
    padding: 0.85rem 0 1.75rem;
  }

  .brand {
    font-size: clamp(2rem, 9.5vw, 2.85rem);
    margin-bottom: 0.55rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(1.4rem, 6.4vw, 1.8rem);
    margin-bottom: 0.7rem;
  }

  .lede {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 0.9rem;
  }

  .aside {
    margin-bottom: 1.15rem;
    font-size: 0.92rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-only {
    display: inline-flex;
  }

  .mark {
    justify-content: center;
    padding-top: 0.25rem;
  }

  .sad-computer {
    width: min(52vw, 190px);
  }

  .page-intro {
    padding: 1.15rem 0 1.1rem;
  }

  .prose p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .service-list {
    margin-top: 1rem;
  }

  .service-item {
    padding: 1.2rem 0;
    gap: 0.65rem;
  }

  .service-item h2 {
    font-size: 1.15rem;
  }

  .service-item .link-accent {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .contact-layout {
    gap: 1.75rem;
  }

  .contact-block a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    font-size: 1.05rem;
  }

  .booking {
    min-height: 0;
  }

  .booking h2 {
    font-size: 1.2rem;
  }

  #cal-embed {
    min-height: 520px;
  }
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .mark {
    justify-content: flex-end;
  }

  .sad-computer {
    width: min(100%, 340px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .hero h1,
  .hero .lede,
  .cta-row,
  .mark,
  .sad-computer,
  .sad-computer circle,
  .sad-computer path[d^="M100"] {
    animation: none;
  }
}
