/* Democritus Analytics — homepage
   Tokens follow docs/democritus-brand-guide.md. */

:root {
  --blue: #2A84B7;
  --blue-hover: #1f6a95;
  --graphite: #4A4D50;
  --canvas: #FBFCFC;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--canvas);
  color: var(--graphite);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Full-viewport field. Gradient and geometry mirror the approved design card. */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, #F4F6F8 55%, #E6EAEE 100%);
}

.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Optically centred: the portrait's weight pulls the block slightly right and up. */
.hero__identity {
  position: absolute;
  left: 51.5%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 52%;
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

.hero__logo {
  margin: 0;
  width: 100%;
}

.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__contact {
  font: 500 26px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.hero__contact:hover { color: var(--blue-hover); }

.hero__contact:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 8px;
  opacity: 1 !important; /* keyboard users reach the link even mid-sequence */
}

/* With JS the identity sequence raises these; without JS they stay visible. */
.js .hero__logo img,
.js .hero__contact { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .hero__logo img,
  .js .hero__contact { opacity: 1; }
}

@media (max-width: 767px) {
  .hero__identity {
    left: 50%;
    width: min(100% - 32px, 480px);
    gap: 32px;
  }
  .hero__contact {
    font-size: 18px;
    letter-spacing: 0.16em;
    text-underline-offset: 6px;
  }
}
