/* Scalr Ventures LLC — scalrventures.com
   Static implementation of the "Scalr Ventures.dc.html" design. */

:root {
  --paper: #EDEDF7;
  --paper-2: #F5F5FA;
  --ink: #0C0C12;
  --blue: #2A2AE0;
  --mute: #4A4A5A;
  --mute-2: #5A5A70;
  --mute-3: #6A6A7C;
  --hairline: rgba(12, 12, 18, 0.18);

  --sans: 'Space Grotesk', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1600px;
  --gutter: clamp(16px, 3vw, 44px);
  --header-h: 58px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------------- base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-wrap: pretty;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--blue); }

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

img { max-width: 100%; }

.page { position: relative; width: 100%; }

/* ------------------------------------------------------------ keyframes -- */

@keyframes svFade   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes svMarquee{ from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes svPulse  { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes svBreathe{ 0% { opacity: .72; transform: translateY(-46%) scale(1); } 100% { opacity: 1; transform: translateY(-46%) scale(1.1); } }
@keyframes svBob    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ------------------------------------------------------------ primitives -- */

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.dot--sm  { width: 5px; height: 5px; }
.dot--lg  { width: 9px; height: 9px; }
.dot--blue,
.dot--pulse { width: 6px; height: 6px; background: var(--blue); }
.dot--pulse { animation: svPulse 2.4s ease-in-out infinite; }

.eyebrow {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A9AEE0;
}
.eyebrow--cool { color: #9E9EBC; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(237, 237, 247, 0.72);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 13px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__logo { display: flex; align-items: center; text-decoration: none; }
.site-header__logo img {
  height: clamp(30px, 3.2vw, 42px);
  width: auto;
  display: block;
}

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: 999px;
  text-decoration: none;
}

.pill--live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid rgba(12, 12, 18, 0.14);
  padding: 9px 14px;
}
@media (max-width: 720px) { .pill--live { display: none; } }

.pill--lang {
  background: rgba(12, 12, 18, 0.06);
  border: 0;
  padding: 10px 15px;
  cursor: pointer;
  color: var(--ink);
  transition: background .25s ease;
}
.pill--lang:hover { background: rgba(12, 12, 18, 0.14); }

.pill--cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 17px;
  transition: background .25s ease, color .25s ease;
}
.pill--cta:hover { background: var(--blue); color: #fff; }

.progress { height: 1px; background: rgba(12, 12, 18, 0.1); }
.progress__bar { height: 1px; width: 0%; background: var(--blue); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  height: min(calc(100vh - var(--header-h)), 940px);
  height: min(calc(100svh - var(--header-h)), 940px);
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 4.5vw, 64px) clamp(24px, 4vw, 72px);
  animation: svFade 1s var(--ease-soft) both;
}
.hero__layer--a { clip-path: inset(0 50% 0 0); color: var(--blue); animation-delay: .1s; }
.hero__layer--b { clip-path: inset(0 0 0 50%); color: var(--ink);  animation-delay: .22s; }

.hero__type {
  margin: 0;
  width: 100%;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  transform: skewY(-3.5deg);
  transform-origin: 50% 50%;
  transition: transform .6s var(--ease-out);
}

.hero__line {
  display: block;
  white-space: nowrap;
  line-height: 0.84;
  text-align: center;
}
.hero__word { display: inline-block; }

.hero__seam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(12, 12, 18, 0.16);
  z-index: 2;
}

.hero__vlabel {
  position: absolute;
  left: clamp(10px, 1.6vw, 22px);
  top: clamp(40px, 8vw, 110px);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-2);
  z-index: 3;
}

