/* 
  Project: Rishabh Chaudhary - Portfolio
  Theme: Noir & Gold
  Font: Cormorant Garamond (Serif), Inter (Sans-Serif)
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --color-bg: #0A0A0A;
  --color-accent: #D4AF37;
  --color-text-primary: #F5F5F5;
  --color-text-secondary: #888888;
  --color-glass: rgba(255, 255, 255, 0.05);
  --color-glass-border: rgba(255, 255, 255, 0.1);

  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', sans-serif;

  --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-medium: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
  /* Custom cursor everywhere */
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* --- Atmospherics: Film Grain --- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-text-primary);
}

.text-gold {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* --- Custom Cursor --- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Hover state for cursor */
body.hovering .cursor-ring {
  width: 60px;
  height: 60px;
  background-color: rgba(212, 175, 55, 0.1);
  border-color: transparent;
}

/* --- Layout Utilities --- */
.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 120px 0;
}

/* --- Navigation (Floating) --- */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1000;
  pointer-events: none;
  /* Let clicks pass through container to hero if needed, but children need events */
}

.nav-container>* {
  pointer-events: auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo span {
  color: var(--color-accent);
}

/* If we want colored dot */

.nav-pill {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-item {
  color: #aaa;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--color-text-primary);
}

.nav-divider {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.contact-link {
  color: var(--color-text-primary);
}


/* --- Hero Section --- */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 70% 50%, #2a2a2a 0%, #0A0A0A 60%);
}

.hero-watermark {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 15vw;
  /* Massive size */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-left: 60px;
  /* Adjust for container */
}

.hero-top-tag {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.gold-dash {
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.hero-title {
  font-size: 11vw;
  /* Slightly massive */
  line-height: 0.8;
  letter-spacing: -3px;
  margin-bottom: 50px;
  color: var(--color-text-primary);
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.4s;
}

.hero-italic {
  font-style: italic;
  font-weight: 500;
  padding-left: 10px;
}

.hero-desc-row {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.6s;
}

.hero-desc-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #888;
  line-height: 1.6;
  max-width: 450px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

.btn-solid-gold {
  background-color: var(--color-accent);
  color: #000;
  padding: 18px 40px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-solid-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.availability-bar {
  position: absolute;
  bottom: 40px;
  left: 60px;
  /* Aligned with padding */
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #555;
  /* Dimmed state by default */
  border-radius: 50%;
}

/* If active/green desired */
.status-dot {
  background-color: #D4AF37;
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* --- About Section (Quiet Art) --- */
/* --- About Section (High End) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.about-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 450px;
  /* Constrain width */
}

.about-image {
  width: 100%;
  aspect-ratio: 3/4;
  /* Vertical portrait */
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.about-image:hover {
  filter: grayscale(0%);
}

.identity-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--color-accent);
  color: #000;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  z-index: 2;
}

.about-content {
  padding-top: 40px;
}

.section-label {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.about-headline {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 300;
  margin-bottom: 50px;
  color: #fff;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  /* Regular italic */
}

.about-body-group {
  display: flex;
  gap: 30px;
  margin-bottom: 80px;
}

.body-indicator {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.about-text-content {
  flex: 1;
}

.about-text-content p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 30px;
}

.about-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

/* Shared for centered labels if needed */
.section-label.centered {
  text-align: center;
  margin-bottom: 40px;
}

/* --- Philosophy Section --- */
.philosophy-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 100px;
  font-weight: 300;
}

.quote-dim {
  color: #444;
  font-style: italic;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  text-align: left;
}

.philo-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.philo-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
}

.philo-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
}

/* --- Visual Intelligence Section --- */
.vi-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* Break out of container */
  padding: 0;
  position: relative;
  overflow: hidden;
}

.vi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 80px 20px 40px;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
}

