:root {
  --void: #06100e;
  --void-soft: #081916;
  --surface: rgba(8, 17, 16, 0.92);
  --surface-raised: rgba(15, 27, 25, 0.94);
  --surface-veil: rgba(233, 241, 224, 0.045);
  --ink: #f0f1e8;
  --ink-soft: rgba(240, 241, 232, 0.72);
  --ink-faint: rgba(240, 241, 232, 0.5);
  --signal: #a8ff51;
  --signal-rgb: 168, 255, 81;
  --vision: #f05ceb;
  --ember: #ff7857;
  --cyan: #46e6ff;
  --line: rgba(168, 255, 81, 0.16);
  --line-soft: rgba(240, 241, 232, 0.1);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --content-max: 88rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 2px var(--void), 0 0 0 4px var(--signal);
}

html {
  min-width: 20rem;
  background: var(--void);
}

[hidden] {
  display: none !important;
}

body.body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring) !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  z-index: 1000002;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--signal);
  background: var(--void);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.nav-logo-row,
.website-link,
.cloneable-title {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-logo-row {
  text-align: left;
}

.cloneable-title {
  color: inherit;
}

.header,
.footer {
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}

body.deck-open .footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.75rem);
}

.w-webflow-badge {
  position: fixed !important;
  display: none !important;
  visibility: hidden !important;
}

.hidden{
  display: none;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* TLDR Modal Styles */
.tldr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Sites Modal (reuses TLDR modal patterns, CRT/pixel styling) */
.sites-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.sites-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sites-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 999999;
}

@supports not (backdrop-filter: blur(5px)) {
  .sites-modal-backdrop { background: rgba(0, 0, 0, 0.9); }
}

.sites-modal-content {
  position: relative;
  width: 92%;
  max-width: 820px;
  max-height: 88vh;
  background: #0f140f;
  border: 2px solid rgba(168,255,81,0.4);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(0,0,0,0.35) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1000000;
  animation: modalSlideIn 0.28s ease-out;
}

.sites-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(135deg, #0b0f0b, #151d14);
  border-bottom: 1px solid rgba(168,255,81,0.25);
}

.sites-modal-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: #A8FF51;
  text-shadow: 0 0 10px rgba(168,255,81,0.35);
  margin: 0;
}

.sites-modal-close {
  background: none;
  border: 1px solid rgba(168,255,81,0.35);
  color: #A8FF51;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sites-modal-close:hover {
  background: rgba(168,255,81,0.08);
  box-shadow: 0 0 12px rgba(168,255,81,0.25);
}

.sites-modal-body {
  padding: 1.25rem;
  flex: 1 1 auto;
  overflow-y: auto;
  color: #e9f9ea;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.site-card {
  display: block;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(10,18,14,0.85) 100%),
    repeating-linear-gradient(90deg, rgba(168,255,81,0.14) 0 1px, transparent 1px 3px);
  border: 2px solid rgba(168,255,81,0.5);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: #d8ffd9;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.site-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(168,255,81,0.08), transparent 60%);
  pointer-events: none;
}

.site-card:hover {
  transform: translateY(-3px);
  border-color: #A8FF51;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 2px rgba(0,0,0,0.35) inset, 0 0 18px rgba(168,255,81,0.25);
}

.site-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 1px;
}

.site-card__url {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: rgba(168,255,81,0.9);
}

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

.tldr-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.tldr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 999999;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(5px)) {
  .tldr-modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
  }
}

.tldr-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  z-index: 1000000;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tldr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #333;
  background: linear-gradient(135deg, #131313, #1f1f1f);
  flex-shrink: 0;
}

.tldr-modal-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #efeeec;
  margin: 0;
  text-align: left;
}

.tldr-modal-close {
  background: none;
  border: none;
  color: #efeeec;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tldr-modal-close:hover {
  background: #ff4c24;
  transform: scale(1.1);
}

.tldr-modal-close svg {
  width: 20px;
  height: 20px;
}

