/* Bazzr Studio: the sectors we start with, the intake-call block, the language switch,
   and the sector pages. */

/* Language switch in the navigation */

.lang {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--text-2);
  transition: color var(--quick) var(--ease), border-color var(--quick) var(--ease);
}

.lang:hover {
  border-color: var(--sky);
  color: var(--white);
}

/* Sectors: three quiet columns. */

.sectors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.sector-core {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline-strong);
}

.sector p {
  margin-top: var(--space-3);
  color: var(--text-2);
}

.sector-more {
  margin-top: var(--space-7);
  color: var(--text-2);
}

.sector h3 {
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Intake call, offered next to the form */

.booking {
  margin-top: var(--space-7);
  padding: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1.25rem;
  background: rgba(5, 8, 28, 0.25);
}

.start-text .booking p {
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: var(--text-body);
}

.booking b {
  display: block;
  font-size: var(--text-lead);
  color: var(--white);
}

/* Sector page */

.page-hero {
  position: relative;
  padding-block: clamp(8rem, 18vh, 11rem) var(--space-9);
  /* Clip sideways only, so the glow can fade into the next section instead of ending in a hard line. */
  overflow-x: clip;
}

.page-title {
  max-width: 16ch;
  font-size: clamp(2.4rem, 0.8rem + 5.2vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-lede {
  max-width: 40rem;
  margin-top: var(--space-6);
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--text-2);
}

.page-hero .hero-actions {
  margin-top: var(--space-6);
}

.example-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.steps-short {
  display: grid;
  margin-top: var(--space-6);
  counter-reset: short;
}

.steps-short li {
  counter-increment: short;
  position: relative;
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) 0 var(--space-4) 3rem;
  border-top: 1px solid var(--hairline);
}

.steps-short li::before {
  content: "0" counter(short);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--sky);
}

.steps-short span {
  color: var(--text-2);
}

@media (max-width: 62rem) {
  /* Wordmark on the left, language and menu together on the right. */
  .nav .lang {
    margin-left: auto;
  }

  .sectors {
    grid-template-columns: minmax(0, 1fr);
  }

  .example-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On phones the long Dutch section labels fit one line with tighter tracking,
   and the booking button takes the language switch's place; the switch moves into the menu. */
@media (max-width: 40rem) {
  .eyebrow {
    letter-spacing: 0.06em;
  }

  .nav .lang {
    display: none;
  }

  .nav .btn-small {
    margin-left: auto;
  }
}

@media (max-width: 24rem) {
  .nav .btn-small {
    padding-inline: 0.8rem;
    font-size: 0.8125rem;
  }
}

/* Too narrow for the button: the menu still has it. */
@media (max-width: 22.4rem) {
  .nav .btn-small {
    display: none;
  }

  .nav-toggle {
    margin-left: auto;
  }
}

/* Bazzr Studio: why us (before and after), and the systems diagram. */

/* Before and after: one row per habit, the usual way muted on the left, ours lit on the right. */

.compare {
  display: grid;
  gap: var(--space-3);
  counter-reset: compare;
}

.compare-row {
  counter-increment: compare;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
  padding-left: 3.5rem;
}

.compare-row::before {
  content: "0" counter(compare);
  position: absolute;
  left: 0;
  top: 1.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--sky);
}

