/*
  STOODIO v2
  Elegant Retro. Less is more.

  Fonts:
  - Instrument Serif: Headlines, quotes (elegant)
  - System monospace: Labels, UI (retro)
*/

/* ============================================
   CUSTOM PROPERTIES
   ============================================ */

:root {
  /* Dark mode (default) */
  --bg: #0a0a0a;
  --fg: #e8e8e8;
  --fg-muted: #888;
  --accent: #f4a623; /* Warm amber */
  --border: #222;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-pixel: 'Silkscreen', cursive;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;

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

  /* Sizing */
  --max-width: 900px;
}

/* Light mode */
:root.light {
  --bg: #f5f3f0;
  --fg: #1a1a1a;
  --fg-muted: #666;
  --border: #ddd;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   TEXTURE OVERLAY
   ============================================ */

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  /* Noise grain */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

:root.light .texture {
  opacity: 0.02;
}

/* ============================================
   BLUEPRINT GRID & TECHNICAL ELEMENTS
   ============================================ */

.blueprint-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Dot matrix grid */
  background-image:
    radial-gradient(circle, var(--fg-muted) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.12;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  animation: dotPulse 8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 0.08;
    background-size: 24px 24px;
  }
  50% {
    opacity: 0.14;
    background-size: 25px 25px;
  }
}

:root.light .blueprint-grid {
  animation: dotPulseLight 8s ease-in-out infinite;
}

@keyframes dotPulseLight {
  0%, 100% {
    opacity: 0.05;
    background-size: 24px 24px;
  }
  50% {
    opacity: 0.09;
    background-size: 25px 25px;
  }
}

/* Corner crosshairs - technical registration mark style */
.corner-bracket {
  position: fixed;
  width: 20px;
  height: 20px;
  z-index: 50;
  pointer-events: none;
}

.corner-bracket::before,
.corner-bracket::after {
  content: '';
  position: absolute;
  background: var(--fg-muted);
  opacity: 0.5;
}

/* Vertical line */
.corner-bracket::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

/* Horizontal line */
.corner-bracket::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.corner-bracket.top-left {
  top: 24px;
  left: 24px;
}

.corner-bracket.top-right {
  top: 24px;
  right: 24px;
}

.corner-bracket.bottom-left {
  bottom: 24px;
  left: 24px;
}

.corner-bracket.bottom-right {
  bottom: 24px;
  right: 24px;
}

/* Edge markers - measurement tick feel */
.edge-marker {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 25vh;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--fg-muted);
  opacity: 0.4;
}

.edge-marker.left {
  left: 24px;
  top: 30vh;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.edge-marker span {
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .corner-bracket,
  .edge-marker {
    display: none;
  }
}

/* ============================================
   THEME TOGGLE
   ============================================ */

.theme-toggle {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 100;
  background: none;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle .moon {
  display: inline;
}

.theme-toggle .sun {
  display: none;
}

:root.light .theme-toggle .moon {
  display: none;
}

:root.light .theme-toggle .sun {
  display: inline;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

p {
  max-width: 55ch;
}

.mono {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label {
  color: var(--fg-muted);
  margin-bottom: var(--space-md);
}

.eyebrow {
  color: var(--fg-muted);
  margin-bottom: var(--space-xs);
  opacity: 0.6;
}

.lede {
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--fg);
  opacity: 0.75;
  margin-top: var(--space-lg);
  max-width: 55ch;
  line-height: 1.4;
}

blockquote {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-style: italic;
  max-width: 22ch;
  line-height: 1.25;
}

.attribution {
  margin-top: var(--space-md);
  color: var(--accent);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
}

/* ============================================
   LAYOUT
   ============================================ */

main {
  position: relative;
}

.section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
}

.section:nth-child(odd) {
  border-left: 1px solid var(--border);
  margin-left: var(--space-lg);
  padding-left: var(--space-lg);
}

@media (max-width: 768px) {
  .section:nth-child(odd) {
    margin-left: var(--space-sm);
    padding-left: var(--space-md);
  }
}

.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
}

@media (max-width: 768px) {
  .hero {
    text-align: left;
    padding: var(--space-lg) var(--space-md);
  }

  .hero-content {
    max-width: 100%;
  }
}

.hero-logo {
  width: clamp(140px, 25vw, 200px);
  height: auto;
  margin-bottom: var(--space-md);
  opacity: 0.7;
  /* Use CSS filter for color adaptation */
  filter: brightness(0) invert(0.9);
}

:root.light .hero-logo {
  filter: brightness(0) invert(0.1);
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-muted);
}

.blink {
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}

/* Cursor blink */
.cursor {
  font-family: var(--font-pixel);
  color: var(--accent);
  animation: cursor-blink 1s step-end infinite;
  margin-left: 0.1em;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.section-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--fg);
  opacity: 0.7;
  margin-bottom: var(--space-xl);
  max-width: 50ch;
  line-height: 1.5;
}