.hero__meta {
  position: absolute;
  left: clamp(24px, 4vw, 72px);
  right: clamp(24px, 4vw, 72px);
  bottom: clamp(16px, 2.4vw, 30px);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-2);
  animation: svFade 1s ease .8s both;
}
.hero__meta-item { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.arrow { display: inline-block; animation: svBob 2.2s ease-in-out infinite; }

/* Single-layer hero on narrow screens — the split reads as noise below ~760px. */
@media (max-width: 759.98px) {
  .hero__layer--a { clip-path: none; }
  .hero__layer--b,
  .hero__seam { display: none; }
  .hero__type { transform: skewY(-2deg); }
}

/* ------------------------------------------------------------------ lead -- */

.lead {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) var(--gutter) clamp(10px, 2vw, 20px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 60px);
  align-items: start;
}
.lead__headline {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(19px, 2.1vw, 31px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.lead__sub {
  margin: 0;
  max-width: 42ch;
  font-family: var(--mono);
  font-size: clamp(11.5px, 1vw, 13.5px);
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--mute);
}

/* --------------------------------------------------------------- marquee -- */

.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(14px, 1.8vw, 26px) 0;
  margin-top: clamp(20px, 3vw, 40px);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: svMarquee 34s linear infinite;
  will-change: transform;
}
.marquee__run {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(30px, 5.4vw, 86px);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-weight: 500;
}
.marquee__dot { font-size: 0.3em; color: var(--blue); }
.marquee__ghost { -webkit-text-stroke: 1px #6A6A88; color: transparent; }

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

.ventures {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 120px) var(--gutter) 0;
}
.ventures__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 38px);
}
.ventures__title {
  margin: 0;
  font-size: clamp(40px, 8.4vw, 128px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.ventures__note {
  margin: 0 0 10px;
  max-width: 30ch;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mute);
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  color: var(--paper);
  min-height: clamp(460px, 74vh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .6s var(--ease-out);
}
.card--jobscalr {
  background: linear-gradient(118deg, #070E2C 0%, #0E1C50 46%, #1A1A5C 100%);
  margin-bottom: clamp(14px, 1.6vw, 22px);
}
.card--adscalr { background: var(--ink); }

.card__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(139, 92, 246, 0.42), rgba(139, 92, 246, 0) 52%),
    radial-gradient(circle at 6% 88%, rgba(37, 99, 235, 0.34), rgba(37, 99, 235, 0) 58%);
}
.card__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background: repeating-radial-gradient(circle at 92% 64%, rgba(190, 205, 255, 0.10) 0 1px, rgba(190, 205, 255, 0) 1px 96px);
}
.card__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  left: 0;
  top: 0;
  margin: -320px 0 0 -320px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(circle at 50% 50%, rgba(120, 120, 255, 0.3), rgba(120, 120, 255, 0) 62%);
}
.card__shot { position: absolute; inset: -8% 0; z-index: 0; }
.card__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top,
    rgba(6, 6, 10, 0.94) 0%,
    rgba(6, 6, 10, 0.72) 34%,
    rgba(6, 6, 10, 0.18) 70%,
    rgba(6, 6, 10, 0.30) 100%);
}

.card__body {
  position: relative;
  z-index: 3;
  padding: clamp(22px, 3.4vw, 58px);
  display: grid;
}
.card__body--jobscalr {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 3vw, 56px);
  align-items: center;
}
.card__body--adscalr {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.6vw, 52px);
  align-items: end;
}

/* Deliberately NOT position:relative — the breathe blob anchors to the card. */
.card__col { }

.card__breathe {
  position: absolute;
  left: -14%;
  top: 50%;
  width: min(760px, 72vw);
  height: min(760px, 72vw);
  transform: translateY(-46%);
  pointer-events: none;
  filter: blur(10px);
  animation: svBreathe 9s ease-in-out infinite alternate;
  background: radial-gradient(circle at 50% 50%,
    rgba(150, 110, 255, 0.45), rgba(120, 110, 255, 0.14) 42%, rgba(120, 110, 255, 0) 68%);
}
.card__breathe--cool {
  background: radial-gradient(circle at 50% 50%,
    rgba(124, 124, 255, 0.42), rgba(124, 124, 255, 0.12) 42%, rgba(124, 124, 255, 0) 68%);
}

