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


body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: "scale-variable", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	font-variation-settings: "wght" 400, "wdth" 100;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-image: url(../img/noise.png);
  background-size: 200px;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
	opacity: 0.5;
}

a:hover {
	text-decoration: none;
	color: var(--color-link-hover);
	outline: none;
	opacity: 1;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.type-small {
	font-size: 13px;
	font-family: "iki-mono-variable", sans-serif;
	font-variation-settings: "wdth" 100, "wght" 300;
	text-transform: uppercase;
}

.frame {
	padding: var(--page-padding);
	position: relative;
	display: grid;
	z-index: 800;
	width: 100%;
	height: 100%;
	grid-row-gap: 1rem;
	grid-column-gap: 2rem;
	pointer-events: none;
	justify-items: start;
}

.frame--header {
  grid-template-columns: 100%;
  grid-template-areas: 'title' 'archive' 'back' 'github' 'sub' 'sponsor';
}

.frame--footer {
  margin-top: 40vh;
  justify-content: right;
  margin-bottom: 1vh;
  margin-right: 2vh;
  margin-left: -2vh;
}

.frame #cdawrap {
  justify-self: start;
}

.frame a {
  pointer-events: auto;
}

.frame__title {
  grid-area: title;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.frame__back {
  grid-area: back;
  justify-self: start;
}

.frame__archive {
  grid-area: archive;
  justify-self: start;
}

.frame__sub {
  grid-area: sub;
}

.frame__github {
  grid-area: github;
}

.tags {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.tags a {
	border: 1px solid;
	padding: 0.25rem 0.25rem 0.15rem 0.25rem;
	line-height: 1;
	border-radius: 3px;
}

.frame__demos {
	grid-area: demos;
	display: flex;
	gap: 1rem;
}

.intro {
	padding: var(--page-padding);
	display: grid;
	place-items: center;
	line-height: 1;
	min-height: calc(100vh - 6rem);
	margin-bottom: 50vh;
	justify-content: center;
	align-items: center;
}

.intro__heading {
	display: grid;
	gap: 1rem;
}

.intro__heading h2 {
	font-size: clamp(2rem, 7vw, 4rem);
	font-variation-settings: 'wdth' 120, 'wght' 200;
	width: 70vw;
	max-width: 1000px;
	min-width: 300px;
	margin: 0;
}

.intro__heading p {
	margin: 0;
	max-width: 200px;
	justify-self: end;
	text-align: justify;
	margin-top: 20vh;
}

.content {
	padding: var(--page-padding);
	display: flex;
	flex-direction: column;
	gap: 1vh;
	width: 100vw;
	position: relative;
	min-height: 10vh;
	place-items: center;
  margin-top: 20vh;
	margin-bottom: 10vh;
}

.blur-text {
	width: 50vw;
	max-width: 1000px;
	min-width: 300px;
	line-height: 1.2;
	font-family: "instrument-sans-variable", sans-serif;
	font-size: clamp(0.7rem,2vw,1.8rem);
}

.blur-text--1 {
	font-variation-settings: "wght" 420, "wdth" 100;
	letter-spacing: -0.05em;
}

.blur-text--2 {
	font-family: "iki-mono-variable", sans-serif;
	font-variation-settings: "wdth" 80, "wght" 300;
}

.blur-text--3 {
	font-variation-settings: "wght" 600, "wdth" 100;
	letter-spacing: -0.05em;
}

.blur-text--4 {
	font-variation-settings: "wght" 400, "wdth" 95;
	letter-spacing: -0.05em;
}

.blur-text .line {
  padding-bottom: 0.6em;   /* try 0.4em – 1em */
}

.card-wrap {
	margin-top: 5vh;
	display: flex;
  align-items: center;
  justify-content: center;
	grid-gap: 2rem;
	grid-auto-flow: row;
	grid-template-columns: 250px;
}

.card__image {
	display: block;
	border-radius: 7px;
	background-size: cover;
	background-position: 50% 50%;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	filter: brightness(0.8);
}


/* Grid column assignments */
.nav-section {
  grid-column: 1 / span 3;
}

.values-section {
  grid-column: 5 / span 2;
}

.location-section {
  grid-column: 7 / span 2;
}

.contact-section {
  grid-column: 9 / span 2;
}

.social-section {
  grid-column: 11 / span 2;
  text-align: right;
}


@media screen and (min-width: 53em) {
	.frame--header {
		grid-template-columns: auto auto auto auto 1fr;
		grid-template-rows: auto;
		grid-template-areas: 'title back archive github sponsor';
	}

	.frame #cdawrap, 
	.frame__sub {
		justify-self: end;
	}
	.card-wrap {
		grid-template-columns: repeat(3,250px);
	}
}




/* ===== MATCH MAIN SITE HEADER EXACTLY ===== */

@import url("https://fonts.cdnfonts.com/css/thegoodmonolith");

@font-face {
  font-family: "PPNeueMontreal";
  src: url("https://assets.codepen.io/7558/PPNeueMontreal-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --spacing-base: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --color-text: #ffffff;
  --color-text-dim: 0.6;
  --transition-medium: 0.3s ease;
  --font-size-base: 14px;
}

/* important: blur demo may have different defaults */
body {
  font-family: "PPNeueMontreal", sans-serif;
  background: #000;
}



/* Grid column assignments */
.nav-section { grid-column: 1 / span 3; }
.values-section { grid-column: 5 / span 2; }
.location-section { grid-column: 7 / span 2; }
.contact-section { grid-column: 9 / span 2; }
.social-section { grid-column: 11 / span 2; text-align: right; }

/* Logo */
.logo-container {
  margin-bottom: var(--spacing-md);
  display: block;
  width: 3rem;
  height: 1.5rem;
  position: relative;
  cursor: pointer;
}
.logo-circles { position: relative; width: 100%; height: 100%; }
.circle {
  position: absolute;
  border-radius: 50%;
  transition: transform var(--transition-medium);
  width: 1.4rem;
  height: 1.4rem;
  background-color: var(--color-text);
  top: 50%;
}
.circle-1 { left: 0; transform: translate(0, -50%); }
.circle-2 { left: 0.8rem; transform: translate(0, -50%); mix-blend-mode: exclusion; }
.logo-container:hover .circle-1 { transform: translate(-0.5rem, -50%); }
.logo-container:hover .circle-2 { transform: translate(0.5rem, -50%); }

/* Typography */
h3 {
  font-size: 14px;
  margin-bottom: var(--spacing-base);
  font-weight: 600;
  color: #fff;
}
p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01rem;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
ul { list-style: none; margin: 0; padding: 0; }
a {
  position: relative;
  cursor: pointer;
  color: var(--color-text);
  display: inline-block;
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: color var(--transition-medium);
  font-weight: 700;
}
a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--color-text);
  z-index: -1;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
a:hover::after { width: 100%; }
a:hover { color: black; mix-blend-mode: difference; }

/* ✅ IMPORTANT: push content down so header doesn't overlap */
main {
  padding-top: 110px; /* adjust if needed */
}

/* Mobile layout (same as your main site) */
@media (max-width: 900px) {

  .blur-text {
  width: 80vw;
	font-size: clamp(1rem,3vw,3rem);
  }

  .header {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 1.25rem;
  }

  .location-section,
  .contact-section,
  .social-section {
    max-width: 22ch;
  }

  .contact-section a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
  }

  .header h3 { margin-bottom: 8px; }
  .header p, .header li { margin: 0; line-height: 1.25; }
}
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 1.5rem;
  z-index: 10000;

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1rem;

  pointer-events: none;

  /* start invisible */
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);

  transition:
    background 0.6s cubic-bezier(0.87, 0, 0.13, 1),
    backdrop-filter 0.6s cubic-bezier(0.87, 0, 0.13, 1),
    -webkit-backdrop-filter 0.6s cubic-bezier(0.87, 0, 0.13, 1);
}

