/* ==========================================================================
   Kalibr — /start
   Work with us. One job: turn a tap from a bio link into a qualified call.

   TYPE. Kalibr's own stack, unchanged from the homepage: Archivo display,
   Instrument Sans body, JetBrains Mono labels. Distinctiveness here comes from
   the 3D mark and the motion, not from borrowing someone else's typography.

   STANDALONE. Does not use styles-v11.css. That file is 53KB, render-blocking,
   and the homepage LCP is already over budget; this page carries only its own.
   The :root token block is copied from it and must be kept in sync by hand.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/archivo-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/archivo-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/instrument-sans-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/instrument-sans-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/jetbrains-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0A0A0B;
  --void: #050506;          /* deeper than the homepage: the 3D mark needs somewhere to sit */
  --ink-3: #111113;
  --white: #FFFFFF;
  --green: #0F9D58;
  --green-hi: #1DBE72;
  --green-glow: rgba(15, 157, 88, 0.35);
  --grey: #A6ADB4;
  --grey-2: #6D737A;
  --line-d: rgba(255, 255, 255, 0.08);
  --font-d: 'Archivo', system-ui, sans-serif;
  --font-b: 'Instrument Sans', system-ui, sans-serif;
  --font-m: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: #fff; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* Film grain. A flat dark page reads as an empty div; a very slightly noisy
   one reads as a photograph. Generated, so it costs no request. */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Micro-label with the calibration index mark ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-m); font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--green);
}
.eyebrow::before {
  content: ''; flex: none; width: 12px; height: 11px;
  background:
    linear-gradient(var(--green) 0 0) 0    50% / 1.5px 5px  no-repeat,
    linear-gradient(var(--green) 0 0) 50%  50% / 1.5px 11px no-repeat,
    linear-gradient(var(--green) 0 0) 100% 50% / 1.5px 5px  no-repeat;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 30px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(var(--void) 30%, rgba(5, 5, 6, 0));
}
.nav-mark { display: flex; align-items: center; gap: 11px; letter-spacing: 0.34em; color: var(--white); }
.nav-mark svg { width: 21px; height: 21px; display: block; }
.nav-meta { color: var(--grey); text-align: right; line-height: 1.8; }
.nav-meta b { display: block; font-weight: 500; color: var(--green); letter-spacing: 0.2em; }
@media (max-width: 700px) { .nav-meta span { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; z-index: 2; padding: 150px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

/* One dramatic light source behind the mark, the way a product shot is lit. */
.hero-key {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -140px; top: -220px;
  background: radial-gradient(circle, rgba(15, 157, 88, 0.30) 0%, rgba(15, 157, 88, 0.07) 38%, rgba(15, 157, 88, 0) 66%);
  filter: blur(20px);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 62% 42%, rgba(255, 255, 255, 0.045), transparent 70%);
}

.hero h1 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(42px, 6.6vw, 92px);
  line-height: 0.96; letter-spacing: -0.038em;
  margin: 26px 0 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-hi);
  /* The italic serif is the single most expressive thing on the page, so the
     one emphasised word carries the whole brand voice. */
}
.hero-sub {
  max-width: 32em; margin-top: 26px;
  font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.66; color: var(--grey);
}
.hero-sub b { color: var(--white); font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grey);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta i { width: 4px; height: 4px; border-radius: 1px; background: var(--green); font-style: normal; }

/* ---- The 3D mark ---- */
.mark-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.mark-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .9s var(--ease-out);
}
.mark-stage canvas.is-live { opacity: 1; }
/* The flat mark holds the space and is what everyone sees until (and unless)
   WebGL is available. It fades out only once the 3D canvas is actually live. */
.mark-flat {
  width: min(230px, 46%); height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
  transition: opacity .7s var(--ease-out);
}
.mark-stage.is-3d .mark-flat { opacity: 0; }
.mark-floor {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  width: 62%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 190, 114, 0.55), transparent);
}
.mark-floor::after {
  content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 90px;
  background: linear-gradient(rgba(15, 157, 88, 0.13), transparent 72%);
  filter: blur(14px);
}

