/* ═══════════════════════════════════════════════════
   VYALA — Sacred Brutalism Design System
   ═══════════════════════════════════════════════════ */
:root {
  --obsidian: #0D0D0D;
  --charcoal: #111111;
  --charcoal-light: #1A1A1A;
  --stone-gold: #C8A96E;
  --stone-light: #D4B483;
  --terracotta: #B85C38;
  --ochre: #CC7722;
  --white: #F5F0EB;
  --white-dim: #C4BAB0;
  --text: #E0D6CC;
  --text-muted: #8A8078;
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
  --duration-long: 1s;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--obsidian); color: var(--text); line-height: 1.7; overflow-x: hidden; cursor: none; }
a { color: var(--stone-gold); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--stone-light); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--stone-gold); color: var(--obsidian); }

/* ─── Custom Cursor ─── */
.cursor { position: fixed; top: 0; left: 0; width: 12px; height: 12px; background: var(--stone-gold); border-radius: 50%; pointer-events: none; z-index: 10000; mix-blend-mode: difference; transition: transform 0.15s var(--ease-out), opacity 0.3s; transform: translate(-50%, -50%); opacity: 0; }
.cursor--active { opacity: 1; }
.cursor--hover { transform: translate(-50%, -50%) scale(3); background: var(--stone-gold); mix-blend-mode: normal; opacity: 0.3; }
.cursor-trail { position: fixed; top: 0; left: 0; width: 36px; height: 36px; border: 1px solid rgba(200, 169, 110, 0.3); border-radius: 50%; pointer-events: none; z-index: 9999; transition: transform 0.4s var(--ease-out), opacity 0.3s, border-color 0.3s; transform: translate(-50%, -50%); opacity: 0; }
.cursor-trail--active { opacity: 1; }
.cursor-trail--hover { border-color: var(--stone-gold); transform: translate(-50%, -50%) scale(1.5); }

/* ─── Noise & Grid ─── */
.hero__noise, .section__noise { position: absolute; inset: 0; pointer-events: none; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 256px; z-index: 1; }
.hero__grid-pattern { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0.03; background-image: linear-gradient(rgba(200,169,110,1) 1px, transparent 1px), linear-gradient(90deg, rgba(200,169,110,1) 1px, transparent 1px); background-size: 60px 60px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }

/* ─── Navigation ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: var(--space-sm) var(--space-md); background: rgba(13, 13, 13, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(200, 169, 110, 0.08); transition: background 0.3s, padding 0.3s var(--ease-out); }
.nav--scrolled { padding: var(--space-xs) var(--space-md); background: rgba(13, 13, 13, 0.95); }
.nav__logo { display: flex; align-items: center; gap: var(--space-xs); color: var(--white); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.15em; }
.nav__logo-img { width: 36px; height: 36px; object-fit: contain; filter: brightness(1.2); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 8px; z-index: 1001; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--stone-gold); transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav__toggle--open span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:last-child { transform: rotate(-45deg) translate(5px, -5px); }
.nav__links { display: flex; align-items: center; gap: var(--space-md); list-style: none; }
.nav__links a { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.3s var(--ease-out); }
.nav__links a:hover { color: var(--stone-gold); }
.nav__cta { color: var(--stone-gold) !important; border: 1px solid rgba(200, 169, 110, 0.3); padding: var(--space-xs) var(--space-sm); transition: all 0.3s var(--ease-out) !important; }
.nav__cta:hover { background: rgba(200, 169, 110, 0.1); border-color: var(--stone-gold); }

/* ═══════ HERO ═══════ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--obsidian); overflow: hidden; }
.hero__glyph-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; opacity: 0.06; z-index: 2; animation: glyphPulse 6s ease-in-out infinite; }
.hero__glyph { width: 100%; height: 100%; object-fit: contain; filter: sepia(1) saturate(0.5) brightness(1.2); }
@keyframes glyphPulse { 0%, 100% { opacity: 0.06; transform: translate(-50%, -50%) scale(1) rotate(0deg); } 50% { opacity: 0.10; transform: translate(-50%, -50%) scale(1.05) rotate(3deg); } }
.hero__content { position: relative; z-index: 5; text-align: center; padding: 0 var(--space-md); }
.hero__title { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 14rem); line-height: 0.85; color: var(--white); letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.hero__title-line { display: block; }
.hero__tagline { font-family: var(--font-mono); font-size: clamp(0.9rem, 1.5vw, 1.1rem); color: var(--stone-gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.hero__subtext { font-family: var(--font-body); font-size: clamp(0.95rem, 1.2vw, 1.1rem); color: var(--text-muted); max-width: 480px; margin: 0 auto var(--space-lg); line-height: 1.8; }
.hero__cta { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-mono); font-size: 0.85rem; color: var(--obsidian); background: var(--stone-gold); padding: 14px 32px; letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.4s var(--ease-out); position: relative; overflow: hidden; }
.hero__cta::before { content: ''; position: absolute; inset: 0; background: var(--stone-light); transform: translateX(-105%); transition: transform 0.4s var(--ease-out); }
.hero__cta:hover { color: var(--obsidian); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200, 169, 110, 0.25); }
.hero__cta:hover::before { transform: translateX(0); }
.hero__cta svg { position: relative; z-index: 1; }
.hero__scroll-indicator { position: absolute; bottom: var(--space-lg); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); z-index: 5; }
.hero__scroll-indicator span { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--stone-gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.3; transform: scaleY(0.5); } }
.reveal-hero { opacity: 0; transform: translateY(40px); }
.reveal-hero--visible { opacity: 1; transform: translateY(0); transition: opacity var(--duration-long) var(--ease-out), transform var(--duration-long) var(--ease-out); }

/* ═══════ WHAT WE DO ═══════ */
.what-we-do { position: relative; padding: var(--space-2xl) 0; background: var(--charcoal); }
.section-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--stone-gold); letter-spacing: 0.25em; text-transform: uppercase; display: block; margin-bottom: var(--space-sm); }
.section-heading { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--white); line-height: 1.2; margin-bottom: var(--space-md); }
.section-prose { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; line-height: 1.9; }
.section-header { margin-bottom: var(--space-xl); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.pillar { position: relative; background: var(--charcoal-light); border: 1px solid rgba(200, 169, 110, 0.08); padding: var(--space-lg) var(--space-md); transition: all 0.5s var(--ease-out); overflow: hidden; }
.pillar::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--stone-gold), transparent); opacity: 0; transition: opacity 0.5s var(--ease-out); }
.pillar:hover { transform: translateY(-8px); border-color: rgba(200, 169, 110, 0.2); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 169, 110, 0.06); }
.pillar:hover::before { opacity: 1; }
.pillar__icon { width: 48px; height: 48px; margin-bottom: var(--space-md); color: var(--stone-gold); }
.pillar__icon svg { width: 100%; height: 100%; }
.pillar__title { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: var(--space-sm); }
.pillar__desc { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; }

