/* ==========================================================================
   Joox.vc — site stylesheet

   The Naturally Artificial system, kept on its own black page: Boldonse for
   the wordmark and titles, Inter for everything read at length; black, the
   one blue, white and grey. There are no floral shapes or illustrations
   here. The decoration is the blue slab with black type on it — under a
   block, a button, an accent, or behind the one photograph.
   ========================================================================== */

/* ---------- Fonts ----------
   Self-hosted. Nothing is requested from a third party on any page view. */

@font-face {
  font-family: "Boldonse";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/boldonse-latin.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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.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;
}

/* only fetched if someone types Cyrillic into the form */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Tokens ---------- */

:root {
  /* the palette, exactly as the Naturally Artificial guidelines give it */
  --black: #101010;
  --blue: #4bbaff;
  --white: #ffffff;
  --gray: #7b7a7d;

  --bg: var(--black);
  --fg: #f4f4f4;
  /* The guide's grey is 4.3:1 on the black — fine for a rule or a
     placeholder, short of AA for a paragraph. Running text takes this
     lighter tint. Black type on the blue slab is 8.8:1. */
  --muted: #a9a9ab;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --surface: #191919;
  --danger: #ff8a80;
  --danger-edge: #ff6b5e;

  --font-display: "Boldonse", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1360px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--blue);
  color: var(--black);
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 8vw, 128px);
}

.section--flush-top {
  padding-top: 0;
}

.rule {
  border-top: 1px solid var(--line);
}

/* The page's one grid: something on the left, the reading on the right.
   The logo and its paragraph, the photograph and its text, the form's
   heading and the form all sit on the same two columns. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
}

.split--center {
  align-items: center;
}

.split__head--sticky {
  position: sticky;
  top: 32px;
}

.split__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 36px);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  /* Boldonse is drawn loose; the wordmark and titles set it tight */
  letter-spacing: -0.035em;
  /* Boldonse is tall: capitals rise 1.2em above the baseline and descenders
     drop 0.3em below it, so anything under 1.5 lands the "p" of one line on
     the capital of the next */
  line-height: 1.56;
  text-wrap: balance;
}

.display--lg {
  font-size: clamp(32px, 4.8vw, 68px);
}

.display--md {
  font-size: clamp(26px, 3.4vw, 48px);
}

/* The accent: a blue slab with black type */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip + .display {
  margin-top: 12px;
}

.display + .lead {
  margin-top: 14px;
}

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 58ch;
  text-wrap: pretty;
}

.lead--bright {
  color: var(--fg);
}

/* long-form copy: the privacy page */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 56px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.prose ul {
  margin-top: 6px;
  padding-left: 22px;
  list-style: disc;
}

.prose li::marker {
  color: var(--gray);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--blue);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--white);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

/* for the blue slab, where the primary would vanish */
.btn--dark {
  background: var(--black);
  color: var(--white);
}

.btn--dark:hover {
  background: #2a2a2a;
}

/* ---------- Top bar ----------
   The logo is the word "joox.vc" set in Boldonse. On the home page the one
   action a founder came for sits beside it. */

.topbar {
  padding-block: clamp(18px, 2vw, 28px);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.3;
}

/* ---------- First screen ----------
   One claim carries the screen. Under it, who stands behind the claim and
   what to do next; then the facts, set out as a line of specifications
   rather than a paragraph. */

