/* ============================================
   DAN VIENS — Portfolio Site
   Main Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Neucha&display=swap');

/* --- Dan's Custom Handwriting Font --- */
@font-face {
  font-family: 'Dan Sharpie';
  src: url('../fonts/Dansharpiehandwritingfont-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* Adjust metrics so letters sit on a consistent baseline */
  ascent-override: 90%;
  descent-override: 25%;
  line-gap-override: 10%;
}

/* --- Dan's Block Letters Font --- */
@font-face {
  font-family: 'Dan Block';
  src: url('../fonts/Danblockletters-Regular.otf') format('opentype'),
       url('../fonts/Danblockletters-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Dan's Lowercase & Numbers Font --- */
@font-face {
  font-family: 'Dan LCN';
  src: url('../fonts/DanLowerCaseAndNumbers-Regular.otf') format('opentype'),
       url('../fonts/DanLowerCaseAndNumbers-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  /* Colors — The Whiteboard Palette */
  --board:        #f8f6f2;
  --board-light:  #fcfbf9;
  --ink:          #1a1a2e;
  --ink-light:    #2d2d44;
  --green-marker: #0d7377;
  --red-marker:   #c0392b;
  --blue-marker:  #2463eb;
  --ghost:        #e8e4de;
  --ghost-dark:   #d9d4cc;
  --tape:         #d4c5a9;
  --tape-light:   #e2d7c1;
  --frame:        #c8c4bc;
  --purple-marker: #8e44ad;
  --cf-green:     #6dc644;  /* Instagram Close Friends green */

  /* Typography */
  --font-marker:  'Dan Sharpie', 'Permanent Marker', cursive;  /* Dan's actual handwriting — big bold moments */
  --font-lcn:     'Dan LCN', 'Permanent Marker', cursive;       /* Dan's handwriting — lowercase + numbers */
  --font-hand:    'Neucha', cursive;                             /* Polished marker font — supporting text */
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width:  1100px;
  --nav-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--board);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-marker);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ink);
}

/* --- Typography --- */

/* Dan Sharpie elements need extra spacing (Calligraphr font) */
h1, .hero-name, .hero-tagline, .cta-btn {
  word-spacing: 0.12em;
  letter-spacing: 0.02em;
}

/* Neucha elements — professionally designed, needs less adjustment */
h2, h3,
.hand, .hand-light,
.hero-subtitle, .hero-cta-line,
.nav-links a,
.nav-logo span,
.work-card-title, .work-card-brand, .work-card-desc,
.fun-card-title, .fun-card-desc,
.case-study-back, .case-study-nav a, .case-study-meta dt,
.thought-bubble .question,
.pillar,
.footer p,
.placeholder-img {
  word-spacing: 0.04em;
  letter-spacing: 0.01em;
}

.hand {
  font-family: var(--font-hand);
  font-weight: normal;
  line-height: 1.35;
}

.hand-light {
  font-family: var(--font-hand);
  font-weight: normal;
  line-height: 1.45;
}

/* Dan's handwriting numbers + lowercase */
.dan-num {
  font-family: var(--font-lcn);
  -webkit-text-stroke: 0.6px currentColor;
}

.dan-lower {
  font-family: var(--font-lcn);
  text-transform: none;
  -webkit-text-stroke: 0.6px currentColor;
}

h1 {
  font-family: var(--font-marker);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

h2 {
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

h3 {
  font-family: var(--font-hand);
  font-weight: normal;
  line-height: 1.35;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  text-shadow: 1px 1px 0px rgba(26, 26, 46, 0.1);
  word-spacing: 0.15em;
}

/* Dan Block all-caps on section landing pages */
.page-work h1,
.page-thinking h1,
.page-fun h1,
.page-about h1 {
  font-family: 'Dan Block', var(--font-marker);
  text-transform: uppercase;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 60ch;
}

.marker-green    { color: var(--green-marker); }
.marker-red      { color: var(--red-marker); }
.marker-blue     { color: var(--blue-marker); }
.marker-cf-green { color: var(--cf-green); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-content {
  padding-top: calc(var(--nav-height) + var(--space-md));
  padding-bottom: var(--space-xl);
  min-height: 100vh;
}

.section {
  margin-bottom: var(--space-xl);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ghost);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ink);
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center top;
}

.nav-logo span {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-light);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--green-marker);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--green-marker);
}

/* Each nav link in a different marker color */
.nav-links li:nth-child(1) a { color: var(--green-marker); }
.nav-links li:nth-child(2) a { color: var(--blue-marker); }
.nav-links li:nth-child(3) a { color: var(--red-marker); }
.nav-links li:nth-child(1) a::after { background-color: var(--green-marker); }
.nav-links li:nth-child(2) a::after { background-color: var(--blue-marker); }
.nav-links li:nth-child(3) a::after { background-color: var(--red-marker); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background-color: var(--ink);
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- CTA Buttons (hand-drawn style) --- */
.cta-group {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
  padding-left: 0;
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-marker);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0.7rem 2rem;
  border: 2.5px solid var(--ink);
  text-decoration: none;
  position: relative;
  transition: all 0.25s ease;
  word-spacing: 0.15em;
  /* Each button gets a slightly different hand-drawn shape */
  border-radius: 8px 14px 10px 16px;
}

.cta-btn:nth-child(1) {
  transform: rotate(-1.2deg);
  border-radius: 6px 16px 8px 18px;
  border-color: var(--green-marker);
  color: var(--green-marker);
}

.cta-btn:nth-child(2) {
  transform: rotate(0.8deg);
  border-radius: 14px 8px 16px 6px;
  border-color: var(--blue-marker);
  color: var(--blue-marker);
}

