:root {
  --font-mono: "PP Supply Mono", monospace;
  --font-sans: "PP Neue Montreal", sans-serif;
  --color-text: #fff;
  --content-z: 2;
  --desktop-width: 500px;
  --mobile-width: 300px;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("./font/PPNeueMontreal-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Supply Mono";
  src: url("./font/PPSupplyMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: black;
}

img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  will-change: transform;
}

/* Hide inner featured image; keep WebGL canvas background only */
.featured-image-wrapper img,
[data-featured-wrapper] img {
  display: none !important;
}

.tp-dfwv {
  visibility: hidden;
}

.image-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
}

.webgl-canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 1;
}

.static-fuzz {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
}

/* Corner Text Styles */
.corner-text {
  position: fixed;
  color: white;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.5;
  z-index: 1;
  pointer-events: none;
}

.corner-text div {
  margin-bottom: 4px;
}

.corner-text-top-left {
  top: 2rem;
  left: 2rem;
}

.corner-text-slash {
  pointer-events: auto;
}
.corner-slash-trigger {
  display: block;
  position: relative;
  width: 1.2em;
  height: 1.5em;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  line-height: 1.5;
}
.corner-slash-char {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
.corner-slash-char:first-child {
  opacity: 1;
}
.corner-slash-trigger .corner-slash-char:nth-child(2),
.corner-slash-trigger .corner-slash-char:nth-child(3),
.corner-slash-trigger .corner-slash-char:nth-child(4) {
  opacity: 0;
}
/* When .slash-rotating: cycle — \ | / twice in 1s (reverse direction) */
.corner-slash-trigger.slash-rotating .corner-slash-char:first-child {
  animation: slash-rotate-1 1s steps(1) 2 forwards;
}
.corner-slash-trigger.slash-rotating .corner-slash-char:nth-child(2) {
  animation: slash-rotate-2 1s steps(1) 2 forwards;
}
.corner-slash-trigger.slash-rotating .corner-slash-char:nth-child(3) {
  animation: slash-rotate-3 1s steps(1) 2 forwards;
}
.corner-slash-trigger.slash-rotating .corner-slash-char:nth-child(4) {
  animation: slash-rotate-4 1s steps(1) 2 forwards;
}
@keyframes slash-rotate-1 {
  0%, 75% { opacity: 0; }
  75% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes slash-rotate-2 {
  0%, 50% { opacity: 0; }
  50% { opacity: 1; }
  75% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes slash-rotate-3 {
  0%, 25% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes slash-rotate-4 {
  0% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.corner-text-top-right {
  top: 2rem;
  right: 2rem;
  text-align: right;
}

.corner-text-bottom-left {
  bottom: 2rem;
  left: 2rem;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.corner-text-bottom-left div {
  margin-bottom: 0;
}

.corner-text-bottom-right {
  bottom: 2rem;
  right: 2rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.corner-text-contract {
  pointer-events: auto;
}
.corner-text-contract .contract-link {
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
  margin: 0;
  line-height: 1.5;
  vertical-align: baseline;
}
.corner-text-contract .contract-link:hover {
  color: rgba(255, 255, 255, 0.9);
}
.corner-text-contract .contract-copied {
  margin-left: 0.5rem;
  color: #fbbf24;
  font-size: 10px;
}

.corner-text-pause {
  pointer-events: auto;
}
.corner-text-pause button {
  display: block;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: right;
}
.corner-text-pause button:hover {
  color: rgba(255, 255, 255, 0.9);
}

.corner-text-shortcuts {
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  font-size: 12px;
  text-align: left;
  pointer-events: auto;
}
.corner-text-shortcuts .link-icon {
  display: inline-block;
  position: relative;
  text-align: center;
}
.corner-text-shortcuts a:hover .link-icon {
  visibility: hidden;
}
.corner-text-shortcuts a:hover .link-icon::after {
  content: "□";
  visibility: visible;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
}
.corner-text-shortcuts a {
  color: inherit;
  text-decoration: none;
  position: relative;
}
.corner-text-shortcuts a:hover {
  text-decoration: none;
}
.corner-text-shortcuts a:hover::after {
  content: "_";
  animation: link-cursor-blink 0.5s step-end infinite;
  margin-left: 0.1em;
}

@media (max-width: 1024px) {
  .corner-text-shortcuts {
    top: auto;
    bottom: 5rem;
    left: 2rem;
    transform: none;
  }
}

.corner-text-contract .contract-link:hover {
  text-decoration: none;
}
.corner-text-contract .contract-link:hover::after {
  content: "_";
  animation: link-cursor-blink 0.5s step-end infinite;
  margin-left: 0.1em;
}
.corner-text-pause button:hover {
  text-decoration: none;
}
.corner-text-pause button:hover::after {
  content: " _";
  animation: link-cursor-blink 0.5s step-end infinite;
}
@keyframes link-cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.corner-text-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  height: 50%;
  z-index: var(--content-z);
}

.featured-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
          clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  will-change: clip-path;
}

.slide-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--content-z);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--desktop-width);
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.slide-text {
  position: relative;
  color: var(--color-text);
  width: 100%;
}

.slide-number {
  position: relative;
  width: 100%;
  max-width: var(--desktop-width);
  height: 20px;
  margin: 0 auto 0.5em;
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
          clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  overflow: hidden;
}

.slide-number span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  transform: translateY(0px);
  will-change: transform;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slide-title {
  position: relative;
  width: 100%;
  max-width: var(--desktop-width);
  min-height: 60px;
  margin: 0 auto;
  overflow: visible;
}

.slide-title h1 {
  position: relative;
  top: 0;
  left: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transform: translateY(0px);
  will-change: transform;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  text-align: left;
  overflow: visible;
}

.slide-description {
  position: relative;
  width: 100%;
  max-width: var(--desktop-width);
  height: 24px;
  margin: 0 auto;
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
          clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  overflow: hidden;
}

.slide-description p {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  transform: translateY(0px);
  will-change: transform;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-paragraph {
  position: relative;
  color: var(--color-text);
  width: 100%;
  max-width: var(--desktop-width);
  margin: 0 auto;
  overflow: visible;
  text-align: left;
}

.slide-paragraph-line {
  position: relative;
  width: 100%;
  min-height: 28px;
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
          clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  overflow: visible;
}

.slide-paragraph-line:last-child {
  margin-bottom: 0;
}

.slide-paragraph-line span {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 1.25em;
  font-weight: 300;
  line-height: 1.4;
  text-transform: none;
  transform: none;
  will-change: auto;
  margin: 0;
  padding: 0;
  white-space: normal;
}

@media (max-width: 900px) {
  .slide-title h1 {
    white-space: normal;
  }

  .slide-paragraph {
    overflow: visible;
  }

  .slide-paragraph-line {
    min-height: 24px;
    margin-bottom: 4px;
  }

  .slide-paragraph-line span {
    line-height: 1.4;
  }

  .corner-text-center {
    height: 70vh;
  }
}

/* Footer: links + support (bottom left) */
.slide-footer {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: auto;
}
.slide-footer a {
  color: inherit;
  text-decoration: none;
  margin-right: 1rem;
}
.slide-footer a:hover {
  text-decoration: underline;
}

/* Fartless logo overlay (click top-left) */
.fartless-logo-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
}
.fartless-logo-overlay img {
  width: 700px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .fartless-logo-overlay {
    padding-top: 40px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .fartless-logo-overlay img {
    width: 100%;
  }
}
.fartless-logo-overlay.flicker-in {
  animation: logo-flicker-in 0.7s steps(1) forwards;
}
.fartless-logo-overlay.flicker-out {
  animation: logo-flicker-out 0.6s steps(1) forwards;
}
@keyframes logo-flicker-in {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  30%  { opacity: 0; }
  45%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes logo-flicker-out {
  0%   { opacity: 1; }
  20%  { opacity: 0; }
  40%  { opacity: 1; }
  60%  { opacity: 0; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}
