/* ──────────────────────────────────────────────────────────────
   bjoornventures.com: the company landing page.
   Black, white, one blue. Archivo + JetBrains Mono, pixel X mark.
   Tokens from projects/brand-kits/bjoorn-ventures/brand.json.
   The personal page is its own project (projects/adam-site).
   Type per the kit: headlines Archivo ExtraBold caps, big numbers Archivo
   ExtraBold, body Archivo Regular, micro labels JetBrains Mono caps +.14em.
   Finish after socialbrands.io (Adam, 2 Nov 2026): hairline cards, numbered
   section rules, pill button.
   ────────────────────────────────────────────────────────────── */
@font-face { font-family: "Archivo"; src: url("assets/fonts/Archivo-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/Archivo-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --ink:   #08080B;
  --panel: #0E0E13;
  --paper: #F2F2F5;
  --blue:  #8ECDF7;
  --blue-hover: #A6D8F9;
  --deep:  #3F9FE3;
  --line:  #24242C;
  --muted: #BFBFCC;
  --dim:   #9797A6;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --max: 1240px;
  --gutter: 16px;
  --bar: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 20px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.b { color: var(--blue); }
h1, h2, h3 { font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; margin: 0; text-wrap: balance; }
.lc { text-transform: none; } /* the small s in CEOs */

.mono { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0; }
.mono.blue { color: var(--blue); }

/* the button: pill, dark chip with the arrow, soft blue glow */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 9px 0 28px;
  background: var(--blue); color: var(--ink);
  font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px rgba(142, 205, 247, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn .arrow {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  transition: transform .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 14px 38px -8px rgba(142, 205, 247, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn:hover .arrow { transform: translateX(2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline-color: var(--paper); }
.btn.small { height: 44px; padding: 0 6px 0 18px; gap: 10px; font-size: 15px; }
.btn.small .arrow { width: 32px; height: 32px; }
.btn.small svg { width: 14px; height: 14px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(8, 8, 11, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--bar); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 24px; height: 24px; flex: none; }
.logo span { font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.logo sup { font-size: .5em; vertical-align: super; line-height: 0; }

/* hero: centred headline, then the booking box left of the vertical video. Phone: headline, video, button */
.hero { padding: 32px 0 0; overflow-x: clip; }
.hero-copy { text-align: center; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); border: 1px solid rgba(142, 205, 247, .28); background: rgba(142, 205, 247, .06); border-radius: 999px; padding: 7px 14px; margin: 0 0 16px; }
.hero h1 { font-size: 7.2vw; line-height: 1; letter-spacing: -.04em; }
.hero h1 .b { display: block; }
.hero .sub { color: var(--muted); font-size: clamp(18px, 2vw, 21px); margin: 14px 0 0; }
.hero-row { display: block; }

.clip { display: flex; flex-direction: column-reverse; gap: 10px; width: min(72vw, clamp(210px, calc((100svh - 410px) * 9 / 16), 300px)); margin: 22px auto 0; }
.clip-frame { position: relative; aspect-ratio: 9 / 16; isolation: isolate; }
.clip-frame::before { /* a soft blue halo behind the video */
  content: ""; position: absolute; z-index: -1; inset: -10% -40%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(63, 159, 227, .26), rgba(63, 159, 227, 0));
}
.clip-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; border-radius: 20px; border: 1px solid rgba(142, 205, 247, .22); }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--ink);
  border: 0; cursor: pointer;
  box-shadow: 0 10px 30px -6px rgba(142, 205, 247, .7);
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.play svg { width: 30px; height: 30px; margin-left: 3px; }
.play:hover { background: var(--blue-hover); box-shadow: 0 14px 38px -6px rgba(142, 205, 247, .85); }
.play.hide { display: none; }
.clip figcaption { text-align: center; white-space: nowrap; display: flex; justify-content: center; }
.hero-btn { margin-top: 26px; text-align: center; }
.hero-cal { display: none; }

/* load: one staggered rise, ends visible with or without motion */
.rise { animation: rise .7s var(--ease) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* numbered section rule */
.section { padding: 88px 0 0; }
.rule {
  display: flex; align-items: baseline; gap: 16px;
  padding: 22px 24px; border-radius: 22px;
  border: 1px solid rgba(142, 205, 247, .14);
  background: linear-gradient(100deg, rgba(63, 159, 227, .18), rgba(63, 159, 227, .03) 65%, rgba(63, 159, 227, 0));
}
.rule h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.04; }
.rule .mono { color: var(--blue); font-size: 12px; letter-spacing: .08em; }

/* results */
.case { padding: 56px 0; border-bottom: 1px solid var(--line); }
.case:last-child { border-bottom: 0; padding-bottom: 0; }
.case-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.case h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.02; margin: 12px 0 0; }
.case h3 .b { display: block; }
.case h3.wide { font-size: clamp(28px, 3.8vw, 46px); line-height: 1; margin-bottom: 32px; }
.sub-label { margin: 26px 0 10px; }
.case p.body { color: var(--muted); margin: 0; }
.case p.body.first { margin-top: 16px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 30px; line-height: 1.4; color: var(--paper); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(142, 205, 247, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ECDF7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 7px; font-size: 14px; line-height: 1.3; color: var(--dim); }
.stat.on b { color: var(--blue); }
.note { color: var(--muted); margin: 16px 0 0; }

/* screenshots: trimmed above the phone's tab bar, swipe on a phone */
.shots {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 60vw; max-width: 270px; margin: 0; scroll-snap-align: center; }
.shot img { width: 100%; height: auto; aspect-ratio: 640 / 1130; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 16px; background: #000; }
.shot figcaption { margin: 0 0 10px; font-size: 10.5px; letter-spacing: .1em; }

/* how it works */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 32px 0 0; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.step-top svg { width: 34px; height: 34px; display: block; }
.step-top .mono { color: var(--blue); font-size: 12px; letter-spacing: .08em; }
.step h3 { font-size: 21px; line-height: 1.05; letter-spacing: -.03em; }
.step p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 10px 0 0; }

/* book: Cal.com's own inline embed, sizes itself to the calendar so no empty space sits under it */
.book { padding: 88px 0 72px; }
.book-panel {
  border-radius: 26px; border: 1px solid rgba(142, 205, 247, .14);
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(63, 159, 227, .22), rgba(63, 159, 227, 0)),
    var(--panel);
  padding: 32px 16px 16px;
}
.book-head { padding: 0 8px; }
.book h2 { font-size: clamp(30px, 4.6vw, 50px); margin: 14px 0 0; }
.book .lead { color: var(--muted); font-size: clamp(17px, 1.8vw, 19px); margin: 14px 0 22px; }
.cal { width: 100%; min-height: 420px; }
.fallback { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--dim); }
.fallback a { color: var(--paper); text-underline-offset: 3px; }

footer { border-top: 1px solid var(--line); padding: 18px 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
footer nav { display: flex; gap: 20px; font-size: 15px; color: var(--muted); }
footer nav a { text-decoration: none; padding: 12px 0; }
footer nav a:hover { color: var(--paper); }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 5.2vw; }
  .stats.four { grid-template-columns: repeat(4, 1fr); }
  .shots { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: visible; margin: 0; padding: 0; }
  .shot { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rule { padding: 26px 32px; }
  .book-panel { padding: 44px 32px 32px; }
}
@media (min-width: 1000px) {
  .case-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .case-grid.top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .case-grid.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .case-grid.flip > .shots { order: -1; }
  .case-grid.top { align-items: start; }
  .case > .shots { margin-top: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
/* Cal.com only lays dates and times side by side above 768 px, so the box joins the hero from here */
@media (min-width: 1200px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(38px, 3.5vw, 48px); }
  .hero-row { display: flex; justify-content: center; align-items: flex-start; gap: 28px; margin-top: 22px; }
  .hero-cal { display: block; flex: none; background: var(--panel); border: 1px solid rgba(142, 205, 247, .14); border-radius: 20px; padding: 14px 14px 4px; }
  .hero-cal-head { display: flex; justify-content: space-between; gap: 16px; padding: 2px 4px 8px; }
  /* Cal.com needs 780 px to keep dates and times side by side, so the box is scaled down to sit level with the video */
  #cal-hero-clip { width: calc(780px * var(--cal-scale, .85)); min-height: 340px; overflow: hidden; }
  #cal-hero { width: 780px; transform: scale(var(--cal-scale, .85)); transform-origin: top left; }
  .clip { flex: none; flex-direction: column; gap: 12px; width: auto; margin: 0; }
  /* the video and its label always fit on the fold */
  .clip-frame { height: clamp(340px, calc(100vh - 430px), 540px); }
  .hero-btn { display: none; }
}
@media (max-width: 999px) {
  .case > .shots { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  * { transition: none !important; }
}
