/* =========================================================
   Put Improv to Work — putimprovtowork.com
   A Lex Friedman Consulting production.

   Vibe: the polish HR and senior execs expect, with the
   energy of a great improv set. Bricolage Grotesque display
   type over Inter body copy. Deep ink + LFC purple, with
   spotlight gold and a coral scribble for the fun.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, fieldset {
  margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

:root {
  --ink: #221a40;
  --ink-soft: #57506e;
  --paper: #fffcf4;
  --paper-2: #fff6e3;
  --purple: #5a10a2;
  --purple-deep: #3d0a74;
  --purple-light: #a463ff;
  --gold: #ffb520;
  --gold-soft: #ffe9b8;
  --coral: #ff5a5f;
  --line: #e9e0cf;
  --max: 1120px;
  --radius: 18px;
  --shadow-pop: 6px 6px 0 rgba(34, 26, 64, .16);
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* coral scribble underline, drawn once, reused everywhere */
  --scribble: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'><path d='M2,12 C 40,2 80,20 140,9 C 200,-2 260,19 298,7' stroke='%23ff5a5f' stroke-width='7' fill='none' stroke-linecap='round'/></svg>");
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

a { color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
strong, b { font-weight: 700; color: var(--purple-deep); }

/* ---- Typography ---- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.25; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  background: #f1e8ff;
  border: 1.5px solid var(--purple-light);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.hl {
  background-image: linear-gradient(180deg, transparent 62%, var(--gold) 62%, var(--gold) 94%, transparent 94%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding-inline: 2px;
}

.scribbled {
  display: inline-block;
  padding-bottom: 10px;
  background: var(--scribble) no-repeat bottom center / 100% 12px;
}

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.55; }

/* ---- Header / nav ---- */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--line);
}

#siteHeader .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark:hover { color: var(--purple); }
.wordmark .mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 17px;
  transform: rotate(-6deg);
  transition: transform .25s;
}
.wordmark:hover .mark { transform: rotate(6deg) scale(1.06); }
.wordmark em { font-style: normal; color: var(--purple); }

#siteNav { display: flex; align-items: center; gap: 26px; }
#siteNav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
#siteNav a:hover { color: var(--purple); }
#siteNav .nav-cta {
  background: var(--purple);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform .15s, background .15s;
}
#siteNav .nav-cta:hover { background: var(--purple-deep); color: #fff; transform: rotate(-2deg) scale(1.04); }

@media (max-width: 860px) {
  #siteNav a:not(.nav-cta) { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 28px;
  border: 2px solid var(--ink);
  transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover {
  background: #ffc447;
  color: var(--ink);
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 8px 8px 0 rgba(34, 26, 64, .18);
}
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; transform: rotate(1deg); }

/* ---- Hero ---- */
#hero { padding-block: 72px 56px; overflow: hidden; }
#hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

#hero h1 .rotator-slot {
  display: inline-block;
  color: var(--purple);
  min-width: 1ch;
}
#hero h1 .rotator-slot .word {
  display: inline-block;
  animation: wordIn .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(14px) rotate(-2deg); }
  to   { opacity: 1; transform: none; }
}

#hero .lede { margin-top: 24px; max-width: 56ch; }
#hero .cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
#hero .cta-note { font-size: 14px; color: var(--ink-soft); width: 100%; }

/* photo stack */
.hero-photos { position: relative; aspect-ratio: 5 / 5.4; min-height: 340px; }
.hero-photos .snap {
  position: absolute;
  background: #fff;
  padding: 10px 10px 34px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(34, 26, 64, .18);
  transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), z-index 0s;
}
.hero-photos .snap img { border-radius: 4px; width: 100%; height: 100%; object-fit: cover; }
.hero-photos .snap:nth-child(1) { width: 74%; top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.hero-photos .snap:nth-child(2) { width: 62%; top: 30%; right: 0; transform: rotate(3.5deg); z-index: 2; }
.hero-photos .snap:nth-child(3) { width: 58%; bottom: 0; left: 6%; transform: rotate(-2deg); z-index: 3; }
.hero-photos .snap img { aspect-ratio: 4 / 3; }
.hero-photos .snap:hover { transform: rotate(0) scale(1.04); z-index: 10; }

@media (max-width: 900px) {
  #hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-photos { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---- Skills marquee ---- */
#marquee {
  background: var(--purple);
  color: var(--gold);
  overflow: hidden;
  padding-block: 13px;
  border-block: 2px solid var(--ink);
  transform: rotate(-1deg);
  scale: 1.02 1;
  margin-block: 8px 0;
}
#marquee .track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}
#marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 14px;
}
#marquee span::after { content: "★"; margin-left: 26px; color: #cfa9ff; font-size: 13px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  #marquee .track { animation: none; }
  #hero h1 .rotator-slot .word { animation: none; }
}

