@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&display=swap');

:root {
  color-scheme: dark;
  --accent: #fc8403;
  --accent-contrast: #141414;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  background: #141414;
  color: #222;
  overflow-x: hidden;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: #141414;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: transform 0.3s ease;
}

.top-bar.hidden {
  transform: translateY(-100%);
}

.top-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: white;
  pointer-events: none;
}

.logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.top-bar-menu {
  margin-left: auto;
  position: relative;
  padding: 8px 0;
}

.menu-button {
  border: none;
  background: transparent;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 0;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #1f1f1f;
  border: 1px solid #333;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: opacity 0.35s ease, visibility 0.35s ease;
  opacity: 0;
  visibility: hidden;
}

.top-bar-menu:hover .menu-dropdown,
.top-bar-menu:focus-within .menu-dropdown,
.top-bar-menu.open .menu-dropdown {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.menu-dropdown a {
  color: white;
  text-decoration: none;
  padding: 10px 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu-dropdown a:hover {
  background: #2a2a2a;
}

.gallery-page {
  padding: 150px 0px 40px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;       
}

.page-content {
  padding: 24px clamp(24px, 5vw, 64px) 40px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  color: white;
}

.info-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.info-page p,
.info-page li {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
}

.info-page {
  overflow-wrap: anywhere;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.faq-item p {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: white;
}

.contact-people {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 28px auto 20px;
  max-width: 720px;
  align-items: center;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  justify-content: center;
}

.contact-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  color: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  max-width: 560px;
}

.contact-note {
  margin: 80px auto 0;
  max-width: 560px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.contact-name {
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.contact-box {
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.contact-email {
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.08rem;
  text-decoration: none;
}

/* Email signup form styles */
.signup-section {
  padding: 24px 16px 48px;
}
.signup-wrap {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.email-form {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

@media (min-width: 1101px) {
  .email-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .email-form .signup-message {
    grid-column: 1 / -1;
  }
}

.email-form input[type="email"] {
  flex: 1 1 320px;
  padding: 0 12px;
  border-radius: 0;
  height: 44px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #fff;
  font-size: 1rem;
}
.email-form input::placeholder {
  color: #7a7a7a;
}
.signup-button {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  padding: 0 24px;
  border-radius: 4px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(252, 132, 3, 0.45), 0 10px 30px rgba(252, 132, 3, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.signup-button:hover,
.signup-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  background: #ff9a29;
  box-shadow: 0 0 0 6px rgba(252, 132, 3, 0.18), 0 14px 34px rgba(252, 132, 3, 0.32);
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(252, 132, 3, 0.45), 0 10px 30px rgba(252, 132, 3, 0.22);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(252, 132, 3, 0), 0 10px 30px rgba(252, 132, 3, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup-button {
    animation: none;
  }
}

/* Secondary "prototype" link — visually distinct from the primary waitlist CTA */
.proto-button {
  margin-top: 16px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  transition: background 0.2s ease, transform 0.2s ease;
}

.proto-button:hover,
.proto-button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Sticky mobile "Join waitlist" bar so the CTA stays visible while scrolling */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: none;
  justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-button {
  width: 100%;
  max-width: 420px;
  text-align: center;
  text-decoration: none;
  display: block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  height: 48px;
  line-height: 48px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(252, 132, 3, 0.3);
}

@media (max-width: 900px) {
  .sticky-cta {
    display: flex;
  }

  .footer-menu {
    padding-bottom: 72px;
  }
}
.signup-inline {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.signup-message {
  margin-top: 8px;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.2em;
}
.signup-message.error {
  color: #ff6b6b;
}
.signup-message.ok {
  color: #7ce55c;
}
.signup-legal {
  flex: 0 1 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: left;
}
.signup-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.signup-legal a:hover,
.signup-legal a:focus-visible {
  color: rgba(255, 255, 255, 0.78);
}
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.contact-email:hover {
  text-decoration: underline;
}


.wiggle-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: calc(100vw + 40rem);
  margin: 0 auto;
}

.wiggle-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(20, 200px);
  column-gap: 12px;
  width: max-content;
}

.row-overlay {
  position: absolute;
  left: 50vw;
  top: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(4.4rem, 10vw, 6.2rem);
  letter-spacing: 0.03em;
  text-transform: none;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.793), 0 0 40px rgba(0, 0, 0, 0.782);
}

h1.row-overlay,
h1.feature-subtitle,
h2.feature-subtitle,
h3.feature-subtitle,
h2.feature-caption,
h3.feature-caption,
h2.instagram-text,
h3.instagram-text {
  margin: 0;
}


.wiggle-item {
  position: relative;
  aspect-ratio: 1740 / 978;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.wiggle-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
  min-width: 200px;
  min-height: 112px;
}

.feature-section {
  padding: 30px 24px 0px;
  overflow-x: hidden;
}

.feature-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 24px;
  min-height: 480px;
}

.feature-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: white;
  max-width: 600px;
  margin: 0 auto;
}

.feature-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0em;
  text-transform: none;
}

.feature-box {
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
  color: #f0f0f0;
  background: transparent;
}

.feature-video-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: 100%;
}

.feature-video {
  width: min(100%, 520px);
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  background: transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.feature-caption {
  margin-bottom: 18px;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-transform: none;
  text-align: center;
}

.process-section {
  padding: 35px 0px 80px;
  overflow-x: hidden;
}

.title-section {
  padding: 20px 24px 40px;
  overflow-x: hidden;
}

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

.title-content .feature-subtitle {
  color: white;
  font-size: 3rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.process-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 650px) minmax(320px, 1fr);
  align-items: start;
  gap: 24px;
}

.process-image-wrap {
  display: flex;
  justify-content: center;
  align-items: start;
}

.process-image {
  width: min(100%, 1500px);
  height: auto;
  display: block;
  object-fit: contain;
}

.process-copy {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
  margin-top: 50px;
}

.project-specs-section {
  padding: 0 24px 80px;
  overflow-x: hidden;
}

.project-specs-row {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.project-specs-extra {
  max-width: 1200px;
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  padding: 0 0px;
}

.project-specs-extra .project-spec-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  max-width: 1000px;
}

.project-specs-extra .project-spec-copy {
  text-align: left;
  max-width: 320px;
  order: -1;
  font-family: 'Space Grotesk', sans-serif;
}

.project-specs-extra .project-spec-copy .feature-subtitle {
  font-size: 3rem;
  letter-spacing: 0.08em;
}

.project-spec-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.project-spec-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.project-specs-extra .project-spec-image {
  max-width: 600px;
  margin: 0;
  flex-shrink: 0;
}

.project-spec-copy {
  width: 100%;
  max-width: 320px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-copy .feature-subtitle {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 0.08em;
}

.process-box {
  width: calc(100% - 48px);
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 1100px) {
  .feature-content {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .feature-side {
    order: 2;
  }

  .feature-video-wrap {
    order: 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .feature-video {
    width: min(100%, 600px);
    margin-bottom: 24px;
  }

  /* Alex the Inventor section */
  .project-specs-extra {
    max-width: 100%;
    margin: 60px 0 0;
    padding: 0 16px;
    flex-direction: column;
  }

  .project-specs-extra .project-spec-item {
    flex-direction: column;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
  }

  .project-specs-extra .project-spec-copy {
    order: 0;
    text-align: center;
    max-width: 400px;
  }

  .project-specs-extra .project-spec-image {
    max-width: 600px;
    order: -1;
  }

  .project-specs-extra .project-spec-copy .feature-subtitle {
    font-size: 1.8rem;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Still building section at 1200px */
  .process-content {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .process-copy {
    text-align: center;
    margin-top: 25px;
  }

  .process-image {
    transform: scale(1.3);
    margin-top: 20px;
  }

  .process-section {
    padding: 35px 0px 40px;
  }

  /* Center email form at 1200px */
  .signup-inline {
    display: flex;
    justify-content: center;
  }

  .email-form {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 1101px) and (max-width: 1248px) {
  .process-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 900px) {
  /* Center email form when stacked */
  .signup-inline {
    display: flex;
    justify-content: center;
  }

  .email-form {
    max-width: 300px;
    flex-direction: column;
    gap: 10px;
  }

  .email-form input[type="email"] {
    width: 100%;
    max-height: 44px;
    padding: 0 12px;
  }

  .signup-button {
    width: 100%;
    height: 48px;
    background: var(--accent);
    color: var(--accent-contrast);
  }

  .signup-message {
    text-align: center;
  }

  .signup-legal {
    flex-basis: 300px;
    max-width: 300px;
  }

  .process-image {
    margin-top: 20px;
  }

  /* Project specs 2-column alternating layout */
  .project-specs-row {
    grid-template-columns: 1fr;
  }

  .project-spec-item {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
  }

  .project-spec-image {
    max-width: 300px;
    flex-shrink: 0;
  }

  .project-spec-copy {
    max-width: none;
    text-align: left;
    align-items: flex-start;
  }

  /* Alternate layout: odd items have image first, even items have text first */
  .project-spec-item:nth-child(odd) .project-spec-image {
    order: 1;
  }

  .project-spec-item:nth-child(odd) .project-spec-copy {
    order: 2;
  }

  .project-spec-item:nth-child(even) .project-spec-image {
    order: 2;
  }

  .project-spec-item:nth-child(even) .project-spec-copy {
    order: 1;
  }
}

@media (max-width: 650px) {
  /* Gallery still shows with horizontal scroll on mobile */
  .gallery-page {
    padding: 96px 0px 20px;
  }

  .info-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .blog-page,
  .blog-post-page,
  .admin-page {
    padding-top: 88px;
  }

  /* Adjust top bar for mobile */
  .top-bar {
    height: 60px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .logo {
    height: 32px;
  }

  /* Feature section adjustments */
  .feature-section {
    padding: 20px 16px 0px;
  }

  .feature-content {
    gap: 12px;
  }

  .feature-subtitle {
    font-size: 1.3rem;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
  }

  .feature-box {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
  }

  .feature-video {
    max-height: 300px;
    width: auto;
    box-shadow: none;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 1));
    margin-bottom: 0px;
  }

  .feature-caption {
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
  }

  /* Process section */
  .process-section {
    padding: 20px 0px 50px;
  }

  .process-content {
    gap: 16px;
    padding: 0 16px;
  }

  .process-image {
    width: min(100%, 100%);
    transform: scale(1.3);
    margin-bottom: -20px;
    margin-top: 20px;
  }

  .process-copy {
    margin-top: 20px;
    text-align: left;
  }

  .process-copy .feature-subtitle {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    max-width: 400px;
    margin: 0 auto;
  }

  .process-box {
    width: 100%;
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Title section */
  .title-section {
    padding: 15px 16px 25px;
  }

  .title-content .feature-subtitle {
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Project specs */
  .project-specs-section {
    padding: 0 16px 50px;
  }

  .project-specs-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-spec-item {
    flex-direction: column;
    gap: 12px;
  }

  .project-spec-item:nth-child(odd) .project-spec-image,
  .project-spec-item:nth-child(even) .project-spec-image {
    order: 1;
  }

  .project-spec-item:nth-child(odd) .project-spec-copy,
  .project-spec-item:nth-child(even) .project-spec-copy {
    order: 2;
  }

  .project-spec-image {
    max-width: 300px;
  }

  .project-spec-copy {
    max-width: 400px;
    text-align: center;
    align-items: center;
  }

  .project-spec-copy .feature-subtitle {
    font-size: 1.3rem;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Email form */
  .signup-inline {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .email-form {
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
  }

  .email-form input[type="email"] {
    width: 100%;
    max-height: 44px;
    padding: 0 12px;
  }

  .signup-button {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: normal;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
  }

  .signup-message {
    text-align: center;
  }

  .signup-legal {
    flex-basis: 280px;
    max-width: 280px;
  }

  /* Instagram section */
  .instagram-section {
    padding: 40px 16px 60px;
  }

  .instagram-text {
    font-size: 1.3rem;
    max-width: 400px;
  }

  .instagram-subtext {
    font-size: 0.9rem;
    max-width: 320px;
  }

  .instagram-link {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .instagram-logo {
    width: 20px;
    height: 20px;
  }

  /* Footer menu */
  .footer-menu {
    height: auto;
    padding: 0 16px;
    min-height: 56px;
  }

  .footer-nav {
    gap: 16px;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }

  /* General adjustments */
  .feature-video-wrap {
    width: 100%;
  }

  .feature-video {
    width: 100%;
  }
}


/* ==========================================================================
   ROW SHIFTS (Slides whole rows left or right)
   ========================================================================== */

/* Row 1 */
.wiggle-row:nth-child(1) .wiggle-item {
  transform: translateX(-10%);
}

/* Row 2 */
.wiggle-row:nth-child(2) .wiggle-item {
  transform: translateX(-40%);
}

/* Row 3 */
.wiggle-row:nth-child(3) .wiggle-item {
  transform: translateX(-25%);
}

/* Row 4 */
.wiggle-row:nth-child(4) .wiggle-item {
  transform: translateX(-55%);
}

.footer-menu {
  position: relative;
  width: 100%;
  height: 64px;
  background: #141414;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 20px;
  overflow: visible;
}

.footer-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: white;
  pointer-events: none;
}

.instagram-section {
  display: flex;
  justify-content: center;
  padding: 60px 24px 80px;
  overflow-x: hidden;
}

.instagram-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.instagram-text {
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.instagram-subtext {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  max-width: 380px;
  text-align: center;
  margin: -8px 0 4px;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.instagram-link:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.instagram-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-instagram-link:hover {
  opacity: 1;
  transform: scale(1.1);
  text-decoration: none;
}

.footer-instagram-icon {
  width: 18px;
  height: 18px;
}


/* ==========================================================================
   Investor Blog
   ========================================================================== */

.blog-page,
.blog-post-page,
.admin-page {
  padding-top: 110px;
}

.blog-page {
  max-width: 900px;
}

.blog-intro {
  color: #cfcfcf;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 640px;
}

.blog-status {
  color: #9a9a9a;
  font-size: 1rem;
  padding: 12px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.blog-card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f0f;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.blog-card-date {
  color: #9a9a9a;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.blog-card-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  margin: 4px 0 0;
  color: #d8d8d8;
  font-size: 0.98rem;
  line-height: 1.55;
}

.blog-card-read-more {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* --- Single post --- */

.blog-post-page {
  max-width: 760px;
}

.blog-back-link {
  display: inline-block;
  color: #cfcfcf;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.blog-back-link:hover {
  color: white;
  text-decoration: underline;
}

.blog-post-article {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-post-article h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  margin: 0;
  line-height: 1.2;
}

.blog-post-meta {
  color: #9a9a9a;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.blog-post-cover-wrap {
  display: block;
  margin: 8px 0 20px;
}

.blog-post-cover {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.blog-post-body {
  color: #f0f0f0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: white;
  margin: 32px 0 12px;
  line-height: 1.3;
}

.blog-post-body h1 { font-size: 1.7rem; }
.blog-post-body h2 { font-size: 1.45rem; }
.blog-post-body h3 { font-size: 1.2rem; }

.blog-post-body p {
  margin: 0 0 18px;
}

.blog-post-body a {
  color: var(--accent);
  text-decoration: underline;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 24px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.blog-post-body ul,
.blog-post-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.blog-post-body li {
  margin-bottom: 6px;
}

.blog-post-body blockquote {
  margin: 20px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--accent);
  color: #cfcfcf;
  font-style: italic;
}

.blog-post-body code {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
}

.blog-post-body pre {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 18px;
}

.blog-post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
}

.blog-post-body th,
.blog-post-body td {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: left;
}

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

  .blog-post-article h1 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   Blog admin
   ========================================================================== */

.admin-page {
  max-width: 760px;
}

.admin-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: 20px;
}

.admin-card {
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 28px;
}

.admin-card-hint {
  color: #cfcfcf;
  margin: 0 0 16px;
  font-size: 0.98rem;
}

.admin-login-card {
  max-width: 420px;
}

#admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#admin-login-form input[type="password"] {
  height: 46px;
  padding: 0 14px;
  background: #0f0f0f;
  border: 1px solid #333;
  color: white;
  font-size: 1rem;
  border-radius: 4px;
}

.admin-button {
  align-self: flex-start;
}

.admin-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

#admin-editor-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.admin-logout-button {
  height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 32px;
}

.admin-label {
  color: #cfcfcf;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 14px 0 2px;
}

.admin-form input[type="text"],
.admin-form textarea {
  width: 100%;
  padding: 10px 14px;
  background: #0f0f0f;
  border: 1px solid #333;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  border-radius: 4px;
  resize: vertical;
}

.admin-form input[type="text"]:disabled {
  color: #8a8a8a;
  cursor: not-allowed;
}

.admin-body-textarea {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.admin-field-hint {
  margin: 2px 0 0;
  color: #8a8a8a;
  font-size: 0.82rem;
  word-break: break-all;
}

.admin-image-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-upload-status {
  color: #9a9a9a;
  font-size: 0.9rem;
}

.admin-cover-preview {
  margin-top: 12px;
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.admin-body-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
}

.admin-toolbar-button {
  height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
  border-width: 1px;
}

.admin-preview {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 16px 18px;
  background: #0f0f0f;
  min-height: 120px;
}

.admin-cheatsheet {
  margin-top: 14px;
  color: #cfcfcf;
  font-size: 0.9rem;
}

.admin-cheatsheet summary {
  cursor: pointer;
  color: #9a9a9a;
}

.admin-cheatsheet pre {
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 14px;
  margin-top: 10px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.admin-subheading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.admin-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-post-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 10px 14px;
}

.admin-post-row-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #0f0f0f;
}

.admin-post-row-thumb-empty {
  border: 1px dashed #333;
}

.admin-post-row-info {
  flex: 1;
  min-width: 0;
}

.admin-post-row-title {
  font-weight: 700;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-post-row-date {
  color: #9a9a9a;
  font-size: 0.85rem;
}

.admin-post-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-delete-button {
  border-color: #7a3a3a;
  color: #ff8b8b;
}

.admin-delete-button:hover {
  background: rgba(255, 107, 107, 0.12);
}

.admin-empty {
  color: #9a9a9a;
}

@media (max-width: 650px) {
  .admin-form {
    padding: 18px;
  }

  .admin-post-row {
    flex-wrap: wrap;
  }

  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-button {
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
}


/* ==========================================================================
   Wigglegram Library
   ========================================================================== */

.library-page {
  max-width: 1160px;
}

.library-intro {
  color: #cfcfcf;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 720px;
}

.library-heading {
  margin: 0 0 12px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.library-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.library-card:hover,
.library-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.library-card-video-wrap {
  width: 100%;
  aspect-ratio: 1740 / 978;
  overflow: hidden;
  background: #0f0f0f;
}

.library-card-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.library-card-caption {
  padding: 10px 14px 14px;
  font-size: 0.85rem;
  color: #9a9a9a;
  letter-spacing: 0.02em;
}

.library-cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #2c2c2c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  justify-content: space-between;
}

.library-cta p {
  margin: 0;
  color: #d8d8d8;
  font-size: 1.02rem;
  max-width: 480px;
}

.library-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