.cta-btn:nth-child(3) {
  transform: rotate(-0.5deg);
  border-radius: 10px 12px 14px 8px;
  border-color: var(--red-marker);
  color: var(--red-marker);
}

.cta-btn:hover {
  color: var(--board) !important;
  box-shadow: 3px 3px 0 var(--ghost-dark);
}

.cta-btn:nth-child(1):hover { background-color: var(--green-marker); }
.cta-btn:nth-child(2):hover { background-color: var(--blue-marker); }
.cta-btn:nth-child(3):hover { background-color: var(--red-marker); }

.cta-btn:active {
  box-shadow: 1px 1px 0 var(--ghost-dark);
}

/* --- Work Cards --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-lg);
}

.work-card {
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Each card gets a slightly different rotation — feels pinned to the board */
.work-card:nth-child(1) { transform: rotate(-0.7deg); }
.work-card:nth-child(2) { transform: rotate(0.5deg); margin-top: 1.5rem; }
.work-card:nth-child(3) { transform: rotate(0.3deg); }
.work-card:nth-child(4) { transform: rotate(-0.9deg); margin-top: -0.5rem; }
.work-card:nth-child(5) { transform: rotate(0.6deg); }
.work-card:nth-child(6) { transform: rotate(-0.4deg); margin-top: 1rem; }
.work-card:nth-child(7) { transform: rotate(0.8deg); }

.work-card:hover {
  transform: rotate(0deg) translateY(-4px) !important;
  box-shadow: 4px 4px 0 var(--ghost-dark);
}

.work-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: visible;
  border-radius: 3px;
  position: relative;
  background-color: var(--ghost);
}

.work-card-image img,
.work-card-image .placeholder-img {
  border-radius: 3px;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .work-card-image img {
  transform: scale(1.02);
}

/* Tape effect on cards — varied positions */
.work-card-image::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 55px;
  height: 16px;
  background-color: var(--tape);
  opacity: 0.65;
  z-index: 2;
  border-radius: 2px;
}

.work-card:nth-child(odd) .work-card-image::before {
  left: 25px;
  transform: rotate(-3deg);
}

.work-card:nth-child(even) .work-card-image::before {
  right: 20px;
  left: auto;
  transform: rotate(2deg);
}

.work-card:nth-child(3n) .work-card-image::before {
  left: 50%;
  right: auto;
  transform: translateX(-50%) rotate(-1.5deg);
}

.work-card-title {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: var(--space-sm);
  color: var(--ink);
}

.work-card-brand {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--green-marker);
  font-style: italic;
}

/* Rotate brand label colors — like grabbing a different marker each time */
.work-card:nth-child(1) .work-card-brand { color: var(--green-marker); }
.work-card:nth-child(2) .work-card-brand { color: var(--blue-marker); }
.work-card:nth-child(3) .work-card-brand { color: var(--red-marker); }
.work-card:nth-child(4) .work-card-brand { color: var(--green-marker); }
.work-card:nth-child(5) .work-card-brand { color: var(--blue-marker); }
.work-card:nth-child(6) .work-card-brand { color: var(--red-marker); }
.work-card:nth-child(7) .work-card-brand { color: var(--green-marker); }

.work-card-desc {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
  line-height: 1.55;
}

/* --- Fun Cards (more playful, messy pinboard) --- */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg) var(--space-md);
  padding-top: var(--space-md);
}

.fun-card {
  background-color: var(--board-light);
  border-radius: 4px;
  padding: var(--space-sm);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Each fun card rotated differently — pinned to board at angles */
.fun-card:nth-child(1) { transform: rotate(-1.5deg); }
.fun-card:nth-child(2) { transform: rotate(1deg); margin-top: 2rem; }
.fun-card:nth-child(3) { transform: rotate(-0.5deg); margin-top: -1rem; }
.fun-card:nth-child(4) { transform: rotate(1.2deg); margin-top: 1.5rem; }
.fun-card:nth-child(5) { transform: rotate(-0.8deg); }
.fun-card:nth-child(6) { transform: rotate(0.7deg); margin-top: -0.5rem; }

.fun-card:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02) !important;
  box-shadow: 5px 5px 0 var(--ghost-dark);
  z-index: 5;
}

/* Tape strips — varied positions and angles */
.fun-card::before {
  content: '';
  position: absolute;
  top: -10px;
  width: 48px;
  height: 15px;
  background-color: var(--tape);
  opacity: 0.6;
  border-radius: 1px;
  z-index: 2;
}

.fun-card:nth-child(1)::before { left: 15px; transform: rotate(-4deg); }
.fun-card:nth-child(2)::before { right: 18px; left: auto; transform: rotate(3deg); }
.fun-card:nth-child(3)::before { left: 50%; transform: translateX(-50%) rotate(-1deg); }
.fun-card:nth-child(4)::before { left: 10px; transform: rotate(2deg); }
.fun-card:nth-child(5)::before { right: 12px; left: auto; transform: rotate(-3deg); }
.fun-card:nth-child(6)::before { left: 30px; transform: rotate(4deg); }

.fun-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--ghost);
}

.fun-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fun-card-title {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: normal;
  margin-top: var(--space-xs);
  color: var(--green-marker);
}

.fun-card-desc {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-light);
  margin-top: 0.15rem;
}

/* Fun card titles rotate marker colors */
.fun-card:nth-child(1) .fun-card-title { color: var(--blue-marker); }
.fun-card:nth-child(2) .fun-card-title { color: var(--red-marker); }
.fun-card:nth-child(3) .fun-card-title { color: var(--green-marker); }
.fun-card:nth-child(4) .fun-card-title { color: var(--blue-marker); }
.fun-card:nth-child(5) .fun-card-title { color: var(--green-marker); }
.fun-card:nth-child(6) .fun-card-title { color: var(--red-marker); }

