@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
@import url('https://unpkg.com/normalize.css') layer(normalize);

@layer normalize, base, demo, stick, effect, srollbar;

@layer scrollbar {
  @property --scroller {
    initial-value: 0;
    syntax: '<number>';
    inherits: true;
  }
  @property --chroma {
    initial-value: 0;
    syntax: '<number>';
    inherits: true;
  }
  
  [data-sync-scrollbar='false'] {
    scrollbar-color: light-dark(black, white) #0000;
  }

  [data-sync-scrollbar='true'] {
    scrollbar-color: oklch(var(--lightness) var(--chroma) var(--scroller)) #0000;
  }
  @supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
    [data-sync-scrollbar='true'] {
      timeline-scope: --list;
      scrollbar-color: oklch(var(--lightness) var(--chroma, 0) var(--scroller))
        #0000;
      -webkit-animation-name: change, chroma-on, chroma-off;
              animation-name: change, chroma-on, chroma-off;
      -webkit-animation-fill-mode: both;
              animation-fill-mode: both;
      -webkit-animation-timing-function: linear;
              animation-timing-function: linear;
      /* animation-timeline: scroll(root); */
      animation-range: entry 50% exit 50%, entry 40% entry 50%,
        exit 30% exit 40%;
      animation-timeline: --list;
      ul {
        view-timeline: --list;
      }
    }
  }

  @-webkit-keyframes change {
    to {
      --scroller: var(--end);
    }
  }

  @keyframes change {
    to {
      --scroller: var(--end);
    }
  }
  @-webkit-keyframes chroma-on {
    to {
      --chroma: 0.3;
    }
  }
  @keyframes chroma-on {
    to {
      --chroma: 0.3;
    }
  }
  @-webkit-keyframes chroma-off {
    to {
      --chroma: 0;
    }
  }
  @keyframes chroma-off {
    to {
      --chroma: 0;
    }
  }
}

@layer effect {
  :root {
    --start: 0;
    --end: 360;
    --lightness: 65%;
    --base-chroma: 0.3;
  }
  [data-theme='dark'] {
    --lightness: 75%;
  }
  [data-theme='light'] {
    --lightness: 65%;
  }
 
  ul {
    --step: calc((var(--end) - var(--start)) / (var(--count) - 1));
  }
  li:not(:last-of-type) {
    color: oklch(
      var(--lightness) var(--base-chroma)
        calc(var(--start) + (var(--step) * var(--i)))
    );
  }

  @supports (animation-timeline: scroll()) and (animation-range: 0% 100%) {
    li {
      opacity: 0.2;
      -webkit-animation-name: brighten;
              animation-name: brighten;

      &:first-of-type {
        opacity: 1;
        -webkit-animation-name: dim;
                animation-name: dim;
      }
      &:last-of-type {
        opacity: 0.2;
        -webkit-animation-name: bright;
                animation-name: bright;
      }
      -webkit-animation-fill-mode: both;
              animation-fill-mode: both;
      -webkit-animation-timing-function: linear;
              animation-timing-function: linear;
      animation-range: cover calc(50% - 1lh) calc(50% + 1lh);
      animation-timeline: view();
    }

    @-webkit-keyframes dim {
      0%,
      50% {
        opacity: 1;
      }
      100% {
        opacity: 0.2;
      }
    }

    @keyframes dim {
      0%,
      50% {
        opacity: 1;
      }
      100% {
        opacity: 0.2;
      }
    }

    @-webkit-keyframes bright {
      0% {
        opacity: 0.2;
      }
      50%,
      100% {
        opacity: 1;
      }
    }

    @keyframes bright {
      0% {
        opacity: 0.2;
      }
      50%,
      100% {
        opacity: 1;
      }
    }

    @-webkit-keyframes brighten {
      0%,
      100% {
        opacity: 0.2;
      }
      50% {
        opacity: 1;
        filter: brightness(1.2);
      }
    }

    @keyframes brighten {
      0%,
      100% {
        opacity: 0.2;
      }
      50% {
        opacity: 1;
        filter: brightness(1.2);
      }
    }
  }
}

@layer stick {
  section:first-of-type {
    --font-level: 6;
    --font-size-min: 20;
    display: flex;
    line-height: 1.25;
    width: 100%;
    padding-left: 2rem;
    @media(min-width: 768px) {
      padding-left: 5rem;
    }
  }
  section:last-of-type {
    min-height: 100svh;
    display: flex;
    place-items: center;
    width: 100%;
    justify-content: center;

    h2 {
      --font-level: 5;
      --font-size-min: 10;
      
      padding: 50px; /* Adjust the value as needed */
    }
  }
  main {
    width: 100%;
    margin-top: -60vh;
    padding-top: 0;
  }
  section:first-of-type h2 {
    position: sticky;
    top: calc(50% - 0.5lh);
    font-size: inherit;
    margin: 0;
    display: inline-block;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    font-weight: 600;
  }
  ul {
    font-weight: 600;
    padding-inline: 0;
    margin: 0;
    list-style-type: none;
  }
  html {
    -ms-scroll-snap-type: none;
        scroll-snap-type: none;
  }
  li {
    scroll-snap-align: none;
  }
  
}

