@font-face {
  font-family: "Basique Pro";
  src: url("Fonts/Basique_4.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basique Pro";
  src: url("Fonts/Basique_3.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basique Pro";
  src: url("Fonts/Basique_2.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basique Pro";
  src: url("Fonts/Basique_1.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basique Pro";
  src: url("Fonts/Basique.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #ece7de;
  --bg-module: #f4f0e8;
  --ink: #111111;
  --muted: #111111;
  --line: #c4bdb0;
  --blue: #7692e4;
  --accent: #3454b2; /* text-safe shade of --blue (5.6:1 on cream) for links and small accents */
  --graphite: #1a1a1a;
  --periwinkle: #c8cfff;
  --on-dark: #ece7de;
  --radius: 3px;
  --max: 1160px;
  --heading: "Basique Pro", -apple-system, sans-serif;
  --sans: "Basique Pro", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Basique Pro", -apple-system, sans-serif !important;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: "Basique Pro", -apple-system, sans-serif !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111111;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0.4rem 0 0.65rem;
}

.text-highlight {
  color: #7692e4;
}

.wrap {
  width: min(90%, var(--max));
  margin: 0 auto;
}

.narrow {
  max-width: 40rem;
}

.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: rgba(200, 207, 255, 0.3);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 1rem;
}

.lede,
.lead {
  color: var(--muted);
  max-width: 38rem;
}

.lead {
  margin-bottom: 2.75rem;
}

.micro {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
  max-width: 28rem;
}

/* Reveal only hides content once JavaScript has loaded (html.js is set in <head>). */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

button {
  font-family: "Basique Pro", -apple-system, sans-serif !important;
}

.btn {
  display: inline-block;
  font-family: "Basique Pro", -apple-system, sans-serif !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  background: #7692e4;
  color: #111111;
  border: 1px solid #7692e4;
  border-radius: 9999px;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-nav {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.btn-on-dark {
  background: #7692e4;
  color: #111111;
  border-color: #7692e4;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background-color: transparent;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled {
  background-color: rgba(236, 231, 222, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.logo-mark {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-word {
  width: auto;
  height: 1.15rem;
}

.logo:hover .logo-mark,
.logo:focus-visible .logo-mark {
  transform: rotate(36deg);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -0.35rem;
  left: 50%;
  width: 0;
  height: 1px;
  background: #111111;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-inner .btn-nav {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ink);
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  top: 4rem;
  left: 0;
  width: 100%;
  z-index: 9998;
  padding: 1rem 5% 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  font-size: 1rem;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: clamp(28rem, 54vw, 42rem);
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(100%, 42rem);
}

.hero-visual {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 140%;
  min-width: 1200px;
  pointer-events: none;
  transform: translate(-30%, -50%);
  will-change: transform;
}

.hero-visual img {
  width: 100%;
  height: auto;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.hero h1 {
  margin-bottom: 1.35rem;
}

.hero .lede {
  margin-bottom: 2rem;
}

.hero-copy > p:first-of-type {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

/* Sections */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section p {
  color: var(--muted);
}

.section h2 + p,
.split-copy p {
  color: var(--muted);
}

.split-copy p + p {
  margin-top: 1.15rem;
}

/* Methodology: vertical thread */
.ladder {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1.75rem;
  margin-left: 0.35rem;
}

.ladder::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #c8cfff 0 4px,
    transparent 4px 12px
  );
  background-size: 2px 12px;
  animation: vertical-conveyor 15s linear infinite;
}

.ladder-step {
  position: relative;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 40px;
  padding: 3rem;
}

.ladder-copy {
  color: #1a1a1a;
  font-family: "Basique Pro", -apple-system, sans-serif !important;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.65;
  margin-top: 0.35rem;
}

.ladder-step--build {
  background: #c8cfff;
  color: #1a1a1a;
}

.workflow {
  margin-top: 2rem;
  max-width: 34rem;
}

.workflow-shell {
  display: flex;
  align-items: center;
  position: relative;
  padding: 2rem;
  background: rgba(17, 17, 17, 0.03);
  border-radius: 24px;
}

.workflow-nodes {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.workflow-node {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 3rem;
  padding: 14px 28px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.09);
  color: #111111;
  font-family: "Basique Pro", -apple-system, sans-serif !important;
  font-size: clamp(0.64rem, 1.5vw, 0.78rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 1;
}

.workflow-node span {
  white-space: nowrap;
}

.workflow-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.workflow-line {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 3rem;
  width: calc(100% - 6rem);
  height: 2px;
  transform: translateY(-50%);
  overflow: visible;
}

.workflow-line path {
  fill: none;
  stroke: #7692e4;
  stroke-width: 2;
  stroke-dasharray: 4 8;
  stroke-linecap: round;
  animation: workflow-flow 15s linear infinite;
}

.workflow-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.45rem 0.75rem;
  background: #ffffff;
  border-radius: 9999px;
  color: #111111 !important;
  font-family: "Basique Pro", -apple-system, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  line-height: 1.2 !important;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14), 0 0 10px rgba(16, 185, 129, 0.55);
  animation: status-pulse 1.8s ease-in-out infinite;
}

@keyframes workflow-flow {
  from {
    stroke-dashoffset: 100;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes vertical-conveyor {
  from {
    background-position-y: 0;
  }

  to {
    background-position-y: 100%;
  }
}

@keyframes workflow-vertical-flow {
  from {
    background-position-y: 0;
  }

  to {
    background-position-y: 100%;
  }
}

@keyframes status-pulse {
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08), 0 0 14px rgba(16, 185, 129, 0.7);
  }
}

.modules {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  background: var(--bg-module);
}

.module p {
  font-size: 0.98rem;
}

.metric {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.split {
  display: grid;
  gap: 1.75rem;
}

.fit-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  max-width: 44rem;
}

.fit-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.28rem;
  border-left: 1.5px solid var(--blue);
  border-bottom: 1.5px solid var(--blue);
  transform: rotate(-45deg);
}

.cta-band {
  background: var(--graphite);
  color: var(--on-dark);
  padding: 120px 0;
  text-align: center;
}

.cta-inner {
  max-width: 32rem;
}

.cta-band h2 {
  color: var(--on-dark);
  margin-bottom: 1.75rem;
}

.cta-band .micro {
  color: #b7b0a4;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: grid;
  gap: 0.15rem;
}

.footer-brand strong {
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Utilities */
.nowrap {
  white-space: nowrap;
}

.section-note {
  margin-top: 0.25rem;
  max-width: 38rem;
  font-size: 0.95rem;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--ink);
}

/* FAQ */
.faq {
  margin-top: 2rem;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--mono);
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin-top: 0.65rem;
}

/* Legal pages */
.legal p + p {
  margin-top: 1.15rem;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

/* Blog */
.page-top {
  padding-top: 160px;
  border-top: 0;
}

.post-list {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  background: var(--bg-module);
}

.post-card h2 {
  font-size: 1.35rem;
  margin: 0.4rem 0 0.65rem;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.draft-banner {
  background: var(--periwinkle);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  text-align: center;
}

.draft-banner strong {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-right: 0.4rem;
}

.draft-banner + main .page-top {
  padding-top: 72px;
}

.page-title,
.post-header h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.byline-name {
  font-weight: 700;
}

.prose p,
.prose ul {
  margin-bottom: 1.15rem;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin: 2.25rem 0 0.75rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.editor-note {
  background: var(--bg-module);
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.post-end {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-end h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.post-end .btn {
  margin-top: 0.5rem;
}

/* Desktop nav from 768px: four links and the booking button fit from here. */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex: 1;
    justify-content: flex-end;
  }

  .nav-inner .btn-nav {
    display: inline-block;
  }

  .nav-toggle,
  .nav-drawer,
  .nav-drawer.open {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }

  .modules {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .split {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: start;
  }

  .fit-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }

  .footer-links {
    margin-top: 0;
    justify-content: flex-end;
  }
}

@media (min-width: 769px) {
  .workflow-shell,
  .workflow-nodes {
    display: flex;
    flex-direction: row;
  }

  .workflow-line {
    display: block;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 88px 0;
  }

  .hero-inner {
    min-height: 31rem;
    align-items: flex-start;
  }

  .hero-visual {
    width: 140%;
    min-width: 1200px;
  }

  .workflow {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-visual img {
    opacity: 0.15;
  }

  .workflow-shell {
    flex-direction: column;
    gap: 20px;
  }

  .workflow-nodes {
    flex-direction: column;
    gap: 20px;
  }

  .workflow-line {
    display: none;
  }

  .workflow-nodes::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
      to bottom,
      #7692e4 0 4px,
      transparent 4px 12px
    );
    background-size: 2px 12px;
    animation: workflow-vertical-flow 15s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