.tldr-modal-body {
  padding: 2rem;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  color: #efeeec;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 0;
  max-height: calc(90vh - 120px);
}

.tldr-modal-body::-webkit-scrollbar {
  width: 8px;
}

.tldr-modal-body::-webkit-scrollbar-track {
  background: #131313;
  border-radius: 4px;
}

.tldr-modal-body::-webkit-scrollbar-thumb {
  background: #ff4c24;
  border-radius: 4px;
}

.tldr-modal-body::-webkit-scrollbar-thumb:hover {
  background: #e63d1a;
}

/* Firefox scrollbar */
.tldr-modal-body {
  scrollbar-width: thin;
  scrollbar-color: #ff4c24 #131313;
}

.tldr-section {
  margin-bottom: 2rem;
}

.tldr-section h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #ff4c24;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.tldr-section p {
  margin-bottom: 1rem;
  color: #e3e1de;
}

.tldr-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.tldr-section li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: #e3e1de;
}

.tldr-section li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #ff4c24;
  font-weight: bold;
}

.tldr-section a {
  color: #ff4c24;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.tldr-section a:hover {
  color: #e63d1a;
  border-bottom-color: #e63d1a;
}

.tldr-section em {
  color: #0ba954;
  font-style: italic;
}

.tldr-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tldr-link-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #131313;
  border-radius: 8px;
  border-left: 3px solid #ff4c24;
}

.tldr-link-item a {
  font-weight: 600;
  font-size: 1.1rem;
}

.tldr-link-item span {
  color: #cbc8c5;
  font-size: 0.9rem;
  font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tldr-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .tldr-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .tldr-modal-title {
    font-size: 1.5rem;
  }
  
  .tldr-modal-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .tldr-modal-content {
    width: 98%;
    max-height: 98vh;
  }
  
  .tldr-modal-header {
    padding: 1rem 1rem 0.8rem;
  }
  
  .tldr-modal-title {
    font-size: 1.3rem;
  }
  
  .tldr-modal-body {
    padding: 1rem;
  }
}

/* Unified dialog surface */
.tldr-modal,
.sites-modal,
.project-modal {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: var(--page-gutter);
}

.tldr-modal[aria-hidden="true"],
.sites-modal[aria-hidden="true"],
.project-modal[aria-hidden="true"] {
  pointer-events: none;
}

.tldr-modal-content,
.sites-modal-content {
  width: min(48rem, 100%);
  max-height: min(52rem, calc(100dvh - (2 * var(--page-gutter))));
  border: 1px solid rgba(var(--signal-rgb), 0.28);
  border-radius: 0.9rem 0.25rem 0.9rem 0.25rem;
  background:
    linear-gradient(145deg, rgba(8, 17, 16, 0.98), rgba(15, 25, 23, 0.97)),
    repeating-linear-gradient(90deg, rgba(var(--signal-rgb), 0.03) 0 1px, transparent 1px 5rem);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.tldr-modal-header,
.sites-modal-header {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 12, 0.82);
}

.tldr-modal-title,
.sites-modal-title {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.tldr-modal-close,
.sites-modal-close {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--signal);
}

.tldr-modal-close:hover,
.sites-modal-close:hover {
  background: rgba(var(--signal-rgb), 0.1);
  transform: none;
}

.tldr-modal-body,
.sites-modal-body {
  padding: clamp(1rem, 3vw, 1.75rem);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  scrollbar-color: var(--signal) transparent;
}

.tldr-section h2 {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tldr-section a,
.site-card__url {
  color: var(--signal);
}

.tldr-link-item,
.site-card {
  border: 1px solid var(--line);
  border-left-color: rgba(var(--signal-rgb), 0.55);
  border-radius: 0.55rem 0.15rem 0.55rem 0.15rem;
  background: rgba(3, 10, 9, 0.48);
}

.site-card:hover {
  border-color: rgba(var(--signal-rgb), 0.65);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.34), 0 0 1.2rem rgba(var(--signal-rgb), 0.1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

