/* ========================================
   INVARIANT SCALE — One Page
   ======================================== */

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

:root {
  --color-bg: #0C0C0E;
  --color-surface: #141418;
  --color-surface-hover: #1C1C22;
  --color-text: #E8E6E1;
  --color-text-muted: #8A877F;
  --color-accent: #C8F24A;
  --color-accent-dim: rgba(200, 242, 74, 0.12);
  --color-border: rgba(255, 255, 255, 0.06);
  --font-display: 'Instrument Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1120px;
  --section-gap: 140px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: var(--section-gap) 0;
}

/* --- Grain overlay --- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 24px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
  opacity: 1;
}

.nav-links a.active {
  color: var(--color-accent);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 780px;
}

.hero-logo {
  height: 100px;
  width: auto;
  display: block;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.6s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.8s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200, 242, 74, 0.2);
  color: var(--color-bg);
  opacity: 1;
}

.hero-cta svg {
  transition: transform 0.2s ease;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Decorative element */
.hero-glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 242, 74, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ========================================
   SERVICES
   ======================================== */
#services {
  border-top: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: 72px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* Last card spans full width when odd count */
.services-grid .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.service-card {
  background: var(--color-surface);
  padding: 40px 36px;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.4s ease;
}

.service-card:hover {
  background: var(--color-surface-hover);
}

.service-card:hover::before {
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ========================================
   FORMAT
   ======================================== */
#format {
  border-top: 1px solid var(--color-border);
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.format-card {
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.format-card:hover {
  border-color: rgba(200, 242, 74, 0.2);
}

.format-icon {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.format-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.format-duration {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.format-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.format-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ========================================
   HOLOMY
   ======================================== */
#holomy {
  border-top: 1px solid var(--color-border);
}

.holomy-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.holomy-content .section-tag {
  margin-bottom: 16px;
}

.holomy-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 24px;
}

.holomy-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.holomy-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-bottom: 32px;
}

.holomy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-accent-dim);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
}

.holomy-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.holomy-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holomy-img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.9;
  transition: opacity 0.4s ease;
  border: 5px solid var(--color-accent);
  box-shadow: 0 0 80px rgba(120, 80, 255, 0.15), 0 0 160px rgba(120, 80, 255, 0.05);
}

.holomy-img:hover {
  opacity: 1;
}

/* ========================================
   CONTACT
   ======================================== */
#contact {
  border-top: 1px solid var(--color-border);
}

.contact-wrapper {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 0 auto 40px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.contact-text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 48px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--color-accent);
  padding: 20px 40px;
  border: 1px solid rgba(200, 242, 74, 0.25);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.contact-email:hover {
  background: var(--color-accent-dim);
  border-color: var(--color-accent);
  opacity: 1;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.contact-links a {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--color-text);
  opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  :root {
    --section-gap: 100px;
  }

  .container {
    padding: 0 24px;
  }

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

  .services-grid .service-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .format-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .format-stats {
    flex-direction: column;
    gap: 24px;
  }

  .stat-sep {
    width: 40px;
    height: 1px;
  }

  .holomy-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .holomy-visual {
    order: -1;
  }

  .holomy-img {
    width: 240px;
    height: 240px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(12, 12, 14, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 40px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  :root {
    --section-gap: 80px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .service-card {
    padding: 28px 24px;
  }

  .format-card {
    padding: 28px 24px;
  }

  .contact-email {
    font-size: 0.9rem;
    padding: 16px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
