/* little bit Splash Page Styles */

/* Import Doto Font from Google Fonts */
/* Google Fonts loaded via HTML <link> in index-bg.html for performance */

:root {
  --color-bg: #ffffff;
  /* primary background */
  --color-text: #111111;
  /* primary text */
  --color-text-secondary: #555555;
  --color-accent: #111111;
  /* placeholder accent; can evolve */
  --font-primary: 'Geist Variable', 'Geist', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-accent: 'Space Grotesk', 'Geist', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
  --ease-out: cubic-bezier(.16, .84, .44, 1);
  --max-width: 1440px;
  --gutter: clamp(1rem, 2vw, 2.5rem);
  /* Type scale tokens */
  --fs-h1: clamp(2.8rem, 5vw, 3.5rem);
  --fs-h2: clamp(2.1rem, 3.5vw, 2.6rem);
  --fs-h3: 2rem;
  --fs-h4: 1.5rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-heading: 1.12;
  --lh-body: 1.5;
}

/* Dark theme overrides for the binary splash page */
.theme-dark {
  --color-text: #d2d2d2;
  /* near-white for strong contrast on dark bg */
  --color-text-secondary: #D1D5DB;
  /* softer secondary */
}

.theme-dark .content {
  justify-content: flex-start;
  align-items: flex-start;
  /* position higher than center */
  padding-left: clamp(6vw, 10vw, 14vw);
  /* more toward middle, still left side */
}

.theme-dark .hero__inner {
  max-width: 46vw;
}

.theme-dark .tagline {
  color: var(--color-text);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  /* larger on this splash */
  font-weight: 700;
}

.theme-dark .subheadline {
  color: var(--color-text-secondary);
}

/* Binary Background Canvas */
.binary-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Content container to sit above binary background */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: flex-start;
  /* left-align content */
  padding-left: var(--gutter);
  /*background: rgba(255, 255, 255, 0.9);  Semi-transparent overlay for readability - NO BLUR */
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: .75rem 1rem;
  z-index: 1000;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-height: 80vh;
}

/* Refactored to flex so columns stay vertically centered instead of reflowing awkwardly */
.hero__inner {
  width: 100%;
  max-width: 50vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero__inner>.copy {
  flex: 1;
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero__inner>.cloth-vis {
  display: none;
}

/* legacy in-flow container hidden; using fixed background now */

.tagline {
  font: 300 var(--fs-h1)/1.08 var(--font-primary);
  letter-spacing: -0.015em;
  margin: 0;
}

.tagline__line {
  display: block;
}

/* Kicker above the tagline */
.kicker {
  font: 600 clamp(.85rem, 1.6vw, 1rem)/1.2 var(--font-primary);
  letter-spacing: .06em;
  color: var(--color-text-secondary);
  margin: 0 0 .35rem 0;
}

/* Emphasis style option (extra-bold italic) */
.tagline .emph {
  font-style: italic;
  font-weight: 800;
}

/* Subheadline style */
.subheadline {
  font-size: var(--fs-lead);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 54ch;
}

/* Typed.js cursor */
.typed-cursor {
  font-weight: 400;
  display: inline-block;
  line-height: 1;
  animation: blink 1.05s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Numeral callout */
.callout-number {
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  font-style: italic;
  -webkit-text-stroke: 2px #000;
  color: transparent;
  line-height: .9;
}

/* Cloth Visualization - Fixed right-side background */
.cloth-fixed-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  min-width: 600px;
  z-index: 1;
  display: block;
  pointer-events: all;
  /* Enable mouse interaction */
  height: 100vh;
  /* Ensure full viewport height */
}

@media (min-width:1600px) {
  .cloth-fixed-bg {
    width: 45vw;
  }
}

@media (max-width:1100px) {
  .cloth-fixed-bg {
    width: 55vw;
  }
}

@media (max-width:880px) {
  .cloth-fixed-bg {
    display: none;
  }
}

/* Canvas styling - full size with left fade */
.hero-cloth {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent;
}

/* Fade from right (opaque) to left (transparent) */
.hero-cloth {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 1) 50%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 10%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 1) 50%);
}

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



/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem var(--gutter) 2rem;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  /* reset all text link styles */
  text-decoration: none;
  font-weight: 400;
  color: var(--color-text);
  font-family: var(--font-accent);

}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 2rem);
  flex-wrap: wrap;
}

.footer__nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
}

.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-text);
  transition: width .35s var(--ease-out);
}

.footer__nav a:focus-visible,
.footer__nav a:hover {
  outline: none;
}

.footer__nav a:hover::after,
.footer__nav a:focus-visible::after {
  width: 100%;
}

/* Social icon buttons (compact) */
.social {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  position: relative;
  color: var(--color-text);
  line-height: 1;
}

.social .icon,
.social .icon-img {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--ease-out), filter .3s var(--ease-out);
  display: block;
}

.social:focus-visible,
.social:hover {
  outline: none;
}

.social:hover .icon,
.social:focus-visible .icon,
.social:hover .icon-img,
.social:focus-visible .icon-img {
  transform: scale(1.1);
  filter: brightness(1.08) saturate(1.05);
}

.social--ig {
  color: var(--color-text);
}

.social--li {
  color: var(--color-text);
}

.footer__nav a.social::after {
  display: none;
}

/* Footer – dark theme adjustments */

.theme-dark .footer__nav a::after {
  background: var(--color-text);
}

.theme-dark .footer__nav a {
  color: var(--color-text);
}

.theme-dark .social {
  color: var(--color-text);
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .hero__inner {
    max-width: 60vw;
  }

  .tagline {
    font-size: clamp(2.2rem, 5.4vw, 3.1rem);
  }
}

@media (max-width: 880px) {
  .hero {
    padding: clamp(2rem, 8vh, 5rem) var(--gutter) 3rem;
    min-height: auto;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

  .tagline {
    text-align: left;
    width: 100%;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  /* reduced motion static behavior handled in JS */
}

/* Utility classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.center {
  text-align: center;
}



/* Remove the problematic padding-right approach */