/* --- Case Study Page --- */
.case-study-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--green-marker);
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.case-study-back:hover {
  color: var(--ink);
}

.case-study-hero {
  width: 100%;
  border-radius: 4px;
  overflow: visible;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.case-study-hero img,
.case-study-hero .placeholder-img {
  border-radius: 4px;
}

.case-study-hero img {
  width: 100%;
}

/* Tape on hero image corners */
.case-study-hero::before,
.case-study-hero::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 16px;
  background-color: var(--tape);
  opacity: 0.5;
  z-index: 2;
  border-radius: 2px;
}

.case-study-hero::before {
  top: -4px;
  left: 20px;
  transform: rotate(-2deg);
}

.case-study-hero::after {
  bottom: -4px;
  right: 20px;
  transform: rotate(1deg);
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--ghost);
}

.case-study-meta dt {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--green-marker);
}

.case-study-meta dd {
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.case-study-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.case-study-images img {
  width: 100%;
  border-radius: 4px;
}

.case-study-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 2px solid var(--ghost);
}

.case-study-nav a {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--green-marker);
}

.case-study-nav a:hover {
  color: var(--ink);
}

/* --- Case Study: Content Layout --- */

/* Section headings — Dan's handwriting for whiteboard feel */
.case-study-section-title {
  font-family: var(--font-marker);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--ink);
  margin-top: var(--space-md);
  margin-bottom: 0.5rem;
  transform: rotate(-0.3deg);
}

.case-study-section-title:nth-of-type(even) {
  transform: rotate(0.2deg);
}

/* Body copy — Neucha for readability on copy-heavy pages */
.case-study-body {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: var(--space-sm);
}

.case-study-body:last-of-type {
  margin-bottom: var(--space-sm);
}

.case-study-body strong {
  color: var(--ink);
  font-weight: 400;
}

/* Intro / lede — slightly larger, tight to title */
.case-study-lede {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
  max-width: 680px;
  margin-bottom: var(--space-md);
}

/* Lead video — responsive 16:9 */
.case-study-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 0 0 var(--space-md);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ghost);
}

.case-study-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Tape on lead video */
.case-study-video::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 30px;
  width: 55px;
  height: 16px;
  background-color: var(--tape);
  opacity: 0.55;
  z-index: 2;
  border-radius: 2px;
  transform: rotate(-2.5deg);
}

/* Split layout — copy left, sidebar assets right */
.case-study-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-lg);
  align-items: start;
  margin: var(--space-md) 0;
}

.case-study-copy {
  min-width: 0;
}

/* Sidebar — stacked assets pinned to the right */
.case-study-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
}

.sidebar-asset {
  margin: 0;
  position: relative;
}

.sidebar-asset img {
  width: 100%;
  border-radius: 3px;
}

.sidebar-asset figcaption {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-top: 0.3rem;
  opacity: 0.7;
}

/* Tape strips on sidebar assets — pinned to the board */
.sidebar-asset::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 52px;
  height: 16px;
  background: linear-gradient(180deg, rgba(212, 197, 169, 0.6) 0%, rgba(212, 197, 169, 0.4) 100%);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}

.sidebar-asset:nth-child(1)::before {
  left: 18px;
  transform: rotate(-3deg);
}

.sidebar-asset:nth-child(2)::before {
  right: 22px;
  left: auto;
  transform: rotate(2.5deg);
}

.sidebar-asset:nth-child(3)::before {
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
}

/* Award in sidebar — slightly rotated, taped */
.case-study-sidebar .case-study-award {
  display: block;
  margin: 0;
}

.case-study-sidebar .case-study-award img {
  max-width: 100%;
  transform: rotate(1.5deg);
  box-shadow: 2px 3px 8px rgba(0,0,0,0.08);
}

/* Inline video in sidebar */
.case-study-video-inline {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ghost);
}

.case-study-video-inline iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Full-width figure */
.case-study-figure {
  margin: var(--space-md) 0;
  position: relative;
}

.case-study-figure img {
  width: 100%;
  border-radius: 4px;
}

.case-study-figure figcaption {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-top: 0.3rem;
  opacity: 0.7;
}

/* Award badge — compact, taped to board */
.case-study-award {
  display: inline-block;
  position: relative;
  margin: var(--space-sm) 0 var(--space-md);
}

.case-study-award img {
  max-width: 260px;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.08);
  transform: rotate(1.5deg);
}

.case-study-award::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 18px;
  width: 44px;
  height: 14px;
  background-color: var(--tape);
  opacity: 0.6;
  border-radius: 2px;
  transform: rotate(3deg);
  z-index: 2;
}

/* Phone screenshots row — taped to the board */
.phone-screenshots {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  align-items: flex-start;
}

.phone-screenshot {
  position: relative;
  flex: 1;
  max-width: 200px;
  border-radius: 4px;
  overflow: visible;
}

.phone-screenshot img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.10);
}

/* Each screenshot taped at a different angle */
.phone-screenshot:nth-child(1) { transform: rotate(-1.5deg); }
.phone-screenshot:nth-child(2) { transform: rotate(1deg); margin-top: 0.8rem; }
.phone-screenshot:nth-child(3) { transform: rotate(-0.5deg); margin-top: 0.3rem; }

/* Tape on each screenshot */
.phone-screenshot::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 44px;
  height: 14px;
  background: linear-gradient(180deg, rgba(212, 197, 169, 0.6) 0%, rgba(212, 197, 169, 0.4) 100%);
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}

.phone-screenshot:nth-child(1)::before {
  left: 12px;
  transform: rotate(-3deg);
}

.phone-screenshot:nth-child(2)::before {
  right: 14px;
  left: auto;
  transform: rotate(2deg);
}

