/* RIGGED STUDIOS — the site system. the paintings are the show; everything else is a
   dark quiet frame around them. one accent (gold), hairlines at rest, shadow only on
   things that float, one easing curve, almost nothing moves. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text-body);
  font: 400 var(--text-body-size)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold);
  border-radius: 4px;
}
:root {
  --ease-crisp: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: min(1120px, 100% - 3rem);
  --r-s: 6px; --r-m: 10px; --r-l: 14px;
}

/* ---- chrome ---- */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  border-bottom: 1px solid oklch(0.93 0.025 85 / 0.07);
  background: linear-gradient(oklch(0.15 0.02 250 / 0.55), transparent);
}
.site-head .bar {
  width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
  padding-block: 1.1rem;
}
.wordmark { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.wordmark img { height: 30px; width: auto; }
.wordmark span {
  font: 400 1.15rem/1 var(--font-display);
  letter-spacing: 0.01em; color: var(--cream);
}
.wordmark b { color: var(--gold); font-weight: 400; }
.site-nav { margin-left: auto; display: flex; gap: 1.6rem; overflow-x: auto; }
.site-nav a {
  text-decoration: none; color: var(--cream-dim);
  font: 500 var(--text-small)/1 var(--font-body);
  padding: 0.4rem 0.1rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 var(--text-small)/1 var(--font-body);
  padding: 0.85rem 1.3rem; border-radius: var(--r-m);
  text-decoration: none; border: 1px solid transparent;
  transition: background 140ms var(--ease-crisp), transform 120ms var(--ease-crisp), border-color 140ms var(--ease-crisp);
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hot); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream-dim); background: oklch(0.93 0.025 85 / 0.05); }