/* ═══════ THE CREATURE ═══════ */
.creature { position: relative; padding: var(--space-2xl) 0; background: var(--obsidian); overflow: hidden; }
.creature__bg-glyph { position: absolute; top: 50%; right: -10%; transform: translateY(-50%); width: 700px; height: 700px; opacity: 0.04; z-index: 1; }
.creature__bg-img { width: 100%; height: 100%; object-fit: contain; filter: sepia(1) saturate(0.3) brightness(1.5); }
.creature__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.creature__heading { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; }
.creature__text { font-size: 1.05rem; color: var(--text-muted); line-height: 1.9; margin-bottom: var(--space-sm); }
.creature__text--accent { color: var(--stone-gold); font-family: var(--font-display); font-size: 1.3rem; font-style: italic; margin-top: var(--space-md); }
.creature__glyph-frame { position: relative; width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.creature__glyph-frame::before { content: ''; position: absolute; inset: 15%; border: 1px solid rgba(200, 169, 110, 0.12); transform: rotate(45deg); }
.creature__glyph-frame::after { content: ''; position: absolute; inset: 25%; border: 1px solid rgba(200, 169, 110, 0.06); }
.creature__glyph-img { width: 60%; height: 60%; object-fit: contain; filter: sepia(1) saturate(0.6) brightness(1.3); animation: creatureFloat 8s ease-in-out infinite; }
@keyframes creatureFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

/* ═══════ HOW WE WORK ═══════ */
.process { position: relative; padding: var(--space-2xl) 0; background: var(--charcoal); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.process__step { position: relative; padding: var(--space-lg) var(--space-md) var(--space-md); border-top: 1px solid rgba(200, 169, 110, 0.12); }
.process__number { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); color: rgba(200, 169, 110, 0.08); line-height: 1; display: block; margin-bottom: var(--space-sm); transition: color 0.5s var(--ease-out); }
.process__step:hover .process__number { color: rgba(200, 169, 110, 0.2); }
.process__connector { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--stone-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.process__step:hover .process__connector { transform: scaleX(1); }
.process__step-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: var(--space-xs); }
.process__step-desc { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); line-height: 1.8; }

/* ═══════ INDUSTRIES ═══════ */
.industries { position: relative; padding: var(--space-2xl) 0; background: var(--obsidian); }
.industries__cloud { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; max-width: 800px; margin: 0 auto; }
.industry-tag { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); padding: 10px 24px; border: 1px solid rgba(200, 169, 110, 0.1); background: rgba(200, 169, 110, 0.02); letter-spacing: 0.05em; transition: all 0.4s var(--ease-out); cursor: default; }
.industry-tag:hover { color: var(--stone-gold); border-color: rgba(200, 169, 110, 0.3); background: rgba(200, 169, 110, 0.06); box-shadow: 0 0 20px rgba(200, 169, 110, 0.08); transform: translateY(-2px); }

