/* Mesh Labz – home (v2). Layout after the "Signal ID" reference: black page, glowing 3D object
   on the left, a narrow stacked panel of text and actions on the right. */

:root {
  --r-sm: 10px;            /* buttons, inputs */
  --r-md: 14px;            /* cards, images, frames */
  --r-lg: 22px;            /* large panels and bands */
  --void: #000;
  --field: #14181d;        /* button / field fill */
  --field-hover: #1c232b;
  --text: #e8eef4;
  --muted: #7f8c99;
  --line: rgba(232, 238, 244, 0.16);
  --cyan: #00c8f0;
  --bright: #1a9be6;

  --f-head: "Poppins", system-ui, sans-serif;   /* Poppins Bold, as in the Lusso configurator headings */
  --f-body: "Figtree", system-ui, sans-serif;
  --f-label: "Figtree", system-ui, sans-serif;           /* small uppercase labels and buttons */

  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--void);
  color: var(--text);
  font: 400 1rem/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }      /* decorative glows never widen the page on phones */
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.mono {
  font: 600 0.75rem/1 var(--f-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--text); color: #000; padding: .6em 1em; }
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; gap: 2rem;
  padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 28px; height: auto; }
.brand span { font: 700 1.05rem/1 var(--f-head); letter-spacing: 0.02em; text-transform: uppercase; }
.top nav { margin-left: auto; display: flex; gap: clamp(1.1rem, 1.9vw, 2rem); }
.top nav a { color: var(--muted); transition: color .15s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
/* "Work with me": filled in the logo's bright blue (#1A9BE6), turns white on hover. */
.btn-line {
  background: var(--bright); color: #fff; font-weight: 800;
  border: 1px solid var(--bright); padding: .85em 1.2em; transition: border-color .15s, background .15s;
}
.btn-line:hover { background: var(--text); border-color: var(--text); color: #000; }

/* Small laptops: seven links plus the button stay on one row. */
.top nav a, .brand span, .top .btn-line { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1060px) {
  .top { gap: 1.2rem; }
  .top nav { gap: .95rem; font-size: .74rem; }
  .top .btn-line { padding: .75em .95em; }
}
@media (min-width: 861px) and (max-width: 960px) {
  .top { gap: .9rem; }
  .top nav { gap: .7rem; font-size: .68rem; letter-spacing: .04em; }
}

/* Narrow screens: every menu link stays visible, on a second row under the logo. */
@media (max-width: 860px) {
  .top { flex-wrap: wrap; row-gap: 16px; padding-top: 18px; padding-bottom: 0; }
  .top .btn-line { margin-left: auto; padding: .7em 1em; }
  .top nav {
    order: 3; width: 100%; margin-left: 0;
    flex-wrap: wrap; justify-content: space-between; gap: 10px .6rem;
    padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: .7rem; letter-spacing: 0.06em;
  }
  .top nav a { padding: 4px 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: center;
  padding: 110px var(--gutter) 90px;
  column-gap: clamp(24px, 6vw, 96px);
}
/* The character render, shown exactly as rendered. Only its cut-off bottom edge fades to black. */
.figure {
  position: absolute; z-index: 1;
  left: max(var(--gutter), 4vw);
  bottom: 62px;                                   /* stands on the credit line */
  height: min(84vh, 900px);
  width: auto; max-width: 52vw; object-fit: contain; object-position: bottom left;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 20%);
          mask-image: linear-gradient(to top, transparent 0, #000 20%);
}

.panel { grid-column: 2; position: relative; z-index: 2; display: flex; flex-direction: column; }
.tag {
  align-self: flex-start;
  padding: .55em .8em;
  border: 1px solid var(--line);
  color: var(--muted);
}
.name {
  margin: 1.4rem 0 .9rem;
  font: 700 clamp(2.6rem, 5vw, 4.2rem)/1.05 var(--f-head);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sub { color: var(--muted); margin: 0; }
.lede { margin: 1.6rem 0 2rem; color: #c3ced9; font-size: 1.05rem; }

.actions { display: grid; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.2em;
  background: var(--field);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--field-hover); border-color: var(--line); }
.btn-primary { background: var(--text); color: #000; }
.btn-primary:hover { background: var(--bright); color: #000; border-color: transparent; }   /* logo bright blue #1A9BE6 */
.aside-link { margin-top: 1.3rem; text-align: center; color: var(--muted); transition: color .15s; }
.aside-link:hover { color: var(--text); }

.credit {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 18px var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted);
  font-size: .85rem;
}
.credit a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Small phones: the six menu links sit in two rows of three. */
@media (max-width: 520px) {
  .top nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; row-gap: 12px; }
}

/* Portrait / phones: character on top, text directly underneath. */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    align-content: start;
    padding-top: 128px;          /* clears the two-row header */
    padding-bottom: 96px;
  }
  @media (max-width: 520px) { .hero { padding-top: 160px; } }
  .figure {
    position: static;
    justify-self: center;
    height: auto; width: min(95vw, 480px); max-width: none;
    margin-bottom: -12%;                          /* let the faded bottom tuck under the text */
  }
  .panel { grid-column: 1; max-width: 420px; margin: 0 auto; width: 100%; }
  .name { margin-top: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Soft, rounded corners everywhere (nothing sharp or boxy) ---------- */
.btn, .btn-line, .guide-field input { border-radius: var(--r-sm); }
.tag { border-radius: 999px; }
.frame, .tile, .reel, .renders figure, .project .frame, .guide-thumbs img, .slides .frame { border-radius: var(--r-md); overflow: hidden; }
.guide-band, .cta, .guide-cover { border-radius: var(--r-lg); overflow: hidden; }
.fan img { border-radius: 8px; }