.vi-title {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.vi-rc {
  font-family: var(--font-sans);
  font-size: 1rem;
  vertical-align: super;
  margin-right: 10px;
}

.vi-meta {
  text-align: right;
  font-family: monospace;
  font-size: 0.7rem;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.vi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(100vh - 250px);
  /* Adjust height to fit screen with header */
  width: 100%;
}

.vi-col {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.vi-col:hover {
  flex-grow: 1.5;
  /* Slight expand effect if using flex, here just z-index */
  z-index: 5;
  border-left-color: rgba(255, 255, 255, 0.3);
}

.vi-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  filter: grayscale(100%) brightness(0.4);
}

.vi-col:hover .vi-bg {
  transform: scale(1.1);
  filter: grayscale(0%) brightness(0.8);
}

.vi-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.vi-module {
  font-family: monospace;
  color: var(--color-accent);
  font-size: 0.7rem;
  display: block;
  margin-bottom: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.vi-col:hover .vi-module {
  transform: translateY(0);
  opacity: 1;
}

.vi-label {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #fff;
  margin: 0;
}

.vi-icon {
  position: absolute;
  top: 40px;
  right: 40px;
  color: var(--color-accent);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vi-col:hover .vi-icon {
  opacity: 1;
}

/* --- Showcase Pages --- */
.showcase-container {
  height: 100vh;
  width: 100%;
  background: #050505;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.showcase-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.sc-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.back-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.sc-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.sc-right {
  font-family: monospace;
  color: #444;
  font-size: 0.8rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  height: 100%;
}

.sc-image-col {
  padding: 120px 60px 60px;
  /* Leave space for header */
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-image {
  width: 100%;
  height: 80%;
  background-size: cover;
  background-position: center;
  border: 1px solid #222;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.sc-content-col {
  padding: 180px 80px 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sc-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.sc-ref {
  font-family: monospace;
  color: var(--color-accent);
  background: rgba(212, 175, 55, 0.1);
  padding: 5px 10px;
  font-size: 0.8rem;
}

.sc-dot {
  width: 40px;
  height: 40px;
  border: 1px solid #333;
  border-radius: 50%;
  position: relative;
}

.sc-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

.sc-project-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 30px;
  color: #fff;
}

.sc-desc {
  font-family: var(--font-sans);
  color: #888;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 60px;
}

/* --- Type Foundry (Typography Lab) --- */


/* --- Mobile Navigation & Responsive Adjustments --- */

/* Nav Toggle Button (Hidden on Desktop) */
.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Mobile Media Query */
@media (max-width: 768px) {

  /* Navigation */
  .nav-container {
    padding: 20px 25px;
  }

  .nav-pill {
    padding: 10px 20px;
    gap: 20px;
    position: relative;
    z-index: 2000;
  }

  .nav-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Technical Drawer */
  .nav-links-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    z-index: -1;
    /* Behind the pill specifically if needed, or we adjust z-indexes */
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
  }

  .nav-links-wrapper.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-item {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
  }

  .nav-links-wrapper.open .nav-item {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-divider {
    display: none;
  }

  /* Hero */
  .hero-watermark {
    display: none;
    /* Hide signature overlay */
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 6rem);
    /* Responsive scaling */
    margin-bottom: 30px;
  }

  .hero-content {
    padding-left: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-desc-row {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .hero-desc-text {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 20px;
    text-align: center;
  }

  .hero-top-tag {
    justify-content: center;
  }

  .availability-bar {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    justify-content: center;
    bottom: 20px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-headline {
    font-size: 3rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-quote {
    font-size: 3rem;
  }

  /* Visual Intelligence (Archive) */
  .vi-grid {
    grid-template-columns: 1fr;
    height: auto;
    /* Allow flow */
  }

  .vi-col {
    height: 60vh;
    /* Vertical stack feeling */
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .vi-label {
    font-size: 2.5rem;
  }

  .vi-content {
    padding: 30px;
  }

  /* Blueprint adjustments */
  .bp-row {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .bp-left {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
  }
}

.tf-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000;
  /* Absolute Black */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Header top, Display center, HUD bottom */
  overflow: hidden;
  cursor: crosshair;
  /* Suggest precision */
  z-index: 50;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}

.tf-header {
  padding: 40px 60px;
  width: 100%;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
}

.tf-label {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--color-accent);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.tf-display-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  /* Prevent selection while dragging/moving */
}

.tf-word-row {
  display: flex;
  justify-content: center;
  /* Letter spacing and Weight will be controlled by JS */
  transition: none;
  /* No CSS transition, we use JS spring physics */
}

.tf-char {
  font-family: var(--font-serif);
  font-size: 12vw;
  /* Massive */
  line-height: 0.85;
  color: #fff;
  white-space: pre;
  /* Will vary from 100 to 900 */
  font-weight: 500;
  display: inline-block;
  /* allows transforms if needed */
}

.tf-word-row.italic .tf-char {
  font-style: italic;
  color: #666;
  /* Slightly dimmed for second row */
}

/* --- HUD (Heads-Up Display) --- */
.tf-hud {
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-accent);
  width: 100%;
  position: relative;
}

.hud-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.hud-group.right-align {
  align-items: flex-end;
  text-align: right;
}

.hud-label {
  color: #444;
  letter-spacing: 2px;
}

.hud-value {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: bold;
}

.hud-bar-track {
  width: 100px;
  height: 2px;
  background-color: #222;
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

.hud-bar-fill {
  height: 100%;
  width: 50%;
  /* JS will control this */
  background-color: var(--color-accent);
}

.hud-center-msg {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #222;
  letter-spacing: 2px;
  font-size: 0.6rem;
  text-transform: uppercase;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .tf-char {
    font-size: 18vw;
  }

  .tf-hud {
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hud-group {
    min-width: unset;
    width: 100%;
    align-items: center;
  }

  .hud-group.right-align {
    align-items: center;
  }

  .hud-center-msg {
    display: none;
  }
}

.attr-label {
  display: block;
  font-family: monospace;
  color: #444;
  font-size: 0.7rem;
  margin-bottom: 15px;
}

.attr-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.attr-tags span {
  border: 1px solid #333;
  padding: 8px 16px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
}

.sc-colors {
  margin-bottom: 60px;
}

.color-dots {
  display: flex;
  gap: 15px;
}

.c-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: block;
}

.sc-action {
  font-family: var(--font-sans);
  color: var(--color-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: gap 0.3s ease;
}

.sc-action:hover {
  gap: 30px;
}

.long-arrow {
  color: #333;
  letter-spacing: -2px;
}

/* --- Blueprint Archive Section --- */
.bp-section {
  position: relative;
  /* Subtle Grid Background */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100px 100px;
}

.blueprint-container {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.bp-row {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* Left Column */
.bp-left {
  text-align: left;
}

.bp-phase {
  font-family: var(--font-sans);
  color: var(--color-accent);
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 700;
}

.bp-year {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #333;
  font-weight: 700;
  transition: -webkit-text-stroke 0.3s ease;
}

.bp-row:hover .bp-year {
  -webkit-text-stroke: 1px #555;
}

/* Right Card */
.bp-card {
  border: 1px solid #222;
  background: rgba(10, 10, 10, 0.8);
  position: relative;
  padding: 0;
  transition: border-color 0.3s ease;
}

.bp-card:hover {
  border-color: #444;
}

.bp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  border-bottom: 1px solid #222;
}

.bp-main-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-role {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: #fff;
  font-weight: 400;
}

.bp-company {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-style: italic;
  font-weight: 700;
  font-size: 1rem;
}

.bp-tech-specs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-family: monospace;
  /* Tech feel */
  font-size: 0.7rem;
  color: #555;
  text-transform: uppercase;
}

.bp-card-body {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bp-desc {
  max-width: 60%;
  color: #888;
  font-family: var(--font-sans);
  line-height: 1.6;
}

.bp-focus-areas {
  text-align: right;
}

.focus-label {
  font-family: monospace;
  font-size: 0.6rem;
  color: #444;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.focus-tags {
  display: flex;
  gap: 10px;
}

.focus-tags span {
  border: 1px solid #333;
  padding: 5px 10px;
  font-family: monospace;
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
}

/* Corner Decorations */
.corner-tl,
.corner-br {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #444;
  transition: all 0.3s ease;
}

.corner-tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.corner-br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.bp-card:hover .corner-tl,
.bp-card:hover .corner-br {
  width: 20px;
  height: 20px;
  border-color: var(--color-accent);
}

/* Spec Graphic */
.spec-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 150px;
  gap: 20px;
}

.spec-line {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
}

.spec-dot {
  width: 40px;
  height: 40px;
  border: 1px solid #444;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spec-dot::after {
  content: '';
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
}

.spec-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: #444;
  font-size: 1.2rem;
}

/* --- Marquee --- */
.marquee-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-glass-border);
  border-bottom: 1px solid var(--color-glass-border);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: scroll 20s linear infinite;
}

.marquee-text {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-style: italic;
  margin-right: 80px;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-secondary);
  transition: color var(--transition-medium);
}

.marquee-section:hover .marquee-text {
  color: var(--color-text-primary);
  -webkit-text-stroke: 1px transparent;
}

/* --- Contact Section (Redesign) --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-headline {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: #fff;
  margin-bottom: 30px;
}

.contact-sub {
  font-family: var(--font-sans);
  color: #666;
  line-height: 1.6;
  margin-bottom: 80px;
}

.contact-email {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
}

.contact-socials {
  display: flex;
  gap: 30px;
}

.social-link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #fff;
}

.contact-form-card {
  background: rgba(25, 25, 25, 0.4);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 30px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 15px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  padding: 10px 0;
  font-family: var(--font-sans);
  color: #fff;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input::placeholder {
  color: #444;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.btn-block-gold {
  width: 100%;
  background-color: var(--color-accent);
  color: #000;
  border: none;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-top: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-block-gold:hover {
  transform: translateY(-2px);
}

/* --- Animations --- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Tracking Expansion for Buttons */
.btn-expand {
  display: inline-block;
  letter-spacing: 1px;
  transition: letter-spacing 0.5s ease;
}

.btn-expand:hover {
  letter-spacing: 4px;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-title {
    font-size: 15vw;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 80px;
  }

  .project-card,
  .project-card:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }

  .project-image {
    width: 100%;
    height: 60vw;
  }

  .marquee-text {
    font-size: 4rem;
  }

  .timeline-section {
    margin-left: 20px;
    padding-left: 30px;
  }

  .year {
    position: static;
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
  }
}

/* --- Custom Cursor --- */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

body.hovering .cursor-ring {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent);
}

body.hovering .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}

/* Hide default cursor */
body,
a,
button,
input {
  cursor: none;
}

/* --- Blueprint Toggle & Mode --- */

.bp-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 20px;
  /* Separator */
}

