/* ============================================================
   MEVARES — design system
   Dark venture-studio aesthetic · warm black + amber
   ============================================================ */

@font-face {
  font-family: "Anodina";
  src: url("/assets/fonts/Anodina-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Anodina";
  src: url("/assets/fonts/Anodina-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Anodina";
  src: url("/assets/fonts/Anodina-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #0b0a08;
  --bg-raise: #131109;
  --fg: #f2ede4;
  --muted: rgba(242, 237, 228, 0.55);
  --faint: rgba(242, 237, 228, 0.32);
  --accent: #e2a33c;
  --accent-dim: rgba(226, 163, 60, 0.14);
  --line: rgba(242, 237, 228, 0.14);
  --font-display: "Unbounded", sans-serif;
  --font-brand: "Anodina", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(11, 10, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.nav__mark {
  height: 1.5rem;
  width: auto;
  display: block;
}
.nav__reg { color: var(--accent); font-size: 0.6em; vertical-align: super; }
.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.nav__lang button {
  background: none;
  border: 0;
  color: var(--faint);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.25s;
}
.nav__lang button:hover { color: var(--fg); }
.nav__lang button.is-active { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(2rem, 5vh, 4rem);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55vw;
  height: 55vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}
.hero__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1rem, 3vh, 2rem);
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.9rem;
}
.hero__mark {
  width: clamp(3.2rem, 7.5vw, 6rem);
  height: auto;
  margin-bottom: clamp(1.2rem, 3.5vh, 2.6rem);
  opacity: 0;
  transform: translateY(0.5rem);
  animation: mark-in 1.1s var(--ease) 0.1s forwards;
}
@keyframes mark-in {
  to { opacity: 1; transform: none; }
}
.hero__word {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.6rem, 12.5vw, 12rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  display: flex;
  white-space: nowrap;
}
.hero__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(3deg);
  animation: letter-in 1s var(--ease) forwards;
}
.hero__letter:nth-child(1) { animation-delay: 0.05s; }
.hero__letter:nth-child(2) { animation-delay: 0.11s; }
.hero__letter:nth-child(3) { animation-delay: 0.17s; }
.hero__letter:nth-child(4) { animation-delay: 0.23s; color: var(--accent); }
.hero__letter:nth-child(5) { animation-delay: 0.29s; }
.hero__letter:nth-child(6) { animation-delay: 0.35s; }
.hero__letter:nth-child(7) { animation-delay: 0.41s; }
@keyframes letter-in {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  flex-wrap: wrap;
}
.hero__tag {
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s;
}
.hero__cue svg { animation: cue-bob 2.2s ease-in-out infinite; }
.hero__cue:hover { color: var(--accent); }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- section heads ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 0 var(--pad);
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.section-head__idx {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
}

/* ---------- ventures ---------- */
.ventures { padding: clamp(4rem, 12vh, 9rem) 0; }
.venture-list { border-top: 1px solid var(--line); }
.venture {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.8rem, 4.5vh, 3.2rem) var(--pad);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  transition: color 0.35s var(--ease);
}
a.venture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-raise);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
a.venture:hover::before { transform: scaleY(1); }
.venture__idx {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--faint);
  min-width: 2rem;
  transition: color 0.35s;
}
a.venture:hover .venture__idx { color: var(--accent); }
.venture__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.venture__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.venture__name em {
  font-style: normal;
  font-weight: 300;
  color: var(--muted);
  transition: color 0.35s;
}
a.venture:hover .venture__name em { color: var(--accent); }
.venture__badge {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  transform: translateY(-0.4em);
}
.venture__desc {
  color: var(--muted);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  max-width: 34rem;
}
.venture__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-shrink: 0;
}
.venture__domain {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  transition: color 0.35s;
}
a.venture:hover .venture__domain { color: var(--fg); }
.venture__arrow {
  color: var(--faint);
  transition: transform 0.45s var(--ease), color 0.35s;
}
a.venture:hover .venture__arrow {
  transform: translate(6px, -6px);
  color: var(--accent);
}

/* ---------- products strip ---------- */
.products {
  padding: clamp(2.5rem, 7vh, 5rem) var(--pad);
  border-bottom: 1px solid var(--line);
}
.products__label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.2rem;
}
.products__row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.products__row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.products__row a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ---------- about ---------- */
.about { padding: clamp(4rem, 12vh, 9rem) 0; border-bottom: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 0 var(--pad);
  align-items: start;
}
.about__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.45;
}
.about__traits { list-style: none; display: flex; flex-direction: column; }
.about__traits li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.about__trait-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.about__trait-desc { color: var(--muted); font-size: 0.98rem; }

/* ---------- contact ---------- */
.contact {
  padding: clamp(4rem, 14vh, 10rem) var(--pad);
  display: flex;
  flex-direction: column;
}
.contact .section-head { padding: 0; }
.contact__mail {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.01em;
  width: fit-content;
  position: relative;
  transition: color 0.3s;
}
.contact__mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.08em;
  width: 100%; height: 0.05em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.contact__mail:hover { color: var(--accent); }
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__socials {
  display: flex;
  gap: 2rem;
  margin-top: 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact__socials a {
  color: var(--muted);
  transition: color 0.25s;
}
.contact__socials a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer__mark {
  height: 1.05rem;
  width: auto;
  display: block;
}
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { transition: color 0.25s; }
.footer__links a:hover { color: var(--accent); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .nav__links { display: none; }
  .venture { flex-wrap: wrap; }
  .venture__meta { width: 100%; justify-content: space-between; }
  .about__grid { grid-template-columns: 1fr; }
  .hero__word { font-size: 13.5vw; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .hero__letter, .hero__mark { animation: none; opacity: 1; transform: none; }
  .hero__cue svg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