/* ═══════ CONTACT ═══════ */
.contact { position: relative; padding: var(--space-2xl) 0; background: var(--charcoal); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.contact__heading { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.contact__text { font-size: 1.05rem; color: var(--text-muted); margin-bottom: var(--space-md); line-height: 1.8; }
.contact__email { font-family: var(--font-mono); font-size: 1rem; color: var(--stone-gold); border-bottom: 1px solid rgba(200, 169, 110, 0.3); padding-bottom: 4px; transition: border-color 0.3s; }
.contact__email:hover { border-color: var(--stone-gold); }
.contact__form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; }
.form-input { font-family: var(--font-body); font-size: 0.95rem; color: var(--white); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(200, 169, 110, 0.12); padding: 14px 16px; outline: none; transition: all 0.3s var(--ease-out); }
.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-input:focus { border-color: var(--stone-gold); background: rgba(200, 169, 110, 0.04); box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.06); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); font-family: var(--font-mono); font-size: 0.82rem; color: var(--obsidian); background: var(--stone-gold); border: none; padding: 16px 32px; letter-spacing: 0.08em; text-transform: uppercase; cursor: none; transition: all 0.4s var(--ease-out); position: relative; overflow: hidden; align-self: flex-start; }
.form-submit::before { content: ''; position: absolute; inset: 0; background: var(--stone-light); transform: translateX(-105%); transition: transform 0.4s var(--ease-out); }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200, 169, 110, 0.25); }
.form-submit:hover::before { transform: translateX(0); }
.form-submit svg { position: relative; z-index: 1; }
.form-submit--sent { background: var(--terracotta); }

/* ═══════ FOOTER ═══════ */
.footer { position: relative; padding: var(--space-xl) 0 var(--space-md); background: var(--obsidian); border-top: 1px solid rgba(200, 169, 110, 0.08); }
.footer__grid { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-xl); align-items: start; }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer__logo { width: 48px; height: 48px; object-fit: contain; filter: brightness(1.2) sepia(0.5); margin-bottom: var(--space-xs); }
.footer__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--white); letter-spacing: 0.15em; }
.footer__tagline { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.footer__nav { display: flex; flex-direction: column; gap: var(--space-xs); }
.footer__nav a { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.3s; }
.footer__nav a:hover { color: var(--stone-gold); }
.footer__social { display: flex; gap: var(--space-sm); }
.footer__social a { color: var(--text-muted); transition: color 0.3s, transform 0.3s var(--ease-out); }
.footer__social a:hover { color: var(--stone-gold); transform: translateY(-2px); }
.footer__copyright { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); opacity: 0.5; text-align: center; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid rgba(200, 169, 110, 0.05); }

/* ═══════ SCROLL ANIMATIONS ═══════ */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out); }
.fade-in--visible { opacity: 1; transform: translateY(0); }
.pillars .pillar:nth-child(2) { transition-delay: 0.15s; }
.pillars .pillar:nth-child(3) { transition-delay: 0.3s; }
.process__steps .process__step:nth-child(2) { transition-delay: 0.1s; }
.process__steps .process__step:nth-child(3) { transition-delay: 0.2s; }
.process__steps .process__step:nth-child(4) { transition-delay: 0.3s; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; gap: var(--space-sm); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .creature__grid { grid-template-columns: 1fr; text-align: center; }
  .creature__visual { order: -1; }
  .creature__glyph-frame { max-width: 350px; margin: 0 auto; }
}
@media (max-width: 768px) {
  :root { --space-xl: 56px; --space-2xl: 80px; }
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
  .nav__toggle { display: flex; }
  .nav__links { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; flex-direction: column; justify-content: center; background: rgba(13, 13, 13, 0.98); backdrop-filter: blur(24px); padding: var(--space-lg); transform: translateX(100%); transition: transform 0.5s var(--ease-out); border-left: 1px solid rgba(200, 169, 110, 0.1); }
  .nav__links--open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .hero__title { font-size: clamp(4rem, 20vw, 8rem); }
  .hero__glyph-container { width: 300px; height: 300px; }
  .process__steps { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-md); text-align: center; }
  .footer__nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
  .footer__social { justify-content: center; }
  .form-submit { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(3.5rem, 22vw, 6rem); }
  .section-heading { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .industries__cloud { gap: var(--space-xs); }
  .industry-tag { font-size: 0.75rem; padding: 8px 16px; }
}
