/* ============================================================
   Deer Rock Studios — Shared styles
   Brand tokens & components extracted from the original index.html
   ============================================================ */

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

:root {
  --black: #080808;
  --white: #f2ede4;
  --accent: #c8b89a;
  --accent-dim: rgba(200,184,154,0.15);
  --muted: #3a3a3a;
  --glass-bg: rgba(255,255,255,0.03);
  --glass-border: rgba(200,184,154,0.12);
  --glass-highlight: rgba(200,184,154,0.06);
  --font-d: 'Bebas Neue', sans-serif;
  --font-m: 'Space Mono', monospace;
  --font-b: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}

a { color: inherit; }

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ORBS */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,184,154,0.06) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,184,154,0.04) 0%, transparent 70%);
  bottom: 10%; right: -80px;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(30px,-40px); }
  66% { transform: translate(-20px,20px); }
}

/* CURSOR */
.cursor {
  position: fixed; width: 6px; height: 6px;
  background: var(--white); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; width: 28px; height: 28px;
  border: 1px solid rgba(200,184,154,0.35);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s cubic-bezier(.25,.46,.45,.94),
              height .3s cubic-bezier(.25,.46,.45,.94),
              border-color .3s;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled, nav.solid {
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--glass-border);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo img { width: 30px; height: 30px; }
.nav-logo span {
  font-family: var(--font-d);
  font-size: 1rem; letter-spacing: .18em; color: var(--white);
}
.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-m); font-size: .65rem;
  letter-spacing: .18em; color: var(--accent);
  text-decoration: none; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }

/* LANGUAGE SWITCHER */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--glass-border);
  border-radius: 2px; overflow: hidden;
  font-family: var(--font-m); font-size: .6rem; letter-spacing: .12em;
}
.lang-switch button {
  background: transparent; border: 0; color: var(--muted);
  padding: .35rem .6rem; cursor: none;
  text-transform: uppercase; letter-spacing: .12em;
  font-family: var(--font-m); font-size: .6rem;
  transition: color .2s, background .2s;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-pressed="true"] {
  color: var(--black); background: var(--accent);
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 3rem;
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,184,154,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,184,154,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  pointer-events: none;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  from { background-position: 0 0; }
  to { background-position: 70px 70px; }
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 30%, var(--black) 100%);
  pointer-events: none;
}
.hero-logo-bg {
  position: absolute; right: -8%; top: 50%;
  transform: translateY(-50%);
  width: 52vw; max-width: 750px;
  opacity: 0.025; pointer-events: none;
  animation: bgLogoFloat 18s ease-in-out infinite;
}
@keyframes bgLogoFloat {
  0%,100% { transform: translateY(-50%) scale(1) rotate(0deg); }
  50% { transform: translateY(-52%) scale(1.02) rotate(1deg); }
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; }
.hero-eyebrow {
  font-family: var(--font-m); font-size: .65rem;
  letter-spacing: .3em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .8s ease .2s forwards;
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(5rem, 15vw, 15rem);
  line-height: .86; letter-spacing: -.01em;
  color: var(--white);
  opacity: 0; animation: fadeUp 1s ease .4s forwards;
}
.hero-title .outline {
  -webkit-text-stroke: 1px rgba(242,237,228,0.25);
  color: transparent;
}
.hero-tagline {
  margin-top: 2.5rem;
  font-family: var(--font-m); font-size: .95rem;
  letter-spacing: .12em; color: rgba(200,184,154,0.7);
  opacity: 0; animation: fadeUp .8s ease .8s forwards;
}
.hero-tagline strong { color: var(--white); font-weight: 700; }
.hero-scroll {
  position: absolute; bottom: 3rem; left: 3rem;
  font-family: var(--font-m); font-size: .6rem;
  letter-spacing: .25em; color: var(--muted);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp .8s ease 1.2s forwards;
}
.hero-scroll::before {
  content: ''; display: block;
  width: 36px; height: 1px; background: var(--muted);
}
.hero-year {
  position: absolute; bottom: 3rem; right: 3rem;
  font-family: var(--font-d); font-size: 5rem;
  color: rgba(200,184,154,0.04); pointer-events: none;
  line-height: 1;
  opacity: 0; animation: fadeUp .8s ease 1s forwards;
}

