/* 4 Future LLC — shared styles
   Palette: deep ink ground; colour comes only from the ventures themselves. */

:root {
  --ink: #0e1422;
  --ink-raised: #161e30;
  --paper: #eef1f6;
  --mist: #8b93a7;
  --line: #243049;

  --c-forloy: #10b981;
  --c-autoolize: #eef1f6;
  --c-kintalks: #f4b942;
  --c-duelto: #e5484d;
  --c-revenify: #01a171;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --section-gap: clamp(5rem, 12vw, 10rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--paper); color: var(--ink); }

a { color: inherit; }
img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: var(--gutter); top: 1rem; z-index: 10;
  background: var(--paper); color: var(--ink);
  padding: .5rem 1rem; border-radius: 6px;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); font-size: .9375rem; }
.site-nav a { text-decoration: none; color: var(--mist); transition: color .15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "wdth" 90;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }

.lede { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); color: var(--mist); max-width: 52ch; }

.prose > * + * { margin-top: 1.1rem; }
.prose > * { max-width: var(--measure); }
.prose h2 { margin-top: 3.25rem; font-size: clamp(1.625rem, 3vw, 2.125rem); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--paper); text-underline-offset: .2em; text-decoration-color: var(--mist); }
.prose a:hover { text-decoration-color: var(--paper); }
.prose p, .prose li { color: #c3c9d6; }
.prose strong { color: var(--paper); font-weight: 500; }

.section { padding-block: var(--section-gap); border-top: 1px solid var(--line); }
.section-title { margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); max-width: 22ch; }

/* ---------- intro: the orbit ---------- */

.intro {
  position: relative;
  min-height: calc(100svh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

/* faint dot field, fading out from the centre */
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(238, 241, 246, .11) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 42%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 55% 50% at 50% 42%, #000 20%, transparent 75%);
}

.orbit {
  position: relative;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 8;
  height: min(56svh, calc(min(100vw, 1180px) / 2));
  max-height: 56svh;
  margin-inline: auto;
}

.orbit-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orbit-rings ellipse { fill: none; stroke: rgba(139, 147, 167, .16); stroke-width: 1; }

.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(92px, 11vw, 136px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 30%;
  background: linear-gradient(160deg, #202a44 0%, #111827 70%);
  box-shadow:
    inset 0 1px 0 rgba(238, 241, 246, .14),
    inset 0 0 0 1px rgba(238, 241, 246, .07),
    0 0 0 1px #0a0f1a,
    0 40px 90px -30px rgba(124, 122, 240, .45),
    0 0 120px 10px rgba(14, 20, 34, .9);
}
.orbit-four {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.75rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 90, "opsz" 96;
  color: var(--paper);
  transform: translateY(.02em);
}

/* one slow signal leaving the core */
.orbit-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(238, 241, 246, .35);
  animation: orbit-pulse 5.5s cubic-bezier(.2, .6, .3, 1) infinite;
  pointer-events: none;
}
@keyframes orbit-pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.orbit-items { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }

.orbit-item {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  will-change: transform, opacity;
}

.orbit-item.is-venture { width: clamp(44px, 5vw, 64px); height: clamp(44px, 5vw, 64px); }
.orbit-item.is-venture img {
  width: 100%;
  height: 100%;
  border-radius: 24%;
  /* the faint ring keeps dark brand tiles from vanishing into the ink */
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(238, 241, 246, .1);
}

.orbit-item.is-tech {
  width: clamp(30px, 3.2vw, 42px);
  height: clamp(30px, 3.2vw, 42px);
  border-radius: 50%;
  background: #141c2e;
  box-shadow: inset 0 0 0 1px var(--line);
  color: #aab2c4;
}
.orbit-item.is-tech svg { width: 48%; height: 48%; }

.intro-copy { text-align: center; margin-top: clamp(2.25rem, 5vw, 3.75rem); }
.intro-copy h1 {
  font-size: clamp(2rem, min(4.4vw, 6.5svh), 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88;
  max-width: 24ch;
  margin-inline: auto;
  text-wrap: balance;
}
.intro-copy p { margin: 1rem auto 0; color: var(--mist); max-width: 44ch; font-size: clamp(1rem, 1.4vw, 1.125rem); }

@media (max-width: 640px) {
  .orbit { aspect-ratio: 1 / .92; height: auto; max-height: 60svh; }
}

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

/* ---------- hero: the four stages ---------- */


.stages { list-style: none; padding: 0; }

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  align-items: end;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(.25rem, .8vw, .6rem);
  border-bottom: 1px solid var(--line);
}

.stage-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.25rem, 10vw, 8.25rem);
  line-height: .9;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 85, "opsz" 96;
  padding-bottom: .08em;
}
.stage-word .dot { color: var(--c); }

