/* Fonts are loaded via <link> in each page head: an @import here
   hides them behind this file, adding a round trip before any text
   can render. */

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Anchored sections would otherwise land under the fixed nav. */
section[id] {
  scroll-margin-top: 72px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--grey-2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--grey-3);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
}

.section-intro {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-4);
  line-height: 1.7;
  max-width: 620px;
  margin-top: 20px;
}


/* Repeated three times across the case studies — the eye learns the
   pattern once and reads the rest without re-parsing the layout. */
.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-3);
  display: block;
  margin-bottom: 8px;
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 14px 28px;
  text-transform: uppercase;
}

.btn-filled {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 14px 28px;
  text-transform: uppercase;
  border: 1px solid var(--white);
}

/* Touch devices fire :hover on tap and leave it stuck. */
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: var(--white);
    color: var(--black);
  }
  .btn-filled:hover {
    background: transparent;
    color: var(--white);
  }
}

/* Screen-reader-only text (e.g. "opens in a new tab" on external links). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