@layer demo {
  header {
    min-height: 80vh;
    display: flex;
    place-items: center;
    width: 100%;
    @media(min-width: 768px) {
   
    }
  }
}

@layer base {
  :root {
    --font-size-min: 14;
    --font-size-max: 20;
    --font-ratio-min: 1.1;
    --font-ratio-max: 1.33;
    --font-width-min: 375;
    --font-width-max: 1500;
  }

  html {
    color-scheme: light dark;
  }

  [data-theme='light'] {
    color-scheme: light only;
  }

  [data-theme='dark'] {
    color-scheme: dark only;
  }

  :where(.fluid) {
    --fluid-min: calc(
      var(--font-size-min) * pow(var(--font-ratio-min), var(--font-level, 0))
    );
    --fluid-max: calc(
      var(--font-size-max) * pow(var(--font-ratio-max), var(--font-level, 0))
    );
    --fluid-preferred: calc(
      (var(--fluid-max) - var(--fluid-min)) /
        (var(--font-width-max) - var(--font-width-min))
    );
    --fluid-type: clamp(
      (var(--fluid-min) / 16) * 1rem,
      ((var(--fluid-min) / 16) * 1rem) -
        (((var(--fluid-preferred) * var(--font-width-min)) / 16) * 1rem) +
        (var(--fluid-preferred) * var(--variable-unit, 100vi)),
      (var(--fluid-max) / 16) * 1rem
    );
    font-size: var(--fluid-type);
  }

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

  body {
    display: grid;
    place-items: center;
    min-height: 100svh;
    font-family: 'Geist', 'SF Pro Text', 'SF Pro Icons', 'AOS Icons',
      'Helvetica Neue', Helvetica, Arial, sans-serif, system-ui;
  }

  body::before {
    --size: 45px;
    --line: color-mix(in hsl, canvasText, transparent 70%);
    content: '';
    height: 100svh;
    width: 100vw;
    position: fixed;
    -webkit-mask: linear-gradient(-20deg, transparent 50%, white);
            mask: linear-gradient(-20deg, transparent 50%, white);
    top: 0;
    transform-style: flat;
    pointer-events: none;
    z-index: -2;
  }

  /* Utilities */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}

div.tp-dfwv {
  position: fixed;
}

html:not(:focus-within) {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	font-family: 'SF Pro Text', 'SF Pro Icons', 'AOS Icons', 'Helvetica Neue',
		Helvetica, Arial, sans-serif, system-ui;
	background: transparent;
	overflow-x: hidden; /* Disables horizontal scrolling */
    margin: 0; /* Removes default margins */
    padding: 0; /* Removes default padding */
}



[data-split] {
	font-size: var(--font-size);
	font-weight: 600;
}

header {
	
	display: grid;
	place-items: center;
	position: relative;
	transform-origin: 50% 0%;

}

video {
  position: static;
  top: 0;
  left: 50%;
  height: 100vh; /* Keeps full viewport height */
  width: calc(100vw - 20px); /* Narrows the width slightly */
  object-fit: cover; /* Ensures proportional scaling */
  border-radius: 15px; /* Adds rounded corners */
  overflow: hidden; /* Hides content outside the rounded corners */
}

