/* DJMP-007 Glaucus TC Design CSS */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=JetBrains+Mono:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --background: #090a0f;
  --foreground: #f3f4f6;
  --card: #11131a;
  --card-foreground: #f3f4f6;
  --secondary: #0d0f15;
  --secondary-foreground: #f3f4f6;
  --muted: #181b24;
  --muted-foreground: #9ca3af;
  --border: #1f2430;
  --input: #262c3b;
  --primary: #ff6b00;
  --primary-foreground: #090a0f;
  --ring: #ff6b00;
  --radius: 0.25rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utility Classes */
.font-serif {
  font-family: 'Fraunces', Georgia, serif;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-[-0.035em] { letter-spacing: -0.035em; }
.tracking-[-0.04em] { letter-spacing: -0.04em; }
.tracking-\[0\.12em\] { letter-spacing: 0.12em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.text-\[clamp\(2\.9rem\,9vw\,8rem\)\] {
  font-size: clamp(2.9rem, 9vw, 8rem);
}
.text-\[clamp\(3rem\,15vw\,13rem\)\] {
  font-size: clamp(3rem, 15vw, 13rem);
}

.leading-\[0\.85\] { line-height: 0.85; }
.leading-\[0\.9\] { line-height: 0.9; }
.leading-\[1\.02\] { line-height: 1.02; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.text-foreground { color: var(--foreground); }
.text-foreground\/10 { color: rgba(243, 244, 246, 0.1); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-right { text-align: right; }

.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-secondary { background-color: var(--secondary); }
.bg-primary { background-color: var(--primary); }

.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.border-border { border-color: var(--border); }
.border-input { border-color: var(--input); }
.border-primary { border-color: var(--primary); }
.border-foreground\/25 { border-color: rgba(243, 244, 246, 0.25); }

.rounded-sm { border-radius: var(--radius); }

/* Layout & Sizing */
.min-h-screen { min-height: 100vh; }
.max-w-\[1400px\] { max-width: 1400px; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-max { width: max-content; }

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.select-none { user-select: none; }
.overflow-hidden { overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-5 { row-gap: 1.25rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-\[auto_1fr\] { grid-template-columns: auto 1fr; }

/* Spacing */
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-6 { padding-top: 1.5rem; }
.pt-16 { padding-top: 4rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* Interactivity & Transitions */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:text-primary-foreground:hover { color: var(--primary-foreground); }
.hover\:bg-card:hover { background-color: var(--card); }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:opacity-90:hover { opacity: 0.9; }

.group:hover .group-hover\:-translate-y-1 { transform: translateY(-0.25rem); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

.underline { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.outline-none { outline: none; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }

/* Form inputs */
input, textarea, select {
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
}

.focus\:border-primary:focus {
  border-color: var(--primary);
}

.select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Marquee animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Background grain effect */
.grain::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Language selector */
.lang-select-box-glaucus {
  background-color: var(--card);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.45rem 1.8rem 0.45rem 0.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff6b00'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-select-box-glaucus:hover,
.lang-select-box-glaucus:focus {
  border-color: var(--primary);
  color: var(--foreground);
}

/* Beautiful Top Nav Buttons */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  border-color: var(--primary);
  color: #ffffff;
  background-color: rgba(255, 107, 0, 0.08);
}

.nav-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background-color: rgba(255, 107, 0, 0.12);
  font-weight: 600;
}

/* Responsive Breakpoints (min-width: 768px -> md) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-col { flex-direction: column; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  
  .md\:pt-24 { padding-top: 6rem; }
  .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .md\:gap-x-10 { column-gap: 2.5rem; }
  
  .md\:sticky { position: sticky; }
  .md\:top-28 { top: 7rem; }
  
  .md\:justify-between { justify-content: space-between; }
  .md\:justify-self-start { justify-self: start; }
  
  .md\:aspect-\[21\/8\] { aspect-ratio: 21 / 8; }
  
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* Mobile subnav */
.mobile-subnav {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.mobile-subnav a {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.mobile-subnav a:hover,
.mobile-subnav a.active {
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 1200px) {
  .mobile-subnav {
    display: none;
  }
}

/* Additional Breakpoint & Visibility Utilities */
@media (min-width: 640px) {
  .sm\:inline-block { display: inline-block !important; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
}

@media (min-width: 1200px) {
  .xl\:flex { display: flex !important; }
}

@media (min-width: 1280px) {
  .xl\:flex { display: flex !important; }
}



/* ==========================================================================
   BLOG SPECIFIC STYLES - ROBUST GRID & IMAGE CONSTRAINTS
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius, 0.25rem);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: hsla(var(--primary), 0.5);
}

.blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  max-height: 200px;
  background-color: #050505;
  overflow: hidden;
  border-bottom: 1px solid hsla(var(--border), 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-thumb {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumb {
  transform: scale(1.04);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

/* Single Blog Post Image Frame */
.blog-post-hero-frame {
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
  border: 1px solid hsl(var(--border));
  background-color: #080808;
  border-radius: var(--radius, 0.25rem);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

.blog-post-hero-img {
  max-height: 360px;
  max-width: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}




/* HERO TITLE TYPOGRAPHY (PROPORTIONAL & RESPONSIVE) */
.hero-headline {
  margin-top: 1.5rem;
  letter-spacing: -0.035em;
}
.hero-title-main {
  display: block;
  font-size: clamp(2.6rem, 7.2vw, 6.5rem);
  line-height: 0.95;
  font-weight: 700;
  color: #ededed;
  color: hsl(var(--foreground));
}
.hero-title-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(2.0rem, 5.5vw, 5.25rem); /* ~84px on desktop */
  line-height: 1.02;
  font-style: italic;
  font-weight: 400;
  color: #0cc4f1;
  color: #0cc4f1ff;
  color: hsl(var(--primary));
}
@media (max-width: 768px) {
  .hero-headline {
    margin-top: 1rem;
  }
  .hero-title-main {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
    line-height: 1.0;
    font-weight: 700;
  }
  .hero-title-sub {
    font-size: clamp(1.6rem, 6.5vw, 2.6rem);
    line-height: 1.08;
    margin-top: 0.5rem;
  }
}