/* MARQUEE */
.marquee-section {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden; padding: 1rem 0;
  background: var(--glass-highlight);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-d); font-size: .95rem;
  letter-spacing: .2em; color: rgba(200,184,154,0.5);
  white-space: nowrap; padding: 0 2.5rem;
  display: flex; align-items: center; gap: 2.5rem;
}
.marquee-item::after { content: '◆'; color: rgba(200,184,154,0.25); font-size: .4rem; }

/* SECTION BASE */
.section { padding: 8rem 3rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--font-m); font-size: .6rem;
  letter-spacing: .3em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 3rem;
  display: flex; align-items: center; gap: 1rem;
}
.section-label::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--accent);
}

/* GLASS UTILITY */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,184,154,0.3), transparent);
  pointer-events: none;
}

/* ABOUT */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.about-title {
  font-family: var(--font-d);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .88; color: var(--white);
}
.about-title .outline {
  -webkit-text-stroke: 1px rgba(242,237,228,0.2);
  color: transparent;
}
.about-body { padding-top: .5rem; }
.about-body p {
  font-size: .95rem; color: rgba(242,237,228,0.55);
  line-height: 1.85; margin-bottom: 1.5rem;
}
.about-body p strong { color: var(--white); font-weight: 500; }

/* PROJECTS / DIVISIONS GRID */
.projects-full { padding: 0 3rem 8rem; }
.projects-header { max-width: 1200px; margin: 0 auto 4rem; }
.projects-title {
  font-family: var(--font-d);
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: .86; color: var(--white);
}
.projects-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.projects-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* GLASS CARD (division / project) */
.project-card {
  display: block; text-decoration: none; color: inherit;
  padding: 2.5rem;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(200,184,154,0.1);
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94),
              border-color .4s, background .4s;
  cursor: none;
}
.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,184,154,0.5), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
}
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(200,184,154,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.project-card:hover, .project-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(200,184,154,0.25);
  background: rgba(255,255,255,0.04);
}
.project-card:hover::before, .project-card:focus-visible::before { transform: scaleX(1); }
.project-card:hover::after { opacity: 1; }
.project-card.is-soon { opacity: .72; }

