/* MEM Capital — site styles (rebuilt from the Wix design, Sep 2026) */

:root {
  --black: #000;
  --white: #fff;
  --red: #c00000;
  --gray: #8f8f8f;
  --line: #dcdcdc;
  --line-dark: rgba(255, 255, 255, 0.18);
  --media-bg: #efefef;
  --field-border: #b9b9b9;

  --pad: clamp(20px, 3.5vw, 56px);
  --header-h: 70px;

  /* Type scales with the viewport, like the Wix layout did */
  --fs-display: clamp(28px, 3.1vw, 60px);
  --fs-title: clamp(22px, 1.85vw, 34px);
  --fs-ui: clamp(14px, 1.05vw, 17px);
  --fs-body: clamp(13px, 0.95vw, 15px);

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }

.red { color: var(--red); }

.display {
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.title {
  font-size: var(--fs-title);
  font-weight: 500;
  line-height: 1.15;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
}
.skip-link:focus { left: 12px; }

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 11px 28px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font: 600 var(--fs-body)/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--black); }

.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { background: #333; border-color: #333; }

.btn--ghost-dark { background: var(--white); color: var(--black); border-color: var(--black); }
.btn--ghost-dark:hover { background: var(--black); color: var(--white); }

/* ── Header ────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

.site-header__logo img { height: clamp(16px, 1.7vw, 26px); width: auto; }

.site-header__right { display: flex; align-items: center; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 34px);
  font-size: var(--fs-ui);
  font-weight: 500;
}
.site-nav a { text-decoration: none; text-underline-offset: 5px; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; }

.btn--login {
  min-width: 0;
  margin-left: clamp(16px, 3.4vw, 56px);
  padding: 8px 30px;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  margin-left: 14px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--black);
  transition: transform 0.2s, opacity 0.2s;
}
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Heroes ────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  min-height: clamp(560px, 48vw, 920px);
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(56px, 6vw, 96px) var(--pad) clamp(40px, 4vw, 64px);
}

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.hero__note {
  max-width: 380px;
  margin-bottom: 20px;
  font-size: var(--fs-body);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__ack {
  margin-bottom: 18px;
  font-size: var(--fs-body);
  font-weight: 700;
}

.logos { display: flex; align-items: center; gap: 28px; }
.logos img { height: clamp(26px, 2.6vw, 42px); width: auto; }
.logos img.logo-nasdaq { height: clamp(22px, 2.1vw, 34px); }

.hero--home .hero__bg { object-position: 70% 40%; }
.hero--home::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.3) 100%);
}

.hero--models .hero__bg { object-position: right center; }
.hero__sub {
  max-width: 300px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.35;
}

.hero--company { background: #e9e9e9; color: var(--black); }
.hero--company .hero__bg { object-position: center 30%; }
.hero__mission {
  max-width: 360px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
}

/* ── Home: feature rows ────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(420px, 37.5vw, 720px);
  border-bottom: 1px solid var(--line);
}

.feature__text {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.2vw, 36px) var(--pad);
  border-right: 1px solid var(--line);
}

.feature__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: var(--fs-ui);
  font-weight: 600;
}

.feature__title {
  max-width: 280px;
  font-size: inherit;
  font-weight: inherit;
  text-align: right;
}

.feature__lead {
  max-width: 11.5em;
  margin: auto 0;
  padding: 32px 0;
  font-size: var(--fs-display);
  line-height: 1.12;
  color: var(--gray);
}

.feature__media { overflow: hidden; background: var(--media-bg); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Home: discover ────────────────────────────────────── */

.discover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: clamp(420px, 44vw, 800px);
  padding: clamp(48px, 5vw, 80px) var(--pad);
  background: var(--black);
  color: var(--white);
}
.discover__cta p {
  max-width: 290px;
  margin-bottom: 18px;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.35;
}

/* ── Models page ───────────────────────────────────────── */

.model__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: clamp(340px, 33vw, 620px);
  padding: clamp(28px, 2.8vw, 44px) var(--pad) clamp(40px, 4vw, 64px);
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
}

.model__code {
  font-size: clamp(24px, 2.2vw, 40px);
  font-weight: 500;
  color: var(--red);
}

.model__name { max-width: 12em; }

.model__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.model__specs { border-right: 1px solid var(--line); }

.spec { padding: clamp(28px, 2.8vw, 44px) var(--pad) clamp(36px, 3.4vw, 56px); }
.spec + .spec { border-top: 1px solid var(--line); }
.spec h3 { margin-bottom: 24px; font-size: var(--fs-ui); font-weight: 600; }
.spec ul { padding-left: 3.2em; font-size: var(--fs-body); line-height: 1.55; }

.model__media { position: relative; min-height: 420px; background: var(--media-bg); }
.model__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.model__media .btn {
  position: absolute;
  right: var(--pad);
  bottom: clamp(20px, 2vw, 32px);
  min-width: 0;
  padding: 10px 16px;
}

/* ── Company page ──────────────────────────────────────── */

