@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Manufacturing Consent Font */
@font-face {
  font-family: 'Manufacturing Consent';
  src: url('../fonts/ManufacturingConsent.woff2') format('woff2'),
       url('../fonts/ManufacturingConsent.woff') format('woff'),
       url('../fonts/ManufacturingConsent.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Global custom cursor - white by default */
html, html * {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

html:active, html *:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

/* Scrollbar - uses CSS variables for color scheme support */
/* Default (ORANGE THEME): white scrollbar, yellow pixel drawing */
:root {
  --scrollbar-color: #FFFFFF;
  --pixel-color: #FFFF00;
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-color);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-color);
}

/* Firefox scrollbar */
* {
  scrollbar-width: auto;
  scrollbar-color: var(--scrollbar-color) var(--scrollbar-color);
}

/* Color Scheme 1: MAGENTA THEME */
html.color-scheme-1 {
  background: #8B2252 !important;
  color: #FFB6C1 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-1 body { color: #FFB6C1 !important; }
html.color-scheme-1 .site-title,
html.color-scheme-1 .site-title a { color: #FFFFFF !important; }
html.color-scheme-1 .site-title a:hover { color: #FF8C00 !important; text-decoration-color: #FF8C00 !important; }
html.color-scheme-1 .site-title a:active { color: #FFFACD !important; text-decoration-color: #FFFACD !important; }
html.color-scheme-1 a, html.color-scheme-1 .gallery-nav,
html.color-scheme-1 .buy-link, html.color-scheme-1 .download-link,
html.color-scheme-1 nav a { color: #FFFFFF !important; }
html.color-scheme-1 .article-title a, html.color-scheme-1 .project-card-title a { color: #FF69B4 !important; }
html.color-scheme-1 a:hover, html.color-scheme-1 .gallery-nav:hover, html.color-scheme-1 nav a:hover, html.color-scheme-1 nav a.nav-active, html.color-scheme-1 nav a.nav-parent,
html.color-scheme-1 .article-title a:hover, html.color-scheme-1 .project-card-title a:hover { color: #FF8C00 !important; text-decoration-color: #FF8C00 !important; }
html.color-scheme-1 a:active, html.color-scheme-1 nav a:active,
html.color-scheme-1 .article-title a:active, html.color-scheme-1 .project-card-title a:active { color: #FFFACD !important; text-decoration-color: #FFFACD !important; }
html.color-scheme-1 .like-button { color: #FFFFFF !important; }
html.color-scheme-1 .project-thumbnail { background: #C71585; }

/* Color Scheme 2: BLACK THEME */
html.color-scheme-2 {
  background: #000000 !important;
  color: #9CAF88 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-2 body { color: #9CAF88 !important; }
html.color-scheme-2 .site-title,
html.color-scheme-2 .site-title a { color: #FF69B4 !important; }
html.color-scheme-2 .site-title a:hover { color: #FFFF00 !important; text-decoration-color: #FFFF00 !important; }
html.color-scheme-2 .site-title a:active { color: #008080 !important; text-decoration-color: #008080 !important; }
html.color-scheme-2 a, html.color-scheme-2 .gallery-nav,
html.color-scheme-2 .buy-link, html.color-scheme-2 .download-link,
html.color-scheme-2 nav a { color: #FF69B4 !important; }
html.color-scheme-2 .article-title a, html.color-scheme-2 .project-card-title a { color: #9CAF88 !important; }
html.color-scheme-2 a:hover, html.color-scheme-2 .gallery-nav:hover, html.color-scheme-2 nav a:hover, html.color-scheme-2 nav a.nav-active, html.color-scheme-2 nav a.nav-parent,
html.color-scheme-2 .article-title a:hover, html.color-scheme-2 .project-card-title a:hover { color: #FFFF00 !important; text-decoration-color: #FFFF00 !important; }
html.color-scheme-2 a:active, html.color-scheme-2 nav a:active,
html.color-scheme-2 .article-title a:active, html.color-scheme-2 .project-card-title a:active { color: #008080 !important; text-decoration-color: #008080 !important; }
html.color-scheme-2 .like-button { color: #FF69B4 !important; }
html.color-scheme-2 .project-thumbnail { background: #9370DB; }

/* Color Scheme 3: PURPLE THEME */
html.color-scheme-3 {
  background: #5D3A6A !important;
  color: #C8A2C8 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-3 body { color: #C8A2C8 !important; }
html.color-scheme-3 .site-title,
html.color-scheme-3 .site-title a { color: #9ACD32 !important; }
html.color-scheme-3 .site-title a:hover { color: #40E0D0 !important; text-decoration-color: #40E0D0 !important; }
html.color-scheme-3 .site-title a:active { color: #ADFF2F !important; text-decoration-color: #ADFF2F !important; }
html.color-scheme-3 a, html.color-scheme-3 .gallery-nav,
html.color-scheme-3 .buy-link, html.color-scheme-3 .download-link,
html.color-scheme-3 nav a { color: #9ACD32 !important; }
html.color-scheme-3 .article-title a, html.color-scheme-3 .project-card-title a { color: #C8A2C8 !important; }
html.color-scheme-3 a:hover, html.color-scheme-3 .gallery-nav:hover, html.color-scheme-3 nav a:hover, html.color-scheme-3 nav a.nav-active, html.color-scheme-3 nav a.nav-parent,
html.color-scheme-3 .article-title a:hover, html.color-scheme-3 .project-card-title a:hover { color: #40E0D0 !important; text-decoration-color: #40E0D0 !important; }
html.color-scheme-3 a:active, html.color-scheme-3 nav a:active,
html.color-scheme-3 .article-title a:active, html.color-scheme-3 .project-card-title a:active { color: #ADFF2F !important; text-decoration-color: #ADFF2F !important; }
html.color-scheme-3 .like-button { color: #9ACD32 !important; }
html.color-scheme-3 .project-thumbnail { background: #000000; }

/* Color Scheme 4: PRIMARY THEME */
html.color-scheme-4 {
  background: #2B4F7E !important;
  color: #D8B4E2 !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-4 body { color: #D8B4E2 !important; }
html.color-scheme-4 .site-title,
html.color-scheme-4 .site-title a { color: #FF0000 !important; }
html.color-scheme-4 .site-title a:hover { color: #E6B3CC !important; text-decoration-color: #E6B3CC !important; }
html.color-scheme-4 .site-title a:active { color: #000000 !important; text-decoration-color: #000000 !important; }
html.color-scheme-4 a, html.color-scheme-4 .gallery-nav,
html.color-scheme-4 .buy-link, html.color-scheme-4 .download-link,
html.color-scheme-4 nav a { color: #FF0000 !important; }
html.color-scheme-4 .article-title a, html.color-scheme-4 .project-card-title a { color: #D8B4E2 !important; }
html.color-scheme-4 a:hover, html.color-scheme-4 .gallery-nav:hover, html.color-scheme-4 nav a:hover, html.color-scheme-4 nav a.nav-active, html.color-scheme-4 nav a.nav-parent,
html.color-scheme-4 .article-title a:hover, html.color-scheme-4 .project-card-title a:hover { color: #E6B3CC !important; text-decoration-color: #E6B3CC !important; }
html.color-scheme-4 a:active, html.color-scheme-4 nav a:active,
html.color-scheme-4 .article-title a:active, html.color-scheme-4 .project-card-title a:active { color: #000000 !important; text-decoration-color: #000000 !important; }
html.color-scheme-4 .like-button { color: #FF0000 !important; }
html.color-scheme-4 .project-thumbnail { background: #FF8C00; }

/* Color Scheme 5: GREEN THEME */
html.color-scheme-5 {
  background: #143814 !important;
  color: #7CB97C !important;
  --scrollbar-color: #FFFFFF;
}
html.color-scheme-5 body { color: #7CB97C !important; }
html.color-scheme-5 .site-title,
html.color-scheme-5 .site-title a { color: #FFFF00 !important; }
html.color-scheme-5 .site-title a:hover { color: #FFB6C1 !important; text-decoration-color: #FFB6C1 !important; }
html.color-scheme-5 .site-title a:active { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-5 a, html.color-scheme-5 .gallery-nav,
html.color-scheme-5 .buy-link, html.color-scheme-5 .download-link,
html.color-scheme-5 nav a { color: #FFFF00 !important; }
html.color-scheme-5 .article-title a, html.color-scheme-5 .project-card-title a { color: #7CB97C !important; }
html.color-scheme-5 a:hover, html.color-scheme-5 .gallery-nav:hover, html.color-scheme-5 nav a:hover, html.color-scheme-5 nav a.nav-active, html.color-scheme-5 nav a.nav-parent,
html.color-scheme-5 .article-title a:hover, html.color-scheme-5 .project-card-title a:hover { color: #FFB6C1 !important; text-decoration-color: #FFB6C1 !important; }
html.color-scheme-5 a:active, html.color-scheme-5 nav a:active,
html.color-scheme-5 .article-title a:active, html.color-scheme-5 .project-card-title a:active { color: #FFFFFF !important; text-decoration-color: #FFFFFF !important; }
html.color-scheme-5 .like-button { color: #FFFF00 !important; }
html.color-scheme-5 .project-thumbnail { background: #000000; }

/* Cursor colors per scheme - all white cursor, white on click */
/* MAGENTA THEME: white cursor, white on click, draws in lipstick red */
html.color-scheme-1, html.color-scheme-1 a, html.color-scheme-1 button, html.color-scheme-1 .like-button, html.color-scheme-1 .like-button:hover, html.color-scheme-1 .gallery-nav {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}
html.color-scheme-1:active, html.color-scheme-1 a:active, html.color-scheme-1 button:active, html.color-scheme-1 .like-button:active, html.color-scheme-1 .gallery-nav:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

/* BLACK THEME: white cursor, white on click, draws in bright red */
html.color-scheme-2, html.color-scheme-2 a, html.color-scheme-2 button, html.color-scheme-2 .like-button, html.color-scheme-2 .like-button:hover, html.color-scheme-2 .gallery-nav {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}
html.color-scheme-2:active, html.color-scheme-2 a:active, html.color-scheme-2 button:active, html.color-scheme-2 .like-button:active, html.color-scheme-2 .gallery-nav:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

/* PURPLE THEME: white cursor, white on click */
html.color-scheme-3, html.color-scheme-3 a, html.color-scheme-3 button, html.color-scheme-3 .like-button, html.color-scheme-3 .like-button:hover, html.color-scheme-3 .gallery-nav {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}
html.color-scheme-3:active, html.color-scheme-3 a:active, html.color-scheme-3 button:active, html.color-scheme-3 .like-button:active, html.color-scheme-3 .gallery-nav:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

/* PRIMARY THEME: white cursor, white on click, draws in acid green */
html.color-scheme-4, html.color-scheme-4 a, html.color-scheme-4 button, html.color-scheme-4 .like-button, html.color-scheme-4 .like-button:hover, html.color-scheme-4 .gallery-nav {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}
html.color-scheme-4:active, html.color-scheme-4 a:active, html.color-scheme-4 button:active, html.color-scheme-4 .like-button:active, html.color-scheme-4 .gallery-nav:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

/* GREEN THEME: white cursor, white on click, draws in bright orange */
html.color-scheme-5, html.color-scheme-5 a, html.color-scheme-5 button, html.color-scheme-5 .like-button, html.color-scheme-5 .like-button:hover, html.color-scheme-5 .gallery-nav {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}
html.color-scheme-5:active, html.color-scheme-5 a:active, html.color-scheme-5 button:active, html.color-scheme-5 .like-button:active, html.color-scheme-5 .gallery-nav:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

/* Disable text/image selection highlight */
::selection {
  background: transparent;
}
::-moz-selection {
  background: transparent;
}

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

html {
  background: #D4520A;
}

body {
  font-family: 'Anonymous Pro', monospace;
  background: transparent;
  color: #000000;
  line-height: 1.5;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

body:active {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.caption, figcaption {
  font-family: Arial, sans-serif;
  font-weight: normal;
}

.article-subtitle, .subheading {
  font-family: 'Anonymous Pro', monospace;
  font-weight: bold;
}

a {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 3rem 2rem 0.5rem;
}

.site-title {
  font-family: 'Manufacturing Consent', Arial, sans-serif;
  font-size: 3rem;
  font-weight: normal;
  letter-spacing: 0.01em;
}

.site-title a {
  color: #000000;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.site-title a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

.site-title a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
}

/* Navigation */
nav {
  padding: 0.25rem 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  gap: 3rem;
}

nav a {
  font-size: 2rem;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

nav a:hover, nav a.nav-active, nav a.nav-parent {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

nav a.nav-active {
  pointer-events: none;
  cursor: default;
}

nav a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
}

/* Hero */
.hero {
  padding: 0 0 2rem 0;
  overflow: visible;
}

.hero::after {
  content: "";
  display: table;
  clear: both;
}

.hero img {
  width: 60%;
  height: auto;
  display: block;
  margin-left: auto;
}

img {
  margin-left: auto;
  display: block;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.video-container {
  width: 50vw;
  float: right;
  margin-right: calc(-50vw + 50% + 2rem);
  position: relative;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(20%) saturate(150%) hue-rotate(-10deg);
}

.video-container a {
  display: block;
}

.caption {
  font-family: Arial, sans-serif;
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

/* Main Content */
main {
  padding: 1rem 0;
}


/* Footer */
footer {
  padding: 2rem;
  text-align: left;
  margin-top: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.footer-heart {
  flex-shrink: 0;
}

.footer-content {
  flex: 1;
}

.footer-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-email {
  font-size: 0.9rem;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.article-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.article-thumbnail {
  flex-shrink: 0;
  width: 180px;
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: 0;
}

.article-content {
  flex: 1;
}

.article-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.article-title a {
  color: #000000;
}

.article-title a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.article-title a:active {
  color: #8B4513;
}

.article-subtitle {
  font-family: 'Anonymous Pro', monospace;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.article-date {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.article-snippet {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.buy-link, .download-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #ff91a4;
  text-decoration: underline;
  margin-right: 1rem;
}

.buy-link:hover, .download-link:hover {
  color: #FFFFFF;
}

.buy-link:active, .download-link:active {
  color: #8B4513;
}

.download-link.inactive {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.download-links {
  margin: 1rem 0;
}

/* Heart Like Button - Default (ORANGE): black heart, white hover, brown active */
.like-button {
  background: none;
  border: none;
  font-size: 4.5rem;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
  color: #000000;
  transition: transform 0.2s, color 0.15s ease;
  padding: 0;
  line-height: 1;
}

.like-button:hover {
  transform: scale(1.1);
  color: #FFFFFF;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

.like-button:active {
  color: #8B4513;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

.like-button.beating {
  animation: heartDoubleBeat 1.2s ease;
}

@keyframes heartDoubleBeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.3); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* About Page */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.about-image {
  flex-shrink: 0;
  width: 300px;
}

.about-image img {
  width: 100%;
  height: auto;
  margin-left: 0;
  cursor: inherit;
}

.about-image .caption {
  text-align: left;
  margin-top: 0.5rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text a {
  text-decoration: underline;
}

/* Book Spread */
.book-container {
  perspective: 2000px;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.book {
  display: flex;
  position: relative;
  transform-style: preserve-3d;
}

.book-spread {
  display: flex;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.page {
  width: 350px;
  min-height: 500px;
  background: #f5f5dc;
  color: #333;
  padding: 2rem;
  position: relative;
}

.page-left {
  border-right: 1px solid #ddd;
  box-shadow: inset -10px 0 20px rgba(0,0,0,0.1);
}

.page-right {
  box-shadow: inset 10px 0 20px rgba(0,0,0,0.1);
}

.page-content {
  font-size: 0.95rem;
  line-height: 1.8;
}

.page-content h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.page-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.page-number {
  position: absolute;
  bottom: 1rem;
  font-size: 0.8rem;
  color: #666;
}

.page-left .page-number {
  left: 2rem;
}

.page-right .page-number {
  right: 2rem;
}

.book-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.book-nav button {
  background: #ff91a4;
  color: #c71585;
  border: none;
  padding: 0.5rem 1.5rem;
  font-family: 'Anonymous Pro', monospace;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.book-nav button:hover {
  background: #000080;
  color: #ffffff;
}

.book-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card a {
  text-decoration: none;
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #ff91a4;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin-left: 0;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.05);
}

.project-card-title {
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.project-card-title a {
  color: #000000;
  text-decoration-color: transparent;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.project-card-title a:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

.project-card-title a:active {
  color: #8B4513;
  text-decoration-color: #8B4513;
}

.project-card-subtitle {
  font-family: 'Anonymous Pro', monospace;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Click Pixel Canvas */
#pixel-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 9999;
}

html {
  position: relative;
  min-height: 100%;
}

/* Color scheme pixel drawing colors */
html.color-scheme-1 { --pixel-color: #C41E3A; } /* MAGENTA: lipstick red */
html.color-scheme-2 { --pixel-color: #FF0000; } /* BLACK: bright red */
html.color-scheme-3 { --pixel-color: #FFFFFF; } /* PURPLE: white (default) */
html.color-scheme-4 { --pixel-color: #ADFF2F; } /* PRIMARY: acid green */
html.color-scheme-5 { --pixel-color: #FF6600; } /* GREEN: bright orange */

/* Video Gallery (Free Ironing) */
.video-gallery {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.video-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.video-slide.active {
  display: flex;
  position: relative;
  gap: 2rem;
  align-items: flex-start;
  opacity: 1;
}

.video-half {
  width: 70%;
}

.video-half video {
  width: 100%;
  height: auto;
}

.video-half iframe,
.video-container video,
.flags-video-item iframe,
.spectrum-item {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
}

/* Color scheme iframe/video/spectrum cursors */
html.color-scheme-1 .video-half iframe,
html.color-scheme-2 .video-half iframe,
html.color-scheme-3 .video-half iframe,
html.color-scheme-4 .video-half iframe,
html.color-scheme-5 .video-half iframe,
html.color-scheme-1 .video-container video,
html.color-scheme-2 .video-container video,
html.color-scheme-3 .video-container video,
html.color-scheme-4 .video-container video,
html.color-scheme-5 .video-container video,
html.color-scheme-1 .flags-video-item iframe,
html.color-scheme-2 .flags-video-item iframe,
html.color-scheme-3 .flags-video-item iframe,
html.color-scheme-4 .flags-video-item iframe,
html.color-scheme-5 .flags-video-item iframe,
html.color-scheme-1 .spectrum-item,
html.color-scheme-2 .spectrum-item,
html.color-scheme-3 .spectrum-item,
html.color-scheme-4 .spectrum-item,
html.color-scheme-5 .spectrum-item {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

.wall-text {
  width: 30%;
  padding: 1rem 2rem;
  flex-shrink: 0;
}

.wall-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.wall-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.gallery-nav {
  position: absolute;
  top: 400px;
  font-size: 3rem;
  background: none;
  border: none;
  color: #000000;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
  transition: color 0.15s ease;
  z-index: 100;
  font-family: serif;
}

.gallery-nav:hover {
  color: #FFFFFF;
}

.gallery-nav:active {
  color: #8B4513;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

.gallery-nav.prev {
  left: 1rem;
}

.gallery-nav.next {
  right: 1rem;
}

/* Spectrum Colors Gallery */
.spectrum-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.spectrum-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  cursor: pointer;
}

.spectrum-image {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.spectrum-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spectrum-image img.front {
  position: relative;
  z-index: 1;
}

.spectrum-image img.corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
}

.spectrum-item:hover .spectrum-image img {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.spectrum-item:hover .spectrum-image img.front {
  opacity: 0;
}

.spectrum-item:hover .spectrum-image img.corner {
  opacity: 1;
}

.spectrum-caption {
  flex: 1;
}

.spectrum-caption p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.spectrum-caption em {
  font-style: italic;
}

/* Featured spectrum item - larger with caption below, left aligned */
.spectrum-item-featured {
  flex-direction: column;
  align-items: flex-start;
}

.spectrum-item-featured .spectrum-image {
  width: 100%;
  max-width: 900px;
}

.spectrum-item-featured .spectrum-image img {
  width: 100%;
}

.spectrum-item-featured .spectrum-caption {
  text-align: left;
  margin-top: 0.5rem;
}

/* No hover effect on featured item */
.spectrum-item-featured:hover .spectrum-image img {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.spectrum-item-featured:hover .spectrum-image img.front {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  margin: 0;
}

.lightbox .caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* Flags Gallery (Checklist Thumbnails) */
.flags-gallery {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.flags-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  cursor: inherit;
}

.flags-image {
  width: 200px;
  flex-shrink: 0;
}

.flags-image img {
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: inherit;
}

.flags-item:hover .flags-image img {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.flags-caption {
  flex: 1;
  padding-top: 0.5rem;
}

.flags-caption p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Flags Lightbox */
.flags-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.flags-lightbox.active {
  display: flex;
}

.flags-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.flags-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="12" cy="12" r="9" fill="none" stroke="%23fff" stroke-width="2"/><line x1="19" y1="19" x2="28" y2="28" stroke="%23fff" stroke-width="2"/><line x1="8" y1="12" x2="16" y2="12" stroke="%23fff" stroke-width="2"/><line x1="12" y1="8" x2="12" y2="16" stroke="%23fff" stroke-width="2"/></svg>') 12 12, zoom-in;
  transition: transform 0.3s ease;
}

.flags-lightbox-img.zoomed {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="12" cy="12" r="9" fill="none" stroke="%23fff" stroke-width="2"/><line x1="19" y1="19" x2="28" y2="28" stroke="%23fff" stroke-width="2"/><line x1="8" y1="12" x2="16" y2="12" stroke="%23fff" stroke-width="2"/></svg>') 12 12, zoom-out;
  transform: scale(1.5);
}

.flags-lightbox-caption {
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 600px;
  padding: 0 1rem;
}

/* Spectrum lightbox - caption on right */
#spectrum-lightbox .flags-lightbox-content {
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

#spectrum-lightbox .flags-lightbox-img {
  max-width: 70%;
}

#spectrum-lightbox .flags-lightbox-caption {
  text-align: left;
  max-width: 250px;
  padding-top: 1rem;
}

#spectrum-lightbox .flags-lightbox-caption p {
  margin: 0 0 0.75rem 0;
}

#spectrum-lightbox .flags-lightbox-caption p:last-child {
  margin-bottom: 0;
}

.flags-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 1rem;
  z-index: 10000;
}

.flags-lightbox-nav.prev {
  left: 2rem;
}

.flags-lightbox-nav.next {
  right: 2rem;
}

.flags-lightbox-nav:hover {
  color: #FF8C00;
}

.flags-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

.flags-lightbox-close:hover {
  color: #FF8C00;
}

/* Flags Video Gallery (3-up carousel) */
.flags-video-gallery {
  position: relative;
  margin-top: 8rem;
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.flags-video-gallery h3 {
  text-align: center;
  margin-bottom: 2rem;
}

.flags-video-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  padding: 0 4rem;
  transform: translateX(0);
  will-change: transform;
}

.flags-video-item {
  flex: 0 0 calc(33.333% - 0.67rem);
  max-width: calc(33.333% - 0.67rem);
  position: relative;
}

.flags-video-item iframe,
.flags-video-item img {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Allow clicks on side videos to navigate carousel */
.flags-video-item:not(.center) {
  cursor: pointer;
}

.flags-video-item:not(.center) iframe {
  pointer-events: none;
}

/* Fade effect on side videos */
.flags-video-item:first-child::after,
.flags-video-item:last-child::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
  z-index: 10;
}

.flags-video-item:first-child::after {
  left: 0;
  background: linear-gradient(to right, #D4520A 0%, transparent 100%);
}

.flags-video-item:last-child::after {
  right: 0;
  background: linear-gradient(to left, #D4520A 0%, transparent 100%);
}

/* Color scheme fade overlays */
html.color-scheme-1 .flags-video-item:first-child::after { background: linear-gradient(to right, #8B2252 0%, transparent 100%); }
html.color-scheme-1 .flags-video-item:last-child::after { background: linear-gradient(to left, #8B2252 0%, transparent 100%); }

html.color-scheme-2 .flags-video-item:first-child::after { background: linear-gradient(to right, #000000 0%, transparent 100%); }
html.color-scheme-2 .flags-video-item:last-child::after { background: linear-gradient(to left, #000000 0%, transparent 100%); }

html.color-scheme-3 .flags-video-item:first-child::after { background: linear-gradient(to right, #5D3A6A 0%, transparent 100%); }
html.color-scheme-3 .flags-video-item:last-child::after { background: linear-gradient(to left, #5D3A6A 0%, transparent 100%); }

html.color-scheme-4 .flags-video-item:first-child::after { background: linear-gradient(to right, #2B4F7E 0%, transparent 100%); }
html.color-scheme-4 .flags-video-item:last-child::after { background: linear-gradient(to left, #2B4F7E 0%, transparent 100%); }

html.color-scheme-5 .flags-video-item:first-child::after { background: linear-gradient(to right, #143814 0%, transparent 100%); }
html.color-scheme-5 .flags-video-item:last-child::after { background: linear-gradient(to left, #143814 0%, transparent 100%); }

.flags-video-caption {
  text-align: center;
  margin-top: 1rem;
  font-family: Arial, sans-serif;
  font-style: italic;
  font-size: 0.9rem;
  min-height: 2.5em;
  padding: 0 2rem;
}

.flags-video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #000000;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto;
  transition: color 0.15s ease;
  z-index: 100;
  font-family: serif;
}

.flags-video-nav:hover {
  color: #FFFFFF;
}

.flags-video-nav:active {
  color: #8B4513;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important;
}

.flags-video-nav.prev {
  left: 1rem;
}

.flags-video-nav.next {
  right: 1rem;
}

/* Color scheme styles for flags video nav */
html.color-scheme-1 .flags-video-nav { color: #FFFFFF !important; }
html.color-scheme-1 .flags-video-nav:hover { color: #FF8C00 !important; }
html.color-scheme-1 .flags-video-nav:active { color: #FFFACD !important; }

html.color-scheme-2 .flags-video-nav { color: #FF69B4 !important; }
html.color-scheme-2 .flags-video-nav:hover { color: #FFFF00 !important; }
html.color-scheme-2 .flags-video-nav:active { color: #008080 !important; }

html.color-scheme-3 .flags-video-nav { color: #9ACD32 !important; }
html.color-scheme-3 .flags-video-nav:hover { color: #40E0D0 !important; }
html.color-scheme-3 .flags-video-nav:active { color: #ADFF2F !important; }

html.color-scheme-4 .flags-video-nav { color: #FF0000 !important; }
html.color-scheme-4 .flags-video-nav:hover { color: #E6B3CC !important; }
html.color-scheme-4 .flags-video-nav:active { color: #000000 !important; }

html.color-scheme-5 .flags-video-nav { color: #FFFF00 !important; }
html.color-scheme-5 .flags-video-nav:hover { color: #FFB6C1 !important; }
html.color-scheme-5 .flags-video-nav:active { color: #FFFFFF !important; }

/* Color scheme gallery nav colors and cursors - all white cursor */
/* MAGENTA: white text, orange hover, pale yellow click */
html.color-scheme-1 .gallery-nav { color: #FFFFFF !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
html.color-scheme-1 .gallery-nav:hover { color: #FF8C00 !important; }
html.color-scheme-1 .gallery-nav:active { color: #FFFACD !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
/* BLACK: hot pink text, yellow hover, teal click */
html.color-scheme-2 .gallery-nav { color: #FF69B4 !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
html.color-scheme-2 .gallery-nav:hover { color: #FFFF00 !important; }
html.color-scheme-2 .gallery-nav:active { color: #008080 !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
/* PURPLE: mossy green text, bright teal hover, acid green click */
html.color-scheme-3 .gallery-nav { color: #9ACD32 !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
html.color-scheme-3 .gallery-nav:hover { color: #40E0D0 !important; }
html.color-scheme-3 .gallery-nav:active { color: #ADFF2F !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
/* PRIMARY: red text, pastel pink hover, black click */
html.color-scheme-4 .gallery-nav { color: #FF0000 !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
html.color-scheme-4 .gallery-nav:hover { color: #E6B3CC !important; }
html.color-scheme-4 .gallery-nav:active { color: #000000 !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
/* GREEN: yellow text, pastel pink hover, white click */
html.color-scheme-5 .gallery-nav { color: #FFFF00 !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="0,0 0,28 8,20 14,32 18,30 12,18 24,18" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }
html.color-scheme-5 .gallery-nav:hover { color: #FFB6C1 !important; }
html.color-scheme-5 .gallery-nav:active { color: #FFFFFF !important; cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><polygon points="0,0 0,17 5,12 9,20 11,19 7,11 15,11" fill="%23FFFFFF"/></svg>') 0 0, auto !important; }

/* Heart button colors per scheme - match clickable text */
/* MAGENTA: white heart, orange hover, pale yellow active */
html.color-scheme-1 .like-button { color: #FFFFFF !important; }
html.color-scheme-1 .like-button:hover { color: #FF8C00 !important; }
html.color-scheme-1 .like-button:active { color: #FFFACD !important; }
/* BLACK: hot pink heart, yellow hover, teal active */
html.color-scheme-2 .like-button { color: #FF69B4 !important; }
html.color-scheme-2 .like-button:hover { color: #FFFF00 !important; }
html.color-scheme-2 .like-button:active { color: #008080 !important; }
/* PURPLE: mossy green heart, bright teal hover, acid green active */
html.color-scheme-3 .like-button { color: #9ACD32 !important; }
html.color-scheme-3 .like-button:hover { color: #40E0D0 !important; }
html.color-scheme-3 .like-button:active { color: #ADFF2F !important; }
/* PRIMARY: red heart, pastel pink hover, black active */
html.color-scheme-4 .like-button { color: #FF0000 !important; }
html.color-scheme-4 .like-button:hover { color: #E6B3CC !important; }
html.color-scheme-4 .like-button:active { color: #000000 !important; }
/* GREEN: yellow heart, pastel pink hover, white active */
html.color-scheme-5 .like-button { color: #FFFF00 !important; }
html.color-scheme-5 .like-button:hover { color: #FFB6C1 !important; }
html.color-scheme-5 .like-button:active { color: #FFFFFF !important; }

/* Poem Display */
.poem-display {
  position: absolute;
  top: 340px;
  left: 2rem;
  z-index: 1000;
  text-align: left;
  max-width: 60%;
}

.poem-display a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 6rem;
  color: #FFFFFF;
  text-transform: lowercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: block;
}

.poem-display a:hover {
  color: #FFFFFF;
  text-decoration: none;
  opacity: 1;
}

.poem-display a:active {
  color: #FFFFFF;
}

/* Poem colors per color scheme - match hover color for clickable text */
/* MAGENTA: orange hover color */
html.color-scheme-1 .poem-display a,
html.color-scheme-1 .poem-display a:hover,
html.color-scheme-1 .poem-display a:active { color: #FF8C00 !important; }

/* BLACK: yellow hover color */
html.color-scheme-2 .poem-display a,
html.color-scheme-2 .poem-display a:hover,
html.color-scheme-2 .poem-display a:active { color: #FFFF00 !important; }

/* PURPLE: bright teal hover color */
html.color-scheme-3 .poem-display a,
html.color-scheme-3 .poem-display a:hover,
html.color-scheme-3 .poem-display a:active { color: #40E0D0 !important; }

/* PRIMARY: pastel pink hover color */
html.color-scheme-4 .poem-display a,
html.color-scheme-4 .poem-display a:hover,
html.color-scheme-4 .poem-display a:active { color: #E6B3CC !important; }

/* GREEN: pastel pink hover color */
html.color-scheme-5 .poem-display a,
html.color-scheme-5 .poem-display a:hover,
html.color-scheme-5 .poem-display a:active { color: #FFB6C1 !important; }

/* Invert tesseract thumbnail */
img[src*="tesseract-thumb"] {
  filter: invert(1);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  /* Header */
  header {
    padding: 2rem 1rem 0.5rem;
  }

  .site-title {
    font-size: 2.2rem;
  }

  /* Navigation */
  nav {
    padding: 0.25rem 1rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  nav a {
    font-size: 1.4rem;
  }

  /* Container */
  .container {
    padding: 0 1rem;
  }

  /* Hero / Homepage */
  .video-container {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .hero {
    margin-top: calc(100vh - 280px);
  }

  .poem-display {
    position: absolute;
    top: 100px;
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.5rem;
    z-index: 10;
  }

  .poem-display a {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  /* Remove tap highlight on buttons */
  .like-button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-card-title {
    font-size: 1.1rem;
  }

  /* Article List (Writing page) */
  .article-item {
    flex-direction: column;
    gap: 1rem;
  }

  .article-thumbnail {
    width: 100%;
    max-width: 250px;
  }

  .article-title {
    font-size: 1.3rem;
  }

  /* About Page */
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image {
    width: 100%;
    max-width: 300px;
  }

  /* Video Gallery (Free Ironing) */
  .video-slide.active {
    flex-direction: column;
  }

  .video-half {
    width: 100%;
  }

  .wall-text {
    width: 100%;
    padding: 1rem 0;
  }

  .gallery-nav {
    top: 200px;
    font-size: 2rem;
  }

  .gallery-nav.prev {
    left: 0.5rem;
  }

  .gallery-nav.next {
    right: 0.5rem;
  }

  /* Flags Gallery */
  .flags-item {
    flex-direction: row;
    gap: 1rem;
  }

  .flags-image {
    width: 140px;
  }

  .flags-lightbox-nav {
    font-size: 2rem;
  }

  .flags-lightbox-nav.prev {
    left: 0.5rem;
  }

  .flags-lightbox-nav.next {
    right: 0.5rem;
  }

  .flags-lightbox-img.zoomed {
    transform: scale(2);
  }

  /* Flags Video Gallery - tablet */
  .flags-video-gallery {
    margin-top: 6rem;
  }

  .flags-video-row {
    padding: 0 3rem;
  }

  .flags-video-item {
    flex: 0 0 calc(33.333% - 0.5rem);
    max-width: calc(33.333% - 0.5rem);
  }

  .flags-video-nav {
    font-size: 2rem;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .footer-heart {
    order: -1;
  }

  .like-button {
    font-size: 3rem;
  }

  .footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
  }

  /* Book Spread */
  .book-spread {
    flex-direction: column;
  }

  .page {
    width: 100%;
    min-height: auto;
  }

  .page-left {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  /* Spectrum Gallery - tablet */
  .spectrum-gallery {
    gap: 2rem;
  }

  .spectrum-item {
    gap: 1.5rem;
  }

  .spectrum-image {
    width: 160px;
  }

  .spectrum-caption p {
    font-size: 0.85rem;
  }

  /* Lightbox improvements */
  .flags-lightbox-content {
    padding: 1rem;
  }

  .flags-lightbox-caption {
    font-size: 0.85rem;
    padding: 0.5rem 0;
  }

  #spectrum-lightbox .flags-lightbox-caption {
    max-width: 200px;
  }

  /* Play button - larger touch target */
  .video-play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  /* Header */
  header {
    padding: 1.5rem 1rem 0.5rem;
  }

  .site-title {
    font-size: 1.8rem;
  }

  /* Navigation */
  nav ul {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  nav a {
    font-size: 1.2rem;
  }

  /* Poem */
  .poem-display a {
    font-size: 2.8rem;
  }

  /* Projects Grid - single column */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card-title {
    font-size: 1.2rem;
  }

  /* Article titles */
  .article-title {
    font-size: 1.2rem;
  }

  /* Wall text */
  .wall-text h3 {
    font-size: 1.2rem;
  }

  /* Gallery nav */
  .gallery-nav {
    top: 150px;
    font-size: 1.8rem;
  }

  /* Flags Video Gallery - mobile: show only center video */
  .flags-video-gallery {
    margin-top: 4rem;
  }

  .flags-video-row {
    padding: 0 2.5rem;
  }

  .flags-video-item {
    flex: 0 0 100%;
    max-width: 100%;
    display: none;
  }

  .flags-video-item.center {
    display: block;
  }

  /* Hide fade overlays on mobile since only center shows */
  .flags-video-item:first-child::after,
  .flags-video-item:last-child::after {
    display: none;
  }

  .flags-video-nav {
    font-size: 1.8rem;
  }

  /* Lightbox */
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  /* Footer */
  .like-button {
    font-size: 2.5rem;
  }

  .footer-name {
    font-size: 1rem;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: flex-start;
  }

  /* Spectrum Gallery - mobile: stack vertically */
  .spectrum-item {
    flex-direction: column;
    gap: 1rem;
  }

  .spectrum-image {
    width: 100%;
    max-width: 200px;
  }

  .spectrum-caption p {
    font-size: 0.85rem;
  }

  /* Lightbox - mobile */
  .flags-lightbox-nav {
    font-size: 1.5rem;
  }

  .flags-lightbox-close {
    font-size: 2rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  #spectrum-lightbox .flags-lightbox-caption {
    max-width: 100%;
    padding: 1rem 0;
  }

  /* Article list - mobile */
  .article-thumbnail {
    max-width: 200px;
  }

  .article-subtitle {
    font-size: 0.8rem;
  }

  .article-snippet {
    font-size: 0.85rem;
  }

  .buy-link, .download-link {
    font-size: 0.85rem;
  }

  /* About page - mobile */
  .about-image {
    max-width: 250px;
  }

  .about-text p {
    font-size: 0.9rem;
  }

  /* Play button - mobile */
  .video-play-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  /* Poem - smaller font on tiny screens */
  .poem-display a {
    font-size: 2.2rem;
  }

  .footer-email {
    font-size: 0.85rem;
  }

  /* Mobile scroll zone - visible strip on right edge for scrolling */
  .mobile-scroll-zone {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 44px;
    height: 100%;
    z-index: 9999;
    touch-action: pan-y;
    background: transparent;
  }

  .mobile-scroll-zone::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
  }

  .mobile-scroll-indicator {
    position: absolute;
    right: 0;
    width: 6px;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    transition: background 0.2s;
  }

  .mobile-scroll-zone:active .mobile-scroll-indicator {
    background: rgba(255, 255, 255, 1);
  }

  /* Custom mobile scrollbar - always visible */
  .mobile-scrollbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 12px;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: block;
  }

  .mobile-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    min-height: 60px;
    background: #FF6B35;
    border-radius: 6px;
  }

  /* Color scheme scrollbar colors */
  html.color-scheme-1 .mobile-scrollbar-thumb { background: #FF8C00; }
  html.color-scheme-2 .mobile-scrollbar-thumb { background: #FFFF00; }
  html.color-scheme-3 .mobile-scrollbar-thumb { background: #40E0D0; }
  html.color-scheme-4 .mobile-scrollbar-thumb { background: #E6B3CC; }
  html.color-scheme-5 .mobile-scrollbar-thumb { background: #FFB6C1; }

  /* Hide native scrollbar on mobile */
  html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  ::-webkit-scrollbar {
    display: none;
  }
}
