/* Nelu v0.2 public experience. Load after the shared Studio styles. */

body[data-nelu-auth] [hidden] { display: none !important; }
body[data-nelu-auth="guest"] #nsStudioNav,
body[data-nelu-auth="guest"] .ns-account-wrap,
body[data-nelu-auth="demo"] #nsPublicNav,
body[data-nelu-auth="demo"] #nsLoginButton { display: none !important; }

body[data-nelu-auth] .topbar {
  gap: 24px;
  padding-inline: clamp(20px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(16, 12, 25, .88), rgba(16, 12, 25, .62));
  border-bottom-color: rgba(238, 226, 255, .12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.ns-public-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}
.ns-public-nav .ns-nav-link {
  padding: 12px 16px;
  color: #d2ccdb;
  font: 500 13px/1.2 'Outfit', sans-serif;
  text-transform: none;
  letter-spacing: .01em;
  white-space: nowrap;
}
.ns-public-nav .ns-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.ns-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid rgba(224, 209, 245, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font: 600 12px/1 'Outfit', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ns-login:hover { background: rgba(255, 255, 255, .1); border-color: var(--ns-mint); }
#nsDemoPill {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 8px;
  color: #c5bad5;
  border: 1px solid rgba(210, 185, 255, .2);
  border-radius: 5px;
  background: rgba(139, 92, 246, .09);
  font: 500 9px/1 'Space Mono', monospace;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ns-login:focus-visible,
.ns-auth-dialog button:focus-visible,
.ns-home a:focus-visible { outline: 2px solid var(--ns-mint); outline-offset: 4px; }

/* Keep the image as the canvas; the form and footer share normal document flow. */
.ns-home { padding-top: 0; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; }
.ns-home-hero {
  min-height: max(790px, 100svh);
  padding: 112px max(6vw, calc((100% - 1468px) / 2)) 30px;
  justify-content: flex-start;
}
.ns-home-hero .ns-home-copy { max-width: 720px; }
.ns-home-hero .ns-kicker { font-size: 9px !important; letter-spacing: .16em; }
.ns-home-hero .ns-home-copy h1 {
  max-width: 800px;
  margin: 16px 0 14px;
  font-size: clamp(54px, 4.9vw, 74px);
  line-height: 1.01;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.ns-home-hero .ns-home-lede {
  max-width: 530px;
  color: #d6cedf;
  font-size: 15px;
  line-height: 1.55;
}
body[data-nelu-page="home"] .ns-hero-art:before {
  background: linear-gradient(90deg, rgba(9, 8, 18, .95) 0%, rgba(12, 9, 24, .84) 28%, rgba(14, 9, 27, .4) 59%, rgba(10, 10, 20, .06) 88%), linear-gradient(0deg, #0e0c15 0%, rgba(14, 12, 21, .76) 8%, transparent 45%, rgba(8, 7, 16, .22) 80%, rgba(8, 7, 16, .55) 100%);
}
.ns-home-prompt {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 20px 0 0;
  padding: 15px 17px 13px;
  border: 1px solid rgba(225, 208, 249, .35);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(40, 30, 58, .86), rgba(20, 15, 31, .9));
  box-shadow: 0 18px 65px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color .2s, box-shadow .2s;
}
.ns-home-prompt:focus-within {
  border-color: rgba(0, 255, 163, .7);
  box-shadow: 0 18px 65px rgba(0, 0, 0, .26), 0 0 0 3px rgba(0, 255, 163, .055);
}
.ns-prompt-label {
  display: block;
  margin: 0 0 8px;
  color: #cfc3df;
  font: 600 9px/1.3 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .11em;
}
#nsHomePrompt {
  display: block;
  width: 100%;
  height: 58px;
  min-height: 58px;
  max-height: 180px;
  margin: 0;
  padding: 0 2px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fbf9ff;
  box-shadow: none;
  font: 400 15px/1.5 'Outfit', sans-serif;
  caret-color: var(--ns-mint);
}
#nsHomePrompt::placeholder { color: #b5a9c5; opacity: 1; }
#nsHomePrompt:focus { outline: none; border: 0; box-shadow: none; }
.ns-prompt-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 9px; }
.ns-prompt-spec { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #b8adc9; font: 500 10px/1.4 'Outfit', sans-serif; }
.ns-prompt-spec span { white-space: nowrap; }
.ns-prompt-spec span + span::before { content: '·'; margin-right: 8px; color: #8d809f; }
.ns-home-hero #nsHomeGenerate {
  flex: none;
  min-height: 42px;
  padding: 0 20px;
  gap: 11px;
  border-radius: 11px;
  font: 700 13px/1 'Outfit', sans-serif !important;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 5px 24px rgba(0, 255, 163, .14), inset 0 1px 0 rgba(255, 255, 255, .55);
}
#nsHomeGenerate > span[aria-hidden="true"] { font-size: 19px; }
.ns-free-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 10px; color: #bdb4ca; font: 400 11px/1.5 'Outfit', sans-serif; }
.ns-free-line strong, #nsDailyAllowance { color: #d3ffe9; font-weight: 500; }
.ns-free-line .ns-demo-badge, .ns-free-line .ns-preview-badge {
  display: inline-flex;
  padding: 3px 6px;
  border: 1px solid rgba(211, 185, 245, .24);
  border-radius: 4px;
  color: #c9b8dc;
  background: rgba(117, 23, 248, .1);
  font: 500 8px/1.4 'Space Mono', monospace;
  letter-spacing: .03em;
}
.ns-prompt-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.ns-prompt-ideas > span { margin-right: 2px; color: #b0a4c0; font: 400 10px/1.4 'Outfit', sans-serif; }
.ns-prompt-chip {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(223, 207, 245, .22);
  border-radius: 999px;
  background: rgba(25, 17, 39, .5);
  color: #d9d0e5;
  font: 400 10px/1.4 'Outfit', sans-serif !important;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.ns-prompt-chip:hover { color: #e5fff3; border-color: rgba(0, 255, 163, .5); background: rgba(0, 255, 163, .07); }
.ns-home-hero .ns-home-actions { gap: 14px; margin-top: 14px; }
.ns-home-actions .ns-text-link, .ns-home-actions > a,
.ns-home-actions > button:not(.ns-primary):not(.ns-secondary) {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4dceb;
  font: 500 11px/1.6 'Outfit', sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.ns-home-actions .ns-text-link:hover, .ns-home-actions > a:hover,
.ns-home-actions > button:not(.ns-primary):not(.ns-secondary):hover { color: var(--ns-mint); }
.ns-hero-footer { position: relative; left: auto; right: auto; bottom: auto; margin-top: 22px; gap: 24px; }
.ns-hero-scene > span { font-size: 8px; letter-spacing: .18em; }
.ns-hero-scene p { margin: 7px 0 0; font-size: 12px; color: #bdb4ca; }
.ns-hero-scene small { display: none; }
.ns-home-hero .ns-hero-style-tabs { gap: 7px; padding: 6px; border-radius: 13px; }
.ns-home-hero .ns-hero-style-tabs button { width: 66px; height: 76px; border-radius: 8px; font-size: 9px; }
.ns-home-hero .ns-hero-style-tabs button span { bottom: 7px; }

/* A shared editorial rhythm lets the examples carry each section. */
.ns-home > .ns-home-inner { max-width: 1500px; padding: 0 clamp(22px, 6vw, 90px) 28px; }
.ns-home-inner > section, #nsHomeCast { scroll-margin-top: 94px; }
.ns-home .ns-section-heading { align-items: end; gap: 30px; margin-bottom: 28px; }
.ns-home .ns-section-heading h2, .ns-workflow h2, .ns-model-section h2 {
  margin: 12px 0 0;
  color: #f7f2ff;
  font: 700 clamp(34px, 3.65vw, 52px)/1.06 'Syne', sans-serif;
  letter-spacing: -.055em;
}
.ns-home .ns-section-heading h2 em, .ns-workflow h2 em, .ns-model-section h2 em { font-style: normal; color: var(--ns-mint); }
.ns-home .ns-section-heading > p { max-width: 340px; color: #ada3bb; font-size: 14px; line-height: 1.6; }
.ns-home .ns-kicker { font-size: 9px !important; letter-spacing: .16em; }
.ns-home .ns-home-divider { padding: 21px 0 25px; color: #aaa0b7; font-size: 9px; letter-spacing: .12em; }
#nsGallery.ns-collections { padding: 46px 0 78px; }
#nsGallery .ns-collection-tabs { margin-bottom: 19px; gap: 7px; }
#nsGallery .ns-collection-tabs button { padding: 10px 17px; font-size: 9px; }
#nsGallery .ns-collection-card { height: clamp(280px, 30vw, 390px); border-radius: 14px; }
#nsGallery .ns-collection-card strong { bottom: 21px; font-size: clamp(24px, 2.4vw, 34px); }
#nsGallery .ns-collection-label { font-size: 8px; }
.ns-home .ns-latest { padding: 0 0 78px; }
.ns-home .ns-latest .ns-section-heading h2 { font-size: clamp(28px, 2.8vw, 39px); }
.ns-home .ns-latest-card { height: 220px; border-radius: 12px; }
.ns-home .ns-latest-card strong { font-size: 21px; }

.ns-workflow {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(35px, 6vw, 90px);
  padding: 78px 0 88px;
  border-top: 1px solid rgba(223, 205, 255, .13);
}
.ns-workflow > div:first-child { min-width: 0; }
.ns-workflow p:not(.ns-kicker), .ns-model-copy p:not(.ns-kicker) { max-width: 470px; margin-top: 20px; color: #b4a9c2; font: 400 15px/1.7 'Outfit', sans-serif; text-wrap: pretty; }
.ns-workflow .ns-secondary, .ns-model-section .ns-secondary { margin-top: 25px; min-height: 43px; padding-inline: 20px; font-size: 10px !important; }
.ns-workflow ol, .ns-workflow ul { display: grid; gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; color: #b4a9c2; font: 400 12px/1.6 'Outfit', sans-serif; }
.ns-workflow li { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 13px; }
.ns-workflow li > b { padding-top: 2px; color: var(--ns-mint); font: 500 10px/1.6 'Space Mono', monospace; }
.ns-workflow li strong { display: block; margin-bottom: 3px; color: #e5dbef; font: 500 14px/1.4 'Outfit', sans-serif; }
.ns-reference-board { position: relative; min-width: 0; padding: 0 0 26px 25px; }
.ns-reference-board::before { content: ''; position: absolute; inset: 15% 0 0; z-index: 0; background: radial-gradient(ellipse, rgba(117, 23, 248, .16), transparent 70%); pointer-events: none; }
.ns-reference-board figure { margin: 0; }
.ns-reference-result { position: relative; overflow: hidden; border: 1px solid rgba(218, 191, 250, .28); border-radius: 19px; background: #211a30; box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.ns-reference-result > img { display: block; width: 100%; aspect-ratio: 1.28; object-fit: cover; object-position: center 30%; }
.ns-reference-result figcaption { position: absolute; inset: 16px 16px auto auto; padding: 9px 11px; border: 1px solid rgba(230, 210, 252, .21); border-radius: 8px; color: #f2ebfa; background: rgba(18, 10, 29, .56); font: 600 8px/1.5 'Space Mono', monospace; letter-spacing: .06em; backdrop-filter: blur(12px); }
.ns-reference-result figcaption span { display: block; margin-top: 3px; color: #d4c8df; font: 400 10px/1.5 'Outfit', sans-serif; letter-spacing: 0; }
.ns-workflow .ns-reference-note { max-width: none; margin: 15px 0 0; color: #aa9cba; font: 400 10px/1.6 'Outfit', sans-serif; }
.ns-reference-ingredients { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; width: 70%; margin: -65px 0 0 -25px; padding: 10px; border: 1px solid rgba(222, 204, 247, .23); border-radius: 15px; background: rgba(28, 20, 41, .93); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); backdrop-filter: blur(16px); }
.ns-reference-ingredients figure { min-width: 0; }
.ns-reference-ingredients img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 25%; border-radius: 7px; background: #31253d; }
.ns-reference-ingredients figcaption { padding: 8px 2px 1px; color: #d5c8e4; text-align: center; font: 500 9px/1.4 'Outfit', sans-serif; }

.ns-model-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  margin: 0 0 85px;
  padding: clamp(28px, 4.5vw, 60px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(198, 168, 234, .18);
  border-radius: 24px;
  background: radial-gradient(ellipse at 0 0, rgba(117, 23, 248, .16), transparent 60%), linear-gradient(145deg, #1b1327, #12101b);
}
.ns-model-copy { min-width: 0; }
.ns-model-copy h2 { max-width: 460px; }
.ns-model-copy p:not(.ns-kicker) { font-size: 14px; }
.ns-model-copy > .ns-primary { margin-top: 26px; min-height: 43px; font-size: 10px !important; }
.ns-model-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 28px 0 0; padding: 21px 0 0; border-top: 1px solid rgba(225, 202, 251, .16); }
.ns-model-specs > div { min-width: 0; }
.ns-model-specs dt { color: #a99ab9; font: 500 9px/1.5 'Space Mono', monospace; text-transform: uppercase; letter-spacing: .04em; }
.ns-model-specs dd { margin: 7px 0 0; color: #e9e0f5; font: 500 14px/1.5 'Outfit', sans-serif; }
.ns-model-section > figure, .ns-model-example { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(224, 207, 245, .19); border-radius: 15px; background: #241c31; }
.ns-model-section > figure img, .ns-model-example img, .ns-model-section > img { display: block; width: 100%; aspect-ratio: .95; object-fit: cover; object-position: center 25%; border-radius: 15px; }
.ns-model-section > figure figcaption, .ns-model-example figcaption { position: absolute; inset: auto 0 0; padding: 42px 18px 18px; color: #dcd4e5; background: linear-gradient(0deg, rgba(10, 6, 18, .8), transparent); font: 500 10px/1.5 'Space Mono', monospace; }

#nsHomeCast { padding: 0 0 76px; }
#nsHomeCast > .ns-secondary { margin-top: 24px; min-height: 43px; font-size: 10px !important; }
.ns-home-cast-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ns-home-cast-card { position: relative; display: block; min-width: 0; overflow: hidden; padding: 0; border: 1px solid rgba(222, 205, 245, .18); border-radius: 13px; background: #1b1425; color: #f6f1fb; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.ns-home-cast-card img { display: block; width: 100%; aspect-ratio: .72; object-fit: cover; object-position: center 15%; transition: transform .35s; }
.ns-home-cast-card > strong { display: block; margin: 13px 12px 5px; color: #f4eef9; font: 600 14px/1.2 'Outfit', sans-serif; }
.ns-home-cast-card > span { display: block; margin: 0 12px 14px; color: #b0a1bd; font: 400 10px/1.4 'Outfit', sans-serif; }
.ns-home-cast-card:hover { border-color: rgba(0, 255, 163, .55); transform: translateY(-3px); }
.ns-home-cast-card:hover img { transform: scale(1.035); }
.ns-motion-addon { display: flex; align-items: center; gap: 24px; margin: 0 0 48px; padding: 20px; border-block: 1px solid rgba(219, 200, 241, .15); }
.ns-motion-addon > img { display: block; flex: none; width: 112px; height: 76px; object-fit: cover; border-radius: 9px; }
.ns-motion-addon > div { flex: 1; min-width: 0; }
.ns-motion-addon h2, .ns-motion-addon h3 { margin: 0 0 7px; color: #efe6f8; font: 600 23px/1.15 'Syne', sans-serif; letter-spacing: -.035em; }
.ns-motion-addon p:not(.ns-kicker) { max-width: 660px; color: #b4a8bf; font: 400 13px/1.6 'Outfit', sans-serif; }
.ns-motion-addon .ns-kicker { margin: 0 0 8px; }
.ns-motion-addon > button, .ns-motion-addon > a { flex: none; min-height: 40px; font-size: 9px !important; }
.ns-public-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 30px; padding: 18px 0 24px; color: #a69ab4; font: 400 11px/1.6 'Outfit', sans-serif; }
.ns-public-footer strong { color: #e2d6ee; font: 700 15px/1.2 'Syne', sans-serif; letter-spacing: .08em; }
.ns-public-footer > span { color: #e2d6ee; font: 600 12px/1.6 'Syne', sans-serif; letter-spacing: .06em; }
.ns-public-footer small { display: block; margin-top: 5px; color: #a99ab8; font: 400 9px/1.5 'Space Mono', monospace; letter-spacing: 0; }
.ns-public-footer p { margin: 0; }
.ns-public-footer a { color: #cec2dd; text-decoration: none; }
.ns-public-footer a:hover { color: var(--ns-mint); }
.ns-public-footer button { padding: 0; border: 0; background: none; color: #cec2dd; font: inherit; cursor: pointer; }
.ns-public-footer button:hover { color: var(--ns-mint); }

/* Native dialogs remain in the top layer and fit a narrow phone viewport. */
.ns-auth-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 36px;
  overflow-y: auto;
  border: 1px solid rgba(213, 185, 244, .28);
  border-radius: 22px;
  background: radial-gradient(ellipse at 15% 0, rgba(117, 23, 248, .16), transparent 64%), #19121f;
  color: #f4edf9;
  box-shadow: 0 35px 130px rgba(0, 0, 0, .65);
  font-family: 'Outfit', sans-serif;
}
.ns-auth-dialog:not([open]) { display: none; }
.ns-auth-dialog::backdrop { background: rgba(7, 4, 13, .76); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ns-dialog-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(226, 207, 248, .19); border-radius: 50%; background: rgba(255, 255, 255, .035); color: #d4c4e4; font: 300 23px/1 'Outfit', sans-serif; cursor: pointer; }
.ns-dialog-close:hover { color: #fff; border-color: #c6b3d9; }
.ns-dialog-kicker { margin: 0 0 19px !important; color: #bda8d1 !important; font: 500 9px/1.5 'Space Mono', monospace !important; text-transform: uppercase; letter-spacing: .15em; }
.ns-dialog-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 21px; border: 1px solid rgba(0, 255, 163, .28); border-radius: 15px; background: linear-gradient(135deg, rgba(0, 255, 163, .09), rgba(117, 23, 248, .14)); color: var(--ns-mint); font: 400 27px/1 'Syne', sans-serif; }
.ns-auth-dialog h2 { margin: 0 0 15px; color: #f8f2fd; font: 700 34px/1.1 'Syne', sans-serif; letter-spacing: -.045em; }
.ns-auth-dialog > p { margin: 0 0 22px; color: #bfb1cc; font: 400 14px/1.65 'Outfit', sans-serif; }
.ns-dialog-benefits { display: grid; gap: 12px; margin: 23px 0; padding: 18px 0; border-block: 1px solid rgba(224, 201, 245, .14); list-style: none; color: #dfd2ea; font: 400 13px/1.5 'Outfit', sans-serif; }
.ns-dialog-benefits li, .ns-dialog-benefits > span { position: relative; padding-left: 22px; }
.ns-dialog-benefits li::before, .ns-dialog-benefits > span::before { content: '✓'; position: absolute; left: 0; color: var(--ns-mint); }
.ns-dialog-primary { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 48px; margin: 23px 0 0; padding: 12px 18px; border: 1px solid var(--ns-mint); border-radius: 11px; background: linear-gradient(110deg, #9bffd0, #00ffa3); color: #0a2518; font: 700 14px/1.3 'Outfit', sans-serif; cursor: pointer; transition: filter .2s, transform .2s; }
.ns-dialog-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ns-auth-dialog .ns-dialog-note { margin: 15px 0 0; color: #a99ab8; text-align: center; font: 400 11px/1.6 'Outfit', sans-serif; }
#nsRequestSummary { margin: 20px 0; padding: 15px; overflow-wrap: anywhere; white-space: pre-wrap; border: 1px solid rgba(223, 200, 245, .17); border-radius: 10px; background: rgba(8, 5, 15, .35); color: #d9cce5; font: 400 12px/1.7 'Outfit', sans-serif; }

@media (min-width: 1700px) {
  .ns-home-hero { min-height: 900px; padding-top: 145px; padding-bottom: 42px; }
  .ns-hero-footer { margin-top: auto; padding-top: 30px; }
  .ns-home-hero .ns-hero-style-tabs button { width: 78px; height: 89px; }
}
@media (max-width: 1100px) {
  .ns-home-hero { min-height: 790px; padding-top: 110px; }
  .ns-home-hero .ns-home-copy { max-width: 650px; }
  .ns-home-hero .ns-home-copy h1 { font-size: 58px; }
  #nsDemoPill { display: none; }
  .ns-workflow { gap: 35px; }
  .ns-home-cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .ns-home-cast-card img { aspect-ratio: .88; }
  .ns-model-specs { gap: 12px; }
  .ns-model-specs dd { font-size: 12px; }
  .ns-home .ns-latest-card { height: 210px; }
}
@media (max-width: 760px) {
  body[data-nelu-auth] .topbar { gap: 9px; padding-inline: 18px; }
  body[data-nelu-auth] .ns-top-actions { gap: 6px; }
  body[data-nelu-auth] .ns-brand { font-size: 14px; letter-spacing: .06em; }
  .ns-public-nav { gap: 0; }
  .ns-public-nav .ns-nav-link { padding: 10px 9px; font-size: 11px; letter-spacing: 0; }
  .ns-login { min-height: 34px; padding: 0 14px; font-size: 11px; }
  .ns-home { padding-top: 0; scroll-padding-top: 80px; }
  .ns-home-hero { min-height: 0; padding: 113px 25px 32px; justify-content: flex-start; }
  .ns-home-hero .ns-home-copy { max-width: 600px; }
  .ns-home-hero .ns-home-copy h1 { margin: 18px 0 17px; font-size: clamp(40px, 7.8vw, 57px); letter-spacing: -.06em; line-height: 1.03; }
  .ns-home-hero .ns-home-lede { max-width: 475px; font-size: 14px; line-height: 1.6; }
  body[data-nelu-page="home"] .ns-hero-art:before { background: linear-gradient(0deg, #0e0c15, rgba(14, 12, 21, .82) 20%, rgba(14, 12, 21, .6) 58%, rgba(10, 8, 21, .15) 88%), linear-gradient(90deg, rgba(11, 9, 22, .7), rgba(11, 9, 22, .2)), linear-gradient(180deg, rgba(8, 7, 16, .4), transparent 28%); }
  .ns-home-prompt { margin-top: 23px; }
  #nsHomePrompt { height: 70px; min-height: 70px; font-size: 14px; }
  .ns-hero-footer { margin-top: 30px; }
  .ns-home-hero .ns-hero-style-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 450px; }
  .ns-home-hero .ns-hero-style-tabs button { width: 100%; height: 76px; font-size: 9px; }
  .ns-home > .ns-home-inner { padding-inline: 25px; }
  .ns-home .ns-section-heading { display: block; margin-bottom: 23px; }
  .ns-home .ns-section-heading h2, .ns-workflow h2, .ns-model-section h2 { font-size: 36px; }
  .ns-home .ns-section-heading > p { margin-top: 16px; font-size: 13px; }
  .ns-home .ns-home-divider { gap: 20px; font-size: 8px; line-height: 1.5; }
  .ns-home .ns-home-divider span:last-child { text-align: right; }
  #nsGallery.ns-collections { padding-top: 38px; padding-bottom: 55px; }
  #nsGallery .ns-collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  #nsGallery .ns-collection-card { height: 270px; }
  #nsGallery .ns-collection-card strong { font-size: 20px; left: 14px; }
  #nsGallery .ns-collection-label { left: 14px; font-size: 7px; }
  .ns-workflow { grid-template-columns: minmax(0, 1fr); gap: 35px; padding: 53px 0 58px; }
  .ns-workflow p:not(.ns-kicker), .ns-model-copy p:not(.ns-kicker) { max-width: 540px; font-size: 14px; }
  .ns-reference-board { width: 100%; max-width: 580px; padding-left: 18px; }
  .ns-reference-ingredients { margin-left: -18px; }
  .ns-model-section { grid-template-columns: minmax(0, 1fr); gap: 29px; padding: 28px; margin-bottom: 60px; border-radius: 18px; }
  .ns-model-section > figure img, .ns-model-example img, .ns-model-section > img { aspect-ratio: 1.2; }
  .ns-model-specs dd { font-size: 14px; }
  #nsHomeCast { padding-bottom: 55px; }
  .ns-home-cast-card img { aspect-ratio: .72; }
  .ns-home-cast-card > strong { margin-inline: 10px; font-size: 13px; }
  .ns-home-cast-card > span { margin-inline: 10px; font-size: 9px; }
  .ns-home .ns-latest { padding-bottom: 55px; }
  .ns-home .ns-latest-card { height: 235px; }
  .ns-motion-addon { flex-wrap: wrap; gap: 16px; padding: 20px 0; }
  .ns-motion-addon > img { width: 96px; height: 78px; }
  .ns-motion-addon > button, .ns-motion-addon > a { margin-left: 112px; }
  .ns-motion-addon h2, .ns-motion-addon h3 { font-size: 21px; }
  .ns-motion-addon p:not(.ns-kicker) { font-size: 12px; }
  .ns-public-footer { padding-bottom: 12px; font-size: 10px; }
}
@media (max-width: 540px) {
  body[data-nelu-auth] .topbar { gap: 6px; padding-inline: 14px; }
  body[data-nelu-auth] .ns-brand { font-size: 12px; }
  .ns-public-nav .ns-nav-link { padding-inline: 8px; font-size: 10px; }
  .ns-login { padding-inline: 12px; min-height: 32px; font-size: 10px; }
  .ns-home-hero { padding: 106px 20px 27px; }
  .ns-home-hero .ns-home-copy h1 { font-size: clamp(36px, 9.3vw, 49px); }
  .ns-home-hero .ns-kicker { font-size: 8px !important; letter-spacing: .11em; }
  .ns-home-hero .ns-home-lede { font-size: 13px; }
  .ns-home-prompt { padding: 15px 13px 12px; border-radius: 15px; }
  #nsHomePrompt { min-height: 79px; height: 79px; font-size: 14px; }
  .ns-prompt-bottom { gap: 8px; align-items: center; }
  .ns-prompt-spec { gap: 5px; font-size: 9px; }
  .ns-prompt-spec span + span::before { margin-right: 5px; }
  .ns-home-hero #nsHomeGenerate { min-height: 40px; padding-inline: 12px; gap: 7px; font-size: 12px !important; }
  .ns-prompt-chip { font-size: 9px !important; padding-inline: 8px; }
  .ns-prompt-ideas { gap: 6px; }
  .ns-free-line { gap: 5px 8px; font-size: 10px; }
  .ns-home-hero .ns-hero-style-tabs { gap: 5px; padding: 5px; }
  .ns-home-hero .ns-hero-style-tabs button { height: 70px; font-size: 8px; }
  .ns-home > .ns-home-inner { padding-inline: 20px; }
  .ns-home .ns-section-heading h2, .ns-workflow h2, .ns-model-section h2 { font-size: 32px; }
  #nsGallery .ns-collection-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #nsGallery .ns-collection-card { height: 380px; }
  #nsGallery .ns-collection-card strong { font-size: 29px; left: 18px; }
  #nsGallery .ns-collection-label { left: 18px; font-size: 8px; }
  #nsGallery .ns-collection-tabs { gap: 6px; }
  #nsGallery .ns-collection-tabs button { padding: 9px 12px; font-size: 8px; }
  .ns-reference-ingredients { width: 84%; gap: 7px; padding: 8px; margin-top: -43px; }
  .ns-reference-result > img { aspect-ratio: .95; }
  .ns-reference-result figcaption { inset: 12px 12px auto auto; font-size: 7px; }
  .ns-model-section { padding: 24px 20px; }
  .ns-model-specs { gap: 8px; }
  .ns-model-specs dt { font-size: 8px; }
  .ns-model-specs dd { font-size: 12px; }
  .ns-home-cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ns-home-cast-card img { aspect-ratio: .79; }
  .ns-home .ns-latest-card { height: 210px; }
  .ns-home .ns-latest-card strong { font-size: 18px; left: 12px; }
  .ns-latest-actions { align-items: center; }
  .ns-latest-actions button { padding: 9px 11px; font-size: 10px; }
  .ns-latest-actions > span { max-width: 130px; font-size: 7px; line-height: 1.7; }
  .ns-motion-addon > img { width: 78px; height: 85px; }
  .ns-motion-addon > button, .ns-motion-addon > a { margin-left: 94px; }
  .ns-public-footer { display: grid; gap: 14px; }
  .ns-auth-dialog { padding: 30px 24px 25px; border-radius: 18px; }
  .ns-auth-dialog h2 { font-size: 30px; }
  .ns-auth-dialog > p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-home { scroll-behavior: auto; }
  .ns-home *, .ns-auth-dialog *, .ns-login { animation: none !important; transition: none !important; }
  body[data-nelu-page="home"] .ns-hero-art img { transform: scaleX(var(--ns-image-flip, 1)) !important; will-change: auto; }
  .ns-home-cast-card:hover, .ns-dialog-primary:hover { transform: none; }
}
