/* 
  =========================================
  Curi Pollen Parad NLE - Master Stylesheet
  =========================================
*/

:root {
  /* Dynamic Palette (No Blue, strictly Sand/Terracotta/Charcoal) */
  --bg-canvas: #f3e9d8;
  --bg-surface: #f3e9d8;
  --text-primary: #262626;
  --text-muted: #525252;
  --accent-primary: #c2410c;
  --accent-secondary: #9a330a;
  --border-subtle: #262626;
  
  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Advanced UI Micro-Interactions & Depth */
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 4px 4px 0px var(--text-primary);
  --shadow-hover: 8px 8px 0px var(--accent-primary);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-base);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  scroll-behavior: smooth;
}

body {
  padding: 2vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); border-bottom: 2px solid var(--border-subtle); padding-bottom: 1rem; margin-bottom: 2rem;}
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2rem;}
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}

.monospace {
  font-family: var(--font-mono);
}

/* Framed Container Constraint */
.inset-frame {
  flex: 1;
  border: 2px solid var(--border-subtle);
  padding: clamp(1rem, 3vw, 3rem);
  background: var(--bg-surface);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Header & Nav */
.main-header {
  position: relative;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  /* Brand far left constraint applied strictly */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s var(--ease-kinetic);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.mobile-menu-toggle {
  display: none;
  font-family: var(--font-mono);
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
}

/* Layouts */
.reading-column {
  max-width: 68ch;
  margin: 0 auto;
}

/* Breakout Imagery */
.breakout {
  width: calc(100% + 4vw);
  margin-left: -2vw;
  margin-top: 3rem;
  margin-bottom: 3rem;
  border: 2px solid var(--border-subtle);
  position: relative;
}

.breakout img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Hero Section - Overlapping Screens */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  max-width: 60ch;
}

.hero-images {
  position: relative;
  min-height: 400px;
}

.hero-img {
  position: absolute;
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-elevation);
  transition: transform 0.4s var(--ease-kinetic);
  object-fit: cover;
}

.hero-img:nth-child(1) { top: 0; left: 0; width: 60%; aspect-ratio: 4/3; z-index: 3; }
.hero-img:nth-child(2) { top: 10%; right: 0; width: 55%; aspect-ratio: 16/9; z-index: 2; }
.hero-img:nth-child(3) { bottom: 0; left: 20%; width: 65%; aspect-ratio: 4/3; z-index: 1; }

.hero-images:hover .hero-img:nth-child(1) { transform: translate(-10px, -10px); }
.hero-images:hover .hero-img:nth-child(2) { transform: translate(10px, -5px); }
.hero-images:hover .hero-img:nth-child(3) { transform: translate(5px, 10px); }

/* Buttons & Links */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  font-family: var(--font-mono);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--text-primary);
  border-radius: 0;
  box-shadow: var(--shadow-elevation);
  transition: all 0.3s var(--ease-kinetic);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
  background-color: var(--accent-secondary);
}

.text-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-primary);
  transform: scaleX(1);
  transform-origin: bottom left;
  transition: transform 0.3s var(--ease-kinetic);
}
.text-link:hover::after {
  transform: scaleX(0);
  transform-origin: bottom right;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  border: 2px solid var(--border-subtle);
  background: var(--bg-canvas);
  position: relative;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.card-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--text-primary);
  text-transform: uppercase;
  z-index: 10;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--text-primary);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin-block: 2rem;
  border: 2px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}

th, td {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

th {
  background-color: var(--text-primary);
  color: var(--bg-canvas);
  text-transform: uppercase;
}

/* Forms & Matcher Tool */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-mono);
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: 0;
  color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 4px 4px 0px var(--accent-primary);
}

/* Footer Constraint */
.main-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-subtle);
  text-align: center;
}

.footer-frame {
  border: 2px solid var(--border-subtle);
  padding: 2rem;
  background: var(--bg-surface);
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-disclaimer, .footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Scroll Reveal Kinetic Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-canvas);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-kinetic);
}

.mobile-nav-overlay.active {
  transform: translateY(0);
}

.mobile-nav-overlay a {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-images {
    min-height: 350px;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  h1 {
    font-size: 2rem;
  }
  .hero-images {
    min-height: 250px;
  }
  body {
    padding: 1rem;
  }
  .inset-frame {
    padding: 1.5rem;
  }
  .breakout {
    width: calc(100% + 2rem);
    margin-left: -1rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