.service {
  position: relative;
  padding-left: var(--space-md);
}

/* Technical marker line */
.service::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--border) 0,
    var(--border) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* Tick mark at top */
.service::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 1px;
  background: var(--border);
}

.service h3 {
  color: var(--accent);
  font-size: 1.5rem;
}

.service p {
  color: var(--fg);
  opacity: 0.75;
  font-size: 1.15rem;
  line-height: 1.6;
}

/* ============================================
   PROCESS / HOW WE WORK
   ============================================ */

.process-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.process-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.process-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5rem);
  font-style: italic;
  color: var(--border);
  line-height: 0.8;
  min-width: 80px;
}

.process-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--fg);
}

.process-content p {
  color: var(--fg);
  opacity: 0.75;
  font-size: 1.15rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .process-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .process-number {
    min-width: auto;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* ============================================
   CLIENT LOGOS
   ============================================ */

.logos-section {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logos-label {
  text-align: center;
  margin-bottom: var(--space-md);
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-item {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--fg-muted);
  opacity: 0.6;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.logo-item:hover {
  opacity: 1;
}

/* Logo row */
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.logo-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  opacity: 0.6;
}

.logo-divider {
  color: var(--border);
  opacity: 0.4;
}

@media (max-width: 600px) {
  .logo-name {
    font-size: 0.6rem;
  }

  .logos-row {
    gap: var(--space-xs);
  }
}

/* ============================================
   STATS
   ============================================ */

.stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.work {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  flex: 1;
  min-width: 150px;
}

.stat-number {
  display: block;
  font-size: clamp(5rem, 20vw, 14rem);
  font-weight: 400;
  line-height: 0.8;
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: var(--space-sm);
}

/* Case study teasers */
.case-teasers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 800px) {
  .case-teasers {
    grid-template-columns: 1fr;
  }
}

.case-teaser {
  display: block;
  padding: var(--space-md);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.case-teaser:hover {
  border-color: var(--accent);
  background: rgba(244, 166, 35, 0.05);
}

.teaser-number {
  font-size: 0.6rem;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.case-teaser h3 {
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: var(--space-xs);
}

.case-teaser p {
  font-size: 0.9rem;
  color: var(--fg);
  opacity: 0.75;
  line-height: 1.5;
}

.work-link {
  display: inline-block;
  margin-top: var(--space-xl);
  color: var(--fg-muted);
  text-decoration: none;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.work-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   FOUNDERS
   ============================================ */

.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media (max-width: 600px) {
  .founders {
    grid-template-columns: 1fr;
  }
}

.founder h3 {
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.founder p {
  color: var(--fg);
  opacity: 0.75;
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  text-align: center;
}

.contact h2 {
  margin-top: var(--space-md);
}

.email-link {
  display: inline-block;
  margin-top: var(--space-lg);
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--accent);
  transition: all 0.2s ease;
}

.email-link:hover {
  background: var(--accent);
  color: var(--bg);
}

.cta-button {
  display: inline-block;
  margin-top: var(--space-lg);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--bg);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  background: var(--accent);
  border: 2px solid var(--accent);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.cta-button:hover {
  background: transparent;
  color: var(--accent);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.back-link {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 100;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
}

.contact-page-inner {
  max-width: 600px;
  width: 100%;
}

.contact-page h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-intro {
  font-size: 1.25rem;
  color: var(--fg);
  opacity: 0.75;
  margin-bottom: var(--space-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.6rem;
  color: var(--fg-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: var(--space-sm);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  margin-top: var(--space-md);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--accent);
  border: 2px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.submit-button:hover {
  background: transparent;
  color: var(--accent);
}

.contact-alt {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-alt p {
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.email-link-inline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  text-decoration: none;
}

.email-link-inline:hover {
  text-decoration: underline;
}

/* ============================================
   WORK / CASE STUDIES PAGE
   ============================================ */

.work-page {
  min-height: 100vh;
  padding: var(--space-xl) var(--space-md);
  padding-top: calc(var(--space-xl) + 60px);
}

.work-page-inner {
  max-width: 900px;
  margin: 0 auto;
}

.work-page h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.work-intro {
  font-size: 1.25rem;
  color: var(--fg);
  opacity: 0.75;
  margin-bottom: var(--space-xl);
}

.case-studies {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.case-study {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.case-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.case-number {
  color: var(--accent);
  font-size: 0.7rem;
}

.case-category {
  color: var(--fg-muted);
  font-size: 0.6rem;
  opacity: 0.6;
}

.case-study h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: var(--space-xs);
}

.case-tagline {
  font-size: 1.1rem;
  color: var(--fg);
  opacity: 0.7;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

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

@media (max-width: 700px) {
  .case-details {
    grid-template-columns: 1fr;
  }
}

.case-details h3 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
}

.case-details p {
  font-size: 1rem;
  color: var(--fg);
  opacity: 0.75;
  line-height: 1.6;
}

.case-stack ul {
  list-style: none;
  font-size: 0.65rem;
}

.case-stack li {
  color: var(--fg-muted);
  padding: var(--space-xs) 0;
  border-bottom: 1px dotted var(--border);
}

.case-stack li:last-child {
  border-bottom: none;
}

.case-results {
  grid-column: 1 / -1;
  margin-top: var(--space-md);
}

.case-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-md);
}

.case-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}

.stat-desc {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.work-cta {
  margin-top: var(--space-lg);
}

.work-cta p {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
}

.work-cta .cta-button {
  margin-top: 0;
}

/* ============================================
   CHAT INTERFACE (CONTACT PAGE)
   ============================================ */

.chat-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
}

.chat-container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-height: 700px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.chat-header {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.chat-status {
  font-size: 0.55rem;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.chat-header h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-message {
  max-width: 85%;
  animation: messageIn 0.3s ease;
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
}

.message-content {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-size: 1rem;
  line-height: 1.5;
}

.chat-message.bot .message-content {
  background: var(--border);
  color: var(--fg);
}

.chat-message.user .message-content {
  background: var(--accent);
  color: var(--bg);
}

.chat-input-area {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: var(--space-sm);
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input::placeholder {
  color: var(--fg-muted);
  opacity: 0.5;
}

.chat-textarea {
  resize: none;
  min-height: 80px;
}

.chat-send {
  background: var(--accent);
  border: none;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.chat-send:hover {
  opacity: 0.8;
}

.chat-send:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  width: 100%;
}

.chat-option {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-option:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-complete {
  color: var(--accent);
  text-align: center;
  width: 100%;
  padding: var(--space-sm);
}

.hidden-form {
  display: none;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  color: var(--fg-muted);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #d89520;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

/* 16-bit robot cursor */
html {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect x="8" y="2" width="8" height="4" fill="%23f4a623"/><rect x="6" y="6" width="12" height="10" fill="%23f4a623"/><rect x="8" y="8" width="3" height="3" fill="%230a0a0a"/><rect x="13" y="8" width="3" height="3" fill="%230a0a0a"/><rect x="10" y="12" width="4" height="2" fill="%230a0a0a"/><rect x="4" y="8" width="2" height="6" fill="%23f4a623"/><rect x="18" y="8" width="2" height="6" fill="%23f4a623"/><rect x="7" y="16" width="4" height="4" fill="%23f4a623"/><rect x="13" y="16" width="4" height="4" fill="%23f4a623"/></svg>') 12 12, auto;
}

/* Pointer cursor - cute elephant for interactive elements */
a, button, .case-teaser, .chat-option, input, textarea, select, .theme-toggle {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect x="4" y="6" width="4" height="8" fill="%23f4a623"/><rect x="2" y="8" width="2" height="4" fill="%23f4a623"/><rect x="8" y="4" width="10" height="10" fill="%23f4a623"/><rect x="18" y="6" width="4" height="6" fill="%23f4a623"/><rect x="20" y="4" width="2" height="2" fill="%23f4a623"/><rect x="10" y="7" width="2" height="2" fill="%230a0a0a"/><rect x="14" y="7" width="2" height="2" fill="%230a0a0a"/><rect x="8" y="14" width="3" height="6" fill="%23f4a623"/><rect x="15" y="14" width="3" height="6" fill="%23f4a623"/><rect x="6" y="18" width="2" height="2" fill="%23f4a623"/></svg>') 12 12, pointer;
}

/* ============================================
   ENTER OVERLAY
   ============================================ */

.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.enter-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.enter-button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.enter-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.enter-text {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

.enter-hint {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ============================================
   BOOT SEQUENCE
   ============================================ */

.boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.boot-sequence.fade-out {
  opacity: 0;
}

.boot-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 400px;
}

.boot-line {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.boot-line.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Progress bar lines */
.progress-line {
  display: flex;
  gap: 1em;
  align-items: center;
}

.progress-label {
  min-width: 140px;
}

.progress-status {
  color: var(--fg-muted);
  letter-spacing: 0;
}

.progress-status.complete {
  color: var(--accent);
}

/* Checkbox animation */
.checkbox {
  transition: color 0.2s ease;
}

.checkbox.checked {
  color: var(--accent);
}

/* Ready line */
.ready-line {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 0.5em;
}

.ready-line::after {
  content: '_';
  animation: boot-cursor 0.5s step-end infinite;
}

@keyframes boot-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================
   ASCII ART
   ============================================ */

.ascii {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  line-height: 1.2;
  color: var(--border);
  margin-bottom: var(--space-md);
  white-space: pre;
}

@media (max-width: 600px) {
  .ascii {
    font-size: 0.35rem;
  }
}