.hero {
  padding-top: clamp(28px, 5.5vw, 84px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.hero__title {
  font-size: clamp(38px, 8.6vw, 126px);
  line-height: 1.5;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-top: clamp(6px, 1vw, 14px);
}

.hero__lead {
  max-width: 37em;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__row .split__cta {
  margin-top: 0;
}

.specs {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 2.5fr 1.7fr;
  gap: 0 clamp(20px, 3vw, 48px);
  margin-top: clamp(36px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.specs > div {
  padding-top: clamp(16px, 1.8vw, 24px);
}

.specs dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.specs dd {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.55vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.56;
  text-wrap: balance;
}

/* ---------- Meet Sergey ----------
   The one photograph on the site: the cut-out from the Naturally Artificial
   home page, standing on a blue slab with his head clear of its top edge.
   The figure is as wide as the slab, so the frame's cuts through his sleeve
   and hands land on the slab's own edges. */

.portrait {
  position: relative;
  width: min(100%, 460px);
  /* text on the left, the photograph against the right edge of the page */
  justify-self: end;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 24% 0 0 0;
  border-radius: var(--radius-lg);
  background: var(--blue);
}

/* A JPEG plus a PNG that holds only the silhouette, put back together
   here — far lighter than one transparent PNG. */
.portrait img {
  position: relative;
  width: 100%;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  -webkit-mask: url("/assets/img/sergey-mask.png") center / 100% 100% no-repeat;
  mask: url("/assets/img/sergey-mask.png") center / 100% 100% no-repeat;
}

/* ---------- The Zubr Capital slab ----------
   The one white slab on the page. Zubr Capital's logo is orange and dark
   grey, drawn for a white ground, so the whole block is that ground. */

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 80px);
  background: var(--white);
  color: var(--black);
}

.band__copy {
  flex: 1 1 16em;
}

.band__title {
  max-width: 13em;
}

.band__copy .btn {
  margin-top: clamp(20px, 2.4vw, 32px);
}

.band__logo {
  flex: none;
  display: grid;
  place-items: center;
  padding-inline: clamp(0px, 3vw, 48px);
}

.band__logo img {
  width: clamp(170px, 20vw, 280px);
}

.band :focus-visible {
  outline-color: var(--black);
}

/* ---------- Pitch form ---------- */

.contact-form {
  padding: clamp(22px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-form form {
  display: grid;
  gap: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form__optional {
  font-weight: 400;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--black);
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.contact-form textarea {
  display: block;
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder {
  color: var(--gray);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

/* an error shows at once, and twice as thick as the resting edge */
.contact-form input.invalid,
.contact-form textarea.invalid {
  border-color: var(--danger-edge);
  box-shadow: 0 0 0 1px var(--danger-edge);
  transition: none;
}

.contact-form input[type="file"] {
  padding: 10px 12px;
  font-size: 15px;
  cursor: pointer;
}

.contact-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form__hint {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-form__error {
  display: none;
  margin-top: 8px;
  font-size: 14px;
  color: var(--danger);
}

.contact-form__error.visible {
  display: block;
}

.contact-form__success {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--black);
  font-weight: 600;
}

.contact-form__success.visible {
  display: block;
}

.contact-form button[type="submit"] {
  justify-self: start;
}

.contact-form button[disabled] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* the honeypot: present for bots, absent for people */
.hp-field {
  position: absolute;
  left: -9999px;
}

/* ---------- Privacy and 404 ---------- */

.page-head {
  padding-top: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.page-head .lead {
  margin-top: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__links a {
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--blue);
}

/* ---------- Motion ----------
   Content is only held back when the script that will release it is known to
   be running — the .js class is set inline in the head — so nothing can stay
   hidden for a visitor, or a crawler, without JavaScript. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .split__head--sticky {
    position: static;
  }

  /* two short facts side by side, the two long ones each on a line of their own */
  .specs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    row-gap: 4px;
  }

  .specs > div:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  /* stacked, the face comes first and the text follows it */
  .portrait {
    width: min(78%, 380px);
    justify-self: start;
    order: -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .split__cta .btn {
    flex: 1 1 calc(50% - 6px);
    padding-inline: 14px;
  }

  .hero__row .split__cta {
    width: 100%;
  }

  .band .btn {
    width: 100%;
  }

  .band__logo {
    width: 100%;
    padding-block: 8px;
  }

  .contact-form button[type="submit"] {
    justify-self: stretch;
  }
}
