/* ============================================
   ORIGIN Venture Holding — Design System
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg: oklch(12% 0.005 280);
  --bg-card: oklch(16% 0.004 280);
  --bg-muted: oklch(20% 0.005 280);
  --bg-secondary: oklch(20% 0.005 280);
  --fg: oklch(95% 0.008 80);
  --fg-muted: oklch(55% 0.005 280);
  --fg-secondary: oklch(85% 0.005 80);
  --accent: oklch(0.65 0.12 55);
  --accent-dim: oklch(0.65 0.12 55 / 0.15);
  --border: oklch(100% 0 0 / 0.08);
  --border-accent: oklch(0.65 0.12 55 / 0.3);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --container: 1280px;
  --header-h: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* ---- Obsidian Grain ---- */
#obsidian-grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  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 256px;
}

/* ---- Typography ---- */
h1, h2, h3, h4, .heading-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-label {
  display: inline-block;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.section-label.copper { color: var(--accent); }

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
}

.copper-text { color: var(--accent); }

.lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.9;
  color: var(--fg-muted);
}

strong { color: var(--fg); font-weight: 500; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Section ---- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(3rem) scale(0.97);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-out-expo);
}

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

/* ---- Header ---- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
  background: transparent;
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: oklch(12% 0.005 280 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  opacity: 0.5;
  transition: all 0.3s var(--ease-smooth);
  overflow: hidden;
}

.lang-btn svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--accent);
}

@keyframes logoSpin {
  from { transform: rotateZ(0deg) rotateX(-8deg); }
  to { transform: rotateZ(360deg) rotateX(-8deg); }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  perspective: 900px;
}

.logo .logo-wrap {
  position: relative;
  display: inline-flex;
  animation: logoSpin 12s linear infinite;
  transform-style: preserve-3d;
  border-radius: 50%;
}

.logo .logo-wrap img {
  height: 2rem;
  width: auto;
  display: block;
  border-radius: 50%;
}

.logo .logo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, oklch(100% 0 0 / 0.35), transparent 60%),
              radial-gradient(circle at 65% 65%, oklch(0 0 0 / 0.2), transparent 50%);
  pointer-events: none;
}

.logo span {
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg);
}

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.4s var(--ease-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

#menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.5rem;
}

#menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease-smooth);
}

/* ---- Hero ---- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/origin-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroZoom 15s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.18); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to right, oklch(12% 0.005 280 / 0.85) 0%, oklch(12% 0.005 280 / 0.4) 50%, oklch(12% 0.005 280 / 0.85) 100%),
    linear-gradient(to top, oklch(12% 0.005 280) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 0;
  width: 100%;
  margin-top: -2rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-video-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2rem;
}

.hero-video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: 0 0 40px oklch(0.65 0.12 55 / 0.15);
  display: block;
  background: var(--bg-card);
}

.hero-video-wrap {
  position: relative;
}

.video-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: oklch(0 0 0 / 0.6);
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
  z-index: 2;
}

.video-big-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-dim);
}

.video-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.video-pause-btn {
  display: none;
}

.video-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.vctrl {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: oklch(0 0 0 / 0.5);
  color: var(--fg);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
  backdrop-filter: blur(4px);
}

.vctrl:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-label-line,
.hero-title,
.hero-subtitle,
.hero-actions {
  opacity: 0;
  transform: translateY(4rem);
}

.hero-label-line.animate-in,
.hero-title.animate-in,
.hero-subtitle.animate-in,
.hero-actions.animate-in {
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title.animate-in {
  animation-delay: 0.3s;
}

.hero-subtitle.animate-in {
  animation-delay: 0.6s;
}

.hero-actions.animate-in {
  animation-delay: 0.9s;
}

.label-line {
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero-label-line .section-label {
  margin-bottom: 0;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  margin-bottom: 2rem;
  max-width: 900px;
}

.hero-title .copper-text {
  display: inline-block;
  margin-top: 3rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: oklch(0.7 0.12 55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Copper Line ---- */
.copper-line {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out-expo);
  box-shadow: 0 0 12px var(--accent-dim), 0 0 30px var(--accent-dim);
}

.copper-line.visible {
  transform: scaleX(1);
}

.copper-line-vertical {
  width: 1px;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(to bottom, transparent, var(--accent-dim), transparent);
}

/* ---- Split Layout ---- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-content {
  display: flex;
  flex-direction: column;
}

.split-content p {
  max-width: 520px;
}

.split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.split-visual img,
.split-visual video {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

/* ---- Stat Block ---- */
.stat-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ---- Model Grid ---- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.5s var(--ease-smooth);
}

.model-card:hover {
  border-color: var(--border-accent);
}

.model-icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.model-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.model-card p {
  font-size: 0.9rem;
}

.model-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.model-video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ---- Sectors Grid ---- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sector-card {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  transition: all 0.5s var(--ease-smooth);
  border-left: 1px solid oklch(0.65 0.12 55 / 0.1);
  cursor: default;
}

.sector-card:hover {
  background: var(--bg-muted);
  border-left-color: oklch(0.65 0.12 55 / 0.4);
}

.sector-number {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.4s var(--ease-smooth);
}

.sector-card:hover .sector-number {
  opacity: 1;
}

.sector-card h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

/* ---- Pillar List ---- */
.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.pillar-list li strong {
  display: block;
  margin-bottom: 0.25rem;
}

.pillar-list li p {
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Team ---- */
.team-intro {
  max-width: 600px;
  margin-bottom: 3rem;
}

.team-silhouette {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.team-silhouette img {
  width: min(100%, 400px);
  color: var(--copper);
  opacity: 0.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.4s var(--ease-smooth);
}

.team-card:hover {
  border-color: var(--border-accent);
}

.team-avatar {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--copper);
  opacity: 0.5;
}

.team-avatar svg,
.team-avatar img {
  width: 80%;
  height: auto;
  color: var(--copper);
}

.team-card h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- Footer ---- */
#contact {
  padding-bottom: 2rem;
}

.footer-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 0;
}

.footer-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.footer-text {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  margin-bottom: 2.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

.footer-bottom span {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .split-layout.reverse {
    direction: ltr;
  }

  .split-content p {
    max-width: 100%;
  }

  .hero-inner {
    gap: 2rem;
  }

  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  #nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: oklch(12% 0.005 280 / 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-smooth);
    border-bottom: 1px solid var(--border);
  }

  #nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  #menu-toggle {
    display: flex;
  }

  .hero-label-vertical,
  .vertical-line,
  .vertical-text {
    display: none;
  }

  .hero-content {
    padding-left: 1.5rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-video-wrap video {
    max-height: 40vh;
    object-fit: cover;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .hero-label-vertical,
  .vertical-line,
  .vertical-text {
    display: none;
  }

  .hero-content {
    padding-left: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}