.bp-toggle-btn:hover,
body.blueprint-mode .bp-toggle-btn {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bp-icon {
  font-size: 1rem;
  line-height: 1;
}

/* --- Blueprint Mode (The "Ghost" Layer) --- */

body.blueprint-mode * {
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.15) !important;
  /* Using box-shadow instead of outline to trace every single nested element without affecting layout */
}

/* Dim imagery to focus on structure */
body.blueprint-mode img,
body.blueprint-mode .about-image,
body.blueprint-mode .vi-bg,
body.blueprint-mode .sc-image {
  filter: grayscale(100%) contrast(1.2) brightness(0.6) !important;
  opacity: 0.7 !important;
}

/* Force Monospace Typography */
/* Force Monospace Typography - DISABLED to preserve Type Foundry aesthetics 
body.blueprint-mode h1,
body.blueprint-mode h2,
body.blueprint-mode h3,
body.blueprint-mode p,
body.blueprint-mode span,
body.blueprint-mode a,
body.blueprint-mode div {
  font-family: monospace !important;
  letter-spacing: 0px !important; 
}
*/

/* Inject Meta-Data Labels */
body.blueprint-mode section {
  position: relative;
}

body.blueprint-mode section::before {
  content: "SECTION ID: " attr(id);
  position: absolute;
  top: 5px;
  left: 5px;
  background: var(--color-accent);
  color: #000;
  font-family: monospace;
  font-size: 10px;
  padding: 2px 5px;
  z-index: 9999;
  pointer-events: none;
}

