/* ==========================================================================
   15 Group, pre-launch holding page. Light theme.
   Titles: Hina Mincho. Body: GM Sans.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&display=swap');

/* GM Sans, drop gm-sans.woff2 / .woff into assets/ ; falls back gracefully */
@font-face {
  font-family: 'GM Sans';
  src: url('assets/gm-sans.woff2') format('woff2'),
       url('assets/gm-sans.woff') format('woff');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #f4f1ea;            /* warm cream */
  --panel: #ffffff;
  --ink: #2b352f;           /* deep forest ink */
  --ink-soft: #5c665d;
  --line: rgba(43, 53, 47, 0.12);
  --sage: #7f8f74;
  --amber: #bd8a49;
  --nex: #6d3bd6;           /* Nexuss purple */

  --serif: 'Hina Mincho', 'Times New Roman', serif;
  --sans: 'GM Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h4, p, ul { margin: 0; }

/* subtle film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sage); color: #fff; }

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

[data-reveal] {
  opacity: 0;
  filter: blur(16px);
  transform: translateY(26px);
  transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 150ms);
  will-change: opacity, filter, transform;
}
[data-reveal].is-visible { opacity: 1; filter: blur(0); transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.6vw, 30px) clamp(20px, 5vw, 64px);
}
.hd__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); }
.hd__logo {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #FFC45D;   /* yellow accent */
  -webkit-mask: url('assets/15logo.webp') center / contain no-repeat;
  mask: url('assets/15logo.webp') center / contain no-repeat;
  /* very subtle black halo so the mark reads on any background */
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}
.hd__tag { font-size: 15px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

/* ==========================================================================
   Hero (100vh), centred
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: clamp(72px, 10vh, 128px) clamp(20px, 5vw, 64px) clamp(60px, 10vw, 120px);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(244, 241, 234, 0.34) 0%, rgba(244, 241, 234, 0.08) 34%, rgba(244, 241, 234, 0) 60%);
}
.hero__inner { position: relative; z-index: 2; max-width: min(940px, 92vw); margin: 0 auto; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 66px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
  text-shadow: 0 2px 26px rgba(244, 241, 234, 0.55);
}
/* hero title, word-by-word entrance */
.hero__title .word {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, filter, transform;
}
.hero__title.words-in .word { opacity: 1; filter: blur(0); transform: none; }
.hero__sub {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  max-width: 40ch;
  margin: 0 auto;
  text-shadow: 0 1px 16px rgba(244, 241, 234, 0.8);
}

.scrollcue {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(28px, 5vw, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scrollcue span { width: 1px; height: 40px; background: var(--ink-soft); opacity: 0.5; animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 0.9; } }

/* ==========================================================================
   Feature sections (Nexuss / Nemoss)
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1500px;
  margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px);
}
.feature__intro { max-width: 46ch; }

/* company brand marks, recoloured via mask */
.feat-logo {
  display: block;
  width: clamp(36px, 4.4vw, 48px);
  height: clamp(36px, 4.4vw, 48px);
  margin-bottom: 20px;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.feat-logo--nexuss {
  background: #6fa8e0;   /* light blue accent */
  -webkit-mask-image: url('assets/img/Nexusslogo.webp');
  mask-image: url('assets/img/Nexusslogo.webp');
}
.feat-logo--nemoss {
  background: #e08681;   /* light red accent */
  -webkit-mask-image: url('assets/img/Nemosslogo.webp');
  mask-image: url('assets/img/Nemosslogo.webp');
}
#nexuss .kicker { color: #4f90cf; }
#nemoss .kicker { color: #cf6f6a; }
.feature__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.15; margin: 16px 0 20px; }
.lead { font-size: clamp(15px, 1.2vw, 17px); font-weight: 300; line-height: 1.7; color: var(--ink-soft); margin: 0 0 14px; }
.lead--muted { color: var(--sage); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

/* Showcase (dashboard + device), matched size */
.showcase { width: 100%; }

/* fanned product / dashboard cards behind the main frame */
.showcase--stack { position: relative; }
.showcase--stack .showcase__frame { position: relative; z-index: 3; }
.stackimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 30px 60px -42px rgba(43, 53, 47, 0.5);
  opacity: 0;
  transform: none;   /* start tucked directly behind the main frame */
  transition: opacity 0.9s var(--ease), transform 1.15s var(--ease);
}
.stackimg--tr1 { z-index: 2; filter: blur(1.5px); }
.stackimg--tr2 { z-index: 1; filter: blur(4px); }
.stackimg--bl1 { z-index: 2; filter: blur(1.5px); }
.stackimg--bl2 { z-index: 1; filter: blur(4px); }
/* the cards fan out to their diagonal positions once the showcase enters view */
.showcase.is-visible .stackimg--tr1 { opacity: 0.82; transform: translate(7%, -9%) rotate(2.5deg); transition-delay: 0.15s; }
.showcase.is-visible .stackimg--tr2 { opacity: 0.5;  transform: translate(13%, -17%) rotate(5deg); transition-delay: 0.32s; }
.showcase.is-visible .stackimg--bl1 { opacity: 0.82; transform: translate(-7%, 9%) rotate(-2.5deg); transition-delay: 0.15s; }
.showcase.is-visible .stackimg--bl2 { opacity: 0.5;  transform: translate(-13%, 17%) rotate(-5deg); transition-delay: 0.32s; }
.showcase__frame {
  display: block;
  width: 100%;
  height: clamp(280px, 32vw, 440px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(43, 53, 47, 0.45);
}
/* dashboard rendered at 2x logical size then scaled down, so the whole width fits (zoomed out) */
.showcase__frame--app { position: relative; background: #f4f1ea; }
.showcase__embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 142.86%;
  height: 142.86%;
  transform: scale(0.7);
  transform-origin: top left;
  border: 0;
}
.showcase__frame--device { background: #efe9dd; }
.showcase__frame--device img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Nexuss interface (pulled from the product, light theme)
   ========================================================================== */
.nx {
  --nxb: rgba(43, 53, 47, 0.1);
  display: grid;
  grid-template-columns: 152px 1fr;
  grid-template-rows: 46px 1fr;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--nxb);
  border-radius: 16px;
  background: #fbfaf7;
  box-shadow: 0 40px 70px -40px rgba(43, 53, 47, 0.4);
  color: var(--ink);
  font-size: 12px;
}
.nx__side { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-right: 1px solid var(--nxb); background: #f6f4ef; overflow: hidden; }
.nx__logo { display: flex; align-items: center; gap: 7px; padding: 4px 6px 10px; font-weight: 600; font-size: 13px; }
.nx__mark { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(150deg, #8b5cf6, #3a1d78); flex: none; }
.nx__cat { padding: 8px 6px 4px; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa29a; }
.nx__tab { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--ink-soft); }
.nx__tab svg { width: 13px; height: 13px; flex: none; }
.nx__tab.is-active { background: rgba(109, 59, 214, 0.1); color: #4b2a9a; }
.nx__user { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 9px; border: 1px solid var(--nxb); background: #fff; }
.nx__av { width: 22px; height: 22px; border-radius: 6px; flex: none; background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.nx__ut strong { display: block; font-size: 11px; }
.nx__ut small { font-size: 9px; color: #8a928a; }

.nx__top { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--nxb); }
.nx__search { display: flex; align-items: center; gap: 6px; flex: 1; max-width: 230px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--nxb); background: #fff; color: #9aa29a; font-size: 11px; }
.nx__search svg { width: 13px; height: 13px; flex: none; }
.nx__acts { display: flex; align-items: center; gap: 8px; }
.nx__ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--ink-soft); }
.nx__ic svg { width: 15px; height: 15px; }
.nx__acct { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--nxb); background: #fff; font-size: 11px; font-weight: 500; }

.nx__main { grid-column: 2; grid-row: 2; padding: 14px; overflow: hidden; }
.nx__mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nx__mhead strong { font-size: 14px; }
.nx__mhead small { display: block; font-size: 10px; color: #8a928a; }
.nx__btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; font-size: 11px; font-weight: 600; }
.nx__btn svg { width: 13px; height: 13px; }
.nx__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.nx__stat { display: grid; gap: 2px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--nxb); background: #fff; }
.nx__stat span { font-size: 8px; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa29a; }
.nx__stat strong { font-size: 16px; }
.nx__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.nx__panel { padding: 12px; border-radius: 11px; border: 1px solid var(--nxb); background: #fff; }
.nx__phead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nx__phead h4 { font-size: 12px; font-weight: 600; }
.nx__chip { padding: 3px 7px; border-radius: 999px; border: 1px solid var(--nxb); font-size: 9px; color: #8a928a; }
.nx__agents { display: grid; gap: 2px; }
.nx__agents li { display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 8px; }
.nx__aic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; color: #fff; background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.nx__aic svg { width: 14px; height: 14px; }
.nx__aic--blue { background: linear-gradient(150deg, #4f8bff, #16305e); }
.nx__aic--purple { background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.nx__aic--green { background: linear-gradient(150deg, #3ecf8e, #12563d); }
.nx__aic--amber { background: linear-gradient(150deg, #f6b24a, #7a4310); }
.nx__am { flex: 1; min-width: 0; }
.nx__am strong { display: block; font-size: 11px; }
.nx__am small { font-size: 9px; color: #8a928a; }
.nx__st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 500; }
.nx__st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.nx__st--run { background: rgba(62, 207, 142, 0.16); color: #1c7d53; }
.nx__st--run::before { background: #3ecf8e; }
.nx__st--idle { background: rgba(43, 53, 47, 0.08); color: #8a928a; }
.nx__st--idle::before { background: #9aa29a; }
.nx__bars { display: flex; align-items: flex-end; gap: 6px; height: 104px; }
.nx__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #a78bfa, #6d3bd6); }

/* ==========================================================================
   Contact (50vh)
   ========================================================================== */
.contact {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.contact__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.contact__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(244, 241, 234, 0.92) 0%, rgba(244, 241, 234, 0.86) 100%); }
.contact__inner { position: relative; z-index: 2; width: 100%; max-width: 640px; margin: 0 auto; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.5vw, 64px); line-height: 1.1; margin: 14px 0 clamp(26px, 4vw, 42px); }
.contact__list { display: grid; border-top: 1px solid var(--line); max-width: 460px; margin: 0 auto; }
.contact__list li { display: flex; align-items: baseline; justify-content: center; gap: 20px; padding: clamp(14px, 2vw, 20px) 0; border-bottom: 1px solid var(--line); }
.contact__label { flex: 0 0 84px; text-align: right; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.contact__list a { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 26px); display: inline-flex; align-items: center; gap: 10px; transition: color 0.25s var(--ease); }
.contact__list a:hover { color: var(--amber); }
.contact__list svg { opacity: 0.55; }
.contact__foot { margin-top: clamp(26px, 4vw, 42px); font-size: 12px; color: var(--ink-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature__intro { max-width: none; }
  .feature--alt .feature__intro { order: 0; }
  .feature--alt .showcase { order: 0; }
  .showcase__frame { height: clamp(360px, 82vw, 520px); }
  /* on mobile, render the dashboard at native size so it's readable, not scaled down;
     pointer-events off so touch scrolling passes through to the page */
  .showcase__embed { width: 100%; height: 100%; transform: none; pointer-events: none; }
  /* keep the fanned cards subtle and clear of the page edges on small screens */
  .stackimg--tr2, .stackimg--bl2 { display: none; }
  .showcase.is-visible .stackimg--tr1 { transform: translate(5%, -6%) rotate(2deg); }
  .showcase.is-visible .stackimg--bl1 { transform: translate(-5%, 6%) rotate(-2deg); }
  .scrollcue { display: none; }
}

@media (max-width: 560px) {
  .nx { grid-template-columns: 54px 1fr; }
  .nx__logo span, .nx__cat, .nx__tab span, .nx__ut, .nx__search, .nx__acct { display: none; }
  .nx__tab { justify-content: center; }
  .nx__grid { grid-template-columns: 1fr; }
  .nx__stats { grid-template-columns: repeat(2, 1fr); }
  .contact__list li { flex-direction: column; gap: 4px; }
  .contact__label { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scrollcue span { animation: none; }
}