.compare-before,
.compare-after {
  display: grid;
  gap: var(--space-2);
  max-width: none;
  padding: var(--space-5) var(--space-6);
  border-radius: 1.25rem;
  font-size: var(--text-lead);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.compare-before {
  border: 1px solid var(--hairline);
  color: var(--text-3);
}

.compare-after {
  border: 1px solid rgba(141, 165, 253, 0.35);
  background: linear-gradient(135deg, rgba(61, 107, 255, 0.22), rgba(21, 53, 204, 0.08));
  box-shadow: var(--highlight);
  color: var(--text);
}

.compare-label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The labels name the columns once; the rows below keep them for screen readers. */
.compare-row + .compare-row .compare-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.compare-before .compare-label {
  color: var(--text-3);
}

.compare-after .compare-label {
  color: var(--sky);
}

/* Systems: one diagram. What you have flows into Bazzr Studio; what you get back flows out.
   Lines are drawn by beam.js; the travelling light is a dash moving along each line. */

.beam {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 10vw, 9rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.beam-lines {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.beam-col {
  position: relative;
  display: grid;
  gap: var(--space-3);
}

.beam-col:last-child {
  justify-items: end;
}

.beam-label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.beam-list {
  display: grid;
  gap: var(--space-4);
}

.beam-col:last-child .beam-list {
  justify-items: end;
}

.beam-node {
  position: relative;
  width: max-content;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  background: var(--ink);
  font-size: var(--text-small);
  color: var(--text);
}

.beam-hub {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--space-1);
  width: 11rem;
  aspect-ratio: 1;
  border: 1px solid rgba(141, 165, 253, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(61, 107, 255, 0.45), var(--ink) 70%);
  box-shadow: 0 0 0 0.6rem rgba(61, 107, 255, 0.07), 0 0 4rem rgba(61, 107, 255, 0.35);
  text-align: center;
  align-content: center;
}

.beam-hub b {
  font-size: var(--text-lead);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.beam-hub span {
  max-width: 8rem;
  font-size: var(--text-micro);
  line-height: 1.4;
  color: var(--text-2);
}

.beam-track,
.beam-pulse {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.beam-track {
  stroke: var(--hairline-strong);
}

/* A short dash, longer than the line, so one light at a time travels from start to end. */
.beam-pulse {
  stroke: var(--sky);
  stroke-dasharray: 14 186;
  stroke-dashoffset: 14;
  animation: beam-flow 3.6s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s) infinite;
  filter: drop-shadow(0 0 4px rgba(141, 165, 253, 0.9));
}

@keyframes beam-flow {
  to {
    stroke-dashoffset: -100;
  }
}

.systems-note {
  max-width: 48rem;
  margin-top: var(--space-6);
  font-size: var(--text-small);
  color: var(--text-3);
}

@media (prefers-reduced-motion: reduce) {
  .beam-pulse {
    display: none;
  }
}

@media (max-width: 62rem) {
  .beam {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: var(--space-8);
    padding-inline: 0;
  }

  .beam-col,
  .beam-col:last-child {
    justify-items: center;
  }

  .beam-list,
  .beam-col:last-child .beam-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }
}

@media (max-width: 40rem) {
  .compare-row {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }

  .compare-row::before {
    position: static;
  }

  .compare-before,
  .compare-after {
    padding: var(--space-4) var(--space-5);
  }
}

.hero-ending-2 {
  animation-delay: 0.24s;
}

.hero-micro {
  margin-top: var(--space-4);
  font-size: var(--text-small);
  color: var(--text-3);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  font-size: var(--text-small);
  color: var(--text-2);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.trust li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--electric);
}

.craft-tag {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

/* One order, before and after: a quiet timeline. */
.story {
  display: grid;
}

.story-step {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid var(--hairline);
}

.story-when {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--sky);
}

.story-step h3 {
  grid-column: 2 / -1;
  font-size: var(--text-h3);
  letter-spacing: -0.02em;
}

.story-now,
.story-after {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  color: var(--text-2);
}

.story-now {
  grid-column: 2;
}

.story-after {
  color: var(--text);
}

.story-label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* On wide screens Now and After read as columns, so they are named once. */
@media (min-width: 40.01rem) {
  .story-step + .story-step .story-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.story-after .story-label {
  color: var(--sky);
}

.story-tag {
  grid-column: 1;
  grid-row: 2;
  font-size: var(--text-small);
  color: var(--text-3);
}

.story-close {
  margin-top: var(--space-6);
  font-size: var(--text-lead);
  color: var(--text);
}

/* Six problems on a sector page: three columns where they fit. */
@media (min-width: 62.01rem) {
  .crafts-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* About: three quiet columns. */
.about {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.about-col {
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline-strong);
}

.about-col h3 {
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-col p,
.about-col li {
  margin-top: var(--space-3);
  color: var(--text-2);
}

.about-rules {
  display: grid;
  gap: var(--space-1);
}

.about-rules li {
  position: relative;
  padding-left: 1.1rem;
}

.about-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--sky);
}

/* What happens after the request, under the contact intro. */
.after-call {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-6);
  counter-reset: after;
}

.start-text .after-call li {
  counter-increment: after;
  margin: 0;
  font-size: var(--text-body);
  color: var(--tint);
}

.after-call li::before {
  content: counter(after) ". ";
  font-family: var(--font-mono);
}

.form-hint {
  font-size: var(--text-small);
  color: var(--tint);
}

@media (max-width: 62rem) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .story-when,
  .story-step h3,
  .story-tag {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .story-now {
    grid-column: 1;
  }
}

@media (max-width: 40rem) {
  .story-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-now,
  .story-after {
    grid-column: 1;
  }
}
