html {
  scrollbar-width: none;
}

/* Firefox */
body {
  -ms-overflow-style: none;
}

/* IE and Edge */
body::-webkit-scrollbar,
body::-webkit-scrollbar-button {
  display: none;
}

/* Chrome */

*,
*::before,
*::after {
  box-sizing: border-box;
  user-select: none;
}

*:not(dialog) {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

footer {
  position: relative;
  z-index: 10000;
}

.footer-cta {
  display: block;
  font-size: clamp(3rem, 11vw, 10rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--baby-blue);
  transition: color 0.3s ease;
}

.grid.border-top.skroz {
  margin-top: 15rem;
}

.footer-cta:hover {
  color: var(--off-black);
}

.footer-cta span {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--off-black);
  opacity: 0.5;
}



.footer-nav-link {
  display: block;
  text-decoration: none;
  color: var(--off-black);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.footer-nav-link:hover {
  opacity: 0.5;
}

.back-to-top {
  background: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 0;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.back-to-top:hover {
  opacity: 1;
}

.is-ios-26 .gradient-blur {
  display: none !important;
}

/* --- SHARED BLUR GRADIENT STYLES --- */
.gradient-blur,
.gradient-blur-menu {
  position: fixed;
  pointer-events: none;
}

/* Footer Blur (Bottom) */
.gradient-blur {
  /* z-index is handled by the wrapper mostly, but we keep it here to be safe */
  z-index: 9999;
  inset: auto 0 0 0;
  height: 15vh;
}

/* Menu Blur (Top, Rotated) */
.gradient-blur-menu {
  z-index: 10001;
  /* Above content, below Menu Overlay (10001) */
  inset: 0 0 auto 0;
  height: 16vh;
  /* Slightly taller for header area */
  transform: rotate(180deg);
  /* Rotates the mask to face down */
}

/* Shared Masking Logic */
.gradient-blur>div,
.gradient-blur::before,
.gradient-blur::after,
.gradient-blur-menu>div,
.gradient-blur-menu::before,
.gradient-blur-menu::after {
  position: absolute;
  inset: 0;
}

.gradient-blur::before,
.gradient-blur-menu::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%);
}

.gradient-blur>div:nth-of-type(1),
.gradient-blur-menu>div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%);
}

.gradient-blur>div:nth-of-type(2),
.gradient-blur-menu>div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%);
}

.gradient-blur>div:nth-of-type(3),
.gradient-blur-menu>div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%);
}

.gradient-blur>div:nth-of-type(4),
.gradient-blur-menu>div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%);
}

.gradient-blur>div:nth-of-type(5),
.gradient-blur-menu>div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%);
}

.gradient-blur>div:nth-of-type(6),
.gradient-blur-menu>div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 1) 100%);
}


.gradient-blur::after,
.gradient-blur-menu::after {
  content: "";
  z-index: 8;
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%);
}


/* --- LENIS SMOOTH SCROLL OPTIMIZATION --- */
/* Add this to style.css */
html.lenis {
  height: auto;
}

/* Ensure the body only locks when the menu is actually active */
body.menu-open {
  overflow: hidden;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- NEW 2026 UI DESIGN SYSTEM --- */

:root {
  color-scheme: light;

  --off-white: #f9f9f7;
  --off-black: #111111;
  --baby-blue: #2323ff;
  --border-color: rgba(17, 17, 17, 0.08);

  /* Fluid Typography - Scale based on viewport */
  --font-main: 'Wix Madefor Display', sans-serif;
  --fs-xl: clamp(2.7rem, 12vw, 9rem);
  --fs-lg: clamp(2rem, 5vw, 4rem);
  --fs-base: clamp(1rem, 1.2vw, 1.25rem);
  --fs-sm: 0.85rem;
}

body {
  background-color: var(--off-white);
  color: var(--off-black);
  font-family: var(--font-main);
  line-height: 1.4;
  overflow-x: hidden;
}

/* --- Experimental Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 10001;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: auto;
}

.nav-link {
  text-decoration: none;
  color: var(--off-black);
  font-weight: 500;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  right: 0;
  background-color: var(--baby-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Layout Components --- */
.section-padding {
  padding: 12rem 1rem 6rem 1rem;
}

.grid.gore {
  margin-top: 10rem;
}

/* Local styles for project icons */
.work-left {
  display: flex;
  align-items: center;
}

.project-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  /* Optional: slight rounding */
  background-color: transparent;
}

/* Override baseline alignment for items with icons to center them vertically */
.work-item {
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.border-top {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* --- Brutalist Typography --- */
.hero-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin-bottom: .5rem;
}

.sub-title {
  font-size: var(--fs-lg);
  color: var(--baby-blue);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.accent,
.text-lead strong {
  color: var(--baby-blue);
}


.p-lead {
  font-size: var(--fs-base);
  max-width: 45ch;
  grid-column: 6 / span 7;
}

/* --- Projects / Works Styling --- */
.work-item {
  grid-column: span 12;
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.4s ease;
}

.work-item:hover {
  padding-left: 2rem;
}

.work-category {
  font-size: var(--fs-sm);
  opacity: 0.5;
  text-transform: uppercase;
}

/* --- Footer --- */
.site-footer {
  padding: 4rem 1rem 1rem;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  font-weight: 500;
}



/* --- AWWWARDS-LEVEL NAVIGATION & OVERLAY --- */

/* 1. The Header (Always on Top) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 10005;
  /* Must be higher than the overlay */
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  color: var(--off-black);
  /* Default state */
}


.nav-logo,
.menu-toggle {
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.menu-text {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* 3. The Fullscreen Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--off-black);
  color: var(--off-white);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  padding: 8rem 2rem 4rem 2rem;

  /* Initial State: Invisible Diagonal Slice from Top-Right */
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  pointer-events: none;
  visibility: hidden;
}

.menu-overlay.is-active {
  pointer-events: auto;
  visibility: visible;
}

.menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 4. Menu Links (Fluid Brutalist Style) */
.menu-link {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(10px);
  transition: color 0.3s ease;
}

.menu-link span {
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 1.5rem;
  margin-right: 2rem;
  opacity: 0.3;
}

.menu-link:hover {
  color: var(--baby-blue);
}

/* 5. Menu Footer */
.menu-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 249, 247, 0.1);
  opacity: 0;
  transform: translateY(20px);
}