.stage-note {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  color: var(--mist);
  font-size: .9375rem;
  line-height: 1.5;
  padding-bottom: clamp(.9rem, 2.2vw, 2rem);
}
.stage-note b {
  font-weight: 500;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}

.stage-icons { display: flex; gap: .5rem; flex-wrap: wrap; }
.stage-icons a {
  display: block;
  border-radius: 10px;
  transition: transform .18s ease;
}
.stage-icons a:hover { transform: translateY(-3px); }
.stage-icons img { width: 40px; height: 40px; border-radius: 10px; display: block; }

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero-foot .lede { color: var(--paper); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; max-width: 30ch; }
.hero-foot a {
  color: var(--mist);
  text-underline-offset: .25em;
  text-decoration-color: var(--line);
  font-size: .9375rem;
}
.hero-foot a:hover { color: var(--paper); text-decoration-color: var(--paper); }

@media (max-width: 720px) {
  .stage { grid-template-columns: 1fr; align-items: start; }
  .stage-note { padding-bottom: 1rem; }
}

/* ---------- ventures carousel ---------- */

.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

.venture {
  --brand: var(--paper);
  flex: 0 0 clamp(16rem, 31%, 23rem);
  scroll-snap-align: start;
  position: relative;
  background: var(--ink-raised);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s ease;
}
.venture::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand);
}
.venture:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 55%, var(--line)); }

.venture[data-brand="forloy"] { --brand: var(--c-forloy); }
.venture[data-brand="autoolize"] { --brand: var(--c-autoolize); }
.venture[data-brand="kintalks"] { --brand: var(--c-kintalks); }
.venture[data-brand="duelto"] { --brand: var(--c-duelto); }
.venture[data-brand="revenify"] { --brand: var(--c-revenify); }

.venture-icon { width: 48px; height: 48px; border-radius: 12px; display: block; margin-bottom: .9rem; }
.venture h3 { font-size: 1.75rem; }
.venture-kind { color: var(--brand); font-size: .875rem; font-weight: 500; }
.venture p { color: var(--mist); font-size: .9375rem; flex: 1; margin-top: .25rem; }
.venture-host {
  margin-top: 1rem;
  font-size: .875rem;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: var(--line);
  transition: text-decoration-color .15s ease;
}
.venture:hover .venture-host { text-decoration-color: var(--brand); }

.carousel-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.75rem;
}
.carousel-controls[hidden] { display: none; }

.carousel-dots { display: flex; gap: .5rem; }
.carousel-dots button {
  width: 2rem; height: 3px; padding: 0; border: 0; border-radius: 2px;
  background: var(--line); cursor: pointer; transition: background .2s ease;
}
.carousel-dots button:hover { background: var(--mist); }
.carousel-dots button[aria-selected="true"] { background: var(--paper); }

.carousel-arrows { display: flex; gap: .5rem; }
.carousel-arrow {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--paper); cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.carousel-arrow svg { width: 1.05rem; height: 1.05rem; }
.carousel-arrow:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.carousel-arrow:disabled { opacity: .3; cursor: default; }
.carousel-arrow:disabled:hover { background: transparent; border-color: var(--line); color: var(--paper); }

@media (max-width: 640px) { .venture { flex-basis: min(84%, 21rem); } }

/* ---------- why 4 future ---------- */

.record {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 90;
  color: var(--mist);
  max-width: 26ch;
}
.record strong { color: var(--paper); font-weight: 600; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}
.principle { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.principle h3 { font-size: 1.3125rem; margin-bottom: .6rem; }
.principle p { color: var(--mist); font-size: .9375rem; }

/* ---------- contact ---------- */

.contact-address {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  font-variation-settings: "wdth" 92;
  margin-block: .5rem 1.5rem;
  overflow-wrap: anywhere;
  user-select: all;
}
.contact-note { color: var(--mist); max-width: 46ch; }
.contact-note + .contact-note { margin-top: .75rem; }
.contact-note a { color: var(--paper); text-underline-offset: .2em; text-decoration-color: var(--mist); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: .875rem;
  color: var(--mist);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ---------- inner pages ---------- */

.page-head { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 88;
  max-width: 18ch;
}
.page-body { padding-bottom: var(--section-gap); }
.updated { font-size: .875rem; color: var(--mist); margin-top: 1.25rem; }

.details { border-top: 1px solid var(--line); }
.details > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: .25rem 1.5rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.details dt { color: var(--mist); }
.details dd { margin: 0; color: var(--paper); }
.details address { font-style: normal; }
@media (max-width: 560px) {
  .details > div { grid-template-columns: 1fr; }
}

.center-screen { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }
