/* Sunjo Ju splash — CELD design system (source of truth: kgNatx/celd docs/STYLE-GUIDE.md).
   Recreates the approved "option 2a" handoff as a full-viewport hero. */

:root {
  --bg: #0c0c0c;              /* Void — page background */
  --card: #141414;           /* elevated card */
  --text: #e0f5ec;           /* Frost — high-impact headings */
  --text-secondary: #70a890; /* Sage — body / supporting */
  --text-muted: #4a6a5a;     /* Moss — lowest priority */
  --accent: #6ee7b7;         /* Mint — buttons, accents, hover */
  --sand: #c8b89a;           /* identifiers */
  --status: #34d399;         /* status dot */

  --hairline: rgba(224, 245, 236, 0.1);
  --hairline-soft: rgba(224, 245, 236, 0.06);
  --ghost-border: rgba(224, 245, 236, 0.2);
  --ghost-border-hover: rgba(224, 245, 236, 0.4);
  --ghost-bg-hover: rgba(224, 245, 236, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
}

body {
  font-family: 'Sora', sans-serif;
  color: var(--text-secondary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Hero shell (full viewport) ────────────────────────────── */
.hero {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12, 12, 12, 0.85) 0%,
    rgba(12, 12, 12, 0.25) 45%,
    rgba(12, 12, 12, 0) 70%
  );
}

/* ── Top nav ───────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  z-index: 2;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo { display: block; }

.nav__wordmark {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

/* ── Hero content block (bottom-left) ──────────────────────── */
.hero__block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7vh; /* grounded in the lower portion of the viewport */
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  z-index: 2;
}

/* Portrait and text share one centered column width. */
.hero__block > .portrait,
.hero__block > .intro {
  width: min(680px, 100%);
}

/* Portrait holo-panel */
.portrait {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}

.portrait__bar {
  height: 3px;
  background: var(--accent);
}

/* Slideshow: four images crossfade slowly. */
.portrait__media {
  position: relative;
  width: 100%;
  aspect-ratio: 460 / 288;
  overflow: hidden;
  background: var(--card);
}

.portrait__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: portrait-xfade 28s infinite;
  will-change: opacity;
}

.portrait__slide:nth-child(1) { animation-delay: 0s; }
.portrait__slide:nth-child(2) { animation-delay: 7s; }
.portrait__slide:nth-child(3) { animation-delay: 14s; }
.portrait__slide:nth-child(4) { animation-delay: 21s; }

@keyframes portrait-xfade {
  0%   { opacity: 0; }
  5%   { opacity: 1; } /* fade in (~1.4s) */
  25%  { opacity: 1; } /* hold (~7s) */
  30%  { opacity: 0; } /* fade out, overlapping the next slide */
  100% { opacity: 0; }
}

/* Reduced motion: hold the main image, no crossfade. */
@media (prefers-reduced-motion: reduce) {
  .portrait__slide { animation: none; opacity: 0; }
  .portrait__slide:nth-child(1) { opacity: 1; }
}

.portrait__plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--hairline-soft);
}

.portrait__id {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sand);
}

.portrait__status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status);
}

/* Text column (left-aligned, sits below the portrait) */
.intro {
  text-align: left;
}

.intro__eyebrow {
  margin: 0 0 12px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.intro__name {
  margin: 0 0 14px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 1.05;
  color: var(--text);
}

.intro__tagline {
  margin: 0 0 28px;
  max-width: 100%;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* CTA row */
.cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 5px;
  white-space: nowrap;
  flex: none;
  text-decoration: none;
}

.btn--solid {
  background: var(--accent);
  color: var(--bg);
  transition: filter 0.15s;
}

.btn--solid:hover { filter: brightness(1.08); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--ghost-border);
  transition: border-color 0.15s, background 0.15s;
}

.btn--ghost:hover {
  border-color: var(--ghost-border-hover);
  background: var(--ghost-bg-hover);
}

.cta__text {
  margin-left: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.cta__text:hover { color: var(--accent); }

/* ── Responsive: stack below ~900px ────────────────────────── */
@media (max-width: 900px) {
  body { overflow-y: auto; }

  .hero {
    position: relative;
    min-height: 100dvh;
  }

  .nav {
    padding: 18px 24px;
    gap: 16px;
  }

  .nav__links { gap: 18px; }

  .hero__block {
    position: relative; /* keep above the absolutely-positioned space-bg, flow below nav */
    bottom: auto;
    gap: 24px;
    padding: 100px 24px 48px;
  }

  .intro__name { font-size: 38px; }
}

@media (max-width: 420px) {
  .nav__links a { font-size: 12px; }
  .btn { padding: 12px 20px; }
  /* Brand logo already links to celd.space — drop the redundant nav link when tight. */
  .nav__external { display: none; }
}
