/* ─── Tokens ────────────────────────────────────────────────────── */
:root {
  --accent: #4455FF;
}

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

html {
  scroll-behavior: smooth;
}

/* ─── Splash ────────────────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#splash-logo {
  width: 160px;
  height: 160px;
  transform-origin: center center;
}

/* ─── Base ──────────────────────────────────────────────────────── */
body {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  background: #000;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  background: transparent;
  transition: background 0.4s ease;
}

.nav.scrolled {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  width: 260px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.nav-logo .logo-ko { opacity: 1; transition: opacity 0.4s; }
.nav-logo .logo-1c { opacity: 0; }

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-inner {
  position: absolute;
  bottom: 80px;
  left: 56px;
  right: 56px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-tagline {
  display: flex;
  flex-direction: column;
}

.line-mask {
  overflow: hidden;
  display: block;
}

.line-inner {
  display: block;
  font-size: clamp(64px, 10vw, 152px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #fff;
  transform: translateY(110%);
}

.line-inner.dim {
  font-weight: 300;
  color: rgba(255,255,255,0.7);
}

.hero-sub-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  opacity: 0;
  transform: translateY(16px);
}

.hero-detail {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  opacity: 0;
  transform: translateY(12px);
}

/* ─── Sections ──────────────────────────────────────────────────── */
.section {
  padding: 112px 56px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 56px;
}

/* ─── Portfolio ─────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.portfolio-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: #131313;
  border-radius: 12px;
  text-align: center;
  transition: opacity 0.15s;
  cursor: pointer;
}

.portfolio-item:hover { opacity: 0.7; }

.portfolio-x-link {
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  transition: color 0.15s;
}

.portfolio-x-link:hover { color: #fff; }

.portfolio-founder-photo {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: #1a1a1a;
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.portfolio-founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.portfolio-founder-name {
  font-size: 21px;
  font-weight: 700;
  color: #fff;
}

.portfolio-name {
  font-size: 16px;
  font-weight: 500;
  color: #888;
}

.portfolio-desc {
  font-size: 16px;
  color: #777;
  line-height: 1.6;
  margin-top: 8px;
}

.portfolio-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-top: 12px;
}

.portfolio-logo img {
  max-height: 28px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ─── Signals ───────────────────────────────────────────────────── */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #131313;
  border-radius: 12px;
  transition: opacity 0.15s;
}

.update-item:hover { opacity: 0.7; }

.update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.update-company {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.update-logo {
  display: flex;
  align-items: center;
  height: 22px;
}

.update-logo img {
  max-height: 20px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.update-date {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.update-headline {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.update-body {
  font-size: 16px;
  color: #888;
  line-height: 1.7;
}

/* ─── Team ──────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.team-item {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.team-photo-wrap {
  flex-shrink: 0;
  width: 120px;
}

.team-photo-placeholder {
  width: 120px;
  height: 120px;
  background: #111;
  border-radius: 50%;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-name-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.team-name-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-socials {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

.social-link {
  color: #555;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.social-link:hover { color: #fff; }

.team-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.team-title {
  font-size: 14px;
  color: #777;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.team-bio-text {
  font-size: 16px;
  color: #888;
  line-height: 1.75;
}

/* ─── Join CTA ──────────────────────────────────────────────────── */
.join-cta {
  padding: 120px 56px;
}

.join-cta-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.join-cta-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.join-cta-sub {
  font-size: 18px;
  color: #888;
  line-height: 1.65;
  max-width: 480px;
}

.join-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 4px;
  width: fit-content;
  transition: opacity 0.15s;
  margin-top: 8px;
}

.join-cta-btn:hover { opacity: 0.85; }

.join-cta-time {
  font-size: 13px;
  font-weight: 400;
  color: #888;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
  padding: 56px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-img {
  height: 35px;
  width: auto;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 13px;
  color: #555;
}

/* ─── Hamburger ─────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.15s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile nav drawer ──────────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

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

.nav-drawer a {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.nav-drawer a:hover { color: #fff; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .team-grid    { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav         { padding: 20px 24px; }
  .section     { padding: 72px 24px; }
  .join-cta    { padding: 80px 24px; }
  .footer      { padding: 40px 24px; }
  .hero-inner  { left: 24px; right: 24px; bottom: 136px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .updates-grid { gap: 16px; }

  /* Nav: hide desktop links, show hamburger */
  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; }

  /* Team: card layout with photo + name/title in a row, bio below */
  .team-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 16px;
    row-gap: 20px;
    background: #131313;
    border-radius: 12px;
    padding: 24px;
    align-items: start;
  }

  .team-photo-wrap { grid-column: 1; grid-row: 1; width: 80px; }
  .team-photo      { width: 80px; height: 80px; }

  /* Dissolve .team-bio so its children join the parent grid */
  .team-bio        { display: contents; }

  .team-name-row   { grid-column: 2; grid-row: 1; align-self: center; }
  .team-bio-text   { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-founder-photo { width: 140px; height: 140px; }
}

@media (max-width: 600px) {
  .footer-inner {
    flex-wrap: wrap;
    gap: 20px 0;
  }
  .footer-left { flex-basis: 100%; }
}

/* ─── Scroll reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.team-item.reveal:nth-child(2) { transition-delay: 0.12s; }
