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

:root {
  /* Colors */
  --bg-cream: #FAF7F2;
  --bg-cream-tint: #F3ECE2;
  --text-espresso: #3B1F13;
  --text-espresso-muted: #5C463C;
  --accent-copper: #C86431;
  --accent-copper-hover: #AF5224;
  --accent-olive: #3E5C47;
  --accent-gold: #D1A142;
  
  /* Borders & Shadows */
  --border-fine: 1px solid rgba(59, 31, 19, 0.12);
  --border-fine-active: 1px solid rgba(59, 31, 19, 0.3);
  --shadow-organic: 0 10px 30px -15px rgba(59, 31, 19, 0.08);
  --shadow-organic-hover: 0 20px 40px -15px rgba(59, 31, 19, 0.15);
  
  /* Fonts */
  --font-title: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Easing */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.5s var(--ease-expo);
  --transition-slow: all 0.8s var(--ease-expo);
}

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

body {
  background-color: var(--bg-cream);
  color: var(--text-espresso);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: opacity 0.25s ease; /* Smooth language switch fade */
  padding-top: 72px; /* Prevent fixed navbar overlap */
}

/* Tactile Organic Canvas Grain Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  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");
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400; /* Regular weight for high-end editorial display */
  line-height: 1.15;
  color: var(--text-espresso);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  letter-spacing: -0.01em;
}

p {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--text-espresso-muted);
}

.text-wide {
  max-width: 65ch;
  line-height: 1.7;
}

/* Flat, Edge-to-Edge Navigation (No rounded corners, no floating wrapper) */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-fine);
  transition: var(--transition-smooth);
}

header:hover {
  border-bottom: var(--border-fine-active);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-espresso);
  letter-spacing: 0.05em;
}

.nav-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-espresso-muted);
  position: relative;
  transition: color 0.3s var(--ease-expo);
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--accent-copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-expo);
}

.nav-links a:hover {
  color: var(--text-espresso);
}

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

/* Bilingual Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-espresso-muted);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.3s var(--ease-expo);
}

.lang-btn.active {
  color: var(--accent-copper);
}

.lang-btn:hover:not(.active) {
  color: var(--text-espresso);
}

.lang-sep {
  color: rgba(59, 31, 19, 0.2);
  pointer-events: none;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 0; /* Sharp corners for clean editorial structure */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--accent-copper);
  color: var(--bg-cream);
}

.btn-primary:hover {
  background-color: var(--accent-copper-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-espresso);
  border: var(--border-fine);
}

.btn-secondary:hover {
  background-color: rgba(59, 31, 19, 0.05);
  border: var(--border-fine-active);
  transform: translateY(-2px);
}

/* Sections Base */
section {
  padding: 140px 0;
  position: relative;
}

/* Hero Section (Anthropic 6-6 grid style) */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.hero-grid-6-6 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 32px;
}

.hero-title {
  max-width: 100%;
  line-height: 1.15;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
}

.hero-desc {
  max-width: 90%;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Drafting Grid illustration Card */
.hero-illustration-card {
  position: relative;
  background-color: var(--bg-cream-tint);
  border: 1px dashed rgba(59, 31, 19, 0.25);
  border-radius: 0; /* Sharp corners for draft blueprint look */
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* Let plus signs extend outside the border */
  width: 100%;
  max-width: 480px;
  height: 400px;
  box-shadow: var(--shadow-organic);
  transition: var(--transition-smooth);
}

.hero-illustration-card:hover {
  border: 1px dashed var(--accent-copper);
  background-color: #FAF7F2;
  box-shadow: var(--shadow-organic-hover);
}

.hero-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card-typography {
  font-family: var(--font-title);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 400;
  color: var(--text-espresso);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  transition: var(--transition-smooth);
}

.hero-illustration-card:hover .hero-card-typography {
  color: var(--accent-copper);
  letter-spacing: 0.18em;
}

/* Subtle blueprint drafting grid */
.drafting-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(59, 31, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 31, 19, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
}

/* Ambient Radial Light Behind Hero */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, rgba(200, 100, 49, 0.06) 0%, rgba(250, 247, 242, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

/* Infinite Marquee */
.marquee-container {
  border-top: var(--border-fine);
  border-bottom: var(--border-fine);
  background-color: var(--bg-cream-tint);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-espresso);
  margin-right: 48px;
  letter-spacing: 0.02em;
}

.marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-copper);
  margin-left: 24px;
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Definition Section (Optimized Spacing - Compact Layout) */
.definition {
  background-color: var(--bg-cream);
  padding: 100px 0;
  display: flex;
  align-items: center;
}

