/* ============================================================
   Chalifoux & Kuethe — offline rebuild  (rev. Till feedback)
   TYPE SYSTEM (per client feedback):
   - Roboto Mono MEDIUM (500) for everything set in Roboto
   - Exactly TWO Roboto Mono sizes site-wide:
       --rm-lg  : typewriter / statement text
       --rm-sm  : paragraphs, captions, form, contacts
   - Optima for the two founder slides, ~150% bigger,
     name & role the same size, halved line gap
   - Blue #0000FF is the universal link + mouseover color
   ============================================================ */

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-mono-500.woff2') format('woff2');
}

:root {
  --font-mono: 'Roboto Mono', ui-monospace, 'Courier New', monospace;
  --font-optima: Optima, Candara, 'Segoe UI', 'Gill Sans', sans-serif;
  --font-display: var(--font-optima);   /* Till's rule: only Optima + Roboto Mono Medium */
  --ink: #000;
  --paper: #fff;
  --blue: #0000ff;               /* link + mouseover color everywhere */

  /* THE two Roboto Mono sizes */
  --rm-lg: clamp(20px, 2.4vw, 34px);
  --rm-sm: clamp(13px, 1.15vw, 16px);

  /* Optima statement size (~150% of previous) */
  --optima: clamp(26px, 3vw, 45px);

  /* inner margin frame for the intro slide (red outline in feedback) */
  --frame: 40px;

  /* cover = fill the screen, cropping a little if needed (no side gaps).
     Change to `contain` if you prefer letterboxing instead. */
  --media-fit: cover;
}

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

html, body {
  height: 100%;
  overflow: hidden;               /* no page scroll — everything fits the screen */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;               /* Roboto Mono MEDIUM everywhere */
  -webkit-font-smoothing: antialiased;
}

/* ---------- Carousel shell ---------- */
.swiper {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.swiper-slide {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  overflow: hidden;
  position: relative;
}

/* ---------- Navigation arrows ----------
   Till's own arrow SVGs (C_K_arrow_left/right), rendered via CSS mask
   so the color can change: black default, blue on mouseover.        */
.ck-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-nav::before {
  content: '';
  display: block;
  width: 15px;
  height: 25px;
  background-color: var(--ink);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.ck-prev { left: 6px; }
.ck-prev::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='749.4 636.1 14.5 24'%3E%3Cpolygon points='760.7,660.1 749.4,648.1 760.7,636.1 763.9,639.1 755.4,648.1 763.9,657.1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='749.4 636.1 14.5 24'%3E%3Cpolygon points='760.7,660.1 749.4,648.1 760.7,636.1 763.9,639.1 755.4,648.1 763.9,657.1'/%3E%3C/svg%3E");
}
.ck-next { right: 6px; }
.ck-next::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='749.4 636.1 14.5 24'%3E%3Cpolygon points='752.6,636.1 763.9,648.1 752.6,660.1 749.4,657.1 757.9,648.1 749.4,639.1'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='749.4 636.1 14.5 24'%3E%3Cpolygon points='752.6,636.1 763.9,648.1 752.6,660.1 749.4,657.1 757.9,648.1 749.4,639.1'/%3E%3C/svg%3E");
}
.ck-nav:hover::before { background-color: var(--blue); }
.ck-nav:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Full-bleed media slides ---------- */
.slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide-media video,
.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: var(--media-fit);
  object-position: center;
  display: block;
}
/* per-slide overrides: add fit: 'cover' or fit: 'contain' in the config */
.fit-cover video, .fit-cover img { object-fit: cover; }
.fit-contain video, .fit-contain img { object-fit: contain; }

.media-missing {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #888;
  font-size: var(--rm-sm);
  letter-spacing: .05em;
  text-align: center;
  padding: 20px;
}

/* ---------- Intro slide ----------
   Both the Futures animation and the C&K lettering sit inside the
   margin frame; "Futures" lettering sized to match the C&K lettering. */
