/* =============================================================
   MKR LABZ — comic / pop-art dark theme
   ============================================================= */

:root {
  --ink:      #0e1116;       /* deep ink background */
  --ink-2:    #161a22;       /* slightly lifted */
  --bone:     #f5efe2;       /* warm off-white "paper" */
  --line:     #0a0d12;       /* hard black borders */
  --red:      #ff3b30;
  --yellow:   #ffd60a;
  --green:    #34c759;
  --blue:     #4ea8ff;       /* used sparingly */
  --grid:     rgba(255,255,255,0.045);
  --halftone: rgba(255,255,255,0.05);

  --r-card: 14px;
  --shadow-hard: 4px 4px 0 0 var(--line);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255,214,10,0.06), transparent 50%),
    radial-gradient(ellipse at 100% 10%, rgba(255,59,48,0.06), transparent 55%),
    radial-gradient(ellipse at 50% 110%, rgba(52,199,89,0.05), transparent 50%),
    var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Background overlays ---------- */
.grid-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}
body.no-grid .grid-bg { display: none; }

.halftone {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(var(--halftone) 1px, transparent 1.5px);
  background-size: 8px 8px;
  mix-blend-mode: screen;
  opacity: 0.6;
}
body.no-halftone .halftone { display: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: 'Bangers', 'Archivo Black', system-ui, sans-serif; letter-spacing: 0.04em; line-height: 1; margin: 0; }
.eyebrow {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-transform: uppercase;
}
.hl-red    { color: var(--red); }
.hl-yellow { color: var(--yellow); }
.hl-green  { color: var(--green); }
.hl-white  { color: var(--bone); }