.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.definition-logo-view {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.definition-logo-view img {
  max-width: 70%;
  height: auto;
  border-radius: 0; /* Sharp corner style */
  box-shadow: var(--shadow-organic);
  transition: var(--transition-slow);
}

.definition-logo-view:hover img {
  transform: scale(1.03) rotate(1deg);
  box-shadow: var(--shadow-organic-hover);
}

/* Default state: fully visible text for progressive enhancement */
.definition-text-reveal {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-espresso);
}

/* Bento Grid (Poles of Competence - Draftsman Style) */
.bento {
  background-color: var(--bg-cream);
}

.bento-header {
  margin-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-end;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bento-card {
  background-color: var(--bg-cream-tint);
  border: 1px dashed rgba(59, 31, 19, 0.25);
  border-radius: 0;
  padding: 32px;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 220px;
  box-shadow: var(--shadow-organic);
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border: 1px dashed var(--accent-copper);
  background-color: #FAF7F2;
  box-shadow: var(--shadow-organic-hover);
  transform: translateY(-2px);
}

/* Corner Plus Marks */
.corner-plus {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 10;
}

.corner-plus::before, .corner-plus::after {
  content: '';
  position: absolute;
  background-color: rgba(59, 31, 19, 0.35);
  transition: var(--transition-smooth);
}

/* Horizontal line */
.corner-plus::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 1px;
}

/* Vertical line */
.corner-plus::after {
  top: 0;
  left: 7px;
  width: 1px;
  height: 16px;
}

/* Hover effect on plus signs */
.bento-card:hover .corner-plus::before,
.bento-card:hover .corner-plus::after {
  background-color: var(--accent-copper);
}

.corner-plus-tl { top: -8px; left: -8px; }
.corner-plus-tr { top: -8px; right: -8px; }
.corner-plus-bl { bottom: -8px; left: -8px; }
.corner-plus-br { bottom: -8px; right: -8px; }

/* Grid Sizing Paradigm for Desktop (Two Compact Rows) */
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento-card-col-3 { grid-column: span 3; }
  .bento-card-col-2 { grid-column: span 2; }
}

.bento-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent-copper);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.bento-content {
  margin-top: 0;
}

.bento-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.bento-desc {
  font-size: 0.95rem;
  max-width: 100%;
}
/* Governance & Synergy Section */
.gov-section {
  background-color: var(--bg-cream);
}

.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
}

.gov-col {
  background-color: var(--bg-cream-tint);
  border: var(--border-fine);
  border-radius: 0; /* Sharp corners to match draftsman aesthetic */
  padding: 40px;
  box-shadow: var(--shadow-organic);
  transition: var(--transition-smooth);
}

.gov-col:hover {
  border: var(--border-fine-active);
  box-shadow: var(--shadow-organic-hover);
  transform: translateY(-4px);
}

.gov-num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-copper);
  line-height: 1;
  margin-bottom: 24px;
}

.gov-title {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.gov-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Footer Section */
.footer-cta {
  background-color: var(--text-espresso);
  color: var(--bg-cream);
  padding: 120px 0 60px;
  border-top: var(--border-fine-active);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
  padding-bottom: 60px;
  margin-bottom: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bg-cream);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-cta-text h2 {
  color: var(--bg-cream);
  margin-bottom: 24px;
}

.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-links-col h4 {
  color: var(--bg-cream);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s var(--ease-expo);
}

.footer-links-col a:hover {
  color: var(--bg-cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(250, 247, 242, 0.4);
  text-decoration: none;
  transition: color 0.3s var(--ease-expo);
}

.footer-bottom-links a:hover {
  color: var(--bg-cream);
}

/* Responsiveness adjustments */
@media (max-width: 1024px) {
  .hero-grid-6-6 {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-left {
    align-items: center;
    text-align: center;
  }
  
  .hero-desc {
    max-width: 100%;
  }

  .definition-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .bento-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .gov-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  section {
    padding: 100px 0;
  }
  
  .nav-links {
    display: none; /* Keep cleaner on mobile viewports */
  }
  
  .footer-right {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