.phone-screenshot:nth-child(3)::before {
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
}

.phone-screenshots figcaption {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
  opacity: 0.7;
  font-style: italic;
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .phone-screenshots {
    flex-wrap: wrap;
    justify-content: center;
  }

  .phone-screenshot {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .phone-screenshot {
    max-width: 130px;
  }
}

@media (max-width: 900px) {
  .case-study-split {
    grid-template-columns: 1fr;
  }

  .case-study-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .sidebar-asset {
    flex: 1 1 45%;
    min-width: 160px;
  }

  .case-study-sidebar .case-study-award img {
    max-width: 220px;
  }
}

/* --- Sticky Note Board (How I Think page) --- */
/* Each question lives on its own sticky note, scattered across the whiteboard
   like a brainstorm session in progress. */

/* --- Sticky Note Colors — real Post-it palette --- */
:root {
  --sticky-yellow:  #fef49c;
  --sticky-pink:    #ff9eb1;
  --sticky-blue:    #a8d8f0;
  --sticky-green:   #b5e6a3;
  --sticky-orange:  #ffcb8e;
  --sticky-purple:  #d4b5e6;
}

/* The board — CSS grid of scattered sticky notes */
.sticky-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding: var(--space-sm) 0 var(--space-lg);
  position: relative;
}

/* Base sticky note */
.sticky {
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.35;
  color: var(--ink);
  padding: 1.2rem 1.1rem 1.4rem;
  position: relative;
  box-shadow:
    2px 3px 6px rgba(0,0,0,0.12),
    0 1px 2px rgba(0,0,0,0.06);
  /* Slightly irregular edges */
  border-radius: 1px 2px 3px 1px;
  word-spacing: 0.08em;
  /* Subtle fold on bottom-right */
}

.sticky::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(0,0,0,0.04) 50%,
    rgba(0,0,0,0.08) 100%
  );
  border-radius: 0 0 3px 0;
}

/* --- Sticky note colors --- */
.sticky-yellow  { background: var(--sticky-yellow); }
.sticky-pink    { background: var(--sticky-pink); }
.sticky-blue    { background: var(--sticky-blue); }
.sticky-green   { background: var(--sticky-green); }
.sticky-orange  { background: var(--sticky-orange); }
.sticky-purple  { background: var(--sticky-purple); }

/* --- Each sticky gets a unique rotation + offset for hand-placed feel --- */
.sticky-1  { transform: rotate(-2deg);   margin-top: 0.5rem; }
.sticky-2  { transform: rotate(1.5deg);  margin-top: 1.5rem; }
.sticky-3  { transform: rotate(-0.8deg); margin-top: 0; }
.sticky-4  { transform: rotate(2.2deg);  margin-top: -0.5rem; }
.sticky-5  { transform: rotate(-1.5deg); margin-top: 1rem; }
.sticky-6  { transform: rotate(1deg);    margin-top: -1rem; }
.sticky-7  { transform: rotate(-1.8deg); margin-top: 0.5rem; }
.sticky-8  { transform: rotate(0.5deg);  margin-top: 1.5rem; }
.sticky-9  { transform: rotate(-1.2deg); margin-top: 0; }
.sticky-10 { transform: rotate(1.8deg);  margin-top: 0.8rem; }

/* The big moment — "WHAT WOULD YOU MAKE IF NO ONE SAID NO?" */
.sticky-5 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

/* Hover lift — like peeling a note off the board */
.sticky:hover {
  box-shadow:
    4px 6px 12px rgba(0,0,0,0.15),
    0 2px 4px rgba(0,0,0,0.08);
  z-index: 5;
}

/* --- Photo taped onto a sticky note --- */
.sticky-3 {
  position: relative;
  overflow: visible;
}

.board-photo {
  position: absolute;
}

.board-photo-tyson {
  width: 80px;
  bottom: -15px;
  right: -12px;
  transform: rotate(5deg);
  z-index: 4;
}

.board-photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.15);
  filter: contrast(1.05) saturate(0.9);
}

.board-photo .tape-top {
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 38px;
  height: 12px;
}

/* --- Board notations (written on the whiteboard between stickies) --- */
.board-note {
  pointer-events: none;
  align-self: center;
}

.board-note-yes {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-self: end;
  transform: rotate(-3deg);
  opacity: 0.55;
  padding-right: var(--space-sm);
}

.board-note-yes span {
  font-family: var(--font-marker);
  font-size: 1.2rem;
  color: var(--green-marker);
  font-weight: 400;
}

/* Correction: crossed out word → replacement */
.board-note-correction {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: center;
  transform: rotate(1.5deg);
  opacity: 0.45;
}

.crossed-out {
  font-family: var(--font-marker);
  font-size: 1.1rem;
  color: var(--ink-light);
  text-decoration: line-through;
  text-decoration-color: var(--red-marker);
  text-decoration-thickness: 2.5px;
}

.correction-arrow {
  font-family: var(--font-marker);
  font-size: 1.2rem;
  color: var(--ink-light);
}

.correction-word {
  font-family: var(--font-marker);
  font-size: 1.2rem;
  color: var(--green-marker);
}

/* --- Whiteboard-native artifacts on/between stickies --- */

/* Underline scrawled on a sticky */
.sticky-underline {
  position: absolute;
  bottom: 1.3rem;
  height: 8px;
  pointer-events: none;
}

/* Underline under "HATES" on sticky-2 */
.sticky-underline-2 {
  right: 1.1rem;
  width: 70px;
}

/* Exclamation marks scrawled on a sticky */
.sticky-exclaim {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-family: var(--font-marker);
  font-size: 1.4rem;
  color: var(--red-marker);
  opacity: 0.6;
  transform: rotate(8deg);
  pointer-events: none;
}

