/*
  Byte Factory website styles
  Beginner tip: most visual changes can be made in the variables below.
*/

@font-face {
  font-family: "Euclid Circular B";
  src: url("../fonts/EuclidCircularB-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Euclid Circular B";
  src: url("../fonts/EuclidCircularB-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0F4C5C;
  --mint: #34E9BA;
  --yellow: #FFE942;
  --cyan: #52E9FF;
  --lilac: #B5B0FF;
  --page-pad: clamp(24px, 8.3vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }

.mobile-break { display: none; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--teal);
  color: #fff;
  font-family: "Euclid Circular B", Arial, sans-serif;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(560px, min(800px, 100svh));
  padding: clamp(24px, 4.2vw, 60px);
  background: #fff;
  color: var(--teal);
  font-family: "Euclid Circular B", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}
.hero::before,
.founders::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/bit-pattern_byte-factory_background-4.png") center top / max(100%, 800px) auto repeat-y;
  opacity: .25;
  pointer-events: none;
}
.hero > *, .founders > * { position: relative; }
.hero__logo-link { display: block; width: fit-content; line-height: 0; }
.hero__logo, .footer__logo { display: block; width: clamp(110px, 12.4vw, 179px); height: auto; flex: none; }
.hero__body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 6vw, 60px) clamp(0px, 4.2vw, 60px) clamp(0px, 4.2vw, 60px); }
.hero__content { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 32px); width: fit-content; max-width: 100%; margin-left: auto; }
.hero__title { margin: 0; text-transform: lowercase; font-weight: 700; font-size: clamp(56px, 12.5vw, 180px); line-height: .89; }
.hero__title span { display: block; }
.hero__title .hero__line--offset { margin-left: -.63em; }
.hero__tagline { margin: 0 0 12px; font-size: clamp(22px, 2.5vw, 36px); font-weight: 700; line-height: 1.2; }
.hero__sub { margin: 0; max-width: min(700px, 48.6vw); font-size: clamp(17px, 1.95vw, 28px); font-weight: 400; line-height: 1.7; }

/* ---------- Connection graphic ---------- */
.supersign-divider {
  position: relative;
  z-index: 4;
  height: 0;
  pointer-events: none;
}
.supersign-divider img {
  position: absolute;
  top: clamp(-330px, -23vw, -160px);
  left: clamp(-100px, -5vw, -24px);
  display: block;
  width: clamp(420px, 45vw, 650px);
  height: auto;
}
.heading__tail {
  display: inline-block;
  margin-left: -.02em;
  letter-spacing: -.12em;
}

