/* ==========================================================================
   Home
   Sections: hero · stats · now · build log · archive · studio · join
   ========================================================================== */

.home .sec {
  --sec-y: 120px;
}

@media (max-width: 900px) { .home .sec { --sec-y: 72px; } }
@media (max-width: 600px) { .home .sec { --sec-y: 56px; } }

/* --------------------------------------------------------------------------
   Hero — light 3D render with glass "All in!"
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: #d2d3d5;
}

.hero__render {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(214, 215, 218, 0) 0%, rgba(214, 215, 218, 0) 68%, rgba(205, 206, 209, 0.85) 100%);
}

.hero__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 22px;
  min-height: 740px;
  padding: 0 var(--gutter) 48px;
}

.glass {
  --glass-size: 220px;
  position: relative;
  display: inline-block;
  align-self: flex-start;
  line-height: 0.85;
}

.glass > * {
  margin: 0;
  font-size: var(--glass-size);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.glass__shadow,
.glass__halo,
.glass__stroke {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.glass__shadow {
  left: 12px;
  top: 18px;
  color: rgba(20, 20, 20, 0.26);
  filter: blur(44px);
}

.glass__halo {
  color: rgba(255, 255, 255, 0.5);
  filter: blur(10px);
}

.glass__stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
}

.glass__text {
  position: relative;
  color: transparent;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.34) 40%, rgba(222, 224, 227, 0.22) 64%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding-left: 14px;
}

.hero__tag .mono {
  color: rgba(30, 30, 30, 0.55);
  letter-spacing: 0.22em;
}

.hero__rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(30, 30, 30, 0.45);
}

@media (max-width: 1200px) { .glass { --glass-size: 168px; } }

@media (max-width: 900px) {
  .hero__body { min-height: 520px; }
  .glass { --glass-size: 120px; }
}

@media (max-width: 600px) {
  .hero__body { min-height: 440px; padding-bottom: 28px; }
  .glass { --glass-size: 76px; }
  .hero__tag .mono { font-size: 9px; white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 44px var(--gutter);
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat + .stat {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stat__value {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1200px) { .stat__value { font-size: 38px; } }

@media (max-width: 900px) {
  .stats { gap: 16px; padding-top: 28px; padding-bottom: 28px; }
  .stat + .stat { padding-left: 16px; }
  .stat__value { font-size: 30px; }
  .stat .mono { font-size: 9px; letter-spacing: 0.12em; }
}

@media (max-width: 600px) {
  .stats { gap: 10px; padding-top: 20px; padding-bottom: 20px; }
  .stat { gap: 4px; }
  .stat + .stat { padding-left: 10px; }
  .stat__value { font-size: 17px; }
  .stat .mono { font-size: 7.5px; letter-spacing: 0.08em; }
}

/* --------------------------------------------------------------------------
   Now — MLS card + next project
   -------------------------------------------------------------------------- */

.now {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}

.now-mls {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 660px;
  padding: 44px 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--mls-navy);
  color: var(--text);
}

.now-mls__bg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  filter: blur(7px) saturate(0.65) brightness(0.55);
}

.now-mls__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 34, 41, 0.96) 0%, rgba(11, 34, 41, 0.7) 45%, rgba(11, 34, 41, 0.15) 100%);
}

.now-mls__glow {
  position: absolute;
  right: -109px;
  top: 56px;
  width: 716px;
  height: 716px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 138, 0.38) 0%, rgba(255, 126, 142, 0.18) 30%, transparent 66%);
  pointer-events: none;
}

.now-mls__hazmat {
  position: absolute;
  right: -51px;
  bottom: -35px;
  width: 480px;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.now-mls__logo {
  position: relative;
  width: 383px;
  height: auto;
}

.now-mls__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 520px;
}

.now-mls__lead {
  width: 411px;
  max-width: 100%;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.45;
  color: var(--mls-cream);
}

.now-mls__stores {
  display: flex;
  align-items: center;
  gap: 10px;
}

.now-next {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 660px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--ink-2);
}

.now-next .chip { align-self: flex-start; }

.blueprint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: center;
  width: 320px;
  max-width: 100%;
  height: 360px;
  overflow: hidden;
  border: 6px solid #013e59;
  box-shadow: 8px 8px 0 #013e59;
  transform: rotate(-2deg);
  background-color: #17497a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
}

.blueprint__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--mls-navy-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mls-cream);
}

.blueprint__rev { color: var(--mls-teal); }

.blueprint__sketch {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 250px;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.95;
}