.card__name {
  margin: 14px 0 0;
  position: relative;
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.card__desc {
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.015em;
  color: #E4E4F2;
}
.card__body--adscalr .card__desc { margin-top: 0; }

.card__facts {
  list-style: none;
  padding: 0;
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #A8A8C4;
}
.card__facts li { border-top: 1px solid rgba(237, 237, 247, 0.18); padding: 11px 0; }
.card__facts li:last-child { border-bottom: 1px solid rgba(237, 237, 247, 0.18); }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(237, 237, 247, 0.34);
  border-radius: 999px;
  padding: 13px 21px;
  color: var(--paper);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.card__link:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.card__body--adscalr .card__link { margin-top: clamp(18px, 2vw, 30px); }

.phones {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  justify-content: center;
  align-items: flex-end;
}
.phone {
  flex: 0 1 240px;
  max-width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(237, 237, 247, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone--up   { transform: translateY(-14px); }
.phone--down { transform: translateY(14px); }

/* ------------------------------------------------------------ capability -- */

.caps {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 140px) var(--gutter) clamp(30px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(22px, 4vw, 80px);
  align-items: start;
}
.caps__aside { position: sticky; top: 96px; }
.caps__title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.caps__sub {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
  max-width: 34ch;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.8;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mute);
}
.caps__list { display: grid; gap: 0; }

.cap {
  border-top: 1px solid var(--hairline);
  padding: clamp(20px, 2.6vw, 34px) 0;
  transition: padding-left .45s var(--ease-out);
}
.cap--last { border-bottom: 1px solid var(--hairline); }
.cap:hover { padding-left: 14px; }
/* The reveal state also animates opacity/transform on this element; a second
   `transition` declaration would replace this one wholesale, so both live here. */
.cap.is-reveal {
  transition: opacity .8s ease, transform .8s var(--ease-out), padding-left .45s var(--ease-out);
}

.cap__num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--mute-3); }
.cap__title {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.cap__text {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.45;
  color: #2A2A38;
}
.cap__proof {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ------------------------------------------------------------------- how -- */

.how {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(64px, 12vw, 180px) var(--gutter);
}
.how__inner { max-width: var(--shell); margin: 0 auto; }
.how__label {
  margin: 0 0 clamp(24px, 3.5vw, 52px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8C8CA4;
  font-weight: 400;
}
.how__copy {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(22px, 3.6vw, 62px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.how__copy [data-word] { color: rgba(237, 237, 247, 0.22); transition: color .35s ease; }
.how__copy [data-word].is-lit { color: var(--paper); }

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

.contact {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 140px) var(--gutter) clamp(40px, 6vw, 100px);
}
.contact__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(38px, 7.4vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.contact__text {
  margin: clamp(20px, 2.5vw, 34px) 0 clamp(26px, 3vw, 44px);
  max-width: 44ch;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.45;
  color: #2A2A38;
}
.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  font-size: clamp(18px, 3vw, 48px);
  letter-spacing: -0.04em;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: clamp(14px, 1.6vw, 26px) clamp(22px, 2.6vw, 44px);
  transition: background .35s ease, color .35s ease, transform .35s var(--ease-out);
}
.contact__mail:hover { background: var(--blue); color: #fff; }
.contact__todo {
  margin: 26px 0 0;
  max-width: 52ch;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute-3);
}

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

.site-footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--gutter) 44px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.site-footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- reveal -- */

.is-reveal { opacity: 0; transform: translateY(26px); }
.is-reveal:not(.cap) { transition: opacity .8s ease, transform .8s var(--ease-out); }
.is-reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-reveal { opacity: 1 !important; transform: none !important; }
  .how__copy [data-word] { color: var(--paper) !important; }
}

/* --------------------------------------------------------------- imprint -- */

.doc {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 100px);
}
.doc h1 {
  margin: 0 0 clamp(20px, 3vw, 36px);
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 500;
}
.doc h2 {
  margin: clamp(28px, 4vw, 48px) 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.doc p { margin: 0 0 12px; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.55; color: #2A2A38; }
.doc__todo {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute-3);
}
.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 13px 21px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.doc__back:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