/* ---------- Layout helpers ---------- */
section { position: relative; z-index: 2; }
.panel {
  background: var(--bone);
  color: var(--line);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-hard);
  padding: 40px 36px;
  position: relative;
}
.panel--tilt-l { transform: rotate(-0.25deg); }
.panel--tilt-r { transform: rotate(0.25deg); }
body.no-tilt .panel,
body.no-tilt .card { transform: none !important; }
.panel__corner {
  position: absolute; top: -16px; left: 24px;
  background: var(--yellow); color: var(--line);
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px; letter-spacing: 0.15em;
  padding: 6px 12px;
  border: 3px solid var(--line);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--line);
}
.panel__title { font-size: clamp(36px, 5vw, 60px); margin-bottom: 18px; font-family: 'Archivo Black', sans-serif; letter-spacing: 0.01em; }
.panel__title .hi { color: var(--red); }
.panel__body  { font-size: 18px; max-width: 60ch; margin: 0 0 12px; line-height: 1.6; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(14,17,22,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.nav__logo img { height: 56px; width: 56px; border: 2px solid var(--line); border-radius: 10px; background: #222; object-fit: cover; }
.nav__links { display: flex; gap: 28px; font-family: 'Archivo Black', sans-serif; font-size: 13px; letter-spacing: 0.12em; }
.nav__links a {
  position: relative; padding: 6px 2px;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--yellow); }
.nav__links a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--yellow);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  padding: 60px 28px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__starburst {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero__starburst svg {
  width: min(92vw, 900px);
  height: min(92vw, 900px);
  animation: spin 80s linear infinite;
}
body.no-burst .hero__starburst { display: none; }
.burst { transform-origin: center; }
.burst--yellow { fill: var(--yellow); opacity: 0.92; }
.burst--red    { fill: var(--red); opacity: 0.85; transform: rotate(11.25deg); }

@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner {
  position: relative; z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero__logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}
.hero__logo {
  width: clamp(220px, 32vw, 360px);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--line);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.hero__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(64px, 12vw, 168px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.hero__wm-mkr { color: var(--bone); }
.hero__wm-labz { color: var(--yellow); }
body.hero-anim .hero__wordmark { animation: bobble 5s ease-in-out infinite; }
body.hero-anim .hero__logo { animation: bobble 5s ease-in-out infinite; }
@keyframes bobble {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%      { transform: rotate( 2deg) translateY(-6px); }
}
.hero__logo:hover { transform: scale(1.03) rotate(-3deg); }

.sticker {
  display: none;
}
.sticker--pow {
  top: -22px; right: -32px;
  background: var(--red); color: var(--bone);
  transform: rotate(12deg);
  animation: wiggle 3.5s ease-in-out infinite;
}
.sticker--zap {
  bottom: -18px; left: -36px;
  background: var(--green); color: var(--line);
  transform: rotate(-10deg);
  animation: wiggle 4s ease-in-out infinite reverse;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50%      { transform: rotate(8deg)  scale(1.05); }
}

.hero__tagline {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(36px, 6.5vw, 76px);
  line-height: 1;
  letter-spacing: 0.01em;
  margin: 8px 0 28px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25em;
}
.hero__tagline .word { display: inline-block; }
.word--w { color: var(--bone); }
.word--y { color: var(--yellow); }
.word--g { color: var(--green); }
.hero__sub {
  display: block; width: 100%;
  margin-top: 18px;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.16em;
  color: var(--bone);
  opacity: 0.9;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  padding: 14px 22px;
  border: 2px solid var(--line);
  border-radius: 10px;
  color: var(--line);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 3px 3px 0 var(--line);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.btn--yellow { background: var(--yellow); }
.btn--red    { background: var(--red); color: var(--bone); }
.btn--green  { background: var(--green); color: var(--line); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--bone);
  box-shadow: 3px 3px 0 var(--bone);
}
.btn--ghost:hover { box-shadow: 5px 5px 0 var(--bone); }

/* Ticker */
.ticker {
  margin-top: 64px;
  background: var(--yellow);
  color: var(--line);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex; gap: 36px;
  padding: 12px 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px; letter-spacing: 0.18em;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.ticker__track span { padding-inline: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about {
  padding: 80px 28px;
  display: flex; justify-content: center;
}
.about .panel { max-width: 880px; width: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px; letter-spacing: 0.14em;
  padding: 8px 12px;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  color: var(--line);
  box-shadow: 3px 3px 0 var(--line);
}
.badge--y { background: var(--yellow); }
.badge--r { background: var(--red); color: var(--bone); }
.badge--g { background: var(--green); }
.badge--w { background: var(--bone); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 40px 0 60px;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: var(--ink-2);
}
.stat {
  text-align: center;
  padding: 28px 16px;
  border-right: 3px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0.01em;
}
.stat--y .stat__num { color: var(--yellow); }
.stat--r .stat__num { color: var(--red); }
.stat--g .stat__num { color: var(--green); }
.stat--w .stat__num { color: var(--bone); }
.stat__label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-top: 8px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Workshop ---------- */
.workshop { padding: 60px 28px 80px; max-width: 1280px; margin: 0 auto; }
.workshop__head { text-align: center; margin-bottom: 28px; }
.workshop__title { font-size: clamp(40px, 6vw, 84px); margin: 8px 0 6px; font-family: 'Archivo Black', sans-serif; letter-spacing: 0.02em; }
.workshop__title .hl-red, .workshop__title .hl-yellow {
  /* solid color, no comic stroke */
}
.workshop__lead { color: rgba(245,239,226,0.8); font-size: 17px; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 32px; }
.tab {
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px; letter-spacing: 0.14em;
  background: var(--bone);
  color: var(--line);
  border: 3px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.15s ease, background 0.15s ease;
}
.tab:hover { transform: translate(-2px, -2px); }
.tab.is-active { background: var(--yellow); }
.tab[data-tab="print"].is-active { background: var(--green); }
.tab[data-tab="laser"].is-active { background: var(--red); color: var(--bone); }

/* Gallery — masonry-ish via grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.card {
  grid-column: span 4;
  background: var(--bone);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  position: relative;
  color: var(--line);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.card--big { grid-column: span 6; }
.card--tilt-l { transform: rotate(-0.25deg); }
.card--tilt-r { transform: rotate( 0.25deg); }
.card:hover {
  transform: translate(-2px, -3px) rotate(0deg);
  box-shadow: 8px 8px 0 var(--line);
  z-index: 5;
}
.card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f5efe2;
  border-bottom: 3px solid var(--line);
  padding: 8px;
}
.card--big img { height: 360px; }
.card figcaption { padding: 16px 18px 20px; }
.card h3 { font-family: 'Archivo Black', sans-serif; font-size: 20px; letter-spacing: 0.04em; margin: 0 0 6px; }
.card p  { margin: 0; font-size: 14.5px; line-height: 1.5; opacity: 0.85; }
.card__tag {
  position: absolute; top: 12px; left: 12px;
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px; letter-spacing: 0.16em;
  padding: 6px 10px;
  border: 2.5px solid var(--line);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--line);
  z-index: 2;
}
.tag--g { background: var(--green); }
.tag--r { background: var(--red); color: var(--bone); }

.card.is-hidden { display: none; }

/* ---------- Callout ---------- */
.callout {
  margin: 60px 28px;
  display: flex; justify-content: center;
}
.callout__inner {
  position: relative;
  max-width: 880px;
  width: 100%;
  background: var(--red);
  color: var(--bone);
  border: 2px solid var(--line);
  border-radius: var(--r-card);
  padding: 44px 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-hard);
}
body.no-tilt .callout__inner { transform: none; }
.callout__bang {
  display: none;
}
.callout h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 16px; font-family: 'Archivo Black', sans-serif; letter-spacing: 0.02em; line-height: 1.1; }
.callout p  { max-width: 56ch; margin: 0 auto 22px; font-size: 16px; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 28px 100px;
}
.contact__head { text-align: center; margin-bottom: 28px; }
.contact__head h2 { font-size: clamp(36px, 5vw, 64px); margin: 8px 0; font-family: 'Archivo Black', sans-serif; letter-spacing: 0.02em; }
.contact__head h2 .hl-red { /* solid color, no comic stroke */ }
.contact__head p { color: rgba(245,239,226,0.8); }

.form {
  background: var(--bone);
  color: var(--line);
  border: 3px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-hard);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border: 2.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--line);
  outline: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.field__file {
  font-size: 14px !important;
  padding: 10px !important;
  background: #fff !important;
  cursor: pointer;
}
.field__file::-webkit-file-upload-button {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--line);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}
.field__file::file-selector-button {
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--line);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 4px 4px 0 var(--yellow);
  transform: translate(-1px, -1px);
}
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__note { font-family: 'Archivo Black', sans-serif; font-size: 12px; letter-spacing: 0.14em; opacity: 0.6; }
.form.is-sent .form__note { color: var(--green); opacity: 1; }