.principles {
  padding: clamp(48px, 5vw, 80px) var(--pad) clamp(64px, 7vw, 112px);
  background: var(--black);
  color: var(--white);
}

.principles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: clamp(32px, 4vw, 72px);
  margin-top: clamp(32px, 4vw, 64px);
}

.principles__media img { width: min(100%, 360px); margin: 0 auto; }

.principles__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: clamp(28px, 3vw, 48px);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.5;
}

.join {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
  padding: clamp(56px, 6vw, 100px) var(--pad);
  border-bottom: 1px solid var(--line);
}

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.role {
  padding: clamp(28px, 2.8vw, 44px) var(--pad) clamp(40px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}
.role:nth-child(odd) { border-right: 1px solid var(--line); }
.role:nth-last-child(-n + 2) { border-bottom: 0; }
.role h3 { margin-bottom: 24px; font-size: var(--fs-ui); font-weight: 600; }
.role p {
  max-width: 580px;
  padding-left: clamp(0px, 2vw, 32px);
  font-size: var(--fs-body);
  line-height: 1.5;
}

/* ── Forms ─────────────────────────────────────────────── */

.form-section {
  padding: clamp(56px, 6vw, 96px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.form-section .title { margin-bottom: 32px; font-size: clamp(24px, 2.2vw, 40px); }

.form { position: relative; max-width: 440px; }

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.field--full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  font: 400 14px var(--font);
}
.field textarea { height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
}
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--black); }

.form .btn { margin-top: 22px; min-width: 150px; }

.form-status { min-height: 1.4em; margin-top: 12px; font-size: 13px; font-weight: 500; }
.form-status.is-ok { color: #0a7a2f; }
.form-status.is-error { color: var(--red); }

/* Honeypot: hidden from people, visible to naive bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Footer ────────────────────────────────────────────── */

.site-footer { padding: clamp(48px, 5vw, 72px) var(--pad) 0; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.newsletter { max-width: 320px; }
.newsletter h2 { margin-bottom: 16px; font-size: var(--fs-body); font-weight: 600; }
.newsletter .btn { min-width: 110px; padding: 10px 20px; }

.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-body); font-weight: 600; }
.site-footer__links a,
.site-footer__contact a { text-decoration: none; text-underline-offset: 4px; }
.site-footer__links a:hover,
.site-footer__links a[aria-current="page"],
.site-footer__contact a:hover { text-decoration: underline; }

.site-footer__contact { font-size: var(--fs-body); font-weight: 600; }

.social { display: flex; gap: 8px; margin-top: 12px; }
.social a {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
}
.social svg { width: 11px; height: 11px; }

.site-footer__copy {
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

/* ── 404 ───────────────────────────────────────────────── */

.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 60vh;
  padding: 80px var(--pad);
  background: var(--black);
  color: var(--white);
}
.not-found .btn { align-self: flex-start; }

/* ── Reveal on scroll (only when JS runs and motion is OK) ─ */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    /* Safety net: show everything after 3s even if the script never ran */
    animation: reveal-fallback 0s 3s forwards;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; animation: none; }
}
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* ── Phones ────────────────────────────────────────────── */

@media (max-width: 767px) {
  :root { --header-h: 64px; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 28px var(--pad) 36px;
    background: var(--black);
    border-bottom: 1px solid var(--line-dark);
    font-size: 22px;
  }
  .site-header.is-open .site-nav { display: flex; }
  .menu-toggle { display: block; }
  .btn--login { padding: 7px 20px; }

  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero__inner { align-items: center; text-align: center; padding-top: 72px; }
  .hero__bottom { flex-direction: column; align-items: center; }
  .hero__note, .hero__sub, .hero__mission { margin-left: auto; margin-right: auto; }
  .btn-row, .logos { justify-content: center; }

  .hero--home::before { background: rgba(0, 0, 0, 0.45); }
  .hero--models .hero__bg { object-position: 72% center; opacity: 0.75; }
  .hero--company::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.85) 100%);
  }
  .hero--company .hero__bg { object-position: 50% center; }

  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature__text { align-items: center; padding: 28px 20px 36px; border-right: 0; text-align: center; }
  .feature__head { flex-direction: column; align-items: center; gap: 14px; }
  .feature__title { text-align: center; }
  .feature__lead { max-width: 17em; margin: 0 auto; padding: 22px 0 0; font-size: 21px; }
  .feature__media { aspect-ratio: 4 / 3; }

  .discover { min-height: 460px; }

  .model__body { grid-template-columns: 1fr; }
  .model__specs { border-right: 0; }
  .model__media { min-height: 0; aspect-ratio: 1; }
  .spec ul { padding-left: 1.4em; }

  .principles__grid, .principles__cols, .join, .roles { grid-template-columns: 1fr; }
  .principles__media img { width: min(70%, 260px); }
  .role:nth-child(odd) { border-right: 0; }
  .role:nth-last-child(2) { border-bottom: 1px solid var(--line); }

  .site-footer__grid { grid-template-columns: 1fr; }
}

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