@supports (animation-timeline: scroll()) {
	@property --active {
		inherits: true;
		initial-value: 0;
		syntax: '<number>';
	}

	.reader {
		view-timeline: --reader block;
	}

	.content span {
		-webkit-animation: activate both steps(1);
		        animation: activate both steps(1);
		animation-timeline: --reader;
		animation-range: contain calc(((var(--start, 0) * var(--ppc)) * 1px))
			contain calc(((var(--end, 0) * var(--ppc)) * 1px));
	}

	@-webkit-keyframes activate {
		to {
			--active: 1;
		}
	}

	@keyframes activate {
		to {
			--active: 1;
		}
	}

	header {
		-webkit-animation: scale-down both ease-in;
		        animation: scale-down both ease-in;
		animation-timeline: view();
		animation-range: exit-crossing;
		view-timeline: --header;
	}

	@-webkit-keyframes scale-down {
		to {
			scale: 0.8 0.8;
		}
	}

	@keyframes scale-down {
		to {
			scale: 0.8 0.8;
		}
	}
	body > section:last-of-type {
		view-timeline-name: --sign-off;
	}

::view-transition-group(root) {
	-webkit-animation-duration: 1.25s;
	        animation-duration: 1.25s;
}
::view-transition-new(root),
::view-transition-old(root) {
	mix-blend-mode: normal;
}

::view-transition-new(root) {
	-webkit-animation-name: reveal-light;
	        animation-name: reveal-light;
}

::view-transition-old(root),
.dark::view-transition-old(root) {
	-webkit-animation: none;
	        animation: none;
}
.dark::view-transition-new(root) {
	-webkit-animation-name: reveal-dark;
	        animation-name: reveal-dark;
}

@-webkit-keyframes reveal-dark {
	from {
		-webkit-clip-path: polygon(-30% 0, -30% 0, -15% 100%, -10% 115%);
		        clip-path: polygon(-30% 0, -30% 0, -15% 100%, -10% 115%);
	}
	to {
		-webkit-clip-path: polygon(-30% 0, 130% 0, 115% 100%, -10% 115%);
		        clip-path: polygon(-30% 0, 130% 0, 115% 100%, -10% 115%);
	}
}

@keyframes reveal-dark {
	from {
		-webkit-clip-path: polygon(-30% 0, -30% 0, -15% 100%, -10% 115%);
		        clip-path: polygon(-30% 0, -30% 0, -15% 100%, -10% 115%);
	}
	to {
		-webkit-clip-path: polygon(-30% 0, 130% 0, 115% 100%, -10% 115%);
		        clip-path: polygon(-30% 0, 130% 0, 115% 100%, -10% 115%);
	}
}

@-webkit-keyframes reveal-light {
	from {
		-webkit-clip-path: polygon(130% 0, 130% 0, 115% 100%, 110% 115%);
		        clip-path: polygon(130% 0, 130% 0, 115% 100%, 110% 115%);
	}
	to {
		-webkit-clip-path: polygon(130% 0, -30% 0, -15% 100%, 110% 115%);
		        clip-path: polygon(130% 0, -30% 0, -15% 100%, 110% 115%);
	}
}

@keyframes reveal-light {
	from {
		-webkit-clip-path: polygon(130% 0, 130% 0, 115% 100%, 110% 115%);
		        clip-path: polygon(130% 0, 130% 0, 115% 100%, 110% 115%);
	}
	to {
		-webkit-clip-path: polygon(130% 0, -30% 0, -15% 100%, 110% 115%);
		        clip-path: polygon(130% 0, -30% 0, -15% 100%, 110% 115%);
	}
}
}

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url(https://unpkg.com/open-props/open-props.min.css);
@import url(https://unpkg.com/open-props/normalize.min.css);

:root {
  --accent: hsl(10 100% 50%);
  --font-size: clamp(2.49rem, calc(2.03rem + 2.31vw), 3.82rem);
  --speed: 0.25s;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: 'Poppins', sans-serif;
  background: var(--gray-12);
}

::selection {
  background: var(--accent);
}

:is(ul, h1) {
  font-size: inherit;
  --font-level: 5;
  --font-size-min: 20;
  padding: 0;
  margin: 0;
  color: var(--gray-0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}



.info {
  display: grid;
  color: var(--gray-0);
  padding: var(--size-1);
  text-transform: lowercase;
  font-size: var(--font-size);
  line-height: 1;
  font-weight: bold;
  max-width: 400px;
}

.info a {
  color: var(--gray-0);
}

.info__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--size-4);
}

.info__line > :is(span, a) {
  opacity: var(--opacity, 1);
  transition: opacity 0.2s;
  text-decoration: none;
  
}

a:focus-visible {
  outline-color: var(--accent);
}

/* .info:has(a:is(:hover, :focus))
.info__line > :is(a:not(:hover, :focus), span) {
  --opacity: 0.1;
} */
.info:has(a:is(:hover, :focus-visible)) :is(span, a):not(:hover, :focus-visible) {
  --opacity: 0.1;
}

a:is(:hover, :focus) {
  text-decoration: none;
  --active: 1;
}

:is(svg, .char) {
  transition: transform var(--speed) var(--ease-elastic-3);
  display: inline-block;
  transform:
    rotate(calc((var(--active, 0) * var(--r, 0)) * 1deg))
    translate(
      calc((var(--active, 0) * var(--x, 0)) * 1%),
      calc((var(--active, 0) * var(--y, 0)) * 1%)
    );
}

#grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999; /* Makes it appear above all other content */
  pointer-events: none; /* Allows interaction with underlying elements */
}

#content {
  position: relative; /* Ensure content stays below the overlay */
}