/* Wobbly circle drawn around a whole sticky */
.sticky-circle {
  position: absolute;
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  pointer-events: none;
  z-index: -1;
}

/* Arrows drawn on the board between stickies */
.board-arrow {
  align-self: center;
  justify-self: center;
  opacity: 0.35;
  pointer-events: none;
}

.board-arrow-1 {
  transform: rotate(-8deg);
}

.board-arrow-2 {
  transform: rotate(3deg);
}

/* Star/asterisk drawn on the board */
.board-star {
  align-self: center;
  justify-self: center;
  opacity: 0.3;
  pointer-events: none;
  transform: rotate(15deg);
}

/* --- Closer: written on the board itself, not on a sticky --- */
.question-board-closer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--ghost);
  max-width: 600px;
}

.closer-line {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.closer-cta {
  font-family: var(--font-marker);
  font-size: 1.3rem;
  color: var(--ink);
}

.closer-cta a {
  color: var(--green-marker);
  text-decoration: none;
  border-bottom: 2px solid var(--green-marker);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.closer-cta a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* --- Sticky Board Responsive --- */
@media (max-width: 768px) {
  .sticky-board {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .board-photo-tyson {
    width: 60px;
    bottom: -10px;
    right: -8px;
  }

  .board-note-correction {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 20%;
  }
}

@media (max-width: 480px) {
  .sticky-board {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .sticky {
    font-size: 0.95rem;
    padding: 0.9rem 0.8rem 1rem;
  }

  .board-photo-tyson {
    width: 50px;
    bottom: -8px;
    right: -5px;
  }

  .board-note-yes,
  .board-note-correction,
  .board-arrow,
  .board-star {
    display: none;
  }

  .sticky-circle {
    display: none;
  }
}

/* --- Do Not Erase --- */
.do-not-erase {
  position: absolute;
  top: calc(var(--nav-height) + 12px);
  right: 140px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(1.5deg);
}

.do-not-erase .dne-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.do-not-erase span {
  font-family: 'Dan Block', var(--font-marker);
  font-size: 1.1rem;
  color: var(--red-marker);
  opacity: 0.85;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.9rem;
  position: relative;
  white-space: nowrap;
  -webkit-text-stroke: 0.5px var(--red-marker);
}

/* Board Date — written below DO NOT ERASE */
.board-date {
  position: absolute;
  top: calc(var(--nav-height) + 62px);
  right: 140px;
  z-index: 10;
  font-family: var(--font-lcn);
  font-size: 0.95rem;
  color: var(--blue-marker);
  opacity: 0.7;
  letter-spacing: 0.08em;
  pointer-events: none;
  transform: rotate(1deg);
  white-space: nowrap;
  -webkit-text-stroke: 1px var(--blue-marker);
}

@media (max-width: 768px) {
  .board-date {
    display: none;
  }
}

/* --- Home Hero --- */
.hero {
  padding-top: var(--space-xs);
}

/* === Section 1: Introduction === */
.hero-intro {
  margin-bottom: var(--space-lg);
}

/* Wobbly hand-drawn underline on "my website" */
.underline-wrap {
  position: relative;
  display: inline-block;
}

.hand-underline {
  position: absolute;
  bottom: -4px;
  left: -2%;
  width: 104%;
  height: 14px;
  pointer-events: none;
}

/* Post-it note — stuck to the board at a slight angle */
.post-it {
  display: inline-block;
  background: #fef49c;
  padding: 0.8rem 1.2rem 0.9rem;
  transform: rotate(-2deg);
  box-shadow:
    2px 3px 6px rgba(0,0,0,0.12),
    0 1px 2px rgba(0,0,0,0.06);
  /* Slightly irregular edges — not a perfect rectangle */
  border-radius: 1px 2px 3px 1px;
  margin-top: var(--space-sm);
  margin-left: 0.5rem;
  position: relative;
}

/* Subtle fold / curl on bottom-right corner */
.post-it::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(
    135deg,
    transparent 50%,
    rgba(0,0,0,0.04) 50%,
    rgba(0,0,0,0.08) 100%
  );
  border-radius: 0 0 3px 0;
}

.post-it .hero-subtitle {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
}

/* === Section 2: Identity — portrait + name side by side === */
.hero-identity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-identity-text {
  flex: 1;
  min-width: 0;
}

/* === Section 3: CTA — hand-drawn loose circle === */
.hero-cta {
  max-width: 680px;
}

/* --- Taped Paper Cutout Portrait --- */
.hero-portrait {
  flex-shrink: 0;
  max-width: 200px;
  transform: rotate(2.5deg);
}

.taped-paper {
  position: relative;
  background: transparent;
  padding: 0;
  transform: rotate(2.5deg);
  max-width: 200px;
  transition: transform 0.3s ease;
}

.taped-paper:hover {
  transform: rotate(1deg) scale(1.02);
}

/* No border overlay needed for cutout */
.taped-paper::before {
  display: none;
}

.dan-key-img {
  width: 100%;
  height: auto;
  display: block;
  /* Real hand-cut photo — just needs a subtle board shadow */
  filter: drop-shadow(2px 3px 5px rgba(0,0,0,0.13));
}

/* Tape strips holding the paper to the board */
.tape-strip {
  position: absolute;
  z-index: 3;
  border-radius: 1px;
  pointer-events: none;
}

.tape-top {
  top: 4%;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 58px;
  height: 16px;
  background: linear-gradient(
    180deg,
    rgba(212, 197, 169, 0.6) 0%,
    rgba(212, 197, 169, 0.42) 100%
  );
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  z-index: 2;
}

.tape-bottom-right {
  bottom: 12%;
  right: 6px;
  transform: rotate(6deg);
  width: 46px;
  height: 14px;
  background: linear-gradient(
    180deg,
    rgba(212, 197, 169, 0.55) 0%,
    rgba(212, 197, 169, 0.38) 100%
  );
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  z-index: 2;
}

.hero h1 {
  margin-bottom: var(--space-sm);
  color: var(--purple-marker);
}

.hero-subtitle {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--ink-light);
  margin-left: 0;
}

.hero-name {
  font-family: 'Dan Block', var(--font-marker);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.06em;
  -webkit-text-stroke: 1.5px var(--ink);
  paint-order: stroke fill;
  word-spacing: 0.25em;
  text-shadow: 2px 2px 0px rgba(26, 26, 46, 0.08);
  margin: var(--space-md) 0 var(--space-sm);
  /* Marker pressure variation */
  -webkit-text-stroke: 0.5px rgba(26, 26, 46, 0.3);
}

.hero-tagline {
  font-family: var(--font-marker);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--green-marker);
  letter-spacing: 0.03em;
  word-spacing: 0.2em;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.hero-cta-line {
  font-family: var(--font-marker);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--ink);
  margin: 0 0 var(--space-sm);
  max-width: 600px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  word-spacing: 0.2em;
}

/* --- Dan Head Logo --- */
.dan-head {
  width: 50px;
  height: auto;
  object-fit: contain;
}

.dan-head-hero {
  width: 140px;
  height: auto;
  margin-bottom: var(--space-md);
}

/* === Easter Egg: Long Whiteboard Scroll === */
.long-board {
  position: relative;
  height: 7200px;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
}

.board-scrawl {
  position: absolute;
  font-family: var(--font-marker);
  font-weight: 400;
  pointer-events: none;
  white-space: nowrap;
  word-spacing: 0.12em;
  letter-spacing: 0.02em;
}

/* 1 — green, left side */
.scrawl-1 {
  top: 600px;
  left: 8%;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--green-marker);
  transform: rotate(-1.5deg);
  opacity: 0.7;
}