body.blueprint-mode .container::before {
  content: "CLASS: .container";
  position: absolute;
  top: -15px;
  right: 0;
  color: var(--color-accent);
  font-size: 9px;
  border: 1px dashed var(--color-accent);
  padding: 1px 4px;
}

/* Rulers (Fixed Overlay) */
body.blueprint-mode::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(90deg,
      var(--color-accent),
      var(--color-accent) 1px,
      transparent 1px,
      transparent 20px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 10000;
}

body.blueprint-mode::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 100%;
  background: repeating-linear-gradient(180deg,
      var(--color-accent),
      var(--color-accent) 1px,
      transparent 1px,
      transparent 20px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 10000;
}

/* --- Mobile Journey Refinement (Phase 2 Overrides) --- */
@media (max-width: 768px) {

  /* Journey Section Layout */
  .bp-row {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  .bp-left {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-bottom: 25px !important;
  }

  .bp-phase {
    font-size: 0.8rem !important;
    margin-bottom: 5px !important;
    color: var(--color-accent) !important;
    letter-spacing: 3px !important;
    font-weight: 700 !important;
  }

  /* Solid White Year + Underline */
  .bp-year {
    font-size: 7rem !important;
    line-height: 0.8 !important;
    color: #fff !important;
    -webkit-text-stroke: 0 !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    position: relative !important;
    display: inline-block !important;
    margin-left: 0 !important;
  }

  .bp-year::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 2px;
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    display: block;
  }

  /* Card Refinements */
  .bp-card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(10, 10, 10, 0.95) !important;
    width: 100% !important;
  }

  .bp-card-header {
    padding: 30px !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    /* Stack for space */
    gap: 15px !important;
  }

  .bp-main-info {
    gap: 10px !important;
  }

  .bp-role {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
    color: #fff !important;
    max-width: 80% !important;
    /* Prevent overlap with absolute tech specs */
  }

  .bp-company {
    font-family: var(--font-sans) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    font-style: italic !important;
    text-transform: uppercase !important;
    color: var(--color-accent) !important;
    letter-spacing: 2px !important;
  }

  .bp-tech-specs {
    position: absolute !important;
    top: 30px !important;
    right: 30px !important;
    text-align: right !important;
  }

  .bp-card-body {
    padding: 30px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .bp-desc {
    max-width: 100% !important;
    font-size: 1.1rem !important;
    color: #999 !important;
  }
}