/* ---- Sections ---- */
section { padding-block: 84px; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head .lede { margin-top: 6px; }

/* ---- Why improv: skill cards ---- */
#why { background: var(--paper); }
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.skill-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-pop);
  transition: transform .18s, box-shadow .18s;
}
.skill-card:hover {
  transform: translate(-2px, -3px) rotate(-.5deg);
  box-shadow: 9px 9px 0 rgba(90, 16, 162, .22);
}
.skill-card .emoji {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  background: var(--gold-soft);
  border: 2px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 16px;
  transform: rotate(-4deg);
}
.skill-card:nth-child(even) .emoji { background: #f1e8ff; transform: rotate(4deg); }
.skill-card h3 { margin-bottom: 8px; }
.skill-card p { font-size: 15.5px; color: var(--ink-soft); }

@media (max-width: 900px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .skill-grid { grid-template-columns: 1fr; } }

/* ---- Workshop: how it works ---- */
#workshop { background: var(--paper-2); border-block: 1.5px solid var(--line); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 84px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--purple-light);
  display: block;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 38px; } }

/* stat row */
.stat-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.stat .big-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  color: var(--purple);
}
.stat p { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 820px) { .stat-row { grid-template-columns: 1fr; } }

/* no-hokey guarantee */
.guarantee {
  margin-top: 56px;
  position: relative;
  background: var(--gold-soft);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 36px 40px;
  box-shadow: var(--shadow-pop);
  display: flex;
  gap: 28px;
  align-items: center;
}
.guarantee .seal {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  border: 2.5px solid var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 rgba(34, 26, 64, .2);
}
.guarantee h3 { font-size: 26px; margin-bottom: 8px; }
.guarantee p { color: #4a4160; }
@media (max-width: 700px) {
  .guarantee { flex-direction: column; text-align: center; padding: 30px 24px; }
}

/* ---- Photos ---- */
#photos { background: var(--paper); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
  align-items: start;
}
.polaroid {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 16px;
  box-shadow: 0 12px 28px rgba(34, 26, 64, .14);
  transition: transform .3s cubic-bezier(.2, 1.4, .4, 1);
}
.polaroid img { border-radius: 4px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.polaroid figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-top: 12px;
  text-align: center;
}
.polaroid:nth-child(odd) { transform: rotate(-2deg); }
.polaroid:nth-child(even) { transform: rotate(1.8deg) translateY(10px); }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 5; position: relative; }
@media (max-width: 820px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .photo-grid { grid-template-columns: 1fr; } .polaroid:nth-child(even) { transform: rotate(1.8deg); } }

/* ---- About Lex ---- */
#about { background: var(--purple-deep); color: #efe8fb; }
#about .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
#about h2 { color: #fff; }
#about .kicker { background: rgba(255, 255, 255, .1); border-color: var(--purple-light); color: var(--gold); }
#about p { margin-bottom: 18px; color: #d9cdf0; }
#about strong { color: #fff; }
#about a { color: var(--gold); }
#about a:hover { color: #ffc447; }
.about-photo {
  position: relative;
  max-width: 360px;
  margin-inline: auto;
}
.about-photo img {
  border-radius: 20px;
  border: 2.5px solid var(--gold);
  box-shadow: 12px 12px 0 rgba(255, 181, 32, .25);
}
.about-photo .badge {
  position: absolute;
  right: -14px;
  top: -18px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  transform: rotate(6deg);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .25);
}
@media (max-width: 900px) {
  #about .wrap { grid-template-columns: 1fr; gap: 44px; }
  .about-photo { max-width: 300px; }
}

/* ---- Contact ---- */
#contact { background: var(--paper); }
#contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 60px;
  align-items: start;
}
#contact .contact-copy p { margin-bottom: 16px; color: var(--ink-soft); }
#contact .contact-copy .email-line {
  font-size: 18px;
  color: var(--ink);
}
@media (max-width: 880px) { #contact .wrap { grid-template-columns: 1fr; gap: 40px; } }

#contactForm {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: var(--shadow-pop);
}
#contactForm label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}
#contactForm .hint { font-weight: 400; color: var(--ink-soft); font-size: 13px; }
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm select,
#contactForm textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 20px;
  font-size: 16px;
  transition: box-shadow .15s, background .15s;
}
#contactForm textarea { min-height: 110px; resize: vertical; }
#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 3px 3px 0 var(--gold);
}
#contactForm .btn { width: 100%; text-align: center; }

.form-alert {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 26px;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
}
.form-alert.success { background: #e2f7e5; }
.form-alert.error { background: #ffe3e3; }

/* ---- Footer ---- */
#siteFooter {
  background: var(--ink);
  color: #b8b0d0;
  padding-block: 48px;
  font-size: 14.5px;
}
#siteFooter .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
#siteFooter img { width: 170px; filter: brightness(0) invert(1); opacity: .85; }
#siteFooter a { color: #d9cdf0; }
#siteFooter a:hover { color: var(--gold); }
#siteFooter .fine { text-align: right; }
@media (max-width: 700px) {
  #siteFooter .wrap { flex-direction: column; text-align: center; }
  #siteFooter .fine { text-align: center; }
}

/* ---- Scroll reveal ----
   Hidden state only applies when JS has confirmed
   IntersectionObserver support (html.io) — no-JS and older
   browsers always see the full page. */
.io .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.io .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