/* ---------- Footer ---------- */
.foot {
  border-top: 3px solid var(--line);
  background: var(--ink-2);
  padding: 28px;
}
.foot__row {
  display: flex; align-items: center; gap: 16px;
  max-width: 1280px; margin: 0 auto;
}
.foot__logo { width: 48px; height: 48px; border: 2px solid var(--line); border-radius: 8px; }
.foot__title { font-family: 'Archivo Black', sans-serif; letter-spacing: 0.14em; font-size: 14px; }
.foot__sub { font-size: 12.5px; opacity: 0.7; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery { gap: 18px; }
  .card { grid-column: span 6; }
  .card--big { grid-column: span 12; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 3px solid var(--line); }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .nav__links { gap: 16px; }
}
@media (max-width: 560px) {
  .nav { padding: 10px 16px; }
  .nav__links { font-size: 12px; gap: 12px; }
  .hero { padding: 40px 18px 0; min-height: 80vh; }
  .sticker--pow { right: -8px; }
  .sticker--zap { left: -10px; }
  .card { grid-column: span 12; }
  .card img { height: 220px; }
  .panel { padding: 28px 22px; }
  .about, .workshop, .contact, .callout { padding-left: 18px; padding-right: 18px; }
  .callout { margin-left: 16px; margin-right: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