/* ---- Buttons ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  padding: 18px 32px; border-radius: 999px; border: 1px solid transparent;
  /* 19px/600 is not styling: white on --green is 3.5:1, under the 4.5:1 AA bar
     for normal text, and --green is a brand token. At >=18.66px bold WCAG
     scores it as large text, where 3:1 passes. */
  font-family: var(--font-d); font-weight: 700; font-size: 19px;
  letter-spacing: -0.005em; cursor: pointer;
  transition: transform .3s var(--ease-out), background-color .3s ease, border-color .3s ease;
}
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-hi); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.22); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.05); }
.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; z-index: 2; padding: 104px 0; }
.rule { height: 1px; background: var(--line-d); }

.sec-head { max-width: 760px; }
.sec-head h2 {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.04;
  letter-spacing: -0.032em; margin-top: 20px;
}
.sec-head h2 em { font-style: normal; color: var(--green-hi); }
.sec-head p { margin-top: 20px; font-size: 18px; line-height: 1.66; color: var(--grey); max-width: 40em; }

/* ---- The three proofs ---- */
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 58px; background: var(--line-d); }
.proof {
  background: var(--void); padding: 38px 32px 42px;
  transition: background-color .4s ease;
}
.proof:hover { background: #0B0C0D; }
.proof-n { font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em; color: var(--green); }
.proof h3 {
  font-family: var(--font-d); font-weight: 600; font-size: 23px;
  line-height: 1.18; letter-spacing: -0.02em; margin: 20px 0 14px;
}
.proof p { font-size: 16px; line-height: 1.68; color: var(--grey); }
.proof p + p { margin-top: 12px; }
.proof q {
  display: block; margin-top: 18px; padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-d); font-style: italic; font-size: 17px;
  line-height: 1.5; color: var(--grey-2); quotes: none;
}