/* --- Mobile Contact Refinement (Reference: Let's Build Meaningful Things) --- */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 60px !important;
  }

  /* Headlines */
  .contact-info .section-label {
    font-size: 0.7rem !important;
    letter-spacing: 3px !important;
    margin-bottom: 20px !important;
  }

  .contact-headline {
    font-size: 3.5rem !important;
    /* Large readable size */
    line-height: 1.1 !important;
  }

  .contact-headline br {
    display: block;
    /* Ensure breaks work */
  }

  .contact-sub {
    font-size: 1rem !important;
    max-width: 100% !important;
    margin-bottom: 50px !important;
  }

  /* Email with Gold Dash */
  .contact-email {
    font-size: 1.3rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .contact-email::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
  }

  .contact-socials {
    gap: 30px !important;
    margin-top: 30px !important;
  }

  /* Form Styles (Dark, border-only inputs) */
  .contact-form-card {
    background: transparent !important;
    /* Removed BG as per ref */
    border: none !important;
    padding: 0 !important;
  }

  .contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .form-group {
    margin-bottom: 20px !important;
  }

  .form-label {
    color: #666 !important;
    font-size: 0.65rem !important;
  }

  .form-input {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 15px 0 !important;
    font-size: 1.1rem !important;
  }

  .form-input:focus {
    border-bottom-color: var(--color-accent) !important;
  }

  .btn-block-gold {
    margin-top: 40px !important;
    font-size: 0.9rem !important;
    letter-spacing: 3px !important;
    padding: 25px 0 !important;
  }
}

