/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: #fafafa;
}

/* ==================== */
/* SIDEBAR LAYOUT       */
/* ==================== */
.page {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.page.scrollable {
  min-height: 100vh;
  height: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100%;
  padding: 3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  z-index: 10;
}


.sidebar-header {
  margin-bottom: 3.5rem;
}

.sidebar-header .brand {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
}


.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-list li {
  border-bottom: 1px solid rgba(250, 250, 249, 0.06);
}

.nav-list li:first-child {
  border-top: 1px solid rgba(250, 250, 249, 0.06);
}

.nav-list a {
  display: block;
  padding: 1.1rem 0;
  color: rgba(250, 250, 249, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s, transform 0.2s;
}

.nav-list a:hover {
  color: #c93a3a;
  transform: translateX(6px);
}

.nav-list a.active {
  color: #c93a3a;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-footer a {
  color: rgba(250, 250, 249, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.sidebar-footer a:hover {
  color: #c93a3a;
}

.sidebar-footer span {
  font-size: 0.65rem;
  color: rgba(250, 250, 249, 0.25);
}

/* Content Wrapper with Slide */
.content-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  transition: transform 0.4s ease, border-radius 0.4s ease;
  z-index: 20;
  overflow-y: auto;
}

.content-wrapper.open {
  transform: translateX(360px);
  border-left: 2px solid #7a0000;
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
}

/* Hero Wrapper (Home page) */
.hero-wrapper {
  position: absolute;
  inset: 0;
  background: #fafaf9;
  transition: transform 0.4s ease, border-radius 0.4s ease;
  z-index: 1;
}

.hero-wrapper.open {
  transform: translateX(360px);
  border-left: 2px solid #7a0000;
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
}

/* Hamburger */
.hamburger {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  padding: 0 0 0 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  transition: transform 0.2s;
}

.hamburger.light {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hamburger:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.hamburger.light:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.hamburger .line {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: width 0.3s, transform 0.3s, opacity 0.3s;
}

.hamburger.light .line {
  background: #c93a3a;
}

.hamburger .line.short { width: 10px; }
.hamburger .line.medium { width: 16px; }
.hamburger .line.long { width: 22px; }

.hamburger.active .line { width: 18px; }
.hamburger.active .line.short { transform: translateY(6px) rotate(45deg); }
.hamburger.active .line.medium { opacity: 0; }
.hamburger.active .line.long { transform: translateY(-6px) rotate(-45deg); }

.hamburger.hide { display: none !important; }

/* Hero Image */
.hero-image-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
}

.hero-image-container img {
  width: 100%;
  height: auto;
}

/* ==================== */
/* HOME PAGE HERO       */
/* ==================== */
.home-hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: inherit;
}

.home-hero img {
  width: 100%;
  height: auto;
}

/* Home page hamburger - lighter style */
.home-hamburger {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  padding: 0 0 0 11px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-hamburger:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.home-hamburger:active {
  transform: scale(0.95);
}

.home-hamburger .line {
  display: block;
  height: 2px;
  background: #c93a3a;
  border-radius: 1px;
  transition: width 0.3s, transform 0.3s, opacity 0.3s;
}

.home-hamburger .line.short { width: 10px; }
.home-hamburger .line.medium { width: 16px; }
.home-hamburger .line.long { width: 22px; }

.hero-wrapper.open .home-hamburger .line { width: 18px; }
.hero-wrapper.open .home-hamburger .line.short { transform: translateY(6px) rotate(45deg); }
.hero-wrapper.open .home-hamburger .line.medium { opacity: 0; }
.hero-wrapper.open .home-hamburger .line.long { transform: translateY(-6px) rotate(-45deg); }

/* Business Card */
.card-container {
  position: absolute;
  bottom: 10rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.business-card {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 190px;
  padding-left: 0.9rem;
  padding-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: #221911;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-shadow: 0 0 1px rgba(74, 56, 40, 0.3);
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  background: rgba(235, 225, 215, 0.85);
  border: 1px solid rgba(200, 190, 175, 0.4);
  border-radius: 4px;
  box-sizing: border-box;
  transform: rotate(-1.5deg) perspective(500px) rotateX(2deg);
  transform-origin: bottom center;
  box-shadow:
    0 0 0 1px rgba(61, 44, 30, 0.05),
    0 1px 2px rgba(61, 44, 30, 0.08),
    -1px 8px 12px -4px rgba(61, 44, 30, 0.15),
    -2px 16px 24px -8px rgba(61, 44, 30, 0.1);
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  border-radius: 2px;
}

.card-logo {
  position: absolute;
  top: 1.5rem;
  left: 0.8rem;
  font-family: 'Brush Script MT', 'Snell Roundhand', 'Bradley Hand', cursive;
  font-size: 1rem;
  font-weight: 400;
  color: #c93a3a;
  letter-spacing: -0.5px;
}

.card-name {
  font-weight: 800;
  text-shadow:
    1px 1px 1px rgba(255, 255, 255, 0.4),
    -0.5px -0.5px 0 rgba(0, 0, 0, 0.15);
}

.card-location {
  color: #221911;
}

.card-contact {
  display: flex;
  gap: 1rem;
}

.business-card a {
  color: #402f20;
  text-decoration: none;
}

.business-card a:hover {
  color: #614635;
}

/* ==================== */
/* SOCIAL SQUAD PAGE    */
/* ==================== */
.main {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

/* Hero with Grid */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.grid-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin-top: -3.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  width: 100%;
}

.grid-item {
  padding: 5px;
}

.grid-item.offset {
  margin-top: 50%;
  margin-bottom: -50%;
}

.grid-item.top-fill {
  visibility: hidden;
  margin-bottom: -100%;
}

.grid-item.top-fill.visible {
  visibility: visible;
  margin-top: -50%;
  margin-bottom: -50%;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
}

.fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -10%;
  background: linear-gradient(to bottom, transparent 0%, #000 90%);
  pointer-events: none;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.hero-text h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 80px rgba(0, 0, 0, 0.6);
}

.hero-text h1 span {
  color: rgba(255, 255, 255, 0.6);
}

.hero-text p {
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

/* Showcase */
.showcase {
  padding: 0;
}

.showcase-item {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.showcase-item.reverse {
  direction: rtl;
}

.showcase-item.reverse > * {
  direction: ltr;
}

.showcase-image {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.placeholder-portrait {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #1c1c1e 0%, #2c2c2e 100%);
  border-radius: 1.5rem;
}

.showcase-caption {
  padding: 4rem;
  max-width: 500px;
}

.showcase-caption .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c93a3a;
  margin-bottom: 1.5rem;
}

.showcase-caption p {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Statement */
.statement {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: #000;
}

.statement h2 {
  font-size: 5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.statement p {
  font-size: 1.5rem;
  font-weight: 400;
  color: #86868b;
  max-width: 700px;
  line-height: 1.5;
}

/* Apply Form */
.apply {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  background: #000;
}

.apply-header {
  text-align: center;
  margin-bottom: 4rem;
}

.apply-header h2 {
  font-size: 3.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.apply-header p {
  font-size: 1.25rem;
  color: #86868b;
}

.apply-form {
  width: 100%;
  max-width: 480px;
}

/* Profile Preview */
.profile-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: #1c1c1e;
  border-radius: 1rem;
}

.profile-preview.empty {
  background: transparent;
  border: 2px dashed #2c2c2e;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #2c2c2e;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pic.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #48484a;
  background: transparent;
}

.profile-icon {
  font-size: 2rem;
  color: #48484a;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.profile-handle {
  font-size: 0.95rem;
  font-weight: 400;
  color: #86868b;
  margin-bottom: 1.5rem;
}

.profile-error {
  font-size: 0.9rem;
  color: #c93a3a;
  margin-top: 0.5rem;
}

.profile-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  color: #86868b;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #86868b;
  margin-bottom: 0.75rem;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #1c1c1e;
  border-radius: 0.75rem;
  overflow: hidden;
}

.input-wrapper.with-btn {
  padding-right: 0.5rem;
}

.input-prefix {
  padding: 1rem;
  padding-right: 0;
  color: #86868b;
  font-size: 1.1rem;
}

.fetch-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c93a3a;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.fetch-btn:hover:not(:disabled) {
  background: #e04444;
  transform: scale(1.05);
}

.fetch-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.htmx-request .fetch-btn {
  opacity: 0.5;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-family: inherit;
  background: #1c1c1e;
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  outline: none;
  transition: box-shadow 0.2s;
}

.input-wrapper input {
  border-radius: 0;
  background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 2px #c93a3a;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #48484a;
}

.form-group textarea {
  resize: none;
}

.submit-btn {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.submit-btn:hover {
  background: #e5e5e5;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* Page Footer */
.page-footer {
  padding: 4rem 2rem;
  text-align: center;
}

.page-footer p {
  font-size: 0.9rem;
  color: #48484a;
}

/* ==================== */
/* FOUNDER PAGE         */
/* ==================== */
.founder-page {
  min-height: 100vh;
  background: #fff;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #e5e5e5;
  z-index: 1000;
}

.progress-fill {
  height: 100%;
  background: #c41200;
  transition: width 0.1s ease-out;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #c41200;
}

.theme-toggle {
  background: none;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: #f0f0f0;
}

.profile {
  max-width: 1200px;
  margin: 0 auto;
}

.profile .hero {
  padding: 3rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: auto;
}

.hero-inner {
  max-width: 680px;
}

.category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #c41200;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c41200;
}

.profile .hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.deck {
  font-size: 1.35rem;
  line-height: 1.5;
  color: #555;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 2rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 1.25rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.author-title {
  font-size: 0.8rem;
  color: #666;
}

.meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.date {
  font-size: 0.85rem;
  color: #1a1a1a;
}

.reading-time {
  font-size: 0.8rem;
  color: #888;
}

.share-bar {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #666;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.share-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.hero-figure {
  margin: 0 auto 3rem;
  max-width: 1000px;
  padding: 0 2rem;
}

.profile-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.initials {
  font-size: 5rem;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.2em;
}

figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.75rem;
  padding: 0 0.5rem;
}

.at-a-glance {
  max-width: 680px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.at-a-glance h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c41200;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #c41200;
  display: inline-block;
}

.at-a-glance dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
  background: #f8f8f8;
  padding: 1.5rem;
  border-left: 3px solid #1a1a1a;
}

.at-a-glance dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.at-a-glance dd {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
  margin: 0;
}

.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  font-family: Georgia, 'Times New Roman', serif;
}

.content p {
  font-size: 1.2rem;
  line-height: 1.85;
  color: #292929;
  margin-bottom: 1.75rem;
}

.content .lead {
  font-size: 1.3rem;
}

.content .lead strong {
  font-weight: 400;
}

.content .lead strong::first-letter {
  float: left;
  font-size: 5rem;
  line-height: 0.75;
  padding-right: 0.12em;
  margin-top: 0.08em;
  font-weight: 700;
  color: #c41200;
  font-family: Georgia, serif;
}

.content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 3rem 0 1.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.01em;
}

.content blockquote {
  margin: 3rem 0;
  padding: 2.5rem 0;
  border-top: 3px solid #1a1a1a;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}

.content blockquote p {
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.timeline {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 3px solid #1a1a1a;
}

.timeline h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c41200;
  margin-bottom: 2rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e5e5e5;
}

.timeline-list li {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: 2.35rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  background: #c41200;
  border-radius: 50%;
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  min-width: 3rem;
}

.timeline-event {
  font-size: 1rem;
  color: #555;
  font-family: Georgia, serif;
}

.article-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  border-top: 3px solid #1a1a1a;
}

.founder-card {
  padding: 2rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.founder-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
  font-family: Georgia, serif;
}

.founder-card .role {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.founder-card .location {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.contact-links a {
  font-size: 0.95rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: #c41200;
  border-color: #c41200;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #c41200;
}

.company-info {
  padding: 2rem 0;
  text-align: left;
}

.company-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.company-info p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.35rem;
}

.company-info .address {
  color: #888;
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  transition: background 0.2s;
}

.back-link:hover {
  background: #c41200;
}

/* ==================== */
/* APPS PAGE            */
/* ==================== */
.apps-page {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  min-height: 100vh;
}

.apps-page h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.apps-page .tagline {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 4rem;
}

.apps-page h2 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 1.5rem;
}

.app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  min-width: 150px;
}

.app-card:hover {
  border-color: #1a1a1a;
  background: #fafafa;
}

.app-card.coming-soon {
  opacity: 0.6;
  cursor: default;
}

.app-card.coming-soon:hover {
  border-color: #e0e0e0;
  background: #fff;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 500;
}

.app-status {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
}

/* ==================== */
/* ONWARDS PAGES        */
/* ==================== */
.onwards-page {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 100vh;
  background: #fff;
}

.onwards-page .back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  padding: 0;
}

.onwards-page .back-link:hover {
  color: #1a1a1a;
  background: none;
}

.onwards-page h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.onwards-page .coming {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

.onwards-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.onwards-links a {
  color: #1a1a1a;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.onwards-links a:hover {
  border-color: #1a1a1a;
  background: #fafafa;
}

.legal-page {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  min-height: 100vh;
  background: #fff;
}

.legal-page .back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  background: none;
  padding: 0;
  display: inline-block;
}

.legal-page .back-link:hover {
  color: #1a1a1a;
  background: none;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.legal-page h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 2rem;
}

.legal-page .subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.legal-content {
  line-height: 1.7;
  color: #333;
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content a {
  color: #1a1a1a;
}

/* Support Form */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.support-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.support-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.support-form input,
.support-form select,
.support-form textarea {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: #fff;
  color: #1a1a1a;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.support-form textarea {
  resize: vertical;
}

.support-form button {
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.support-form button:hover:not(:disabled) {
  background: #333;
}

.support-form button:disabled {
  background: #666;
  cursor: default;
}

.success-message {
  color: #22c55e;
  text-align: center;
  margin-top: 0.5rem;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .hero-text h1 {
    font-size: 4rem;
  }

  .showcase-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .showcase-item.reverse {
    direction: ltr;
  }

  .showcase-image {
    height: auto;
    min-height: 60vh;
  }

  .showcase-caption {
    padding: 2rem 4rem 6rem;
  }

  .showcase-caption p {
    font-size: 2rem;
  }

  .statement h2 {
    font-size: 3rem;
  }

  .statement p {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.75rem 1rem;
  }

  .profile .hero {
    padding: 2rem 1rem;
  }

  .profile .hero h1 {
    font-size: 1.85rem;
  }

  .deck {
    font-size: 1.15rem;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .meta-right {
    align-items: flex-start;
  }

  .hero-figure {
    padding: 0;
    margin-bottom: 2rem;
  }

  .content {
    padding: 0 1rem 3rem;
  }

  .content p {
    font-size: 1.1rem;
  }

  .content .lead strong::first-letter {
    font-size: 4rem;
  }

  .content blockquote p {
    font-size: 1.35rem;
  }

  .article-footer {
    padding: 0 1rem 3rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .sidebar {
    width: 280px;
    padding: 2.5rem 2rem;
  }

  .sidebar-header {
    margin-bottom: 2.5rem;
  }

  .sidebar-header .brand {
    font-size: 1.6rem;
  }

  .nav-list a {
    padding: 1rem 0;
    font-size: 0.9rem;
  }

  .content-wrapper.open,
  .hero-wrapper.open {
    transform: translateX(280px);
  }

  /* Home page mobile */
  .home-hero {
    align-items: flex-start;
  }

  .card-container {
    bottom: 3rem;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-text h1 {
    font-size: 2.75rem;
  }

  .hero-text p {
    font-size: 1.15rem;
  }

  .showcase-image {
    padding: 2rem;
  }

  .showcase-caption {
    padding: 1.5rem 1.5rem 4rem;
  }

  .showcase-caption p {
    font-size: 1.5rem;
  }

  .statement {
    padding: 4rem 1.5rem;
  }

  .statement h2 {
    font-size: 2.25rem;
  }

  .statement p {
    font-size: 1.1rem;
  }

  .apply {
    padding: 4rem 1.5rem;
  }

  .apply-header h2 {
    font-size: 2.5rem;
  }

  .apply-form {
    max-width: 100%;
  }

  .card-container {
    bottom: 3rem;
  }
}

/* Dark mode for founder page */
.founder-page.dark {
  background: #0a0a0a;
}

.founder-page.dark .progress-bar {
  background: #222;
}

.founder-page.dark .top-bar {
  background: #0a0a0a;
  border-color: #222;
}

.founder-page.dark .site-logo {
  color: #fff;
}

.founder-page.dark .theme-toggle {
  border-color: #333;
  color: #fff;
}

.founder-page.dark .theme-toggle:hover {
  background: #222;
}

.founder-page.dark .category {
  color: #ff6b5b;
  border-color: #ff6b5b;
}

.founder-page.dark .nav-category {
  color: #ff6b5b;
}

.founder-page.dark .profile .hero h1 {
  color: #fff;
}

.founder-page.dark .deck {
  color: #aaa;
}

.founder-page.dark .meta-row {
  border-color: #222;
}

.founder-page.dark .author-avatar {
  background: #fff;
  color: #0a0a0a;
}

.founder-page.dark .author-name {
  color: #fff;
}

.founder-page.dark .date {
  color: #ccc;
}

.founder-page.dark .share-btn {
  border-color: #333;
  color: #888;
}

.founder-page.dark .share-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}

.founder-page.dark figcaption {
  color: #888;
}

.founder-page.dark .at-a-glance h3 {
  color: #ff6b5b;
  border-color: #ff6b5b;
}

.founder-page.dark .at-a-glance dl {
  background: #111;
  border-color: #fff;
}

.founder-page.dark .at-a-glance dt {
  color: #666;
}

.founder-page.dark .at-a-glance dd {
  color: #fff;
}

.founder-page.dark .content p {
  color: #ccc;
}

.founder-page.dark .content h2 {
  color: #fff;
}

.founder-page.dark .content blockquote {
  border-top-color: #fff;
  border-bottom-color: #222;
}

.founder-page.dark .content blockquote p {
  color: #fff;
}

.founder-page.dark .timeline {
  border-top-color: #fff;
}

.founder-page.dark .timeline h3 {
  color: #ff6b5b;
}

.founder-page.dark .timeline-list::before {
  background: #333;
}

.founder-page.dark .timeline-list li::before {
  background: #ff6b5b;
}

.founder-page.dark .timeline-year {
  color: #fff;
}

.founder-page.dark .timeline-event {
  color: #aaa;
}

.founder-page.dark .article-footer {
  border-top-color: #fff;
}

.founder-page.dark .founder-card {
  border-bottom-color: #222;
}

.founder-page.dark .founder-card h3 {
  color: #fff;
}

.founder-page.dark .founder-card .role {
  color: #aaa;
}

.founder-page.dark .contact-links a {
  color: #fff;
  border-color: #fff;
}

.founder-page.dark .contact-links a:hover {
  color: #ff6b5b;
  border-color: #ff6b5b;
}

.founder-page.dark .social-links a {
  color: #888;
}

.founder-page.dark .social-links a:hover {
  color: #ff6b5b;
}

.founder-page.dark .company-info h4 {
  color: #fff;
}

.founder-page.dark .company-info p {
  color: #aaa;
}

.founder-page.dark .back-link {
  background: #fff;
  color: #0a0a0a;
}

.founder-page.dark .back-link:hover {
  background: #ff6b5b;
  color: #fff;
}

/* HTMX loading indicator */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline-block;
}
.htmx-request.htmx-indicator {
  display: inline-block;
}

/* ==================== */
/* APPS PAGE            */
/* ==================== */
.apps-page {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 100vh;
  background: #fff;
}

.apps-page h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.apps-page .tagline {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 4rem;
}

.apps-page .apps h2 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 1.5rem;
}

.apps-page .app-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.apps-page .app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  min-width: 150px;
}

.apps-page .app-card:hover {
  border-color: #1a1a1a;
  background: #fafafa;
}

.apps-page .app-card.coming-soon {
  opacity: 0.6;
  cursor: default;
}

.apps-page .app-card.coming-soon:hover {
  border-color: #e0e0e0;
  background: #fff;
}

.apps-page .app-name {
  font-size: 1.25rem;
  font-weight: 500;
}

.apps-page .status {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
}

/* ==================== */
/* ONWARDS PAGE         */
/* ==================== */
.onwards-page {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 100vh;
  background: #fff;
  position: relative;
}

.onwards-page .back-link,
.privacy-page .back-link,
.terms-page .back-link,
.support-page .back-link {
  position: absolute;
  top: 2rem;
  left: 2rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.onwards-page .back-link:hover,
.privacy-page .back-link:hover,
.terms-page .back-link:hover,
.support-page .back-link:hover {
  color: #1a1a1a;
}

.onwards-page h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.onwards-page .coming {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

.onwards-page .links {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.onwards-page .links a {
  color: #1a1a1a;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.onwards-page .links a:hover {
  border-color: #1a1a1a;
  background: #fafafa;
}

/* ==================== */
/* PRIVACY PAGE         */
/* ==================== */
.privacy-page,
.terms-page {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

.privacy-page h1,
.terms-page h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.terms-page h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 2rem;
}

.privacy-page .subtitle,
.support-page .subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.privacy-page .content,
.terms-page .content {
  line-height: 1.7;
  color: #333;
}

.privacy-page .content h3,
.terms-page .content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.privacy-page .content p,
.terms-page .content p {
  margin-bottom: 1rem;
}

.privacy-page .content a,
.terms-page .content a {
  color: #1a1a1a;
}

/* ==================== */
/* SUPPORT PAGE         */
/* ==================== */
.support-page {
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
}

.support-page h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.support-form input,
.support-form select,
.support-form textarea {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

.support-form textarea {
  resize: vertical;
}

.support-form button {
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.support-form button:hover:not(:disabled) {
  background: #333;
}

.support-form button:disabled {
  background: #666;
  cursor: default;
}

.success-message {
  color: #22c55e;
  text-align: center;
  margin-top: 0.5rem;
}

/* Mobile responsive for onwards pages */
@media (max-width: 600px) {
  .onwards-page .links {
    flex-direction: column;
    gap: 1rem;
  }

  .onwards-page .back-link,
  .privacy-page .back-link,
  .terms-page .back-link,
  .support-page .back-link {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
  }
}
