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

html {
  --progress: 0;
  --shrink: 0;
  --logo-x: 40px;
  --logo-y: 40px;
  --logo-size: 48px;
}

html, body {
  background: #0e0e10;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.scroll-space {
  height: 400vh;
}

@media (max-width: 768px) {
  .scroll-space {
    height: 300vh;
  }
}

.pinch-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.pinch-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #1c1c20 0%, #0e0e10 70%);
  opacity: calc(1 - var(--shrink));
}

.star-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: min(var(--progress), calc(1 - var(--shrink)));
}

.star-word {
  position: absolute;
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 11px;
  color: #fff;
  opacity: 0.12;
  white-space: nowrap;
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.35; }
}

.pinch-visual {
  position: fixed;
  top: calc(50% - (50% - var(--logo-y)) * var(--shrink));
  left: calc(50% - (50% - var(--logo-x)) * var(--shrink));
  width: calc(min(95vw, 1050px) * (1 - var(--shrink)) + var(--logo-size) * var(--shrink));
  height: calc(min(95vw, 1050px) * (1 - var(--shrink)) + var(--logo-size) * var(--shrink));
  transform: translate(calc(-50% * (1 - var(--shrink))), calc(-50% * (1 - var(--shrink))));
  z-index: 2;
}

.pinch-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
}

.word-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.word {
  position: absolute;
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  transform: scale(calc(1 + var(--progress) * 0.18), calc(1 - var(--progress) * 0.94));
}

.hero-word {
  top: 44%;
  left: 19%;
  font-size: 1.15rem;
  opacity: calc(1 - var(--shrink));
}

@media (min-width: 768px) {
  .hero-word {
    left: 14%;
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .pinch-visual {
    transform: translate(calc(-50% * (1 - var(--shrink)) + 10px * (1 - var(--shrink))), calc(-50% * (1 - var(--shrink))));
  }

  .hero-word {
    transform: translateX(calc(-10px * (1 - var(--shrink)))) scale(calc(1 + var(--progress) * 0.18), calc(1 - var(--progress) * 0.94));
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  opacity: var(--shrink);
  pointer-events: auto;
  z-index: 1;
}

.logo-row {
  height: 48px;
  display: flex;
  align-items: center;
}

.logo-icon-slot {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}

.logo-text {
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
}

.logo-prefix {
  margin-right: -10px;
}

.logo-suffix {
  margin-left: -10px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 0.9rem;
  color: #bdbdc2;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: #fff;
}

@media (max-width: 560px) {
  .site-header {
    padding: 24px;
  }
  .site-nav {
    gap: 16px;
  }
  .site-nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: #0e0e10;
    border-bottom: 1px solid #232326;
  }
}

.hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  color: #888;
  font-family: sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: calc(1 - var(--progress, 0));
  animation: bob 1.6s ease-in-out infinite;
}

.hint-label-mobile,
.hint-arrow {
  display: none;
}

@media (max-width: 768px) {
  .hint {
    bottom: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: none;
  }

  .hint-label-desktop {
    display: none;
  }

  .hint-label-mobile {
    display: inline;
  }

  .hint-arrow {
    display: block;
    font-size: 20px;
    line-height: 1;
    animation: arrow-bounce 1.2s ease-in-out infinite;
  }
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.site-content {
  position: relative;
  z-index: 1;
  background: #0e0e10;
  padding-top: 200px;
}

.content-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px;
  scroll-margin-top: 140px;
}

.content-section + .content-section {
  border-top: 1px solid #232326;
}

.content-eyebrow {
  display: block;
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 0.9rem;
  color: #e2900f;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.content-section h2 {
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.3;
}

.content-section p {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.85;
  color: #bdbdc2;
  margin-bottom: 22px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section strong {
  color: #f0f0f2;
}

.cta-section {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 24px 120px;
  text-align: center;
  border-top: 1px solid #232326;
}

.cta-section h2 {
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.cta-section p {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #bdbdc2;
  margin-bottom: 36px;
}

.cta-button {
  display: inline-block;
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0e0e10;
  background: #e2900f;
  padding: 16px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta-button:hover {
  background: #f2a927;
  transform: translateY(-2px);
}

.site-footer {
  position: relative;
  z-index: 1;
  background: #0a0a0b;
  border-top: 1px solid #232326;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.95rem;
  color: #77777d;
  margin-bottom: 24px;
}

.footer-email {
  display: inline-block;
  font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 1.05rem;
  color: #e2900f;
  text-decoration: none;
  margin-bottom: 32px;
}

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

.footer-copy {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.8rem;
  color: #55555a;
}