/* --- Mobile Showcase Refinement (Pill Badge & Vertical Stack) --- */
/* Blueprint Badge (Default / Desktop) */
.sc-image {
  position: relative;
  /* Ensure badge position */
}

.sc-blueprint-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(80, 80, 80, 0.8);
  backdrop-filter: blur(5px);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 20px;
  /* Pill Shape */
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

@media (max-width: 768px) {
  .showcase-grid {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    /* Enable scroll if needed */
  }

  .sc-image-col {
    padding: 80px 20px 0px !important;
    /* Top pad for header */
    width: 100% !important;
    height: auto !important;
  }

  .sc-image {
    width: 100% !important;
    height: auto !important;
    /* Allow auto height to prevent stretching */
    aspect-ratio: 16/9;
    /* Maintain a reasonable aspect ratio */
    border: none !important;
    box-shadow: none !important;
  }

  .sc-blueprint-badge {
    bottom: 15px !important;
    right: 15px !important;
    font-size: 0.65rem !important;
    padding: 6px 12px !important;
  }

  .sc-content-col {
    padding: 30px 25px 60px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .sc-meta-row {
    margin-bottom: 20px !important;
  }

  .sc-ref {
    background: transparent !important;
    padding: 0 !important;
    color: var(--color-accent) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.75rem !important;
    letter-spacing: 1px !important;
  }

  .sc-dot {
    display: none !important;
    /* Hide dot as per ref */
  }

  .sc-project-title {
    font-size: 3.5rem !important;
    margin-bottom: 20px !important;
    line-height: 1 !important;
  }

  .sc-desc {
    font-size: 1rem !important;
    color: #aaa !important;
    margin-bottom: 40px !important;
  }

  /* Hide attributes/colors for cleaner mobile view if desired, or keep them. 
       Ref image didn't show them, but user said "like this". I'll keep them but minimal. */

  .sc-action {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  .long-arrow {
    color: var(--color-accent) !important;
  }
}

/* --- Multi-Entry Showcase Adjustments --- */
.showcase-container {
  overflow-y: auto !important;
  /* Allow scrolling for multiple projects */
  height: 100vh;
  scroll-behavior: smooth;
}

.showcase-grid {
  min-height: 100vh;
  /* Each project takes full viewport height */
  height: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Fluid Showcase Images (Refactor) --- */
.sc-image-wrapper {
  width: 100%;
  position: relative;
  display: block;
}

.sc-fluid-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #222;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

@media (max-width: 768px) {
  .sc-fluid-image {
    border: none;
    box-shadow: none;
  }

  .sc-image-col {
    height: auto !important;
    padding-bottom: 0 !important;
  }
}

/* --- Coming Soon (Digital) --- */
.cs-body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  color: #fff;
  overflow: hidden;
  font-family: var(--font-sans);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cs-container {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cs-glitch-wrapper {
  position: relative;
  display: inline-block;
}

.cs-title {
  font-size: 5rem;
  letter-spacing: 10px;
  font-weight: 800;
  color: #fff;
  position: relative;
  text-transform: uppercase;
  font-family: var(--font-sans);
  /* Ensure font is consistent */
}

/* Glitch Effect */
.cs-title::before,
.cs-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050505;
}

.cs-title::before {
  left: 2px;
  text-shadow: -1px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.cs-title::after {
  left: -2px;
  text-shadow: -1px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.cs-subtitle {
  font-family: monospace;
  color: var(--color-accent);
  letter-spacing: 4px;
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.8;
}

.cs-progress-bar {
  width: 300px;
  height: 2px;
  background: #222;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.cs-progress-fill {
  width: 50%;
  height: 100%;
  background: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0;
  animation: loading 2s infinite ease-in-out;
}

.cs-back-btn {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #888;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: monospace;
}

.cs-back-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(212, 175, 55, 0.05);
}

/* Background Elements */
.cs-background-elements {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.cs-circle {
  width: 600px;
  height: 600px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cs-line {
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Keyframes */
@keyframes glitch-anim {
  0% {
    clip: rect(30px, 9999px, 10px, 0);
  }

  20% {
    clip: rect(80px, 9999px, 90px, 0);
  }

  40% {
    clip: rect(10px, 9999px, 50px, 0);
  }

  60% {
    clip: rect(60px, 9999px, 20px, 0);
  }

  80% {
    clip: rect(20px, 9999px, 70px, 0);
  }

  100% {
    clip: rect(90px, 9999px, 30px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(10px, 9999px, 80px, 0);
  }

  20% {
    clip: rect(70px, 9999px, 20px, 0);
  }

  40% {
    clip: rect(30px, 9999px, 10px, 0);
  }

  60% {
    clip: rect(90px, 9999px, 60px, 0);
  }

  80% {
    clip: rect(50px, 9999px, 40px, 0);
  }

  100% {
    clip: rect(20px, 9999px, 70px, 0);
  }
}

@keyframes loading {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}

@media (max-width: 768px) {
  .cs-title {
    font-size: 3rem;
  }

  .cs-circle {
    width: 300px;
    height: 300px;
  }
}

/* --- Loading Screen (Cinematic Blueprint) --- */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #050505;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-family: var(--font-sans);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s ease;
}

.loader-container.loaded {
  transform: translateY(-100%);
  pointer-events: none;
}

/* Blueprint Grid Background */
.loader-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
}

/* Center Content */
.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 30px;
  overflow: hidden;
}

.loader-logo-text {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -2px;
}

.loader-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: scanDown 2s infinite linear;
  opacity: 0.7;
}

.loader-title {
  font-family: monospace;
  letter-spacing: 5px;
  font-size: 0.8rem;
  color: #666;
  animation: fadePulse 3s infinite ease-in-out;
}

.loader-status {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--color-accent);
  margin-top: 10px;
}

/* Corners */
.loader-corner {
  position: absolute;
  font-family: monospace;
  font-size: 0.7rem;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tl {
  top: 30px;
  left: 30px;
  text-align: left;
}

.tr {
  top: 30px;
  right: 30px;
  text-align: right;
}

.bl {
  bottom: 30px;
  left: 30px;
  text-align: left;
}

.br {
  bottom: 30px;
  right: 30px;
  text-align: right;
}

#loader-counter {
  font-size: 3rem;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-sans);
  line-height: 1;
}

.loader-label {
  letter-spacing: 2px;
  font-size: 0.6rem;
  color: var(--color-accent);
}

/* Animations */
@keyframes scanDown {
  0% {
    top: -10%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 110%;
    opacity: 0;
  }
}

@keyframes fadePulse {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.8;
  }
}

@media (max-width: 768px) {
  .loader-corner {
    display: none;
  }

  .loader-corner.br {
    display: flex;
    bottom: 50px;
    right: 50%;
    transform: translateX(50%);
    align-items: center;
  }
}

/* --- Archive Heading (The Journey) --- */
.archive-heading {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 0.9;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .archive-heading {
    font-size: 3.5rem;
    /* Match mobile scale */
    line-height: 1;
  }
}