.header.glass-active{
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header.glass-active{
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* make all header children clickable */
.header > * {
  pointer-events: auto;
}

/* grid columns */
.header .nav-section { grid-column: 1 / span 3; }
.header .values-section { grid-column: 5 / span 2; }
.header .location-section { grid-column: 7 / span 2; }
.header .contact-section { grid-column: 9 / span 2; }
.header .social-section { grid-column: 11 / span 2; text-align: right; }

/* ✅ scope typography to header only (prevents Codrops clashes) */
.header h3 {
  font-family: "PPNeueMontreal", sans-serif;
  font-size: 14px;
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: #fff;
  line-height: 1.1; /* this is usually the "text sits low" culprit */
}

.header p,
.header li,
.header a {
  font-family: "PPNeueMontreal", sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.25; /* fixes baseline / vertical feel */
  color: #fff;
}

/* logo */
.header .logo-container {
  margin-bottom: 1.5rem;
  width: 3rem;
  height: 1.5rem;
  position: relative;
}

.header .circle {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  transform: translateY(-50%);
}

.header .circle-1 { left: 0; }
.header .circle-2 { left: 0.8rem; mix-blend-mode: exclusion; }

/* push content below header */
main { padding-top: 1px; }

/* mobile */
@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 1.25rem;
  }
}


