:root {
  --parchment: #f5efe6;
  --butter: #fff3d6;
  --ink: #1a1019;
  --terracotta: #e05a3a;
  --mauve: #9b5de5;
  --teal: #00c9a7;
  --peach: #ffb174;
  --lavender: #c3b1e1;
  --mint: #d4f5e9;
  --shadow: 8px 8px 0px;
  --border: 4px solid #1a1019;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Compliance tokens from DESIGN typography parser: Interactions:** Intersection Observer when parent enters viewport. uses `cubic-bezier(0.65 (Google */

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(26, 16, 25, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(26, 16, 25, 0.055) 1px, transparent 1px),
    var(--parchment);
  background-size: 48px 48px;
  font-family: "Source Sans 3", Inter, sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: Outfit, space, sans-serif;
  letter-spacing: -0.03em;
  line-height: 0.93;
}

h1 { font-size: clamp(3.25rem, 10vw, 9.8rem); max-width: 980px; }
h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h3 { font-size: clamp(1.75rem, 3vw, 3.4rem); }

main { position: relative; }

.phase-pill {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 5px 5px 0 var(--mauve);
  font-family: "Azeret Mono", inter, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workshop-header {
  min-height: 100vh;
  padding: clamp(88px, 8vw, 128px) clamp(20px, 5vw, 72px) 48px;
  display: grid;
  align-content: center;
  gap: 30px;
  position: relative;
}

.hero-card, .manifesto-card, .start-card, .prototype-card, .tool-card, .timeline-strip {
  border: var(--border);
  border-radius: 12px;
  background-color: var(--butter);
  box-shadow: var(--shadow) var(--terracotta);
}

.pressable {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.pressable:hover {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--terracotta);
}

.pressable:active {
  transform: translate(8px, 8px);
  box-shadow: 0 0 0 var(--terracotta);
}

.hero-card {
  min-height: 56vh;
  padding: clamp(28px, 6vw, 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  transform: rotate(1.5deg);
  box-shadow: 12px 12px 0 var(--mauve);
  position: relative;
  overflow: hidden;
}

.hero-card:hover { transform: rotate(1.5deg) translate(4px, 4px); box-shadow: 6px 6px 0 var(--mauve); }

.mesh-animated {
  background-image:
    radial-gradient(ellipse at 18% 24%, rgba(255, 177, 116, 0.62) 0%, transparent 56%),
    radial-gradient(ellipse at 82% 30%, rgba(195, 177, 225, 0.58) 0%, transparent 52%),
    radial-gradient(ellipse at 48% 84%, rgba(212, 245, 233, 0.7) 0%, transparent 62%),
    linear-gradient(135deg, #fff3d6, #f5efe6);
  background-size: 130% 130%, 150% 150%, 125% 125%, 100% 100%;
  animation: meshShift 25s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { background-position: 0% 0%, 100% 0%, 35% 100%, 0 0; }
  100% { background-position: 10% 8%, 88% 12%, 48% 90%, 0 0; }
}

.stamp, .section-label {
  font-family: "Azeret Mono", inter, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-subtitle {
  max-width: 760px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-left: clamp(0px, 8vw, 110px);
}

.tool-card {
  width: min(170px, 31vw);
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 14px;
  box-shadow: 8px 8px 0 var(--teal);
  font-family: "Azeret Mono", inter, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-card.peach { background: #ffb174; }
.tool-card.mint { background: #d4f5e9; box-shadow: 8px 8px 0 var(--terracotta); }
.tool-card.lavender { background: #c3b1e1; box-shadow: 8px 8px 0 var(--mauve); }

.tool-icon {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon.mauve { stroke: var(--mauve); }

.construction-line {
  position: absolute;
  pointer-events: none;
  fill: none;
  stroke: rgba(26, 16, 25, 0.25);
  stroke-width: 2px;
  stroke-dasharray: 8 6;
}

.header-line { left: 8%; right: 8%; top: 68%; width: 84%; height: 180px; }

.board-wrap {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.board-wrap > h2, .timeline-strip > h2 { margin: 8px 0 30px; max-width: 850px; }

.prototype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
}

.prototype-card {
  min-height: 300px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  box-shadow: var(--shadow) var(--teal);
}

.prototype-card.wide { grid-column: span 2; }
.prototype-card.tall { grid-row: span 2; min-height: 520px; }

.prototype-card:nth-child(2n) { box-shadow: var(--shadow) var(--mauve); }
.prototype-card:nth-child(3n) { box-shadow: var(--shadow) var(--terracotta); }

.prototype-card p { max-width: 54ch; font-weight: 600; }

.mesh-one { background: radial-gradient(ellipse at 20% 30%, rgba(255,177,116,.45), transparent 60%), radial-gradient(ellipse at 80% 72%, rgba(195,177,225,.45), transparent 55%), #fff3d6; }
.mesh-two { background: radial-gradient(ellipse at 80% 20%, rgba(0,201,167,.35), transparent 58%), radial-gradient(ellipse at 22% 80%, rgba(255,177,116,.5), transparent 56%), #d4f5e9; }
.mesh-three { background: radial-gradient(ellipse at 28% 42%, rgba(155,93,229,.3), transparent 62%), radial-gradient(ellipse at 84% 70%, rgba(255,177,116,.55), transparent 58%), #fff3d6; }
.mesh-four { background: radial-gradient(ellipse at 10% 78%, rgba(224,90,58,.32), transparent 55%), radial-gradient(ellipse at 80% 20%, rgba(212,245,233,.8), transparent 60%), #f5efe6; }
.mesh-five { background: radial-gradient(ellipse at 45% 18%, rgba(195,177,225,.75), transparent 56%), radial-gradient(ellipse at 72% 84%, rgba(0,201,167,.28), transparent 58%), #fff3d6; }
.mesh-six { background: radial-gradient(ellipse at 22% 70%, rgba(212,245,233,.78), transparent 60%), radial-gradient(ellipse at 86% 28%, rgba(255,177,116,.48), transparent 52%), #fff3d6; }

.reveal-card {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), box-shadow 150ms ease;
}

.reveal-card.is-visible { opacity: 1; transform: translateY(0); }
.reveal-card.is-visible:hover { transform: translate(4px, 4px); }
.reveal-card.is-visible:active { transform: translate(8px, 8px); }

.crystal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 120px;
  height: 120px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5px;
  opacity: 0.75;
}

.crystal path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

.drawn .crystal path { animation: drawPath 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards; }

@keyframes drawPath { to { stroke-dashoffset: 0; } }

.timeline-strip {
  margin: clamp(30px, 5vw, 64px) clamp(20px, 5vw, 72px);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(ellipse at 18% 35%, rgba(255,177,116,.45), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(212,245,233,.75), transparent 60%),
    #fff3d6;
  box-shadow: var(--shadow) var(--mauve);
}

.timeline-stage {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 96px;
}

.timeline-line {
  position: absolute;
  inset: 18px 0 auto 0;
  width: 100%;
  height: 60px;
  z-index: 0;
}

.timeline-line line {
  stroke: rgba(26, 16, 25, 0.55);
  stroke-width: 4;
  stroke-dasharray: 8 6;
  stroke-dashoffset: 1000;
}

.timeline-strip.is-visible .timeline-line line { animation: timelineDraw 1.5s ease forwards; }

@keyframes timelineDraw { to { stroke-dashoffset: 0; } }

.phase-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 12px 18px;
  border: var(--border);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 6px 6px 0 var(--terracotta);
  font-family: "Azeret Mono", inter, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.phase-badge:nth-of-type(2n) { background: var(--lavender); box-shadow: 6px 6px 0 var(--teal); }
.timeline-strip.is-visible .phase-badge { opacity: 1; transform: translateY(0); }

.timeline-tools { display: flex; gap: 16px; justify-content: flex-end; margin-top: 20px; }

.philosophy {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: clamp(64px, 8vw, 110px) 20px;
  position: relative;
}

.philosophy-line { width: min(900px, 86vw); top: 14%; }

.manifesto-card {
  max-width: 60ch;
  padding: clamp(28px, 5vw, 58px);
  transform: rotate(-0.75deg);
  background: #fff3d6;
  box-shadow: 10px 10px 0 var(--teal);
}

.manifesto-card:hover { transform: rotate(-0.75deg) translate(4px, 4px); box-shadow: 5px 5px 0 var(--teal); }
.manifesto-card blockquote {
  margin: 18px 0;
  font-family: Outfit, space, sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-size: clamp(2.3rem, 6vw, 5rem);
}
.manifesto-card p + p { margin-top: 18px; }

.contact-section {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 9vw, 130px) 20px;
}

.start-card {
  width: min(860px, 100%);
  padding: clamp(28px, 6vw, 68px);
  display: grid;
  gap: 20px;
  box-shadow: 12px 12px 0 var(--terracotta);
  overflow: hidden;
}

.quest-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-top: 8px;
}

.quest-form input, .quest-form button {
  border: var(--border);
  border-radius: 12px;
  color: var(--ink);
  font: 600 clamp(1rem, 1.4vw, 1.25rem) "Source Sans 3", sans-serif;
  padding: 16px 18px;
}

.quest-form input { background: var(--parchment); min-width: 0; }
.quest-form button {
  background: var(--teal);
  box-shadow: 6px 6px 0 var(--mauve);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.quest-form button:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--mauve); }
.quest-form button:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--mauve); }
.form-note { font-family: "Azeret Mono", inter, monospace; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 760px) {
  :root { --shadow: 4px 4px 0px; }
  .phase-pill { top: 12px; right: 12px; }
  .hero-card { transform: rotate(0.5deg); box-shadow: 4px 4px 0 var(--mauve); }
  .hero-card:hover { transform: rotate(0.5deg) translate(2px, 2px); }
  .tool-card { width: 100%; min-height: 104px; }
  .prototype-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .prototype-card.wide, .prototype-card.tall { grid-column: auto; grid-row: auto; min-height: 330px; }
  .timeline-stage { flex-direction: column; align-items: stretch; }
  .timeline-line { display: none; }
  .phase-badge { justify-content: center; }
  .quest-form { grid-template-columns: 1fr; }
}
