/* RealityBeam — site styles.
   Dark canvas, one typeface with character, and a single signature effect
   (the beam in .stage). Everything else stays quiet so project art leads. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090c;
  --bg-raised: #101218;
  --ink: #f3f0e9;
  --muted: #a7a39a;
  --line: rgba(255, 255, 255, 0.11);
  --beam: #ffe9b8;
  --accent: var(--beam);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 82rem;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: inherit;
}

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

[id] {
  scroll-margin-top: 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Header ---------- */

.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-strong {
  font-weight: 750;
}

/* The slanted stroke between the two words is the beam. */
.wordmark-beam {
  width: 2px;
  height: 1.7em;
  margin: 0 0.34em;
  background: var(--beam);
  box-shadow: 0 0 14px 1px rgba(255, 233, 184, 0.65);
  transform: rotate(16deg);
}

.nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.25rem);
}

.nav a {
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.82;
  transition: opacity 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 1px;
}

/* ---------- Hero and the beam ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(94svh, 60rem);
  padding: 8rem var(--gutter) clamp(3.5rem, 9vh, 6.5rem);
  overflow: hidden;
}

.stage {
  /* --bx is the beam's position; site.js moves it between --bx-min and --bx-max. */
  --bx: 60%;
  --bx-min: 44%;
  --bx-max: 80%;
  --bw: 8.5%;
  --slant: 9%;
  position: absolute;
  inset: 0;
  background: #050609;
}

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-base {
  filter: grayscale(1) brightness(0.3) contrast(1.1);
}

.stage-lit,
.stage-light,
.stage-glow > div {
  clip-path: polygon(
    calc(var(--bx) + var(--slant)) 0,
    calc(var(--bx) + var(--slant) + var(--bw)) 0,
    calc(var(--bx) + var(--bw)) 100%,
    var(--bx) 100%
  );
}

.stage-light,
.stage-glow,
.stage-glow > div {
  position: absolute;
  inset: 0;
}

.stage-light {
  background: linear-gradient(180deg, rgba(255, 233, 184, 0.3), rgba(255, 233, 184, 0.05) 85%);
  mix-blend-mode: screen;
}

.stage-glow {
  filter: blur(28px);
  opacity: 0.55;
}

.stage-glow > div {
  background: linear-gradient(180deg, rgba(255, 233, 184, 0.5), rgba(255, 233, 184, 0.08));
}

/* Scrim: keeps copy readable and melts the art into the page. */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.88) 0%, rgba(8, 9, 12, 0.5) 34%, transparent 58%),
    linear-gradient(0deg, var(--bg) 0%, transparent 26%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.7) 0%, transparent 18%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 36rem;
}

.eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 650;
}

.hero-featured h1 {
  font-size: clamp(2.75rem, 7vw, 5.75rem);
}

.lede {
  margin-top: 1.5rem;
  max-width: 31rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: #d9d5cc;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.hero-studio {
  margin-top: 2.25rem;
  max-width: 30rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #0a0b0e;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px var(--accent);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}

a:hover > .arrow {
  transform: translateX(4px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Sections ---------- */

.section {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) 0;
}

.section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  font-weight: 600;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-note {
  max-width: 34rem;
  color: var(--muted);
}

/* Prelaunch: what the studio is building, stated plainly. */
.kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0 2.5rem;
}

.kinds li {
  padding: 1.5rem 0 2.25rem;
  border-top: 1px solid var(--line);
}

.kinds h3 {
  margin-bottom: 0.6rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.kinds p {
  max-width: 22rem;
  color: var(--muted);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.filter:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.35);
}

.filter[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* Project cards: artwork first, no boxes around the text. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.card[hidden] {
  display: none;
}

.card-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-raised);
  border-radius: 10px;
}

.card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  transition: border-color 0.25s;
}

.card:hover .card-art::after,
.card:focus-within .card-art::after {
  border-color: var(--accent);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card-art img {
  transform: scale(1.03);
}

.card-body {
  padding-top: 1.25rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.6rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 {
  font-size: 1.625rem;
  font-weight: 600;
}

.card-description {
  margin-top: 0.6rem;
  max-width: 34rem;
  color: var(--muted);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0;
  font-family: var(--display);
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.2s;
}

.card-action:hover {
  text-decoration-color: currentColor;
}

/* One or two projects: give them room. */
.cards-roomy {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-roomy .card h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.cards-1 {
  grid-template-columns: 1fr;
}

.cards-1 .card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 1.5rem 3rem;
}

.about-body {
  max-width: 44rem;
}

.about-body p {
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: #e4e0d8;
}

.about-body p + p {
  margin-top: 1.25rem;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: clamp(4rem, 10vw, 8rem) auto 0;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer a {
  text-underline-offset: 0.3em;
}

.footer a:hover {
  color: var(--ink);
}

/* ---------- Phone and small tablet ---------- */

@media (max-width: 760px) {
  .header {
    position: relative;
    padding: 1rem var(--gutter);
  }

  .wordmark {
    font-size: 1.25rem;
  }

  /* Artwork on top at full strength, then the copy and action straight after. */
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .stage {
    --bx: 40%;
    --bx-min: 6%;
    --bx-max: 66%;
    --bw: 20%;
    --slant: 16%;
    position: relative;
    inset: auto;
    height: clamp(13rem, 36svh, 22rem);
  }

  .stage::after {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 22%);
  }

  .hero-copy {
    padding: 0.75rem var(--gutter) 0;
  }

  .eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
  }

  .lede {
    margin-top: 0.9rem;
  }

  .hero-actions {
    margin-top: 1.4rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cards-roomy,
  .cards-1 .card {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
  }

  .cards-1 .card {
    gap: 0;
  }

  .about {
    grid-template-columns: 1fr;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn:hover,
  .card:hover .card-art img,
  a:hover > .arrow {
    transform: none;
  }
}

main:focus {
  outline: none;
}
