/* Bithard — bithard.co. Everything is local: fonts and images are in /assets; no third-party services, no cookies. */

/* Inter font (SIL Open Font License, see Inter-OFL.txt) */
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("inter-latin-500-normal.woff2") format("woff2");
}

/* Colours and sizes: change them here */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --grey-bg: #D8D8D8;          /* background of screen 2 */
  --muted: rgba(255, 255, 255, 0.48);
  --body-text: #8A8A8A;        /* paragraph text on black */
  --line: rgba(255, 255, 255, 0.28);
  --pad-x: clamp(20px, 3.1vw, 64px);
  --pad-y: clamp(20px, 4.8vh, 48px);
  --logo-size: clamp(24px, 1.7vw, 34px);
  --title-size: clamp(19px, 1.2vw, 25px);
  --text-size: clamp(14px, 0.78vw, 16px);
  --font: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

/* Screen (each one fills the window height) */
.screen {
  position: relative;
  min-height: max(100vh, 620px);
  min-height: max(100svh, 620px);
  overflow: hidden;
  padding: var(--pad-y) var(--pad-x);
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}

/* Logo: Bithard® / Technology Experts */
.logo {
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: var(--logo-size);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.logo-name, .logo-tag { display: block; }
.logo sup { font-size: 0.6em; vertical-align: 0.55em; line-height: 0; margin-left: 0.04em; letter-spacing: 0; }
.hero .logo-name { color: var(--white); }
.hero .logo-tag { color: var(--muted); }
.world .logo-name { color: var(--black); }
.world .logo-tag { color: var(--white); }

/* Contact link, bottom left */
.contact {
  position: absolute;
  z-index: 2;
  left: max(var(--pad-x), env(safe-area-inset-left));
  bottom: var(--pad-y);
  font-size: var(--logo-size);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 2px;
}
.hero .contact { color: var(--white); text-decoration-line: underline; }
.world .contact { color: var(--white); text-decoration-line: none; }
.contact:hover { opacity: 0.75; }

/* ===== Screen 1 ===== */
.hero { background: var(--black); }

/* Background: soft diagonal highlights like folds of fabric. No video, no third-party services. */
.hero .bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    linear-gradient(152deg, transparent 40%, rgba(255,255,255,0.035) 46%, rgba(255,255,255,0.095) 51%, rgba(255,255,255,0.03) 57%, transparent 63%),
    linear-gradient(150deg, transparent 52%, rgba(255,255,255,0.045) 58%, rgba(255,255,255,0.010) 64%, transparent 70%),
    linear-gradient(156deg, transparent 30%, rgba(255,255,255,0.020) 36%, transparent 42%),
    radial-gradient(ellipse 60% 45% at 70% 45%, rgba(255,255,255,0.05), transparent 70%);
  filter: blur(18px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, 1.5%, 0) rotate(-1deg); }
  to   { transform: translate3d(2%, -1.5%, 0) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } }

/* Description block, bottom right */
.about {
  position: absolute;
  z-index: 2;
  left: 54%;
  right: 5%;
  bottom: 8vh;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 56px);
}
.about-title {
  margin: 0;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  align-self: start;
  font-size: var(--title-size);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--muted);
}
.about-title .hi { color: var(--white); }
.about-text {
  padding: 1.6em 0 1.4em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-size);
  line-height: 1.38;
  color: var(--body-text);
}
.about-text p { margin: 0 0 1.05em; }
.about-text p:last-child { margin-bottom: 0; }

/* ===== Screen 2 ===== */
.world { background: var(--grey-bg); color: var(--black); }

.map-wrap {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(54vw, 100vh);
  transform: translate(-50%, -50%);
}
.map { position: relative; }
.map img { display: block; width: 100%; height: auto; }

/* Motto under the map */
.motto {
  margin: clamp(20px, 4vh, 48px) 0 0;
  text-align: center;
  font-size: clamp(28px, 3.1vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--black);
}
.motto .soft { color: var(--white); }

/* Company details, bottom right */
.legal {
  position: absolute;
  z-index: 2;
  right: max(var(--pad-x), env(safe-area-inset-right));
  bottom: var(--pad-y);
  max-width: 72ch;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
  color: #555555;
}
.legal a { color: inherit; }

/* ===== Phones and narrow windows ===== */
@media (max-width: 820px) {
  .screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
  }
  .contact { position: static; align-self: flex-start; }

  .hero .bg { inset: -40%; }
  .about {
    position: static;
    margin-top: auto;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .about-title { padding-bottom: 1.1em; }

  .world { gap: 24px; }
  .map-wrap {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: auto 0;
  }
  .motto { text-align: left; }
  .legal { position: static; text-align: left; max-width: none; }
}

/* Tablets and small laptops */
@media (min-width: 821px) and (max-width: 1200px) {
  .about { left: 34%; }
}