/* ---- hero ---- */
.hero {
  min-height: min(88vh, 780px);
  display: grid; align-items: end;
  padding-top: 6.5rem;
}
.hero .inner {
  width: var(--wrap); margin-inline: auto;
  padding-block: 3.5rem 4rem;
  display: grid; grid-template-columns: minmax(0, 34rem) 1fr; gap: 2rem;
  align-items: end;
}
.hero p.lede { margin-top: 1.2rem; max-width: 44ch; color: var(--cream-dim); font-size: 1.125rem; }
.hero .cta { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero-bot { justify-self: end; align-self: end; position: relative; width: min(240px, 26vw); }
.hero-bot img { width: 100%; filter: drop-shadow(0 12px 24px oklch(0.1 0.02 250 / 0.6)); }
.hero-bot .bubble {
  position: absolute; top: -2.4rem; right: 78%;
  background: var(--cream); color: oklch(0.22 0.02 250);
  font: 600 0.8rem/1 var(--font-body);
  white-space: nowrap;
  padding: 0.55rem 0.8rem; border-radius: 10px 10px 2px 10px;
}

/* ---- slate ---- */
.slate-head { width: var(--wrap); margin: 4.5rem auto 2rem; }
.slate-head p { color: var(--cream-dim); max-width: 58ch; margin-top: 0.8rem; }
.house {
  position: relative;
  border-block: 1px solid oklch(0.93 0.025 85 / 0.07);
}
.house + .house { border-top: 0; }
.house .inner {
  width: var(--wrap); margin-inline: auto;
  min-height: 340px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem;
  align-items: center; padding-block: 3rem;
}
.house.flip .inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.house.flip .sign { order: 2; }
.house .sign img {
  max-height: 170px; width: auto; max-width: 100%;
  filter: drop-shadow(0 10px 22px oklch(0.1 0.02 250 / 0.65));
}
@media (hover: hover) and (pointer: fine) {
  .house a.sign img { transition: transform 180ms var(--ease-crisp), filter 180ms var(--ease-crisp); }
  .house a.sign:hover img { transform: translateY(-4px); filter: drop-shadow(0 16px 30px oklch(0.1 0.02 250 / 0.75)); }
}
.house .copy { max-width: 46ch; }
.house .copy h2 { margin-block: 0.6rem 0.6rem; }
.house .copy p { color: var(--cream-dim); }
.house .spec { margin-top: 0.9rem; color: var(--cream-mut); }
.house .act { margin-top: 1.4rem; display: flex; gap: 0.8rem; align-items: center; }
.chip {
  display: inline-block;
  font: 600 0.72rem/1 var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.42rem 0.65rem; border-radius: var(--r-s);
}
.chip-live { background: var(--gold); color: var(--gold-ink); }
.chip-next { border: 1px solid var(--gold); color: var(--gold); }
.chip-soon { border: 1px solid var(--line-strong); color: var(--cream-dim); }
.bench {
  width: var(--wrap); margin-inline: auto;
  padding-block: 3rem 4rem;
  color: var(--cream-mut); font: 500 var(--text-small)/1.5 var(--font-mono);
}

/* solar tile framed like the cabinet it is */
.tile-frame {
  width: min(300px, 70%); margin-inline: auto;
  border: 1px solid var(--line-strong); border-radius: var(--r-l);
  padding: 10px; background: var(--navy);
  box-shadow:
    0 2px 4px  oklch(0.1 0.02 250 / 0.35),
    0 6px 12px oklch(0.1 0.02 250 / 0.3),
    0 16px 32px oklch(0.1 0.02 250 / 0.3);
}
.tile-frame img { border-radius: calc(var(--r-l) - 6px); }

/* ---- the live cabinet in the hero ---- */
.cabinet {
  justify-self: end; width: min(560px, 44vw);
  border: 1px solid var(--line-strong); border-radius: var(--r-l);
  background: var(--navy); padding: 10px;
  box-shadow:
    0 2px 4px oklch(0.1 0.02 250 / 0.4),
    0 8px 16px oklch(0.1 0.02 250 / 0.35),
    0 24px 48px oklch(0.1 0.02 250 / 0.35);
}
.cabinet iframe {
  display: block; width: 100%; aspect-ratio: 16 / 10;
  border: 0; border-radius: calc(var(--r-l) - 6px); background: #000;
}
.cabinet .plate {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.4rem 0.2rem;
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.1em;
  color: var(--cream-mut); text-transform: uppercase;
}
.cabinet .plate b { color: var(--gold); font-weight: 600; }

/* string of marquee lights between the hero and the floor */
.lights {
  height: 5px; position: relative;
  background: radial-gradient(circle 2.5px at 10px 2.5px, var(--gold) 92%, transparent) 0 0/28px 5px repeat-x;
  filter: drop-shadow(0 0 6px oklch(0.82 0.14 80 / 0.55));
}

/* real symbol art as a strip of chips */
.symstrip { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.symstrip img {
  width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(0 3px 6px oklch(0.1 0.02 250 / 0.6));
}

/* ---- the math lab ---- */
.lab-wrap {
  border: 1px solid var(--line-strong); border-radius: var(--r-l);
  background: var(--navy); padding: 1.2rem; margin-top: 2rem;
}
.lab-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.lab-bar .spacer { flex: 1; }
.lab-btn {
  font: 600 0.8rem/1 var(--font-mono); letter-spacing: 0.06em;
  padding: 0.6rem 0.9rem; border-radius: var(--r-s);
  background: transparent; color: var(--cream-dim);
  border: 1px solid var(--line-strong); cursor: pointer;
}
.lab-btn:hover { color: var(--cream); border-color: var(--cream-dim); }
.lab-btn.gold { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.lab-btn.gold:hover { background: var(--gold-hot); }
.lab-btn.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
#labCv { width: 100%; height: 310px; display: block; margin-top: 1rem; }
#labSpec { color: var(--cream-mut); font: 500 0.8rem/1 var(--font-mono); }
.lab-ro {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m);
  overflow: hidden; margin-top: 1rem;
}
.lab-ro > div { background: var(--ink); padding: 0.8rem; }
.lab-ro dt { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; color: var(--cream-mut); text-transform: uppercase; }
.lab-ro dd { margin-top: 0.4rem; font: 600 1.15rem/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--cream); }
@media (max-width: 720px) {
  .lab-ro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cabinet { display: none; }
}

/* ---- prose bands (studio/contact) ---- */
.band { width: var(--wrap); margin-inline: auto; padding-block: 3.5rem; }
.band .measure { max-width: 62ch; }
.band h2 { margin-bottom: 1rem; }
.band p + p { margin-top: 1rem; }
.facts { margin-top: 2rem; border-top: 1px solid var(--line); }
.facts > div {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 1.5rem; padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.facts dt { font: 600 var(--text-small)/1.4 var(--font-body); color: var(--cream); }
.facts dd { color: var(--cream-dim); }
.mail {
  font: 400 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--font-display);
  color: var(--gold); text-decoration: none; word-break: break-all;
}
.mail:hover { color: var(--gold-hot); }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; }
.site-foot .inner {
  width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-block: 2rem;
  color: var(--cream-mut); font-size: var(--text-small);
}
.site-foot img { height: 34px; }
.site-foot a { color: var(--cream-dim); text-decoration: none; }
.site-foot a:hover { color: var(--cream); }
.site-foot .crew { margin-left: auto; font: 500 0.8rem/1 var(--font-mono); }

/* ---- small screens ---- */
@media (max-width: 480px) {
  .site-head .bar { gap: 1rem; padding-block: 0.9rem; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.85rem; }
  .wordmark span { font-size: 1rem; }
  .wordmark img { height: 26px; }
}
@media (max-width: 720px) {
  .hero .inner { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .hero-bot { display: none; }
  .house .inner, .house.flip .inner { grid-template-columns: 1fr; gap: 1.6rem; min-height: 0; }
  .house.flip .sign { order: 0; }
  .house .sign img { max-height: 120px; }
  .facts > div { grid-template-columns: 1fr; gap: 0.3rem; }
  /* one column means copy crosses the bright middle of the art — flatten the veil */
  .house.painted::before {
    background:
      linear-gradient(oklch(0.14 0.02 250 / 0.78), oklch(0.14 0.02 250 / 0.78)),
      radial-gradient(120% 90% at 50% 0%, transparent 30%, oklch(0.13 0.02 250 / 0.5) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .house a.sign img { transition-duration: 1ms; }
}