.slide-intro .intro-logo {
  position: absolute;
  top: var(--frame);
  right: var(--frame);
  z-index: 1;
}
.slide-intro .intro-logo img {
  display: block;
  width: min(260px, 26vw);       /* "Futures" letters match the C&K heading size */
  height: auto;
  object-fit: contain;
}
.slide-intro h1 {
  position: absolute;
  z-index: 2;
  left: var(--frame);
  bottom: calc(var(--frame) + 10px);   /* more space — was too close to bottom */
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 60px);
  letter-spacing: -0.02em;
}
@media (max-width: 767px) {
  .slide-intro .intro-logo { top: 20px; right: 20px; }
  .slide-intro .intro-logo img { width: 27vw; }   /* match C&K size on mobile too */
  .slide-intro h1 {
    left: 20px;
    bottom: 30px;
    font-size: 24px;
  }
}

/* ---------- Typewriter text slides ---------- */
.slide-tw { padding: 24px; }
.tw-text {
  font-family: var(--font-mono);
  font-weight: 500;               /* Medium, per feedback */
  font-size: var(--rm-lg);
  line-height: 1.55;
  text-align: center;
  white-space: pre-wrap;
  max-width: 92vw;
}
.tw-text .cursor {
  display: inline-block;
  width: 1px;
  border-right: 2px solid var(--ink);
  animation: ck-blink 1s steps(1) infinite;
  height: 1em;
  vertical-align: -0.12em;
}
@keyframes ck-blink { 50% { opacity: 0; } }

/* ---------- Founder slides: exact half-and-half ----------
   Optima ~150% bigger, name & role same size, line gap halved. */
.slide-split { flex-direction: row; }
.slide-split.flip { flex-direction: row-reverse; }
.slide-split .split-text {
  flex: 0 0 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.slide-split .split-text .tw-text {
  font-family: var(--font-optima);
  font-weight: 400;
  font-size: var(--optima);
  line-height: 1.35;              /* halved gap between the lines */
  text-align: center;
}
.slide-split .split-media {
  flex: 0 0 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.slide-split .split-media video,
.slide-split .split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .slide-split { flex-direction: column; }
  .slide-split.flip { flex-direction: column-reverse; }
  .slide-split .split-text { flex: 0 0 50%; height: 50%; }
  .slide-split .split-media { flex: 0 0 50%; height: 50%; width: 100%; }
  .slide-split .split-text .tw-text { font-size: clamp(30px, 8.5vw, 40px); } /* much bigger on mobile */
}

/* ---------- Subscribe (Frequencies) slide ---------- */
.slide-subscribe {
  flex-direction: column;
  justify-content: center;
  gap: 3vh;
  padding: 4vh 6vw;
  text-align: center;
}
.slide-subscribe .sub-intro {
  font-size: var(--rm-sm);        /* same size as the form labels, per feedback */
  font-weight: 500;
  line-height: 1.7;
  max-width: 760px;               /* shorter lines — easier to read */
}
.sub-intro a { color: var(--blue); text-decoration: none; }
.sub-intro a:hover { text-decoration: underline; }

.sub-cards {
  display: flex;
  gap: 4vw;
  justify-content: center;
  align-items: flex-start;
}
.sub-card { width: min(475px, 40vw); }   /* images ~125% bigger */
.sub-card .card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f2f2f2;
}
.sub-card .card-media video,
.sub-card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sub-card p {
  margin-top: 12px;
  font-size: var(--rm-sm);        /* caption text bigger, per feedback */
  font-weight: 500;
  line-height: 1.6;
  white-space: pre-line;
  text-align: center;
}

/* Form: centered column; labels lifted away from their textboxes */
.sub-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(523px, 88vw);
}
.sub-form .field { display: flex; flex-direction: column; text-align: center; }
.sub-form label {
  font-size: var(--rm-sm);
  font-weight: 500;
  margin-bottom: 10px;            /* more air between label and textbox */
}
.sub-form input {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--rm-sm);
  padding: 10px 12px;
  height: 42px;
  width: 100%;
  border: 1px solid #cfcfcf;
  background: var(--paper);
}
.sub-form input:focus { outline: none; border-color: var(--blue); }
.sub-form button {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--rm-sm);
  height: 42px;
  width: 100%;
  margin-top: 6px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.sub-form button:hover { background: var(--paper); color: var(--blue); border-color: var(--blue); }