.scrawl-chevrons {
  display: block;
  margin: 0.5rem auto 0;
  color: inherit;
  opacity: 0.8;
}

/* 2 — blue, right side */
.scrawl-2 {
  top: 1500px;
  right: 10%;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--blue-marker);
  transform: rotate(2deg);
  opacity: 0.65;
}

/* 3 — red, left/center, wraps */
.scrawl-3 {
  top: 2500px;
  left: 5%;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  color: var(--red-marker);
  transform: rotate(-0.8deg);
  opacity: 0.6;
  white-space: normal;
  max-width: 500px;
}

/* 4 — purple, center-right */
.scrawl-4 {
  top: 3400px;
  left: 50%;
  transform: translateX(-30%) rotate(3deg);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--purple-marker);
  opacity: 0.75;
}

/* 5 — green, left side, code-like */
.scrawl-5 {
  top: 4300px;
  left: 12%;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--green-marker);
  transform: rotate(-2.5deg);
  opacity: 0.55;
  letter-spacing: 0.15em;
}

/* 6 — blue, right side, wraps */
.scrawl-6 {
  top: 5500px;
  right: 6%;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--blue-marker);
  transform: rotate(1.2deg);
  opacity: 0.6;
  white-space: normal;
  max-width: 450px;
  text-align: right;
}

/* 7 — red, center, the payoff */
.scrawl-7 {
  top: 6800px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  color: var(--red-marker);
  opacity: 0.8;
  text-align: center;
  white-space: normal;
  max-width: 550px;
}

@media (max-width: 768px) {
  .long-board {
    height: 6000px;
  }

  .board-scrawl {
    white-space: normal;
    max-width: 85vw;
  }

  .scrawl-1 { top: 400px; left: 5%; }
  .scrawl-2 { top: 1200px; right: auto; left: 5%; }
  .scrawl-3 { top: 2000px; left: 5%; max-width: 85vw; }
  .scrawl-4 { top: 2700px; left: 5%; transform: rotate(3deg); }
  .scrawl-5 { top: 3400px; left: 5%; }
  .scrawl-6 { top: 4200px; right: auto; left: 5%; text-align: left; max-width: 85vw; }
  .scrawl-7 { top: 5500px; left: 5%; transform: rotate(-1deg); }
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) 0;
  border-top: 2px solid var(--ghost);
  text-align: center;
}

.footer p {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--ink-light);
  margin: 0 auto;
}

.footer a {
  color: var(--green-marker);
}

/* --- Image Placeholders --- */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--ghost) 0%, var(--ghost-dark) 50%, var(--ghost) 100%);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-light);
  text-align: center;
  padding: var(--space-sm);
  position: relative;
  overflow: hidden;
}