.blueprint__note {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.blueprint__note--tl { left: 16px; top: 64px; }
.blueprint__note--br { right: 16px; bottom: 14px; }

.now-next__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.now-next__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.now-next__cta {
  align-self: flex-start;
  margin-top: 6px;
}

.now-next__cta img { height: 16px; width: auto; }

@media (max-width: 1200px) {
  .now-mls__logo { width: 300px; }
  .now-mls__hazmat { width: 300px; }
  .now-mls__body { max-width: 58%; }
  .now-mls__lead { width: auto; max-width: 34ch; }
}

@media (max-width: 900px) {
  .now { gap: 16px; }
  .now > * { flex: 0 0 78%; min-height: 520px; }
  .now-mls { padding: 32px; }
  .now-mls__logo { width: 66%; }
  .now-mls__glow { width: 70%; height: auto; aspect-ratio: 1; right: -20%; }
  .now-mls__hazmat { width: 42%; right: -24px; bottom: -16px; }
  .now-mls__body { max-width: 64%; }
  .now-mls__lead { max-width: 30ch; }
  .now-mls__stores { flex-wrap: wrap; }
  .blueprint { width: 300px; height: 330px; }
  .now-next__title { font-size: 34px; }
}

@media (max-width: 600px) {
  .now { gap: 12px; }
  .now > * { flex: 0 0 86%; min-height: 0; }
  .now-mls { min-height: 580px; padding: 22px 20px; }
  .now-mls__logo { width: 72%; }
  .now-mls__glow { display: none; }
  .now-mls__hazmat { width: 100%; right: -124px; bottom: -40px; }
  .now-mls__body { max-width: 100%; gap: 24px; }
  .now-mls__lead { max-width: 50%; font-size: 15px; }
  .now-mls .chip { height: 30px; }
  .now-mls .btn,
  .now-mls .store { background: rgba(11, 34, 41, 0.82); }
  .now-next { gap: 16px; padding: 22px 20px; }
  .blueprint { width: 100%; height: auto; aspect-ratio: 1 / 1; transform: rotate(-1.5deg); }
  .blueprint__sketch { width: 62%; }
  .now-next__title { font-size: 28px; }
}

/* --------------------------------------------------------------------------
   Build log
   -------------------------------------------------------------------------- */

.loggrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) { .loggrid { gap: 14px; } }

@media (max-width: 600px) {
  .loggrid { gap: 12px; }
  .loggrid > .post { flex: 0 0 86%; }
}

/* --------------------------------------------------------------------------
   Archive (library) — one row, floating covers
   -------------------------------------------------------------------------- */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.libgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.lib__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: float 5s ease-in-out infinite;
}

/* Staggered float: each tile starts 0.8s further into the loop. */
.lib__item:nth-child(2) { animation-delay: -0.8s; }
.lib__item:nth-child(3) { animation-delay: -1.6s; }
.lib__item:nth-child(4) { animation-delay: -2.4s; }
.lib__item:nth-child(5) { animation-delay: -3.2s; }
.lib__item:nth-child(6) { animation-delay: -4s; }

.lib__cover,
.lib__more {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.lib__cover {
  object-fit: cover;
  border: 1px solid var(--line);
  outline: 1px solid transparent;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.3s var(--ease), transform var(--t-med) var(--ease), outline-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.lib__item:hover .lib__cover {
  transform: scale(1.04);
  outline: 2px solid var(--red);
  outline-offset: 3px;
  filter: none;
  box-shadow: 0 0 26px var(--red-glow);
}

.lib__more {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  color: var(--red-text);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.lib__name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lib__name--red { color: var(--red-text); }

.lib__genre {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
}

@media (prefers-reduced-motion: reduce) { .lib__item { animation: none; } }

@media (max-width: 1200px) { .libgrid { gap: 14px; } }

@media (max-width: 900px) {
  .libgrid { gap: 14px; padding-bottom: 6px; }
  .libgrid > .lib__item { flex: 0 0 150px; animation: none; }
}

@media (max-width: 600px) {
  .libgrid { gap: 12px; padding-bottom: 4px; }
  .libgrid > .lib__item { flex: 0 0 128px; }
  .lib__name { font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Studio — values + crew
   -------------------------------------------------------------------------- */

.studio {
  position: relative;
  overflow: hidden;
}

.values {
  display: flex;
  flex-direction: column;
}

.val {
  display: grid;
  grid-template-columns: 72px minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-2);
}

.val--intro {
  align-items: start;
  padding-top: 0;
  padding-bottom: 48px;
}

.val__index { color: var(--red-text); }
.val--intro .val__index { padding-top: 10px; }

.val__word {
  font-size: 88px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color var(--t-fast) var(--ease), text-shadow var(--t-med) var(--ease);
}

.val:hover .val__word {
  color: var(--red-text);
  text-shadow: 0 0 24px var(--red-glow);
}

.val__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

.val__lead {
  margin: 0;
  max-width: 44ch;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  color: #c9c8cc;
}

.val__body {
  margin: 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
}

.val--intro .val__body { max-width: 48ch; line-height: 1.6; }

.crewblock {
  margin-top: 88px;
}


@media (max-width: 900px) {
  .studio .sec-head { margin-bottom: 28px; }
  .val { grid-template-columns: 48px minmax(0, 1fr); gap: 16px 20px; padding: 26px 0; }
  .val > :nth-child(3) { grid-column: 2; }
  .val__word { font-size: 56px; }
  .val__lead { font-size: 19px; }
  .val__body { font-size: 16px; }
}

@media (max-width: 600px) {
  .val { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; align-items: start; }
  .val > :nth-child(3) { grid-column: 1; }
  .val--intro .val__index { padding-top: 0; }
  .val__word { font-size: 34px; line-height: 1; }
  .val__lead { font-size: 17px; line-height: 1.45; }
  .val__body { font-size: 14px; line-height: 1.5; }
  .val__text { gap: 10px; padding-top: 0; }
  .crewblock { margin-top: 48px; }
}

/* --------------------------------------------------------------------------
   Join the lab
   -------------------------------------------------------------------------- */

.join {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.join__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(1) contrast(1.1);
  pointer-events: none; /* background only: no clicks, no controls */
}

.join__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0.35) 50%, rgba(20, 20, 20, 0.9) 100%);
}

.join .sec-head,
.joingrid {
  position: relative;
}

.joingrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .joingrid { grid-template-columns: 1fr; }
}