.menu-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 1rem;
  display: block;
}

.menu-sub-link {
  display: block;
  text-decoration: none;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.menu-sub-link:hover {
  color: var(--baby-blue);
}

/* Hero Word Swapper */
.hero-word-wrapper {
  display: inline-flex;
  position: relative;
  vertical-align: top;
  overflow: hidden;
  height: 2em;
  padding-right: .1rem;
}

.hero-word {
  display: block;
  position: relative;
}


@media (min-width: 901px) {
  .text-right-desktop {
    text-align: right;
  }

  .work-left {
    gap: 1rem;
  }
}

/* Make the grid responsive */
@media (max-width: 900px) {

  .work-left {
    gap: .3rem;
  }

  .text-right-desktop {
    text-align: left;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .section-padding {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }

  /* Reset padding for hover effects on mobile to avoid jumpiness */
  .work-item:hover {
    padding-left: 0;
  }

  .grid.border-top.skroz {
    margin-top: 8rem;
  }
}

/* Column Utilities - Replaces inline styles for better control */
.col-span-12 {
  grid-column: span 12;
}

.col-span-8 {
  grid-column: span 8;
}

.col-span-7 {
  grid-column: span 7;
}

.col-span-6 {
  grid-column: span 6;
}

.col-span-5 {
  grid-column: span 5;
}

.col-span-4 {
  grid-column: span 4;
}

.col-span-3 {
  grid-column: span 3;
}

/* Offsets */
.col-start-6 {
  grid-column-start: 6;
}

.col-start-8 {
  grid-column-start: 8;
}

.col-start-10 {
  grid-column-start: 10;
}

/* Large Text Utilities */
.text-huge {
  font-size: var(--fs-lg);
  /* Uses your existing variable */
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-lead {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.3;
  font-weight: 400;
}

.label-text {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin-bottom: 1rem;
  display: block;
}

.huge-link {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 800;
  text-decoration: none;
  color: var(--off-black);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.3s ease;
  word-break: break-all;
  /* Ensures email doesn't overflow on mobile */
}

.arrow-icon {
  display: inline-block;
  height: .8em;
  /* 1em = current font size. Matches line-height: 1 */
  width: auto;
  /* Preserves aspect ratio */
  vertical-align: bottom;
  /* Aligns bottom of image with bottom of text descenders */
  margin-left: .15em;
  /* Small gap between text and arrow (scales with font) */
}

.huge-link:hover {
  color: var(--baby-blue);
}

/* Disable pointer events on the active link so the cursor implies it's not clickable */
.nav-link.active,
.footer-nav-link.active {
  pointer-events: none;
  opacity: 0.5;
  /* Optional: dim it slightly */
  cursor: default;
}


.menu-link.active {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}



/* Ensure the hero container acts as a positioning context */
.hero-title-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  /* Above everything */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--off-black);
  color: var(--off-white);
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-main);
}

.loader-counter {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  /* Prevents text jumping */
}

.loader-status {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
  opacity: 0.6;
}

/* The Shutter Effect */
.loader-shutter {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  /* Overlap slightly to prevent a gap */
  background-color: var(--off-black);
  z-index: 1;
}

.loader-shutter.up {
  top: 0;
}

.loader-shutter.down {
  bottom: 0;
}

/* Hide loader by default if JS fails or for returning users */
body.loaded .intro-loader {
  display: none;
}

/* --- assets/style.css --- */

/* Add this to the bottom of your CSS */
body.skip-intro #intro-loader {
  display: none !important;
  visibility: hidden !important;
}

/* --- CTA BUTTON STYLES --- */
.hero-cta-wrapper {
  margin-top: 1rem;
  /* Space between Title and Button */
  display: flex;
}

.btn-brutalist {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3.5rem;
  border: 1px solid var(--off-black);
  color: var(--off-black);
  background-color: transparent;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  gap: 1.5rem;
}


/* Hover State */
.btn-brutalist:hover {
  background-color: var(--baby-blue);
  color: var(--off-white);
  padding-left: 3rem;
  /* Slight shift like your Work Items */
}


/* Mobile Adjustments */
@media (max-width: 900px) {
  .hero-cta-wrapper {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .btn-brutalist {
    width: fit-content;
    /* Full width on mobile looks better for this style */
    justify-content: space-between;
  }
}

/* Project Year styling - Technical/Mono look */
.work-year {
  font-family: monospace;
  /* Or your main font if preferred */
  font-size: 0.75rem;
  opacity: 0.6;
  margin-right: 1rem;
}

/* Ensure the list fills the column */
.project-list {
  display: flex;
  flex-direction: column;
}