/* Subtle cross-hatch pattern on placeholders to look like a whiteboard sketch area */
.placeholder-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, var(--ink) 10px, var(--ink) 11px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--ink) 10px, var(--ink) 11px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 246, 242, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 2rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .fun-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .case-study-images {
    grid-template-columns: 1fr;
  }

  .cta-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-identity {
    flex-direction: column;
    text-align: center;
  }

  .hero-identity-text {
    align-items: center;
  }

  .hero-portrait {
    align-self: center;
  }

  .taped-paper {
    max-width: 160px;
  }

  .hero-tagline {
    white-space: normal;
  }

  .hero-intro {
    text-align: center;
  }

  .post-it {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    margin: 0 auto;
  }

  .speech-bubble {
    margin-left: 0;
    text-align: center;
  }

  /* Reset card rotations on mobile — cleaner stacked look */
  .work-card:nth-child(n),
  .fun-card:nth-child(n) {
    transform: none !important;
    margin-top: 0 !important;
  }

  .work-card:hover,
  .fun-card:hover {
    transform: translateY(-3px) !important;
  }

  /* Tighter case study meta on mobile */
  .case-study-meta {
    gap: var(--space-xs) var(--space-md);
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
  .fun-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Small Phones (480px and below) --- */
@media (max-width: 480px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --nav-height: 64px;
  }

  .container {
    padding: 0 1rem;
  }

  /* Hide tape strips on small phones — too much visual clutter */
  .work-card-image::before,
  .fun-card::before,
  .case-study-hero::before,
  .case-study-hero::after,
  .sidebar-asset::before {
    display: none;
  }

  /* Smaller CTA buttons */
  .cta-btn {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
  }

  /* Sidebar assets full width when stacked */
  .sidebar-asset {
    flex: 1 1 100%;
  }

  .case-study-sidebar .case-study-award img {
    max-width: 180px;
  }

  /* Smaller nav links in overlay */
  .nav-links a {
    font-size: 1.6rem;
  }

  /* Hero name even smaller */
  .hero-name {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  /* Portrait smaller */
  .taped-paper {
    max-width: 130px;
  }
}

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Seance Modal (Whiteboard Speech Bubble Popup) --- */
.seance-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.seance-modal-overlay.open {
  display: flex;
}

.seance-modal {
  position: relative;
  background: var(--board);
  border: 3px solid var(--frame);
  border-radius: 6px 8px 5px 9px;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  max-width: 580px;
  width: 90%;
  /* Paper on whiteboard feel */
  box-shadow:
    4px 6px 20px rgba(0,0,0,0.15),
    inset 0 0 80px rgba(248, 246, 242, 0.4);
  transform: rotate(-0.8deg);
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: rotate(-0.8deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(-0.8deg) scale(1);
  }
}

.seance-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-family: var(--font-marker);
  font-size: 2.2rem;
  color: var(--red-marker);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: transform 0.2s ease;
  z-index: 2;
}

.seance-close:hover {
  transform: scale(1.2) rotate(5deg);
}

.seance-content {
  display: flex;
  align-items: flex-end;
  gap: var(--space-md);
}

.seance-dan-head {
  flex-shrink: 0;
  width: 120px;
}

.seance-dan-head img {
  width: 100%;
  height: auto;
  filter: contrast(1.05);
  transform: rotate(-3deg);
}

/* Speech bubble container */
.seance-bubble {
  position: relative;
  flex: 1;
  min-height: 160px;
}

.bubble-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bubble-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 35px 35px;
  min-height: 160px;
}

.bubble-text span {
  display: block;
  font-family: var(--font-marker);
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

.bubble-line-1 {
  font-size: 1.25rem;
  color: var(--ink);
  transform: rotate(-0.5deg);
}

.bubble-line-2 {
  font-size: 1.25rem;
  color: var(--ink);
  transform: rotate(0.3deg);
}

.bubble-line-3 {
  font-size: 1.3rem;
  color: var(--blue-marker);
  margin-top: 6px;
  transform: rotate(-0.8deg);
}

.bubble-line-4 {
  font-size: 1.3rem;
  color: var(--blue-marker);
  transform: rotate(0.4deg);
}

/* Tape holding the modal "paper" to the board */
.seance-modal::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 40px;
  width: 60px;
  height: 18px;
  background: linear-gradient(180deg, rgba(212, 197, 169, 0.6) 0%, rgba(212, 197, 169, 0.4) 100%);
  border-radius: 2px;
  transform: rotate(-3deg);
  z-index: 2;
}

.seance-modal::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 50px;
  width: 52px;
  height: 16px;
  background: linear-gradient(180deg, rgba(212, 197, 169, 0.55) 0%, rgba(212, 197, 169, 0.35) 100%);
  border-radius: 2px;
  transform: rotate(2deg);
  z-index: 2;
}

/* Mobile adjustments for seance modal */
@media (max-width: 768px) {
  .seance-content {
    flex-direction: column;
    align-items: center;
  }

  .seance-dan-head {
    width: 90px;
  }

  .seance-bubble {
    min-height: 140px;
  }

  .bubble-text {
    padding: 25px 25px 30px;
    min-height: 140px;
  }

  .bubble-line-1,
  .bubble-line-2 {
    font-size: 1.1rem;
  }

  .bubble-line-3,
  .bubble-line-4 {
    font-size: 1.15rem;
  }

  .seance-modal {
    padding: var(--space-md);
  }
}

/* --- About / "Who Is This Guy" Page --- */
/* The page reads like someone scrawled Dan's story across the whiteboard —
   a series of moments, not a resume. Different marker colors, slight rotations,
   varying sizes. The portrait is taped up top. Awards are a casual tally. */

.about-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.about-portrait {
  flex-shrink: 0;
}

.about-portrait .taped-paper {
  max-width: 180px;
}

.about-title-block {
  flex: 1;
  min-width: 0;
}

.page-about h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: var(--space-sm);
  transform: rotate(-0.5deg);
}

.about-throughline {
  font-family: var(--font-marker);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: var(--blue-marker);
  line-height: 1.45;
  max-width: 520px;
  word-spacing: 0.12em;
  letter-spacing: 0.02em;
  transform: rotate(0.3deg);
}

