/* ─────────────────────────────────────────────────────────────
   NN Factory — Landing page (V1 / Split)
   Pure CSS, no framework.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Elms Sans';
  src: url('assets/fonts/ElmsSans-VariableFont_wght.woff2') format('woff2-variations'),
       url('assets/fonts/ElmsSans-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Elms Sans';
  src: url('assets/fonts/ElmsSans-Italic-VariableFont_wght.woff2') format('woff2-variations'),
       url('assets/fonts/ElmsSans-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #000;
  --panel: #ffffff;
  --fg: #000;
  --sub: #1a1a1a;
  --on-pattern: #fff;
  --rule: #000;
  --panel-width: 66.67%;
  --gutter-x: clamp(28px, 5vw, 64px);
  --gutter-y: clamp(32px, 5vh, 44px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  font-family: 'Elms Sans', system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ── Background pattern, full-bleed behind the panel ── */
.pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

/* ── Floating credit on the pattern (left edge) ── */
.credit {
  position: fixed;
  left: var(--gutter-x);
  bottom: var(--gutter-y);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
}
.credit__rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--on-pattern);
}

/* ── Content panel (right) ── */
.panel {
  position: relative;
  z-index: 1;
  margin-left: auto;
  width: var(--panel-width);
  min-height: 100vh;
  background: var(--panel);
  padding: var(--gutter-y) var(--gutter-x) var(--gutter-y) clamp(48px, 8vw, 140px);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
}

/* Header */
.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}

/* Language switch */
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang__btn {
  color: rgba(0,0,0,0.35);
  transition: color 0.15s ease, font-weight 0.15s ease;
}
.lang__btn.is-active {
  color: var(--fg);
  font-weight: 700;
}
.lang__sep { color: rgba(0,0,0,0.35); }

/* Content */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  padding: clamp(40px, 6vh, 80px) 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  background: var(--fg);
  display: inline-block;
}
.title {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 32px;
  text-wrap: balance;
}
.lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--sub);
  margin: 0 0 18px;
  max-width: 520px;
}
.lede:last-child { margin-bottom: 0; }

/* Footer */
.panel__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  flex-wrap: wrap;
}
.cta__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 6px;
}
.cta__link {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}
.cta__link:hover { opacity: 0.65; }
.addr {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
  opacity: 0.55;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   Responsive — collapse the split layout on narrow viewports
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) and (min-width: 901px) {
  .panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .addr { text-align: left; }
}

@media (max-width: 900px) {
  :root {
    --panel-width: 100%;
  }
  .pattern {
    position: relative;
    height: 140px;
  }
  .credit {
    position: static;
    width: 100%;
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    padding: 11px var(--gutter-x);
    gap: 10px;
  }
  .credit__rule { display: none; }
  .panel {
    min-height: auto;
    padding-left: var(--gutter-x);
  }
  .logo img { height: 44px; }
  .panel__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .addr { text-align: left; }
}

@media (max-width: 480px) {
  :root {
    --gutter-x: 22px;
    --gutter-y: 28px;
  }
  .logo img { height: 38px; }
  .title { font-size: 32px; }
  .cta__link { font-size: 18px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