/* ---- Clock ---- */
.clock { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.clock-fig {
  font-family: var(--font-d); font-weight: 700; font-size: clamp(66px, 10vw, 138px);
  line-height: 0.84; letter-spacing: -0.05em; color: var(--green-hi);
}
.clock-fig small { display: block; font-family: var(--font-m); font-size: 11px; letter-spacing: 0.2em; color: var(--grey-2); margin-top: 18px; text-transform: uppercase; }
.clock-body p { font-size: 18px; line-height: 1.66; color: var(--grey); max-width: 34em; }
.clock-body p + p { margin-top: 14px; }
.src { display: block; margin-top: 20px; font-family: var(--font-m); font-size: 11px; letter-spacing: 0.06em; color: var(--grey-2); }
.src a { color: var(--grey); border-bottom: 1px solid var(--line-d); }
.src a:hover { color: var(--green-hi); }

/* ==========================================================================
   The brief
   ========================================================================== */
.form-shell {
  border: 1px solid var(--line-d); border-radius: 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  padding: clamp(26px, 4vw, 50px);
  max-width: 880px; margin-top: 46px;
}

.steps { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.step-dot {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-m); font-size: 12px; color: var(--grey);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.step-dot.is-on { background: var(--white); border-color: var(--white); color: var(--ink); }
.step-dot.is-done { background: var(--green); border-color: var(--green); color: var(--white); }
.step-bar { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.14); position: relative; overflow: hidden; }
.step-bar i { position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.step-bar.is-filled i { transform: scaleX(1); }

.fstep { display: none; }
.fstep.is-active { display: block; }

.field { margin-bottom: 24px; }
.field > label, .fieldset-label {
  display: block; margin-bottom: 11px;
  font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey);
}
.opt { color: var(--grey-2); letter-spacing: 0.06em; text-transform: none; }
.req { color: var(--green-hi); }

.input {
  width: 100%; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 13px;
  font-size: 16px; /* 16px stops iOS zooming the page on focus */
  transition: border-color .25s ease, background-color .25s ease;
}
.input::placeholder { color: var(--grey-2); }
.input:focus {
  outline: none; border-color: var(--green);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.14);
}
textarea.input { min-height: 150px; resize: vertical; line-height: 1.6; }
.input.is-bad { border-color: #E5534B; }
.err { display: none; margin-top: 9px; font-size: 13.5px; color: #E5534B; }
.err.is-on { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Native controls are kept and only visually replaced, so keyboard and screen
   readers keep working. */
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 13px;
  font-size: 15.5px; color: var(--grey);
  transition: border-color .22s ease, color .22s ease, background-color .22s ease;
}
.choice span::before {
  content: ''; flex: none; width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color .22s ease, border-color .22s ease;
}
.choice input:checked + span { border-color: var(--green); color: var(--white); background: rgba(15, 157, 88, 0.1); }
.choice input:checked + span::before {
  background: var(--green); border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.choice input:focus-visible + span { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.choices--plain .choice span { justify-content: center; text-align: center; font-weight: 500; }
.choices--plain .choice span::before { display: none; }

.form-nav { display: flex; gap: 12px; margin-top: 36px; }
.form-nav .btn { flex: 1; justify-content: center; }
.form-nav .btn--ghost { flex: 0 0 auto; }
.form-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13.5px; color: var(--grey); }
.form-err {
  display: none; margin-top: 20px; padding: 15px 17px;
  border: 1px solid rgba(229, 83, 75, 0.4); border-radius: 13px;
  background: rgba(229, 83, 75, 0.08); font-size: 15px; color: #F0A9A4;
}
.form-err.is-on { display: block; }

.form-done { display: none; text-align: center; padding: 30px 0 10px; }
.form-done.is-on { display: block; }
.form-done .tick {
  width: 60px; height: 60px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(15, 157, 88, 0.14); border: 1px solid var(--green);
  color: var(--green-hi); font-size: 26px;
}
.form-done h3 { font-family: var(--font-d); font-weight: 700; font-size: 30px; letter-spacing: -0.015em; margin-bottom: 14px; }
.form-done p { color: var(--grey); max-width: 42em; margin: 0 auto; }
.form-done .call { margin-top: 24px; font-family: var(--font-m); font-size: 13px; letter-spacing: 0.06em; color: var(--grey); }
.form-done .call a { color: var(--green-hi); }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-d); padding: 36px 0 48px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--grey);
}
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.foot a:hover { color: var(--green-hi); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mark-stage { order: -1; aspect-ratio: 4 / 3; }
  .proofs { grid-template-columns: 1fr; }
  .clock { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 128px 0 72px; }
  .section { padding: 76px 0; }
  .grid-2, .choices--2 { grid-template-columns: 1fr; }
  .form-nav { flex-direction: column-reverse; }
  .form-nav .btn { width: 100%; }
  .nav { padding: 18px 20px; }
  .proof { padding: 30px 24px 34px; }
}

/* ==========================================================================
   Motion-gated initial states. Applied only once JS confirms motion is on, so
   if the scripts never load the page renders complete and static.
   Nothing in the hero is opacity-gated: an opacity:0 element is invisible to
   LCP, which is how the homepage once measured 5.3s.
   ========================================================================== */
html.motion-ok [data-rv] { opacity: 0; transform: translateY(26px); }
html.motion-ok .eyebrow::before { background-size: 1.5px 0, 1.5px 0, 1.5px 0; }
html.motion-ok .eyebrow.is-lit::before { animation: kcalibrate 0.62s var(--ease-out) forwards; }

@keyframes kcalibrate {
  0%   { background-size: 1.5px 0,   1.5px 0,    1.5px 0; }
  55%  { background-size: 1.5px 5px, 1.5px 5px,  1.5px 5px; }
  100% { background-size: 1.5px 5px, 1.5px 11px, 1.5px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.motion-ok [data-rv] { opacity: 1; transform: none; }
  html.motion-ok .eyebrow::before { background-size: 1.5px 5px, 1.5px 11px, 1.5px 5px; }
  .grain { display: none; }
}