/* --- Moments: the scattered story blocks --- */
.about-moments {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.moment {
  max-width: 680px;
  position: relative;
}

.moment-text {
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  max-width: none;
  word-spacing: 0.1em;
  letter-spacing: 0.02em;
}

/* Each moment at a different position and angle — hand-scrawled feel */
.moment-1 {
  margin-left: 0;
  transform: rotate(-0.4deg);
}

.moment-2 {
  margin-left: 14%;
  transform: rotate(0.3deg);
}

.moment-3 {
  margin-left: 3%;
  transform: rotate(-0.6deg);
}

.moment-3 .moment-text {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
}

.moment-4 {
  margin-left: 10%;
  transform: rotate(0.4deg);
}

.moment-5 {
  margin-left: 2%;
  transform: rotate(-0.3deg);
}

.moment-6 {
  margin-left: 3%;
  transform: rotate(0.5deg);
}

.moment-7 {
  margin-left: 7%;
  transform: rotate(-0.2deg);
  position: relative;
}

.moment-6 {
  margin-left: 0;
  transform: rotate(-0.5deg);
  padding-top: var(--space-sm);
}

.moment-6 .moment-text {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--ink);
}

.moment-8 {
  margin-left: 0;
  transform: rotate(-0.5deg);
  padding-top: var(--space-sm);
}

.moment-8 .moment-text {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--ink);
}

/* Underline on moment-7 */
.moment-underline {
  display: block;
  width: 60%;
  height: 8px;
  margin-top: 0.3rem;
  opacity: 0.5;
}

/* Board decorations between moments */
.about-arrow {
  opacity: 0.35;
  pointer-events: none;
  align-self: flex-start;
  margin-left: 12%;
}

.about-arrow-1 {
  transform: rotate(-5deg);
}

.about-board-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 15%;
  transform: rotate(1.5deg);
  opacity: 0.45;
  pointer-events: none;
}

.about-star {
  opacity: 0.3;
  pointer-events: none;
  align-self: flex-end;
  margin-right: 10%;
  transform: rotate(15deg);
}

.about-star-1 {
  align-self: flex-start;
  margin-left: 18%;
  margin-right: 0;
  transform: rotate(12deg);
}

.about-star-2 {
  margin-right: 15%;
  transform: rotate(-10deg);
}

.about-arrow-2 {
  opacity: 0.35;
  pointer-events: none;
  margin-left: 20%;
  transform: rotate(2deg);
}

/* Moment illustrations — doodles drawn next to text */
.moment-illustration {
  display: block;
  margin-top: 0.6rem;
  opacity: 0.45;
  pointer-events: none;
}

.illust-9news {
  transform: rotate(-1.5deg);
  margin-left: 4%;
}

.illust-wk {
  transform: rotate(1deg);
  margin-left: 2%;
}

.illust-81 {
  transform: rotate(-2deg);
  margin-left: 8%;
}

.illust-tv {
  transform: rotate(1.5deg);
  margin-left: 6%;
}

/* --- Right Now section --- */
.about-now {
  margin-bottom: var(--space-xl);
  max-width: 640px;
}

.about-section-heading {
  font-family: 'Dan Block', var(--font-marker);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  -webkit-text-stroke: 0.5px var(--ink);
  paint-order: stroke fill;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  transform: rotate(-0.5deg);
}

.about-now-text {
  font-family: var(--font-marker);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.55;
  max-width: none;
  word-spacing: 0.1em;
  transform: rotate(0.2deg);
}

/* --- Thread moment — red underline + spool --- */
.moment-thread {
  position: relative;
}

.thread-underline {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: -0.3rem;
  opacity: 0.7;
}

.illust-spool {
  flex-shrink: 0;
}

/* --- Awards tally --- */
.about-awards {
  margin-bottom: var(--space-xl);
}

.awards-sketches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);
  align-items: flex-start;
  margin-top: var(--space-sm);
}

.award-sketch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.award-sketch-icon {
  opacity: 0.7;
}

.award-sketch-label {
  font-family: var(--font-marker);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  word-spacing: 0.1em;
  letter-spacing: 0.02em;
}

.award-sketch-detail {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--ink-light);
  max-width: 140px;
  line-height: 1.3;
}

/* Vary rotation on each sketch */
.award-sketch-1 { transform: rotate(-1.2deg); }
.award-sketch-2 { transform: rotate(1.5deg); margin-top: 0.8rem; }
.award-sketch-3 { transform: rotate(-0.8deg); margin-top: 0.4rem; }
.award-sketch-4 { transform: rotate(2deg); margin-top: 1rem; }
.award-sketch-5 { transform: rotate(-1.8deg); margin-top: 0.6rem; }
.award-sketch-6 { transform: rotate(3deg); margin-top: 0.2rem; }

/* Mr. Hustle — playful wink */
.award-hustle {
  position: relative;
}
.award-hustle .award-sketch-detail {
  font-style: italic;
  opacity: 0.75;
}

/* --- About closer --- */
.about-closer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 2px solid var(--ghost);
  max-width: 600px;
}

/* --- About Page Responsive --- */
@media (max-width: 768px) {
  .about-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }

  .about-portrait .taped-paper {
    max-width: 150px;
  }

  .about-throughline {
    max-width: 100%;
  }

  .moment {
    margin-left: 0 !important;
  }

  .about-board-note {
    margin-left: 5%;
  }

  .about-arrow {
    margin-left: 5%;
  }

  .awards-sketches {
    gap: var(--space-md) var(--space-lg);
  }
}

@media (max-width: 480px) {
  .about-portrait .taped-paper {
    max-width: 120px;
  }

  .moment-text {
    font-size: 1rem;
  }

  .about-arrow,
  .about-star,
  .about-board-note {
    display: none;
  }

  .moment-illustration {
    display: none;
  }

  .awards-sketches {
    gap: var(--space-sm) var(--space-md);
  }

  .award-sketch-icon {
    width: 60px;
    height: 60px;
  }
}

/* --- Nav 4th link color (Who Is This Guy) --- */
.nav-links li:nth-child(4) a { color: var(--purple-marker); }
.nav-links li:nth-child(4) a::after { background-color: var(--purple-marker); }

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