.project-tag {
  font-family: var(--font-m); font-size: .58rem;
  letter-spacing: .2em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 2rem;
}
.project-number {
  font-family: var(--font-d); font-size: 5rem;
  color: rgba(242,237,228,0.04); line-height: 1;
  margin-bottom: .25rem;
}
.project-name {
  font-family: var(--font-d); font-size: 3rem;
  color: var(--white); line-height: 1; margin-bottom: 1.25rem;
}
.project-desc {
  font-size: .82rem; color: rgba(242,237,228,0.45);
  line-height: 1.8; margin-bottom: 2rem;
}
.project-status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-m); font-size: .58rem;
  letter-spacing: .15em; text-transform: uppercase;
}
.dot { width: 5px; height: 5px; border-radius: 50%; }
.dot-green { background: #4ade80; animation: pulse 2s infinite; }
.dot-yellow { background: #facc15; }
.dot-gray { background: var(--muted); }
.status-green { color: #4ade80; }
.status-yellow { color: #facc15; }
.status-gray { color: var(--muted); }

/* App links inside a card */
.card-links {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem;
}
.card-link {
  font-family: var(--font-m); font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent); border: 1px solid var(--glass-border);
  padding: .45rem .8rem; border-radius: 2px;
  transition: color .2s, border-color .2s, background .2s;
}
.card-link:hover, .card-link:focus-visible {
  color: var(--black); background: var(--accent); border-color: var(--accent);
}

/* PAGE HEADER (interior pages) */
.page-head {
  padding: 12rem 3rem 4rem;
  max-width: 1200px; margin: 0 auto;
}
.page-eyebrow {
  font-family: var(--font-m); font-size: .62rem; letter-spacing: .3em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.page-eyebrow::before { content:''; width:28px; height:1px; background:var(--accent); }
.page-title {
  font-family: var(--font-d);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .86; color: var(--white);
}
.page-title .outline { -webkit-text-stroke:1px rgba(242,237,228,0.18); color:transparent; }
.page-intro {
  margin-top: 1.5rem; max-width: 640px;
  font-size: .95rem; color: rgba(242,237,228,0.55); line-height: 1.85;
}

/* COMING SOON block */
.soon-wrap { max-width: 1200px; margin: 0 auto; padding: 0 3rem 8rem; }
.soon-card {
  text-align: center; padding: 6rem 2rem;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
  border-radius: 2px; position: relative; overflow: hidden;
}
.soon-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(200,184,154,0.3), transparent);
}
.soon-badge {
  display: inline-block; font-family: var(--font-m); font-size: .6rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--glass-border); padding: .4rem .9rem; border-radius: 2px;
  margin-bottom: 1.5rem;
}
.soon-title {
  font-family: var(--font-d); font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .9; color: var(--white); margin-bottom: 1rem;
}
.soon-text { color: rgba(242,237,228,0.5); font-size: .9rem; line-height: 1.8; max-width: 520px; margin: 0 auto; }

/* CONTACT */
.contact-section {
  border-top: 1px solid var(--glass-border);
  padding: 9rem 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.contact-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-d); font-size: 22vw;
  color: rgba(200,184,154,0.025);
  white-space: nowrap; pointer-events: none; user-select: none;
  letter-spacing: -.02em;
}
.contact-inner { position: relative; z-index: 2; }
.contact-eyebrow {
  font-family: var(--font-m); font-size: .62rem;
  letter-spacing: .3em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 2rem;
}
.contact-title {
  font-family: var(--font-d);
  font-size: clamp(4rem, 10vw, 10rem);
  line-height: .86; color: var(--white); margin-bottom: 3rem;
}
.contact-card {
  display: inline-block;
  padding: 2rem 4rem;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(200,184,154,0.12);
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: border-color .3s, background .3s;
}
.contact-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,184,154,0.4), transparent);
}
.contact-card:hover { border-color: rgba(200,184,154,0.25); }
.contact-email {
  font-family: var(--font-d); font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  color: var(--white); text-decoration: none;
  letter-spacing: .05em;
  transition: color .2s;
}
.contact-email:hover { color: var(--accent); }

/* FOOTER */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left img { width: 22px; height: 22px; }
.footer-copy {
  font-family: var(--font-m); font-size: .6rem;
  letter-spacing: .1em; color: var(--muted);
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-m); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--white); }
.footer-tagline {
  font-family: var(--font-m); font-size: .6rem;
  letter-spacing: .22em; color: var(--muted); text-transform: uppercase;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.4); }
  50% { opacity: .7; box-shadow: 0 0 0 4px rgba(74,222,128,0); }
}

.reveal {
  opacity: 0; transform: translateY(35px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* i18n visibility (legal pages embed both languages) */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"],
html[lang="es"] [data-lang="es"] { display: revert; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .nav-right { gap: 1rem; }
  .hero, .section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-logo-bg, .hero-year { display: none; }
  .hero-scroll { left: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-full, .future-section, .contact-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .projects-grid, .projects-grid.two-col { grid-template-columns: 1fr; gap: 12px; }
  .page-head { padding: 9rem 1.5rem 3rem; }
  .soon-wrap { padding: 0 1.5rem 6rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* REDUCED MOTION — respeta la preferencia del usuario (FR-016) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .orb, .hero-grid, .hero-logo-bg, .marquee-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-eyebrow, .hero-title, .hero-tagline, .hero-scroll, .hero-year { opacity: 1 !important; animation: none !important; }
}
