/* Level 100 Labs - holding page
   Single-purpose: establish the company publicly while the full site is built.
   No external requests: system fonts, inline-generated grain, no analytics. */

:root {
  --ground:      #08080a;
  --ground-soft: #0e0e12;
  --line:        #1e1e25;
  --text:        #f2f2f5;
  --text-muted:  #9b9ba6;
  --text-dim:    #6d6d78;
  --accent:      #d8b46a;
  --accent-glow: rgba(216, 180, 106, 0.30);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.5rem, 6vw, 6rem);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Fine grain over the whole page: keeps large dark areas from banding --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Page frame --- */
.page {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Top bar --- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.wordmark__mark {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.75rem 0.125rem var(--accent-glow);
  flex: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 12vh, 8rem) 0 clamp(3rem, 9vh, 6rem);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  top: -18%;
  left: -22%;
  width: min(58rem, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.hero__title {
  font-size: clamp(2.25rem, 1.3rem + 4.6vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 16ch;
  text-wrap: balance;
}

.hero__lede {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--text-muted);
  text-wrap: pretty;
}

/* The only signal that the site is unfinished, now that the status pill is gone.
   Accent-coloured so it registers without announcing itself. */
.hero__note {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- Shared section label --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

/* --- Disciplines --- */
.disciplines { padding: clamp(2.5rem, 7vh, 4rem) 0; }

/* Explicit column counts, never auto-fit: four items must land 1×4 / 2×2 / 4×1,
   otherwise wide screens strand a single card on a second row. */
.disciplines__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 40rem) {
  .disciplines__list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .disciplines__list { grid-template-columns: repeat(4, 1fr); }
}

.disciplines__list h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.disciplines__list p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 34ch;
  text-wrap: pretty;
}

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

/* --- Imprint --- */
.imprint {
  margin-top: auto;
  padding: clamp(2rem, 5vh, 3rem) 0 clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-dim);
}

.imprint__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem clamp(2rem, 5vw, 4rem);
}

.imprint__block p + p { margin-top: 0.5rem; }

.imprint__name {
  color: var(--text-muted);
  font-weight: 600;
}

.imprint__key {
  display: inline-block;
  min-width: 9.5rem;
  color: var(--text-dim);
  opacity: 0.75;
}

.imprint__copy {
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* --- Motion: the mark breathes, matching the studio's emissive-on-dark
       language. Disabled when the user opts out. --- */
@media (prefers-reduced-motion: no-preference) {
  .wordmark__mark {
    animation: breathe 4.5s ease-in-out infinite;
  }
  .hero__glow {
    animation: swell 11s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% { opacity: 1;    }
  50%      { opacity: 0.45; }
}

@keyframes swell {
  0%, 100% { opacity: 0.75; transform: scale(1);    }
  50%      { opacity: 1;    transform: scale(1.07); }
}

@media (max-width: 30rem) {
  .imprint__key { display: block; min-width: 0; }
  .imprint__block p + p { margin-top: 0.75rem; }
}
