/* Ember Innovations — brand palette from logo */
:root {
  --bg: #0d0d12;
  --bg-soft: #14141a;
  --bg-lift: #1a1a22;
  --cream: #faf9f0;
  --cream-soft: rgba(250, 249, 240, 0.72);
  --cream-mute: rgba(250, 249, 240, 0.45);
  --cream-faint: rgba(250, 249, 240, 0.12);
  --cream-line: rgba(250, 249, 240, 0.18);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.25rem, 4vw, 3rem);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cream-soft);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Ambient atmosphere — not a flat fill */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(250, 249, 240, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(250, 249, 240, 0.03), transparent 50%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(250, 249, 240, 0.025), transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, #0a0a0e 50%, var(--bg) 100%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem var(--space);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(13, 13, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--cream-faint);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  width: 40px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-mute);
  transition: color 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--cream);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--cream-line);
  color: var(--cream) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--cream);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.3s var(--ease);
}

/* Hero — one composition, brand first */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--space) 4rem;
  position: relative;
}

.hero__visual {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__logo {
  width: min(420px, 82vw);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  animation:
    heroRise 1.1s var(--ease) 0.15s forwards,
    emberGlow 4.5s ease-in-out 1.4s infinite;
  filter: drop-shadow(0 0 40px rgba(250, 249, 240, 0.08));
}

.hero__copy {
  max-width: 36rem;
  opacity: 0;
  transform: translateY(24px);
  animation: heroRise 1s var(--ease) 0.45s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.1rem;
}

.hero__lede {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--cream-mute);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-inline: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

@keyframes heroRise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes emberGlow {
  0%, 100% { filter: drop-shadow(0 0 28px rgba(250, 249, 240, 0.05)); }
  50% { filter: drop-shadow(0 0 48px rgba(250, 249, 240, 0.14)); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn--primary:hover {
  background: #fffef8;
}

.btn--ghost {
  border-color: var(--cream-line);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--cream-soft);
  background: rgba(250, 249, 240, 0.05);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 12vw, 8rem) var(--space);
}

.section__inner {
  max-width: var(--max);
  margin-inline: auto;
}

.section__inner--narrow {
  max-width: 36rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-mute);
  margin-bottom: 1.25rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.section__inner--narrow .section__title {
  max-width: none;
  margin-inline: auto;
}

.section__lede {
  max-width: 38rem;
  color: var(--cream-mute);
  font-size: 1.0625rem;
}

.section__inner--narrow .section__lede {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.section--about {
  border-top: 1px solid var(--cream-faint);
}

.section--about .section__title {
  max-width: 20ch;
}

/* Ventures — full-bleed panels, not cards */
.section--ventures {
  padding-bottom: 0;
}

.section--ventures > .section__inner {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.venture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(70vh, 640px);
  border-top: 1px solid var(--cream-faint);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.venture.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.venture--soon {
  border-bottom: 1px solid var(--cream-faint);
}

.venture__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(250, 249, 240, 0.04), transparent 70%),
    var(--bg-soft);
}

.venture--soon .venture__media {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(250, 249, 240, 0.03), transparent 70%),
    #101016;
}

.venture__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-left: 1px solid var(--cream-faint);
}

.venture__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.status {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--cream-line);
}

.status--live {
  color: var(--cream);
  background: rgba(250, 249, 240, 0.06);
}

.status--soon {
  color: var(--cream-mute);
}

.venture__region {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

.venture__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.venture__desc {
  color: var(--cream-mute);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.venture__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.venture__points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--cream-soft);
}

.venture__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.5rem;
  height: 1px;
  background: var(--cream-mute);
}

/* Logo placeholders */
.logo-placeholder {
  width: min(280px, 70%);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  border: 1px dashed var(--cream-line);
  background: rgba(250, 249, 240, 0.02);
  padding: 2rem;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.logo-placeholder:hover {
  border-color: var(--cream-mute);
  background: rgba(250, 249, 240, 0.04);
}

.logo-placeholder__label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
}

.logo-placeholder__hint {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--cream-mute);
  max-width: 14rem;
}

.logo-placeholder.has-logo .logo-placeholder__label,
.logo-placeholder.has-logo .logo-placeholder__hint {
  display: none;
}

.logo-placeholder.has-logo {
  border-style: solid;
  border-color: transparent;
  background: transparent;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.logo-placeholder.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.logo-placeholder[data-placeholder="oneiric"] img {
  object-fit: contain;
  mix-blend-mode: lighten;
}

/* Contact */
.section--contact {
  border-top: 1px solid var(--cream-faint);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(250, 249, 240, 0.05), transparent 60%);
}

.section--contact .btn {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--space);
  border-top: 1px solid var(--cream-faint);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.footer__brand img {
  width: 32px;
  height: auto;
  opacity: 0.9;
  mix-blend-mode: lighten;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--cream-mute);
}

/* Scroll reveal for about + contact */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .venture {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .venture__body {
    border-left: 0;
    border-top: 1px solid var(--cream-faint);
    padding-block: 2.5rem;
  }

  .venture__media {
    min-height: 280px;
  }

  .venture--soon .venture__media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem var(--space) 1.5rem;
    background: rgba(13, 13, 18, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cream-faint);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--cream-faint);
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    border: 1px solid var(--cream-line);
  }

  .brand__name {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__logo,
  .hero__copy,
  .venture,
  .reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
