/* ========================================= */
/* SYSTEM OVERRIDE: Global Viewport Scaling  */
/* ========================================= */

/* 1. Kill Chrome Horizontal Scrollbar Bug */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Fix Full-Screen Overlay from extending past the scrollbar */
.index-overlay {
  width: 100% !important;
}

/* 2. Fluid Vertical Padding for ALL Main Pages */
/* Targets the universal classes found on every page's <main> tag */
main.tile-container, 
.dossier-content, 
.content, 
.landing-page {
  /* clamp(min, preferred, max). Uses 'vh' to dynamically shrink on short Windows screens */
  padding-top: clamp(4rem, 10vh, 8rem) !important;
  padding-bottom: clamp(3rem, 8vh, 6rem) !important;
  box-sizing: border-box;
}

/* 3. Aspect-Ratio Aware Typography */
/* Targets the massive text on your CV/About/Blogs AND the massive links on your Index */
.page-hero, 
.giant-link {
  /* min(9vw, 15vh) ensures the text scales down if the screen lacks vertical height */
  font-size: clamp(3.5rem, min(9vw, 15vh), 10rem) !important; 
  line-height: 0.85;
}

/* 4. Ultra-Wide Monitor Lock */
/* Prevents your Navbar from flying away into the corners of massive screens */
.navbar {
  width: 100%;
  display: flex;
  justify-content: center; /* Centers the inner content */
  box-sizing: border-box;
}

.navbar > div {
  width: 100%;
  max-width: 1600px; /* Locks to your Brutalist Grid max-width */
}

/* 5. Extreme Vertical Compression (For heavily scaled Windows Laptops) */
@media (max-height: 800px) {
  .hero-content-wrapper, 
  .intro-section {
    margin-bottom: 2.5rem !important; /* Squashes the gap below headers */
    gap: 1rem;
  }
  
  /* Squashes the gaps between individual projects, articles, and CV sections */
  .dossier-row, 
  .continuous-row, 
  .project-row, 
  .article-row,
  .community-article {
    padding: 2.5rem 0 !important; 
    gap: 1.5rem !important;
  }
}



/* =========================================================================== */



/* ========================= */
/* Typography: Font Faces    */
/* ========================= */