/* ---------- 2. Solutions ---------- */
.solutions { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; padding: var(--page-pad); background: var(--teal); color: #fff; font-family: "Euclid Circular B", "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
.solutions__inner { display: flex; flex-direction: column; gap: clamp(16px, 1.7vw, 24px); width: fit-content; max-width: 100%; margin-left: auto; }
.solutions__title, .build__title, .bridge__title, .protect__title, .intro__title { margin: 0; font-size: clamp(48px, 11.1vw, 160px); font-weight: 700; line-height: 1.1; overflow-wrap: break-word; }
.solutions__text, .build__text, .bridge__text, .protect__text, .intro__text { display: flex; flex-direction: column; gap: 12px; }
.solutions__tagline, .build__tagline, .bridge__tagline, .protect__tagline, .intro__tagline { margin: 0; font-size: clamp(22px, 2.5vw, 36px); font-weight: 700; line-height: 1.2; }
.solutions__list, .build__desc, .bridge__desc, .protect__desc, .intro__desc { margin: 0; max-width: 700px; font-size: clamp(17px, 1.95vw, 28px); font-weight: 400; line-height: 1.7; }
.solutions__list span { display: block; }

/* ---------- 3-5. Content sections ---------- */
.build, .bridge, .protect { --pad: var(--page-pad); position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; padding: var(--pad); color: var(--teal); font-family: "Euclid Circular B", "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
.build { background: var(--yellow); }
.bridge { background: var(--cyan); }
.protect { background: var(--lilac); }
.build__inner, .bridge__inner, .protect__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(16px, 1.7vw, 24px); max-width: 100%; }
.bridge__inner { width: fit-content; margin-left: auto; }
.build__deco, .bridge__deco, .protect__deco { position: absolute; z-index: 0; margin: 0; opacity: .10; color: transparent; -webkit-text-stroke: 2.8px #000; text-stroke: 2.8px #000; font-size: clamp(120px, 27.8vw, 400px); font-weight: 700; letter-spacing: -.04em; font-kerning: normal; line-height: 1.2; white-space: nowrap; pointer-events: none; user-select: none; }
.build__deco { left: 49.3%; top: 5.6vw; }
.bridge__deco { left: 9.7%; top: 5.6vw; }
.protect__deco { left: 43.4%; top: 7.3vw; }

/* ---------- 6. Founders ---------- */
.founders { --bar: clamp(28px, 2.36vw, 34px); position: relative; padding: var(--page-pad) 0; background: #fff; color: var(--teal); font-family: "Euclid Circular B", "Helvetica Neue", Arial, sans-serif; overflow: hidden; }
.founders__wrap { max-width: 1440px; margin: 0 auto; }
.intro { display: flex; flex-direction: column; gap: clamp(16px, 1.7vw, 24px); width: fit-content; max-width: 100%; margin-left: auto; padding-right: var(--page-pad); }
.intro__desc { max-width: min(700px, 48.6vw); }
.person { position: relative; display: flex; align-items: flex-end; }
.person::after { content: ""; position: absolute; bottom: 0; height: var(--bar); background: var(--mint); }
.person > * { position: relative; z-index: 1; }
.person__text { padding-bottom: calc(var(--bar) + 2.2vw); }
.person__role { margin: 0; font-size: clamp(18px, 2.5vw, 36px); font-weight: 400; line-height: 1.2; }
.person__name { margin: 0; font-size: clamp(28px, 5vw, 72px); font-weight: 700; line-height: 1.1; text-transform: capitalize; }
.person__img { display: block; height: auto; flex: none; }
.person--kristin { margin-top: -6.1vw; }
.person--kristin::after { left: calc((100% - 100vw) / 2); width: 58.33vw; }
.person--kristin .person__img { order: -1; width: 23.7%; margin-left: 3.33%; }
.person--kristin .person__text { margin-left: 3.75%; }
.person--jan { margin-top: -6.6vw; }
.person--jan::after { right: calc((100% - 100vw) / 2); width: 58.33vw; }
.person--jan .person__img { width: 24.3%; margin-left: auto; margin-right: 2.43%; }
.person--jan .person__text { margin-left: 42.5%; }


/* ---------- Wide desktop content alignment ---------- */
@media (min-width: 1441px) {
  .hero {
    padding-left: clamp(24px, 4.2vw, 60px);
    padding-right: calc((100vw - 1440px) / 2 + clamp(24px, 4.2vw, 60px));
  }
  .hero__body { padding-left: 0; padding-right: 0; }
  .supersign-divider img {
    left: calc((100vw - 1440px) / 2);
    width: min(45vw, 620px);
  }
  .bridge__deco {
    left: calc((100vw - 1440px) / 2 + var(--page-pad));
  }
  .solutions, .build, .bridge, .protect {
    padding-left: calc((100vw - 1440px) / 2 + var(--page-pad));
    padding-right: calc((100vw - 1440px) / 2 + var(--page-pad));
  }
}

/* ---------- 7. Footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: clamp(16px, 2.5vw, 32px) 32px; width: 100%; padding: clamp(24px, 4.2vw, 60px); background: var(--teal); color: #fff; font-family: "Euclid Circular B", "Helvetica Neue", Arial, sans-serif; }
.footer__text { margin: 0; font-size: clamp(15px, 1.95vw, 28px); line-height: 1.7; text-align: right; }
.footer__text strong { font-weight: 700; }
.footer__text a { color: inherit; text-decoration: none; }
.footer__text a:hover, .footer__text a:focus-visible { text-decoration: underline; }

@media (max-width: 700px) {
  .hero {
    min-height: 0;
    padding-bottom: clamp(110px, 25vw, 145px);
  }
  .hero__body {
    flex: none;
    justify-content: flex-start;
    padding-top: clamp(64px, 16vw, 100px);
    padding-bottom: 0;
  }
  .hero__title .hero__line--offset { margin-left: 0; }
  .hero__sub, .intro__desc { max-width: none; }
  .supersign-divider img {
    top: clamp(-70px, -12vw, -40px);
    left: 50%;
    width: min(82vw, 380px);
    transform: translateX(-50%);
  }
  .solutions { padding-top: clamp(225px, 60vw, 300px); }
  .build, .bridge, .protect { padding-top: clamp(180px, 42vw, 300px); }
    .founders {
    padding-top: clamp(100px, 22vw, 170px);
    padding-bottom: clamp(72px, 16vw, 120px);
  }
  .mobile-break { display: block; }
  .build__deco, .bridge__deco, .protect__deco {
    left: auto;
    right: var(--page-pad);
    margin-right: -.08em;
    top: clamp(18px, 4vw, 32px);
    -webkit-text-stroke: 1.8px #000;
    text-stroke: 1.8px #000;
  }
  .intro { width: 100%; padding-left: var(--page-pad); }
  .person { flex-direction: column; align-items: stretch; margin-top: clamp(32px, 9vw, 56px); }
  .person::after { height: var(--bar); }
  .person__text { padding: 0 var(--page-pad) clamp(12px, 4vw, 24px); margin: 0; }
  .person__role { font-size: clamp(17px, 1.95vw, 28px); }
  .person__name { font-size: clamp(22px, 2.5vw, 36px); }
  .person--kristin, .person--jan { margin-top: clamp(60px, 14vw, 92px); }
  .person--kristin .person__img, .person--jan .person__img { order: 0; width: 50%; }
  .person--kristin::after { left: 0; width: 82vw; }
  .person--jan::after { right: 0; width: 82vw; }
  .person--kristin .person__text { margin: 0; }
  .person--kristin .person__img { margin-left: var(--page-pad); }
  .person--jan .person__text { margin: 0; text-align: right; }
  .person--jan .person__img { margin-left: auto; margin-right: var(--page-pad); }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer__text { text-align: left; }
  .footer__text a { display: inline-block; margin-right: .6em; }
}


/* ---------- Legal pages ---------- */
.legal-page {
  margin: 0;
  background: #fff;
  color: var(--teal);
  font-family: "Euclid Circular B", "Helvetica Neue", Arial, sans-serif;
}
.legal-page__shell {
  position: relative;
  min-height: max(680px, calc(100svh - 220px));
  padding: clamp(24px, 4.2vw, 60px);
  overflow: hidden;
}
.legal-page__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/bit-pattern_byte-factory_background-4.png") center top / max(100%, 800px) auto repeat-y;
  opacity: .25;
  pointer-events: none;
}
.legal-page__shell > * { position: relative; }
.legal-page__logo-link {
  display: block;
  width: fit-content;
  line-height: 0;
}
.legal-page__logo {
  display: block;
  width: clamp(110px, 12.4vw, 179px);
  height: auto;
}
.legal-page__content {
  max-width: 1000px;
  margin: clamp(72px, 10vw, 150px) 0 0 0;
}
.legal-page__title {
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-size: clamp(52px, 11.1vw, 160px);
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: break-word;
}
.legal-page__copy {
  max-width: 840px;
  margin-left: 0;
}
.legal-page__copy h2 {
  margin: clamp(32px, 5vw, 72px) 0 12px;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}
.legal-page__copy h2:first-child { margin-top: 0; }
.legal-page__copy p,
.legal-page__copy li {
  margin: 0 0 16px;
  font-size: clamp(17px, 1.95vw, 28px);
  font-weight: 400;
  line-height: 1.7;
}
.legal-page__copy ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.legal-page__copy a {
  color: inherit;
  text-underline-offset: .12em;
}
.legal-page__notice {
  padding: clamp(16px, 2vw, 28px);
  border-left: clamp(5px, .5vw, 8px) solid var(--mint);
  background: rgba(52, 233, 186, .12);
}
.legal-page__notice p:last-child { margin-bottom: 0; }
.legal-page__placeholder {
  color: var(--teal);
  font-weight: 700;
}

@media (min-width: 1441px) {
  .legal-page__shell {
    padding-left: clamp(24px, 4.2vw, 60px);
    padding-right: calc((100vw - 1440px) / 2 + clamp(24px, 4.2vw, 60px));
  }
}

@media (max-width: 700px) {
  .legal-page__shell {
    min-height: 0;
    padding-bottom: clamp(80px, 18vw, 140px);
  }
  .legal-page__content {
    margin-top: clamp(72px, 18vw, 120px);
  }
  .legal-page__copy { margin-left: 0; }
  .legal-page__copy h2 { margin-top: 44px; }
}


/* ---------- Intermediate desktop/tablet connector layout ---------- */
@media (min-width: 701px) and (max-width: 1440px) {
  .hero__body {
    padding-bottom: clamp(90px, 11vw, 120px);
  }
  .supersign-divider img {
    top: clamp(-160px, -14vw, -70px);
    left: clamp(-70px, -3vw, -16px);
    width: clamp(300px, 38vw, 420px);
  }
  .solutions {
    padding-top: clamp(170px, 22vw, 240px);
  }
}
