:root {
  --bg-color: #EAE1D0;
  --surface-color: #EFE8DB;
  --border-color: #CFC5B1;
  --primary-color: #D45D3E;
  --text-main: #111111;
  --text-muted: #555555;
  --font-sans: 'Cinzel', serif;
  --font-mono: 'Geist Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  /* Lenis requires smooth scrolling to be disabled natively */
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color);
}

#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Extracted Legacy Classes */
.interactive-element { pointer-events: auto; }
.glass-surface {
  background: linear-gradient(145deg, rgba(239, 232, 219, 0.9), rgba(234, 225, 208, 0.75));
  border: 1px solid rgba(207, 197, 177, 0.8);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.premium-btn {
  position: relative;
  overflow: hidden;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background 260ms ease;
}
.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(212, 93, 62, 0.16);
  border-color: rgba(212, 93, 62, 0.6);
}
.p-reveal {
  opacity: 1; 
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

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

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

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.035em;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color);
  font-size: 0.875rem;
}

.glass-panel {
  background: rgba(239, 232, 219, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(207, 197, 177, 0.6);
  border-radius: 16px;
}

.contact-input {
  width: 100%;
  background: rgba(239, 232, 219, 0.5); /* matches surface color with lower opacity */
  border: 1px solid rgba(207, 197, 177, 0.8);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  outline: none;
  transition: all 260ms ease;
  font-size: 0.875rem;
}

.contact-input:focus {
  background: rgba(239, 232, 219, 0.8);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(212, 93, 62, 0.1);
}

.contact-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}


@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  35% { transform: scaleY(1); transform-origin: top; }
  35.1% { transform: scaleY(1); transform-origin: bottom; }
  70% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-drop {
  animation: scrollDrop 1.8s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}


/* --- Monte Carlo Widget Styles --- */
:root{
  --blueprint-900:#081B30;
  --blueprint-800:#0D2848;
  --blueprint-line:#2C5A8A;
  --blueprint-line-soft:#1B3D63;
  --paper:#EAF3FB;
  --paper-dim:#9FB8CF;
  --amber:#F2B84B;
  --slate:#4E7AAE;
  --focus:#7FD1D9;
}

.mc-root{
  font-family:'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  color:var(--paper);
  display:flex;
  justify-content:center;
  padding:8px;
}

.mc-card{
  position:relative;
  width:100%;
  max-width:380px;
  background:
    linear-gradient(var(--blueprint-line-soft) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, var(--blueprint-line-soft) 1px, transparent 1px) 0 0/24px 24px,
    var(--blueprint-900);
  border:1px solid var(--blueprint-line);
  border-radius:2px;
  padding:22px 22px 20px;
}

.mc-card::before,
.mc-card::after{
  content:"";
  position:absolute;
  width:14px;
  height:14px;
  border:1.5px solid var(--paper-dim);
  opacity:0.7;
}
.mc-card::before{
  top:6px; left:6px;
  border-right:none;
  border-bottom:none;
}
.mc-card::after{
  bottom:6px; right:6px;
  border-left:none;
  border-top:none;
}

.mc-eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.14em;
  color:var(--focus);
  margin:0 0 6px;
  text-transform:uppercase;
}

.mc-title{
  font-size:17px;
  font-weight:600;
  margin:0 0 16px;
  color:var(--paper);
  letter-spacing:0.01em;
}

.mc-canvas-wrap{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  margin:0 auto 16px;
  border:1px solid var(--blueprint-line);
  background:rgba(8,27,48,0.4);
}

.mc-canvas-wrap canvas{
  display:block;
  width:100%;
  height:100%;
}

.mc-readout{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}

.mc-stat{
  display:flex;
  flex-direction:column;
  gap:3px;
  border-left:2px solid var(--blueprint-line);
  padding-left:8px;
}

.mc-stat-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:9.5px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--paper-dim);
}

.mc-stat-value{
  font-family:'IBM Plex Mono', monospace;
  font-size:15px;
  font-weight:500;
  color:var(--amber);
  font-variant-numeric:tabular-nums;
}

.mc-progress{
  width:100%;
  height:3px;
  background:var(--blueprint-line-soft);
  margin-bottom:16px;
  overflow:hidden;
}

.mc-progress-fill{
  height:100%;
  width:0%;
  background:var(--focus);
  transition:width 0.08s linear;
}

.mc-btn{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--blueprint-900);
  background:var(--paper);
  border:none;
  padding:10px 16px;
  width:100%;
  cursor:pointer;
  font-weight:600;
  transition:background 0.15s ease, opacity 0.15s ease;
}

.mc-btn:hover{ background:var(--focus); }
.mc-btn:disabled{ opacity:0.5; cursor:default; }

.mc-btn:focus-visible,
.mc-card *:focus-visible{
  outline:2px solid var(--focus);
  outline-offset:2px;
}

.mc-caption{
  font-size:12.5px;
  line-height:1.55;
  color:var(--paper-dim);
  margin:14px 0 0;
}

@media (prefers-reduced-motion: reduce){
  .mc-progress-fill{ transition:none; }
}

/* --- Let's Connect Magnetic Buttons --- */
.magnetic-btn {
  transition: border-color 0.3s ease;
}
.magnetic-btn-wrapper:hover .magnetic-btn {
  border-color: transparent;
}
.magnetic-fill {
  width: 250px;
  height: 250px;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.magnetic-btn-wrapper:hover .magnetic-fill {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Custom Scrollbar for Architecture Content */
.architecture-content::-webkit-scrollbar {
  width: 4px;
}
.architecture-content::-webkit-scrollbar-track {
  background: transparent;
}
.architecture-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.architecture-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