.sub-ok { font-size: var(--rm-sm); }

@media (max-width: 767px) {
  .slide-subscribe { gap: 1.6vh; padding: 2vh 6vw; }
  .slide-subscribe .sub-intro { font-size: 11px; line-height: 1.55; }
  /* live-site mobile order: Nr.1 card, its text, Nr.2 card, its text, form */
  .sub-cards { flex-direction: column; align-items: center; gap: 1.6vh; }
  .sub-card { width: min(64vw, 260px); }        /* images ~125% bigger on mobile too */
  .sub-card p { font-size: 11px; margin-top: 6px; }
  .sub-form { gap: 10px; }
  .sub-form label { font-size: 11px; margin-bottom: 6px; }
  .sub-form input, .sub-form button { height: 34px; font-size: 12px; padding: 6px 10px; }
}

/* ---------- Contacts slide (one centered stack; smaller Roboto size) ---------- */
.slide-contacts {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-line {
  font-size: var(--rm-sm);        /* "here the smaller one" — per feedback */
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
a.contact-line { color: var(--blue); text-decoration: none; }
a.contact-line:hover { text-decoration: underline; }
.contact-line.brand { margin-top: 1.5em; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .tw-text .cursor { animation: none; }
}

/* ============================================================
   v3 additions — C&K website 3.0 (from the client's decks)
   ============================================================ */

/* Collective slide: animation above, typed text, animation below.
   The text block has a FIXED height, so the animations stay put
   while the typewriter fills it. */
.slide-collective {
  flex-direction: column;
  justify-content: center;
  gap: 2vh;
  padding: 2vh 6vw;
  text-align: center;
}
.slide-collective .coll-media {
  position: static;
  width: auto;
  height: 28vh;
  height: 28dvh;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}
.slide-collective .coll-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.slide-collective .coll-text {
  flex: 0 0 auto;
  height: 30vh;
  height: 30dvh;
  align-content: center;   /* typed lines stay vertically centered in the box */
  overflow: hidden;
}
@media (max-width: 767px) {
  .slide-collective { gap: 1.5vh; padding: 1.5vh 5vw; }
  .slide-collective .coll-media { height: 24vh; height: 24dvh; }
  .slide-collective .coll-text { height: 34vh; height: 34dvh; }
}

/* LENSE module slides */
.lense-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--rm-sm);
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.lense-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.25;
  white-space: pre-line;
}
.slide-lensegrid { padding: 6vh 8vw; }
.lense-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  align-items: center;
}
.lense-cell { text-align: center; padding: 2vh 2vw; }

.slide-lensetitle, .slide-lensedetail {
  text-align: center;
  padding: 4vh 8vw;
}
.lense-block { max-width: 900px; }
.slide-lensedetail .lense-title { margin-bottom: 3.5vh; }
.lense-list p {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--rm-sm);
  line-height: 1.55;
  white-space: pre-line;
  margin-bottom: 1.6vh;
}
@media (max-width: 767px) {
  .lense-title { font-size: clamp(26px, 8vw, 34px); }
  .lense-list p { font-size: 12px; margin-bottom: 1.2vh; }
}

/* Contacts v3: two columns on desktop, stacked on mobile; name/email/phone */
.slide-contacts .contact-cols {
  display: flex;
  gap: 10vw;
  justify-content: center;
}
.slide-contacts .person { text-align: center; }
@media (max-width: 767px) {
  .slide-contacts .contact-cols { flex-direction: column; gap: 5vh; }
}

/* Lense overview grid on mobile: all four fit one screen */
@media (max-width: 767px) {
  .slide-lensegrid { padding: 4vh 3vw; }
  .lense-grid .lense-title { font-size: clamp(14px, 4.6vw, 20px); }
  .lense-grid .lense-label { font-size: 10px; margin-bottom: 8px; }
  .lense-cell { padding: 1.5vh 1vw; }
}