/* Calling iA Writer Duospace via jsDelivr CDN */
@font-face {
  font-family: 'iA Writer Duospace';
  src: url('https://cdn.jsdelivr.net/gh/iaolo/iA-Fonts/iA%20Writer%20Duospace/Webfonts/iAWriterDuospace-Regular.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/iaolo/iA-Fonts/iA%20Writer%20Duospace/Webfonts/iAWriterDuospace-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'iA Writer Duospace';
  src: url('https://cdn.jsdelivr.net/gh/iaolo/iA-Fonts/iA%20Writer%20Duospace/Webfonts/iAWriterDuospace-Bold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/iaolo/iA-Fonts/iA%20Writer%20Duospace/Webfonts/iAWriterDuospace-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Apply Duospace to Non-Title Elements */

.quick-links a, 
.rights-reserved,
.nav-metadata {
  font-family: 'iA Writer Duospace', monospace;
}

/* 1. The Default State */
.arrow {
  font-size: 1rem;
  font-family: 'iA Writer Duospace', monospace;
  display: inline-block;
  margin-left: 0.1rem;
  transition: transform 0.3s cubic-bezier(0.45, 0, 0.55, 1);
}

/* 2. The Hover State */
/* When the 'a' tag is hovered, move the '.arrow' inside it */
a:hover .arrow {
  transform: translate(1px, -1px); /* Kinetic nudge */
}


/* 1. The Default State */
.arrow1 {
  font-size: 2rem;
  font-family: 'iA Writer Duospace', monospace;
  display: inline-block;
  margin-left: 0.1rem;
  transition: transform 0.3s cubic-bezier(0.45, 0, 0.55, 1);
}

/* 2. The Hover State */
/* When the 'a' tag is hovered, move the '.arrow' inside it */
a:hover .arrow1 {
  transform: translate(1px, -1px); /* Kinetic nudge */
}


/* =========================================================================== */



/* ========================= */
/* Global Variables & Resets */
/* ========================= */
:root {
  --shared-text-size: 1.05rem; 
  --global-padding: 2rem;
  
  /* Classy Duotone + Terracotta Accent */
  --bg-color: #F4F4F0;       /* Editorial Off-White */
  --text-color: #1A1A1A;     /* Ink Black / Charcoal */
  --accent-color: #C85A32;   /* Sophisticated Terracotta */
}

/* 4. Custom Text Selection Color */
::selection {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

::-moz-selection { 
  background-color: var(--accent-color);
  color: var(--bg-color);
}





/* =========================================================================== */



/* ========================= */
/* Navbar Metadata & Flipper */
/* ========================= */

/* ========================= */
/* Translucent Glass Navbar  */
/* ========================= */

.navbar {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem var(--global-padding);
  
  /* 1. We use an RGBA version of your bg-color with 0.7 opacity */
  background: rgba(244, 244, 240, 0.7); 
  
  /* 2. This is the magic line that blurs the texture underneath */
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%); /* Safari support */
  
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;

}


.nav-metadata {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.75rem;
  color: var(--text-color);
  text-align: left; /* Aligns text left */
  line-height: 1.5;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.nav-flipper {
  display: flex;
  align-items: center; /* Fixed invalid 'left' value */
  justify-content: flex-start; /* Aligns the STATUS text left */
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.nav-flipper .flip-reel span {
  height: 1.2rem;
  line-height: 1.2rem; 
  display: flex;
  align-items: center;
  justify-content: flex-start; /* <--- Forces the flipping text flush left! */
  width: 100%;
}


.nav-flipper .static-text {
  opacity: 0.5;
}

.nav-flipper .flip-window {
  height: 1.2rem; 
  overflow: hidden;
  position: relative;
  color: var(--accent-color);
  font-weight: 700;
  min-width: 210px; /* Ensures the longest role fits perfectly */
  /* We removed text-align: left from here */
}

.nav-flipper .flip-reel {
  display: flex;
  flex-direction: column;
  animation: navFlipText 6s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

/* The Math: Each jump moves exactly -1.2rem up to reveal the next word */
@keyframes navFlipText {
  0%, 15%   { transform: translateY(0); }
  20%, 40%  { transform: translateY(-1.2rem); }
  45%, 65%  { transform: translateY(-2.4rem); }
  70%, 90%  { transform: translateY(-3.6rem); }
  95%, 100% { transform: translateY(-4.8rem); }
}



/* =========================================================================== */



/* ========================= */
/* Footer                    */
/* ========================= */

.bottom-left-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem var(--global-padding);
  box-sizing: border-box;
  pointer-events: none; 
}

.footer {
  pointer-events: auto;
}

.rights-reserved {
  font-size: 0.75rem; /* Matched to nav-metadata */
  color: var(--text-color);
  opacity: 0.9; /* Raised from 0.5 to match navbar */
  letter-spacing: 0.05em; /* Added to match the technical tracking */
  margin: 0;
}



/* =========================================================================== */



/* ========================= */
/* Animations                */
/* ========================= */

@keyframes fadeInUp {
  from { opacity: 0; filter: blur(5px); transform: translateY(20px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* Subtle fade for the text logo */
.logo-in { animation: logoIn 0.6s ease forwards; }
@keyframes logoIn {
  0%   { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.logo-out { animation: logoOut 0.5s ease forwards; }
@keyframes logoOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-5px); }
}

/* Tile Animations */
.tile-container { perspective: 1200px; }

.tile-in {
  opacity: 0;
  transform: rotateY(90deg) scale(0.95);
  transform-origin: left center;
  animation: tileOpen 0.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.tile-in-delay,
.tile-in-delay-delay {
  opacity: 0;
  transform: rotateY(90deg) scale(0.95);
  transform-origin: left center;
  animation: tileOpen 0.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes tileOpen {
  0% { opacity: 0; transform: rotateY(90deg) scale(0.95); }
  60% { opacity: 1; transform: rotateY(-5deg) scale(1.02); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

.tile-out {
  opacity: 1;
  transform: rotateY(0) scale(1);
  transform-origin: left center;
  animation: tileClose 0.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

.tile-out-delay,
.tile-out-delay-delay {
  opacity: 1;
  transform: rotateY(0) scale(1);
  transform-origin: left center;
  animation: tileClose 0.5s cubic-bezier(0.45, 0, 0.55, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes tileClose {
  0% { opacity: 1; transform: rotateY(0) scale(1); }
  100% { opacity: 0; transform: rotateY(-90deg) scale(0.95); }
}

/* ========================= */
/* Mobile Adjustments        */
/* ========================= */
@media (max-width: 768px) {
  :root {
    --shared-text-size: 0.95rem; 
    --global-padding: 1.5rem; 
  }

  .quick-links {
    gap: 1.2rem 1rem;
  }
  
  .nav-metadata {
    font-size: 0.65rem;
  }
}



/* =========================================================================== */









