/* Bricklayer Labs — studio landing page */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #211d1e;          /* the charcoal behind the logo */
  --ink: #f5f2ee;
  --muted: #a39d9d;
  --line: rgba(245, 242, 238, 0.14);
  --accent: #9be8a8;      /* status dot only */
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* A brick wall rising from the bottom of the page and fading out. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='56'%3E%3Cpath d='M0 .75H112M0 28.75H112M.75 0V28M56.75 28V56' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: center bottom;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 46%);
  mask-image: linear-gradient(to top, #000 0%, transparent 46%);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 20px 40px;
}

.logo {
  display: block;
  width: clamp(150px, 32vw, 220px);
  height: auto;
  fill: var(--ink);
  overflow: visible;
}

.eyebrow {
  margin: 44px 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(1.4rem, 6.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.16em;
  /* tracking adds space after the last letter; pull it back so the word stays centred */
  margin-right: -0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

h1 span {
  font-weight: 300;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  background: rgba(33, 29, 30, 0.7);
}

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(155, 232, 168, 0.5);
  animation: pulse 2.6s ease-out infinite;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.links a:hover,
.links a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

footer {
  position: relative;
  z-index: 1;
  padding: 24px 20px 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- motion ---------- */

/* The flask's bubbles drift up and fade, then start again. */
.bubble {
  transform-box: fill-box;
  transform-origin: center;
  animation: rise 5s ease-in-out infinite;
}

.b1 { animation-delay: -3.4s; }
.b2 { animation-delay: -1.1s; }
.b3 { animation-delay: -4.3s; }
.b4 { animation-delay: -2.2s; }

@keyframes rise {
  0%   { transform: translateY(26px) scale(0.4); opacity: 0; }
  22%  { transform: translateY(6px) scale(1); opacity: 1; }
  68%  { transform: translateY(-10px) scale(1); opacity: 1; }
  100% { transform: translateY(-34px) scale(0.85); opacity: 0; }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(155, 232, 168, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(155, 232, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 232, 168, 0); }
}

main > * {
  animation: enter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

main > :nth-child(2) { animation-delay: 0.08s; }
main > :nth-child(3) { animation-delay: 0.16s; }
main > :nth-child(4) { animation-delay: 0.26s; }
main > :nth-child(5) { animation-delay: 0.34s; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .dot,
  main > * {
    animation: none;
  }
}
