/* ==========================================================================
   Shane Marks — Portfolio
   Self-contained styles for shanemarks.strangersgy.com
   ========================================================================== */

:root {
  --bg: #f4f3f0;
  --bg-card: #ffffff;
  --ink: #121212;
  --ink-soft: #2a2a2a;
  --muted: #6f6d68;
  --muted-2: #9b9994;
  --line: #e6e4df;
  --pink: #f7d6cd;
  --pink-ink: #23140f;
  --green: #e3ead4;
  --green-ink: #1c2413;
  --dark: #121212;
  --radius-lg: 30px;
  --radius: 22px;
  --radius-sm: 16px;
  --shadow-card: 0 18px 40px -24px rgba(20, 20, 20, 0.28);
  --shadow-float: 0 26px 50px -22px rgba(20, 20, 20, 0.38);
  --maxw: 1180px;
  --font-display: "Shantell Sans", "Comic Sans MS", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Retro shape palette */
  --c-blue: #2f56d8;
  --c-coral: #f0603f;
  --c-mustard: #f5b64e;
  --c-teal: #3f9a7d;
  --c-lilac: #e6c7f0;
  --c-navy: #16324f;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,0.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfcdc7; }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(244, 243, 240, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); display: inline-block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
.menu-toggle span::before { top: -6px; transition: transform 0.25s ease, top 0.25s ease; }
.menu-toggle span::after { top: 6px; transition: transform 0.25s ease, top 0.25s ease; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin: 12px 24px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 13px 14px;
  border-radius: 12px;
  transition: background 0.18s ease;
}
.mobile-menu a:hover { background: var(--bg); }
.mobile-menu .mm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}
.mobile-menu .mm-cta svg { width: 16px; height: 16px; }
.mobile-menu .mm-cta:hover { background: #000; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 70px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  z-index: 3;
  padding-top: 70px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(64px, 12vw, 150px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 22px 0 4px;
}
.hero .tagline {
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero .tagline span { color: var(--muted-2); }
.hero .lead {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Floating collage cards */
.float {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
  z-index: 1;
  background: #ddd;
  border: 4px solid #fff;
  animation: floaty 7s ease-in-out infinite;
}
.float img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float.f1 { width: 120px; height: 150px; top: 40px; left: 2%; transform: rotate(-6deg); animation-delay: 0s; }
.float.f2 { width: 130px; height: 165px; top: 150px; left: 12%; transform: rotate(4deg); animation-delay: 1.2s; }
.float.f3 { width: 140px; height: 120px; top: 8px; left: 26%; transform: rotate(3deg); animation-delay: 0.6s; }
.float.f4 { width: 120px; height: 150px; top: 205px; left: 24%; transform: rotate(-5deg); animation-delay: 2s; }
.float.f5 { width: 130px; height: 160px; top: 20px; right: 26%; transform: rotate(-4deg); animation-delay: 0.9s; }
.float.f6 { width: 118px; height: 150px; top: 6px; right: 12%; transform: rotate(5deg); animation-delay: 1.7s; }
.float.f7 { width: 126px; height: 158px; top: 150px; right: 2%; transform: rotate(-3deg); animation-delay: 0.3s; }
.float.f8 { width: 120px; height: 150px; top: 215px; right: 12%; transform: rotate(6deg); animation-delay: 2.3s; }

/* Floating pill labels */
.pill-label {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  z-index: 2;
  white-space: nowrap;
  animation: floaty 8s ease-in-out infinite;
}
.pill-label.pink { background: var(--pink); color: var(--pink-ink); }
.pill-label.green { background: var(--green); color: var(--green-ink); }
.pill-label.pl1 { top: 120px; left: 4%; transform: rotate(-3deg); animation-delay: 0.4s; }
.pill-label.pl2 { top: 300px; left: 15%; transform: rotate(2deg); animation-delay: 1.5s; }
.pill-label.pl3 { top: 110px; right: 5%; transform: rotate(3deg); animation-delay: 1s; }
.pill-label.pl4 { top: 300px; right: 14%; transform: rotate(-2deg); animation-delay: 2.1s; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.95;
  margin: 16px 0 18px;
}
.section-head h2 .fade { color: var(--muted-2); }
.section-head p { font-size: 17px; color: var(--muted); }

/* ---------- About ---------- */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.about-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  position: sticky;
  top: 100px;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { font-size: 17px; color: var(--ink-soft); margin-bottom: 20px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.stat {
  flex: 1 1 140px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.stat b { font-family: var(--font-display); font-size: 30px; display: block; line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- What I Do (services) ---------- */
.services-grid { display: grid; gap: 22px; }
.service {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service .s-index { font-family: var(--font-display); font-size: 15px; color: var(--muted-2); }
.service h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin: 8px 0 12px; }
.service .s-desc { color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 13.5px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
}
.service:nth-child(odd) .chip:hover { background: var(--pink); border-color: var(--pink); }
.service:nth-child(even) .chip:hover { background: var(--green); border-color: var(--green); }

/* ---------- Selected work ---------- */
.work { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.work-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.work-card .num { font-family: var(--font-display); font-size: 30px; color: var(--muted-2); line-height: 1; }
.work-card h3 { font-size: 20px; font-weight: 700; margin: 16px 0 10px; letter-spacing: -0.01em; }
.work-card p { font-size: 15px; color: var(--muted); }
.work-card.span3 { grid-column: span 3; }
.work-card.span2 { grid-column: span 2; }

/* Campaign gallery (masonry) */
.gallery-head { margin: 64px 0 30px; max-width: 640px; }
.gallery-head h3 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 10px; }
.gallery-head p { font-size: 16px; color: var(--muted); }
.gallery { columns: 3; column-gap: 20px; }
.g-item {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  position: relative;
}
.g-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.g-item:hover figcaption { opacity: 1; }
.g-item figcaption b { font-size: 15px; font-weight: 700; }
.g-item figcaption span { font-size: 13px; color: rgba(255,255,255,0.82); }

/* Brands / client logo wall */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.brand-tile {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.brand-tile:hover { transform: translateY(-4px) rotate(-0.6deg); }
.brand-tile:hover img { transform: scale(1.05); }

/* ---------- Featured projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  position: relative;
  border-radius: var(--radius);
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.project.tall { grid-row: span 2; min-height: 100%; }
.project .p-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  align-self: flex-start;
  background: rgba(255,255,255,0.7);
}
.project h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 40px; line-height: 0.95; margin: 22px 0 12px; }
.project p { font-size: 15.5px; color: var(--ink-soft); max-width: 40ch; }
.project.p-ctrl { background: var(--dark); color: #fff; }
.project.p-ctrl p { color: rgba(255,255,255,0.72); }
.project.p-ctrl .p-tag { background: rgba(255,255,255,0.14); color: #fff; }
.project.p-clippy { background: var(--pink); }
.project.p-math { background: var(--green); }
.project.p-strangers { background: #eae7ff; }
.project.p-media { background: #fff; }

/* ---------- Approach ---------- */
.approach { background: var(--dark); color: #fff; }
.approach .section-head h2 { color: #fff; }
.approach .section-head p { color: rgba(255,255,255,0.6); }
.approach .eyebrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: #fff; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px;
  background: rgba(255,255,255,0.03);
}
.principle .p-num { font-family: var(--font-display); font-size: 15px; color: rgba(255,255,255,0.45); }
.principle h3 { font-size: 21px; font-weight: 700; margin: 12px 0 10px; letter-spacing: -0.01em; }
.principle p { font-size: 15px; color: rgba(255,255,255,0.62); }

/* ---------- Experience ---------- */
.exp-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.exp-item {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.2s ease;
}
.exp-item:hover { background: #fff; }
.exp-item .exp-org { display: flex; flex-direction: column; gap: 6px; }
.exp-item h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.exp-item .exp-role { font-size: 14px; font-weight: 600; color: var(--muted); }
.exp-item .exp-meta { font-size: 13px; color: var(--muted-2); }
.exp-item p { font-size: 16px; color: var(--ink-soft); }
.exp-earlier { margin-top: 26px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.edu-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.edu-card .edu-prog { font-size: 15.5px; color: var(--ink-soft); margin: 8px 0 14px; }
.edu-card .edu-meta { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Selected writing ---------- */
.writing-list { list-style: none; border-top: 1px solid var(--line); }
.writing-list li {
  font-size: clamp(17px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 22px 40px 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.writing-list li::after {
  content: "↗";
  position: absolute;
  right: 6px;
  top: 22px;
  color: var(--muted-2);
  transition: transform 0.2s ease, color 0.2s ease;
}
.writing-list li:hover { padding-left: 12px; }
.writing-list li:hover::after { color: var(--ink); transform: translate(2px, -2px); }

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto .wrap { max-width: 900px; }
.manifesto h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 0.98;
  margin: 20px 0 26px;
}
.manifesto p { font-size: clamp(16px, 2vw, 19px); color: var(--muted); margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact { background: var(--dark); color: #fff; border-radius: 40px 40px 0 0; }
.contact .eyebrow { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.16); color: #fff; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 100px);
  line-height: 0.92;
  margin: 20px 0 20px;
}
.contact .lead { font-size: 18px; color: rgba(255,255,255,0.68); max-width: 620px; margin: 0 auto 34px; }
.contact-actions { display: flex; justify-content: center; margin-bottom: 54px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 40px;
}
.contact-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-3px); }
.contact-card .c-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.contact-card .c-value { font-size: 17px; font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; padding: 30px 0 60px; }
.footer-inner { text-align: center; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 40px; }
.footer .brand { justify-content: center; margin-bottom: 14px; font-size: 34px; }
.footer .roles { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 620px; margin: 0 auto 22px; }
.footer .copy { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
  .nav-cta .btn-dark { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-portrait { position: static; max-width: 420px; }
  .service { grid-template-columns: 1fr; gap: 18px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card.span3, .work-card.span2 { grid-column: span 1; }
  .gallery { columns: 2; }
  .projects-grid { grid-template-columns: 1fr; }
  .project.tall { grid-row: auto; }
  .edu-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Collapse the floating hero into a simpler scattered band */
  .float.f3, .float.f4, .float.f5, .float.f8 { display: none; }
  .pill-label.pl2, .pill-label.pl4 { display: none; }
  .float.f1 { top: 10px; left: -2%; width: 92px; height: 116px; }
  .float.f2 { top: 120px; left: 4%; width: 96px; height: 120px; }
  .float.f6 { top: 6px; right: -2%; width: 92px; height: 116px; }
  .float.f7 { top: 120px; right: 3%; width: 96px; height: 120px; }
  .hero-inner { padding-top: 40px; }
  .pill-label.pl1 { top: 250px; left: 2%; }
  .pill-label.pl3 { top: 250px; right: 2%; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .work-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero .lead { max-width: 100%; }
  .float { border-width: 3px; }
  .gallery { columns: 1; }
  /* Touch: no hover, so keep captions visible */
  .g-item figcaption { opacity: 1; position: static; background: #fff; color: var(--ink); padding: 14px 16px; }
  .g-item figcaption span { color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  .float, .pill-label { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Decorative retro shapes + characters
   ========================================================================== */
.deco-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.has-deco > .wrap { position: relative; z-index: 1; }

.deco {
  position: absolute;
  pointer-events: none;
  will-change: transform, translate;
  translate: var(--px, 0) var(--py, 0);
  rotate: var(--rot, 0deg);
  transition: translate 0.25s ease-out;
}
.deco svg { width: 100%; height: 100%; display: block; overflow: visible; }

@keyframes deco-spin { to { transform: rotate(360deg); } }
@keyframes deco-spinrev { to { transform: rotate(-360deg); } }
@keyframes deco-wiggle { 0%, 100% { transform: rotate(-11deg); } 50% { transform: rotate(11deg); } }
@keyframes deco-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes deco-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes char-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.03); } }

.deco.a-spin { animation: deco-spin 20s linear infinite; }
.deco.a-spinrev { animation: deco-spinrev 20s linear infinite; }
.deco.a-wiggle { animation: deco-wiggle 3.6s ease-in-out infinite; }
.deco.a-drift { animation: deco-drift 6s ease-in-out infinite; }
.deco.a-pulse { animation: deco-pulse 3s ease-in-out infinite; }
.deco.a-bob { animation: char-bob 3.2s ease-in-out infinite; }

/* Face characters */
.character .char-shape,
.character .char-face { position: absolute; inset: 0; }
.character { filter: drop-shadow(0 10px 18px rgba(0,0,0,0.14)); }

/* Little spinning badge beside section eyebrows */
.eyebrow-badge {
  display: inline-block;
  width: 20px; height: 20px;
  margin-left: 10px;
  vertical-align: -4px;
}
.eyebrow-badge svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.eyebrow-badge.a-spin { animation: deco-spin 9s linear infinite; }

/* Playful hover life on existing elements */
.chip { transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease; }
.chip:hover { transform: translateY(-2px) rotate(-1.5deg); }
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px) rotate(8deg); }
.stat:hover { transform: translateY(-3px) rotate(-1deg); transition: transform 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .deco, .eyebrow-badge { animation: none !important; }
  .deco { transition: none; }
}

@media (max-width: 720px) {
  /* Trim decoration density on small screens */
  .deco { transform: none; }
  #services .deco, #work .deco, #projects .deco, .about .deco { opacity: 0.5; }
  .manifesto .deco { opacity: 0.35; }
}

/* ==========================================================================
   Illustrated coloring-page hero
   ========================================================================== */
.playhero { padding: 0; overflow: visible; }
.ph-panel {
  position: relative;
  max-width: none;
  margin: 0;
  background: #eceae2;
  border: none;
  border-bottom: 1px solid #e0ddd3;
  border-radius: 0;
  padding: 32px clamp(24px, 5vw, 72px) 34px;
  min-height: 720px;
}
.hero .ph-head {
  font-family: "Shantell Sans", "Comic Sans MS", cursive;
  font-weight: 700;
  text-transform: none;
  text-align: center;
  color: #1a1a18;
  line-height: 1.02;
  letter-spacing: 1px;
  font-size: clamp(28px, 4.4vw, 50px);
  margin: 18px 0 0;
}
.ph-head span { display: block; }
.ph-head .l1 { transform: rotate(-2deg); }
.ph-head .l2 { transform: rotate(1.5deg); }
.ph-head .l3 { transform: rotate(-1deg); }

.ph-art { display: block; margin: 14px auto 150px; width: min(820px, 64%); height: auto; }
.ph-art .skin { fill: var(--skin, #5566ad); transition: fill 0.25s ease; }
.ph-art .skin-stroke { stroke: var(--skin, #5566ad); transition: stroke 0.25s ease; }

.ph-caption { position: absolute; left: 40px; bottom: 30px; max-width: 280px; }
.ph-caption h2 { font-family: var(--font-body); font-size: 26px; font-weight: 500; margin: 0 0 10px; color: #1a1a18; letter-spacing: -0.01em; }
.ph-caption p { font-size: 13px; line-height: 1.55; color: #55534d; margin: 0 0 14px; }
.ph-caption a { font-size: 13px; color: #1a1a18; text-decoration: underline; text-underline-offset: 3px; }
.ph-caption a:hover { color: #000; }

.ph-controls { position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ph-controls .ctl {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 1px; font-weight: 500;
  padding: 9px 17px; border: 1px solid #b9b6ac; border-radius: 20px;
  background: transparent; color: #2a2a28; cursor: pointer; white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ph-controls .ctl:hover { background: #e0ddd3; border-color: #a29e93; }
.ph-swatches { display: flex; gap: 8px; margin-left: 6px; }
.ph-sw { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(0,0,0,0.12); padding: 0; transition: transform 0.15s ease; }
.ph-sw:hover { transform: scale(1.18); }
.ph-slider { width: 70px; height: 2px; background: #b9b6ac; position: relative; margin-left: 6px; border-radius: 2px; }
.ph-slider::after { content: ""; position: absolute; left: 10px; top: -5px; width: 11px; height: 11px; border-radius: 50%; background: #3a3a36; }

@media (max-width: 860px) {
  .ph-panel { min-height: 0; padding: 24px 22px 26px; }
  .ph-art { margin: 12px auto 24px; width: 100%; }
  .ph-caption, .ph-controls { position: static; transform: none; left: auto; bottom: auto; max-width: none; margin: 0 auto; }
  .ph-caption { text-align: center; margin-bottom: 22px; }
  .ph-controls { margin-top: 4px; }
}

/* Shantell Sans display calibration (site-wide hero typography) */
.section-head h2, .manifesto h2, .contact h2, .about-copy h2 { font-weight: 600; line-height: 1.05; }
.brand { font-weight: 700; letter-spacing: 0; }
.footer .brand { font-weight: 700; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 52px); }
.contact h2 { font-size: clamp(38px, 6.4vw, 74px); }
.manifesto h2 { font-size: clamp(28px, 4.6vw, 50px); }
.project h3 { font-size: clamp(28px, 3.4vw, 36px); }
.work-card .num, .service .s-index, .principle .p-num, .stat b { font-weight: 700; }

/* ==========================================================================
   WOSET playful hand-drawn theme (site-wide)
   ========================================================================== */
:root {
  --bg: #edeae1;
  --bg-card: #f6f4ec;
  --bg-alt: #e6e2d7;
  --ink: #2b2a26;
  --ink-soft: #403e38;
  --muted: #6d6a61;
  --muted-2: #a6a196;
  --line: #d6d1c4;
  --green: #2f5e46;
  --cr-red: #9e3b34; --cr-blue: #4a5aa8; --cr-purple: #6b5a86; --cr-green: #2f5e46; --cr-yellow: #d8b24a;
  --shadow-card: 3px 3px 0 rgba(45,42,36,0.10);
}
body { background: var(--bg); color: var(--ink); }

/* Headings: sentence-case hand-lettering (not uppercase) */
.section-head h2, .about-copy h2, .manifesto h2, .contact h2 { text-transform: none; letter-spacing: -0.005em; }

/* Eyebrow -> plain hand label */
.eyebrow { background: transparent; border: none; padding: 0; margin-bottom: 8px; color: var(--muted); font-weight: 600; letter-spacing: 0.12em; }

/* Buttons: forest-green filled + outline pills */
.btn-dark, .btn-light { background: var(--green); color: #f3efe3; border-color: transparent; }
.btn-dark:hover, .btn-light:hover { transform: translateY(-1px); box-shadow: 3px 3px 0 rgba(47,94,70,0.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #b7b3a7; }
.btn-ghost:hover { background: rgba(0,0,0,0.04); }

/* Header: minimal text nav, lowercase wordmark */
.site-header { background: rgba(237,234,225,0.82); }
.brand { text-transform: lowercase; letter-spacing: 0; font-weight: 700; }
.brand .dot { display: none; }
.nav-links { background: transparent; border: none; padding: 0; gap: 22px; }
.nav-links a { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); border-radius: 0; padding: 3px 0; }
.nav-links a:hover { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { background: transparent; border-color: var(--line); }
.mobile-menu { background: var(--bg-card); }
.mobile-menu .mm-cta { background: var(--green); color: #f3efe3; }

/* Cards: cream, thin border, offset sketch shadow */
.service, .work-card, .edu-card, .stat { background: var(--bg-card); border: 1px solid var(--line); box-shadow: none; }
.service:hover, .work-card:hover, .edu-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px) rotate(-0.3deg); }
.chip { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }

/* Alt-tone bands (were #fff or dark) */
.about, .work, .approach, .contact { background: var(--bg-alt); }
.about-portrait { border: 1px solid var(--line); }

/* Approach: dark -> cream */
.approach { color: var(--ink); }
.approach .section-head h2, .approach .section-head p { color: inherit; }
.approach .section-head p { color: var(--muted); }
.approach .eyebrow { background: transparent; border: none; color: var(--muted); }
.approach .principle { background: var(--bg-card); border: 1px solid var(--line); }
.approach .principle h3 { color: var(--ink); }
.approach .principle p { color: var(--muted); }
.approach .principle .p-num { color: var(--muted-2); }
.approach .principle a { color: var(--green); }

/* Featured projects: cream sketch cards */
.project.p-ctrl, .project.p-clippy, .project.p-math, .project.p-strangers, .project.p-media { background: var(--bg-card); color: var(--ink); box-shadow: none; }
.project { border: 1px solid var(--line); }
.project h3 { color: var(--ink); }
.project p, .project.p-ctrl p { color: var(--muted); }
.project .p-tag { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.project:hover { box-shadow: var(--shadow-card); transform: translateY(-2px) rotate(-0.3deg); }

/* Brand tiles + gallery */
.brand-tile { background: #faf8f2; border: 1px solid var(--line); box-shadow: none; }
.brand-tile:hover { box-shadow: var(--shadow-card); }
.g-item { border: 1px solid var(--line); box-shadow: none; }
.g-item:hover { box-shadow: var(--shadow-card); }

/* Lists */
.exp-list, .writing-list { border-top-color: var(--line); }
.exp-item { border-bottom-color: var(--line); }
.exp-item:hover { background: var(--bg-card); }
.writing-list li { border-bottom-color: var(--line); color: var(--ink); }
.writing-list li::after { color: var(--muted-2); }
.writing-list li:hover::after { color: var(--ink); }

/* Contact: dark -> cream */
.contact { color: var(--ink); border-radius: 0; }
.contact .eyebrow { background: transparent; border: none; color: var(--muted); }
.contact h2 { color: var(--ink); }
.contact .lead { color: var(--muted); }
.contact-card { background: var(--bg-card); border: 1px solid var(--line); }
.contact-card:hover { background: var(--bg-card); box-shadow: var(--shadow-card); }
.contact-card .c-label { color: var(--muted-2); }
.contact-card .c-value { color: var(--ink); }
.contact-grid { border-top-color: var(--line); }

/* Footer: cream */
.footer { background: var(--bg); color: var(--ink); }
.footer-inner { border-top-color: var(--line); }
.footer .brand { color: var(--ink); text-transform: lowercase; }
.footer .roles { color: var(--muted); }
.footer .copy { color: var(--muted-2); }

/* Crayon-dot motif */
.crayons { display: inline-flex; gap: 9px; align-items: center; vertical-align: middle; }
.crayons i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.crayons .r { background: var(--cr-red); } .crayons .b { background: var(--cr-blue); }
.crayons .p { background: var(--cr-purple); } .crayons .g { background: var(--cr-green); }
.crayons .y { background: var(--cr-yellow); }
.section-head .crayons { display: flex; margin-top: 16px; }
.footer-made { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 6px; font-size: 13px; color: var(--muted); }
.footer-made .heart { color: var(--cr-red); }

/* Title-case the remaining display headings (woset uses sentence case) */
.project h3, .work-card h3, .service h3, .edu-card h3, .exp-item h3, .principle h3, .stat b, .brand { text-transform: none; }

/* ---------- Collapsible sections ---------- */
.is-collapsible .collapse-head { cursor: pointer; padding-right: 60px; }
.collapse-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s ease, opacity 0.3s ease; opacity: 1; }
.collapse-inner { overflow: hidden; min-height: 0; }
.is-collapsible.collapsed .collapse-panel { grid-template-rows: 0fr; opacity: 0; }
.collapse-toggle {
  position: absolute; top: 0; right: 0;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.collapse-toggle:hover { background: var(--bg-alt); box-shadow: var(--shadow-card); }
.collapse-toggle svg { transition: transform 0.35s ease; }
.is-collapsible.collapsed .collapse-toggle svg { transform: rotate(-90deg); }

/* ---------- Interest (currently into) ---------- */
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.interest-col h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin-bottom: 14px; }
.record, .tvset { display: block; width: 100%; max-width: 240px; height: auto; margin: 6px 0 22px; }
.rec-spin { transform-box: view-box; transform-origin: 118px 122px; animation: rec-spin 3.6s linear infinite; }
@keyframes rec-spin { to { transform: rotate(360deg); } }
.tvset { transition: transform 0.3s ease; }
.interest-col:hover .tvset { transform: rotate(-1.5deg); }
.interest-list { list-style: none; border-top: 1px solid var(--line); }
.interest-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.interest-list li b { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.interest-list li span { font-size: 15px; color: var(--muted); text-align: right; }

@media (max-width: 720px) {
  .interest-grid { grid-template-columns: 1fr; gap: 34px; }
  .record, .tvset { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rec-spin { animation: none; }
}

/* Fix: the mobile dropdown must not inflate the blurred sticky header.
   Take it out of header flow so the header stays the nav-bar height. */
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; margin: 6px 16px 0; z-index: 90; }