/* Force the noise to be the true page background */
html, body{
  background-color: #000;
  background-image: url(../img/noise.png);
  background-size: 200px;
  overflow-x: hidden;
}

/* Make sure your page containers don't cover it */
main,
.content,
.intro,
.frame{
  background: transparent !important;
}

.info-section {
  text-align: right;
  pointer-events: none;
}

section {
  scroll-margin-top: 30vh;
}

#pageFade {
  position: fixed;
  inset: 0;
  background: #000;        /* match your site */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

#pageFade.is-on {
  opacity: 1;
  pointer-events: all;
}

.page{
  opacity:1;
  transition:opacity .35s ease;
}

.page.is-leaving{
  opacity:0;
}

@media (max-width: 768px) {
  .about-media img {
    width: 70vw;   /* smaller on mobile */
  }
}


/* Force the image block to take the full line within the Codrops content layout */
.content--about .about-media {
  grid-column: 1 / -1;     /* if parent is grid */
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Responsive size */
.content--about .about-media img {
  width: min(520px, 90vw);
  height: auto;
  border-radius: 18px;
  display: block;
  margin-inline: auto;

}

/* Smaller on mobile */
@media (max-width: 900px) {
  .content--about .about-media img {
    width: min(420px, 88vw);
  }





}

@media (max-width: 900px) {
  .header {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 1.25rem;
  }

  .location-section,
  .contact-section,
  .social-section {
    max-width: 22ch;          /* keeps columns looking tight */
  }

  .contact-section a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;  /* email wraps nicely */
    word-break: break-word;
    line-height: 1.2;
  }

  .header h3 {
    margin-bottom: 8px;
  }

  .header p,
  .header li {
    margin: 0;
    line-height: 1.25;
  }
}




@media (max-width: 550px) {
  .header {
    row-gap: 10px;
    padding: 0.75rem 0.85rem;
  }

  .logo-container {
    width: 2.1rem;
    height: 1.2rem;
  }

  .letter {
    font-size: 1.5rem;
  }

  .letter-2 {
    left: 0.72rem;
  }

  .values-section h3,
  .location-section h3,
  .contact-section h3,
  .social-section h3 {
    font-size: 10px;
  }

  .values-section a,
  .social-section a,
  .contact-section a,
  .location-section p,
  .header li,
  .header p {
    font-size: 11px;
    line-height: 1.1;
  }
}


.contact-button {
  display: block;
  margin: 3rem auto 0 auto;
  padding: 10px 18px;

  font-family: "TheGoodMonolith", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;

  width: fit-content;
  text-align: center;

  transition: all 0.25s ease;
}

.contact-button:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}



.work-button {
  display: block;
  margin: 4rem auto 0 auto;

  padding: 16px 36px;
  font-family: "TheGoodMonolith", monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: #fff;
  color: #000;

  border: 1px solid #fff;

  width: fit-content;
  text-align: center;

  transition: all 0.25s ease;


  margin: 8rem auto 0 auto; /* increase this number */
  
  
}

.work-button:hover {
  background: transparent;
  color: #fff;
}


.logo-container {
  margin-bottom: var(--spacing-md);
  display: block;
  width: 3.2rem;
  height: 1.8rem;
  position: relative;
  cursor: pointer;
}

.logo-letters {
  position: relative;
  width: 100%;
  height: 100%;
}

.letter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Anton", sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  color: white;
  transition: transform var(--transition-medium);
}

.letter-1 {
  left: 0;
}

.letter-2 {
  color: white;
  left: 1.8rem; /* controls overlap */
  mix-blend-mode: difference;
}

.logo-container:hover .letter-1 {
  transform: translate(0.33rem);
}

.logo-container:hover .letter-2 {
  transform: translate(-0.33rem);
}