/* Website adaptation of the supplied NextElement v4 design system.
   Existing interaction hooks and content are preserved. */
html { scroll-behavior: smooth; }
body { overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only, .hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 30; padding: 12px 20px; border-radius: var(--radius-full); background: var(--ne-lime); color: var(--ne-ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.brand, .brand-inline { font-weight: 400; letter-spacing: -.01em; }
.brand b, .brand-inline b { font-weight: 800; }
.brand { display: inline-flex; align-items: center; gap: .45em; color: inherit; font-size: 20px; text-decoration: none; white-space: nowrap; }
.brand:hover { background: none; color: inherit; }
.tile { display: flex; align-items: center; }
.cube { display: block; height: 1.3em; width: auto; }
.btn, .scroll-indicator { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--control-height); padding: 0 22px; border: var(--border-width) solid var(--ne-ink); border-radius: var(--radius-full); font: 600 16px/1 var(--ne-font-sans); text-decoration: none; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-out); }
.btn:active, .scroll-indicator:active { transform: scale(.98); }
.wrap > section { scroll-margin-top: 80px; }
.wrap > section:not(.hero):not(.cta) { max-width: var(--page-max); margin: auto; padding: var(--space-10) var(--page-gutter); display: flex; flex-direction: column; gap: var(--space-6); }
.hero { max-width: none; width: 100%; margin: 0; padding: var(--space-9) max(var(--page-gutter), calc((100% - var(--page-max)) / 2 + var(--page-gutter))); border-radius: 0; background: var(--ne-ink); color: var(--ne-white); display: flex; flex-direction: column; gap: var(--space-6); }
.hero h1 { font-size: clamp(36px, 5.2vw, 84px); font-weight: 300; text-transform: uppercase; line-height: 1.14; letter-spacing: var(--tracking-display); text-wrap: balance; }
.hero .spec, .band { font-weight: 700; color: var(--ne-ink); background: linear-gradient(transparent 14%,var(--ne-lime) 14%,var(--ne-lime) 94%,transparent 94%); padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sub { max-width: 820px; font-size: var(--type-lead); line-height: 1.4; color: var(--text-on-ink-muted); text-wrap: pretty; }
.hero .brand-inline b { color: var(--ne-white); }
.eyebrow { display: flex; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 0; font-size: var(--type-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }
.idx { font-size: clamp(36px,3.6vw,52px); font-weight: 300; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lede { font-size: var(--type-h2); font-weight: 500; line-height: 1.15; letter-spacing: var(--tracking-heading); text-wrap: balance; }
#what .lede { max-width: 900px; }
.lede .spec { background: var(--ne-lime); color: var(--ne-ink); border-radius: var(--radius-mark); padding: 1px 8px; font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.col2 { display: flex; flex-direction: column; gap: var(--space-6); }
.body-col { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-6); }
p { text-wrap: pretty; }
.body-col p, .step .step-copy, .audience-copy p { font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-secondary); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.step { border: 0; width: 100%; text-align: left; font: inherit; color: var(--ne-ink); cursor: pointer; position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; min-height: 220px; padding: var(--space-5); border-radius: var(--radius-card); background: var(--ne-white); transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.step .step-title, .audience-copy h3 { font-size: var(--type-h3); font-weight: 700; line-height: 1.2; }
.step .step-title { margin-top: 0; }
.n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--ne-ink); color: var(--ne-lime); font-size: 14px; font-weight: 700; }
.step:last-of-type, .audience-c { background: var(--ne-ink); color: var(--ne-white); }
.step:last-of-type .step-copy, .audience-c p { color: var(--text-on-ink-muted); }
.step:last-of-type .n { background: var(--ne-lime); color: var(--ne-ink); }
.who-split-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.who-split-card { display: flex; flex-direction: column; gap: 12px; padding: var(--space-5); border-radius: var(--radius-card); background: var(--ne-white); transition: background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.who-split-card.audience-c { background: var(--ne-ink); }
.audience-name { align-self: flex-start; padding: 5px 12px; border: var(--border-width) solid var(--ne-ink); border-radius: var(--radius-full); font-size: 14px; font-weight: 600; line-height: 1.2; }
.audience-c .audience-name { border-color: var(--border-on-ink); }
.audience-copy { display: flex; flex-direction: column; gap: 12px; }
.model-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.model-card { display: flex; flex-direction: column; gap: 28px; padding: clamp(28px,4vw,48px); padding-right: clamp(50px,6vw,80px); border-radius: 36px; background: var(--ne-white); min-height: 360px; }
.model-card--ink { background: var(--ne-ink); color: var(--ne-white); padding-right: clamp(28px,4vw,48px); padding-left: clamp(60px,7vw,88px); }
.model-title { font-size: clamp(26px,3.2vw,43px); font-weight: 300; line-height: 1.05; text-transform: uppercase; letter-spacing: -.03em; }
.model-title b { font-weight: 700; }
.model-card p { font-size: clamp(17px,1.8vw,22px); line-height: 1.5; color: var(--text-secondary); }
.model-card strong { color: var(--ne-ink); }
.model-card--ink p { color: var(--text-on-ink-muted); }
.model-card--ink strong { color: var(--ne-white); }
.model-badge { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; width: clamp(88px,9vw,108px); height: clamp(88px,9vw,108px); background: var(--ne-ink); border-radius: 50%; box-shadow: 0 0 0 14px var(--ne-paper); }
.model-badge img { width: 48%; height: auto; }
.model-position { margin-top: -16px; padding: clamp(28px,4vw,48px); border-radius: 36px; display: grid; grid-template-columns: minmax(0,1fr); align-items: end; gap: 32px; background: var(--ne-ink); color: var(--ne-white); }
.model-position p { font-size: clamp(24px,2.8vw,34px); font-weight: 400; line-height: 1.3; letter-spacing: -.03em; }
.model-position strong { font-weight: 700; }
.model-outcome { color: var(--ne-lime); font-size: 1.12em; }
.focus-grid { display: flex; flex-direction: column; }
.fitem { appearance: none; width: 100%; text-align: left; color: var(--ne-ink); background: transparent; border: 0; border-bottom: 1px solid var(--border-rule); display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 12px; padding: 12px clamp(12px,2vw,24px); border-radius: 0; transition: background var(--dur-fast) var(--ease-out), border-radius var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out); }
.fitem h3 { font-size: clamp(18px,1.9vw,26px); font-weight: 300; text-transform: none; letter-spacing: -.01em; line-height: 1.05; text-wrap: balance; }
.focus-star { width: 24px; height: 27px; opacity: .7; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.fitem[aria-expanded="true"] { background: var(--ne-lime); border-radius: var(--radius-full); border-bottom-color: transparent; padding-left: clamp(20px,3vw,40px); }
.fitem[aria-expanded="true"] h3 { font-weight: 700; }
.fitem[aria-expanded="true"] .focus-star { opacity: 1; transform: none; }
.cta { background: var(--ne-ink); color: var(--ne-white); padding: var(--space-10) 0; }
.cta-inner { max-width: var(--page-max); margin: auto; padding: 0 var(--page-gutter); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--space-8); }
.cta-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-brand { font-size: 22px; }
.cta h2 { font-size: var(--type-h1); font-weight: 300; line-height: 1.02; letter-spacing: var(--tracking-heading); text-transform: uppercase; }
.cta h2 strong { font-weight: 700; color: var(--ne-lime); }
.cta-copy { font-size: var(--type-lead); line-height: 1.4; color: var(--text-on-ink-muted); }
.contact-form { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-content: start; gap: 14px 12px; padding: var(--space-5); border-radius: var(--radius-card); background: var(--ne-white); color: var(--ne-ink); }
.contact-form label:not(.hp-field) { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.contact-form label > span { font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; min-width: 0; height: var(--control-height); padding: 0 16px; border: var(--border-width) solid var(--border-soft); border-radius: 14px; background: var(--ne-white); color: var(--ne-ink); font: 500 16px/1.3 var(--ne-font-sans); }
.contact-form textarea { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--ne-stone-700); }
.contact-form input:hover, .contact-form textarea:hover { border-color: var(--ne-ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ne-ink); box-shadow: 0 0 0 3px var(--ne-lime); }
.message-field, .form-status, .email-fallback { grid-column: 1 / -1; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; background: var(--ne-lime); color: var(--ne-ink); border-color: var(--ne-lime); }
.contact-form .btn:hover { background: var(--ne-lime-600); border-color: var(--ne-lime-600); }
.contact-form .btn:disabled { opacity: .4; cursor: wait; }
.form-status { font-size: 14px; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { padding: 14px 18px; border-radius: 18px; color: var(--ne-white); background: var(--ne-ink); }
.form-status[data-state="error"] { color: var(--ne-danger); }
.email-fallback { font-size: 14px; color: var(--text-secondary); }
footer { max-width: var(--page-max); margin: auto; padding: 28px var(--page-gutter); font-size: 14px; color: var(--text-secondary); text-align: center; }
.scroll-indicator { position: fixed; z-index: 5; right: 24px; bottom: 24px; width: var(--control-height); padding: 0; background: var(--ne-paper); color: var(--ne-ink); transition: opacity var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.scroll-indicator:hover { background: var(--ne-ink); color: var(--ne-white); }
.scroll-indicator.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .step:hover, .who-split-card:hover { background: var(--ne-lime); color: var(--ne-ink); transform: translateY(-4px); }
  .step:hover .step-copy, .who-split-card:hover p { color: var(--ne-ink); }
  .step:hover .n, .who-split-card:hover .audience-name { background: var(--ne-ink); color: var(--ne-lime); border-color: var(--ne-ink); }
  .fitem:hover { background: var(--ne-lime); border-radius: var(--radius-full); border-bottom-color: transparent; padding-left: clamp(20px,3vw,40px); }
  .fitem:hover .focus-star { opacity: 1; transform: none; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  .wrap > section:not(.hero):not(.cta) { padding-top: 72px; padding-bottom: 72px; }
  .steps { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); }
  .who-split-cards { grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); }
  .body-col { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
  .cta-inner { grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); }
  .cta { padding: 72px 0; }
}
@media (max-width: 760px) {
  .brand { font-size: 20px; }
  .wrap > section:not(.hero):not(.cta) { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 36px; }
  .body-col, .steps, .who-split-cards, .model-grid, .cta-inner { grid-template-columns: minmax(0,1fr); }
  .steps { gap: 8px; grid-auto-rows: 1fr; }
  .step { display: grid; grid-template-columns: 34px minmax(0,1fr); grid-template-rows: auto 1fr; gap: 6px 14px; min-height: auto; padding: 16px; }
  .step .n { grid-row: 1 / 3; }
  .step .step-title { margin-top: 0; font-size: 18px; }
  .step .step-copy { grid-column: 2; font-size: 15px; }
  .model-card { padding: clamp(24px,4vw,44px); padding-bottom: 68px; }
  .model-card--ink { padding: clamp(24px,4vw,44px); padding-top: 68px; }
  .model-grid { grid-template-rows: 1fr 1fr; }
  .model-badge { top: 50%; width: 80px; height: 80px; box-shadow: 0 0 0 10px var(--ne-paper); }
  .model-position { grid-template-columns: minmax(0,1fr); gap: 24px; border-radius: 28px; }
  .cta { padding: 56px 0; }
  .contact-form { grid-template-columns: minmax(0,1fr); }
  .contact-form .btn { width: 100%; }
  .scroll-indicator { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .step:hover, .who-split-card:hover, .btn:active, .scroll-indicator:active { transform: none; }
}

/* A persistent tap/keyboard highlight, independent of hover support. */
.step[aria-pressed="true"] { background: var(--ne-lime); color: var(--ne-ink); }
.step[aria-pressed="true"] .step-copy { color: var(--ne-ink); }
.step[aria-pressed="true"] .n { background: var(--ne-ink); color: var(--ne-lime); }

/* Scale remains the dark endpoint, including hover and selected states. */
.step:last-of-type,
.step:last-of-type:hover,
.step:last-of-type[aria-pressed="true"] { background: var(--ne-ink); color: var(--ne-white); }
.step:last-of-type .step-copy { color: var(--text-on-ink-muted); }
.step:last-of-type .n { background: var(--ne-lime); color: var(--ne-ink); }

/* NextElement top bar — direction 2c (desktop + mobile)
   Load after the site's main stylesheet. Tokens: ink #141414, lime #D9F31B, paper #F2F2F0, muted #55554F. Font: Manrope. */

:root{
  --ne-ink:#141414; --ne-lime:#D9F31B; --ne-paper:#F2F2F0; --ne-muted:#55554F;
  --ne-ease:cubic-bezier(.2,.7,.2,1);
}

.ne-word{ font:400 20px/1 'Manrope',sans-serif; letter-spacing:-.02em; white-space:nowrap; }
.ne-word b{ font-weight:800; }

/* ---------- Hero logo + hero contact (visible on load) ---------- */
.ne-hero-logo{
  display:flex; align-items:center; gap:clamp(12px,1.6vw,20px); margin-bottom:clamp(10px,1.6vw,22px);
  transform-origin:left center; transition:transform 300ms ease, opacity 300ms ease;
}
.ne-hero-logo .ne-cube{ width:clamp(42px,6.4vw,88px); height:auto; color:#fff; }
.ne-hero-logo .ne-word{ font-size:clamp(28px,5.2vw,68px); color:#fff; letter-spacing:-.03em; }
.is-docked .ne-hero-logo{ transform:scale(.65); opacity:.1; }

.ne-hero-contact{
  position:absolute; z-index:5; top:clamp(24px,3vw,36px); right:max(var(--page-gutter), calc((100% - var(--page-max)) / 2 + var(--page-gutter)));
  background:var(--ne-lime); color:var(--ne-ink); border-radius:999px; padding:12px 22px;
  font:800 15px 'Manrope',sans-serif; text-decoration:none;
  transition:opacity 300ms ease, transform 300ms ease;
}
.is-docked .ne-hero-contact{ opacity:0; transform:translateY(-12px); pointer-events:none; }
/* the hero card needs position:relative so .ne-hero-contact sits in its corner */

/* ---------- Floating glass contact pill ---------- */
.ne-sticky-cta{
  position:fixed; z-index:50; right:28px; bottom:28px; height:60px;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:0 8px 0 26px; border-radius:999px;
  background:linear-gradient(145deg,rgba(217,243,27,.88),rgba(217,243,27,.68)); color:var(--ne-ink);
  border:1px solid rgba(238,255,139,.8);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  backdrop-filter:blur(20px) saturate(160%);
  font:800 17px 'Manrope',sans-serif; text-decoration:none;
  box-shadow:0 8px 28px rgba(20,20,20,.16), inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 1px rgba(255,255,255,.35);
  transform:translateY(160%); transition:transform 460ms var(--ne-ease);
}
.ne-sticky-cta span{
  width:44px; height:44px; border-radius:50%; background:var(--ne-lime); color:var(--ne-ink);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.8),0 2px 8px rgba(20,20,20,.1);
  display:grid; place-items:center; font-size:20px;
}
.ne-sticky-cta:hover span{ transform:translateX(3px); transition:transform 200ms ease; }
.ne-sticky-cta:focus-visible{ outline:3px solid var(--ne-ink); outline-offset:3px; }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .ne-sticky-cta{ background:var(--ne-lime); }
}
.is-docked:not(.at-cta) .ne-sticky-cta{ transform:none; }

/* ---------- Mobile (≤ 820px): full-width bottom bar ---------- */
@media (max-width:820px){
  .ne-hero-contact{ position:static; align-self:flex-end; order:1; display:inline-flex; align-items:center; }
  .ne-sticky-cta{ left:auto; right:16px; bottom:calc(16px + env(safe-area-inset-bottom)); padding:0 8px 0 24px; }
}

@media (prefers-reduced-motion:reduce){
  .ne-sticky-cta, .ne-hero-logo, .ne-hero-contact{ transition:none; }
}

/* Fit the lockup and contact pill within the existing hero. */
.hero { position: relative; padding-top: clamp(96px, 9vw, 120px); }
.ne-hero-logo { flex: none; }
.ne-hero-contact { min-height: 44px; }
.ne-hero-contact:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.skip-link { z-index: 60; }
@media (max-width: 820px) {
  .hero { padding-top: 56px; }
  .ne-hero-logo { gap: 12px; }
  .ne-hero-logo .ne-cube { width: clamp(30px, 5.7vw, 52px); flex: none; }
  .ne-hero-logo .ne-word { font-size: clamp(22px, 5.2vw, 42px); }
}

/* Let highlighted hero phrases wrap naturally on desktop. */
@media (min-width: 821px) {
  .hero-term { white-space: normal; }
}

/* Align the desktop lockup and contact pill on the same horizontal axis. */
@media (min-width: 821px) {
  .hero { padding-top: clamp(24px, 3vw, 36px); }
  .ne-hero-contact {
    top: calc(clamp(24px, 3vw, 36px) + clamp(42px, 6.4vw, 88px) * .555556 - 22px);
    height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Focus areas: numbered editorial card grid. */
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fitem { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 48px; min-height: 200px; padding: 28px; border: 0; border-radius: 30px; background: var(--ne-white); transition: background 260ms ease, transform 260ms var(--ne-ease), box-shadow 260ms ease; }
.fitem:first-child { grid-column: span 2; background: var(--ne-ink); color: var(--ne-white); }
.fitem:last-child { grid-column: span 2; }
.focus-number { font-size: 16px; font-weight: 700; letter-spacing: .12em; color: var(--text-secondary); }
.fitem:first-child .focus-number { color: #999; }
.fitem h3 { max-width: 100%; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; text-wrap: pretty; }
.fitem:first-child h3 { font-size: clamp(30px, 3.4vw, 44px); }
.fitem .focus-star { position: absolute; top: 28px; right: 28px; width: 42px; height: 47px; opacity: 1; transition: transform 600ms cubic-bezier(.22,1,.36,1); }
.fitem:first-child .focus-star { width: 64px; height: 72px; }
.fitem[aria-expanded="true"] { background: var(--ne-lime); color: var(--ne-ink); border-radius: 30px; padding-left: 28px; }
.fitem[aria-expanded="true"] .focus-number { color: var(--text-secondary); }
.fitem[aria-expanded="true"] .focus-star { transform: rotate(180deg); }
.fitem:first-child:not(:hover):not([aria-expanded="true"]) .focus-star { content: url("logos/ne-cube-white.svg"); }
@media (hover: hover) and (pointer: fine) {
  .fitem:hover { background: var(--ne-lime); color: var(--ne-ink); border-radius: 30px; padding-left: 28px; }
  .fitem:hover .focus-number { color: var(--text-secondary); }
  .fitem:hover .focus-star { transform: rotate(180deg); }
}
@media (max-width: 820px) {
  .focus-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .focus-grid { grid-template-columns: minmax(0,1fr); }
  .fitem:first-child, .fitem:last-child { grid-column: auto; }
  .fitem { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .fitem .focus-star { transition: none; }
  .fitem:hover .focus-star, .fitem[aria-expanded="true"] .focus-star { transform: none; }
}

/* Compact focus cards for phones: label left, cube centered on the right. */
@media (max-width: 520px) {
  .focus-grid { gap: 12px; }
  .fitem,
  .fitem[aria-expanded="true"] {
    min-height: 112px;
    padding: 20px 76px 20px 20px;
    border-radius: 22px;
    gap: 10px;
    justify-content: center;
  }
  .fitem h3,
  .fitem:first-child h3 { font-size: 22px; line-height: 1.15; }
  .focus-number { font-size: 13px; }
  .fitem .focus-star,
  .fitem:first-child .focus-star {
    top: 50%;
    right: 20px;
    width: 36px;
    height: 40px;
    margin-top: -20px;
  }
}
@media (max-width: 520px) and (hover: hover) and (pointer: fine) {
  .fitem:hover { padding-left: 20px; border-radius: 22px; }
}

/* Compact stacked model cards on phones. */
@media (max-width: 760px) {
  .model-grid { grid-template-rows: auto 0 auto; gap: 6px; }
  .model-card { min-height: 0; padding: 24px 24px 44px; gap: 18px; border-radius: 24px; }
  .model-card--ink { padding: 44px 24px 24px; }
  .model-title { font-size: 26px; }
  .model-card p { font-size: 16px; line-height: 1.45; }
  .model-card:first-child { grid-row: 1; }
  .model-badge { position: relative; grid-row: 2; grid-column: 1; justify-self: center; align-self: center; left: auto; top: auto; bottom: auto; width: 56px; height: 56px; box-shadow: 0 0 0 7px var(--ne-paper); transform: none; }
  .model-card:last-child { grid-row: 3; }
}

/* Process strip: restrained interaction, with a compact touch layout. */
.steps { display: flex; gap: 6px; }
.step { flex: 1 1 0; min-width: 0; width: auto; min-height: 264px; padding: 24px 18px; border-radius: 0; background: transparent; gap: 18px; transition: flex-grow 480ms var(--ne-ease), background 300ms ease, color 300ms ease; }
.step .n { display: block; width: auto; height: auto; padding: 0; margin-bottom: 12px; border: 0; border-radius: 0; background: transparent; color: #92928b; font-size: clamp(44px,5vw,64px); font-weight: 300; line-height: 1; letter-spacing: -.06em; transition: transform 400ms var(--ne-ease), color 300ms ease; }
.step .step-title { font-size: clamp(18px,1.8vw,23px); }
.step .step-copy { font-size: 16px; line-height: 1.45; }
.step[aria-pressed="true"] { flex-grow: 1.35; }
.step[aria-pressed="true"] .n { background: transparent; color: var(--ne-ink); transform: translateY(-4px); }
.step:last-of-type .n, .step:last-of-type[aria-pressed="true"] .n { background: transparent; color: var(--ne-lime); }
@media (hover: hover) and (pointer: fine) {
  .step:hover { flex-grow: 1.35; transform: none; }
  .step:hover .n { background: transparent; color: var(--ne-ink); transform: translateY(-4px); }
  .step:last-of-type:hover .n { color: var(--ne-lime); }
}
@media (max-width: 820px) {
  .steps { display: flex; flex-direction: column; gap: 6px; }
  .step { flex: none; width: 100%; min-height: 108px; padding: 20px 18px; display: grid; grid-template-columns: 54px minmax(0,1fr); grid-template-rows: auto auto; gap: 7px 18px; align-content: center; }
  .step .n { grid-column: 1; grid-row: 1 / 3; align-self: center; font-size: 46px; margin: 0; }
  .step .step-title { grid-column: 2; font-size: 20px; }
  .step .step-copy { grid-column: 2; font-size: 15px; }
  .step[aria-pressed="true"] .n { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .step .n, .step:hover .n, .step[aria-pressed="true"] .n { transform: none; transition: none; }
}

/* Rounded process cards with a growing cube sequence for progression. */
.step { border-radius: 24px; background: var(--ne-white); }
.step .step-cubes { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px; min-height: 24px; margin-bottom: 12px; font-size: inherit; letter-spacing: normal; }
.step-cubes img { display: block; width: 20px; height: 22px; }
.step:last-of-type .step-cubes img { content: url("logos/ne-cube-white.svg"); }
@media (max-width: 820px) {
  .step { grid-template-columns: auto minmax(0,1fr); grid-template-rows: auto auto; gap: 10px 16px; min-height: 100px; padding: 18px; border-radius: 22px; }
  .step .step-cubes { grid-column: 1; grid-row: 1; flex-wrap: nowrap; justify-self: start; align-self: center; margin: 0; min-height: 22px; }
  .step .step-title { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; align-self: center; }
  .step .step-copy { grid-column: 1 / -1; grid-row: 2; }
}

/* Soft handoff once the static contact button leaves the viewport. */
.ne-hero-contact { transition: opacity 650ms ease, transform 850ms cubic-bezier(.22,1,.36,1); }
.cta-intro .ne-hero-contact { opacity: 0; transform: translateY(8px); pointer-events: none; }
.ne-sticky-cta { opacity: 0; transform: translateY(18px) scale(.97); pointer-events: none; transition: opacity 650ms ease, transform 850ms cubic-bezier(.22,1,.36,1); }
.is-docked:not(.at-cta) .ne-sticky-cta { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 820px) {
  .ne-sticky-cta { height: 52px; gap: 12px; font-size: 15px; padding-left: 20px; }
  .ne-sticky-cta span { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .ne-hero-contact, .ne-sticky-cta { transition: none; }
}

/* Keep decorative motion inside the viewport without disabling zoom. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
.wrap, .wrap > section, .col2, .body-col, .cta-inner > * { min-width: 0; }

/* One quiet cube flip at a time, orchestrated only while the process is visible. */
.step-cubes img.is-flipping { animation: process-cube-flip 1100ms cubic-bezier(.45,0,.2,1) both; }
@keyframes process-cube-flip {
  0%, 100% { transform: rotate(0deg); }
  42%, 58% { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .step-cubes img.is-flipping { animation: none; }
}

/* Five application areas, with their scope visible on every device. */
.fitem { justify-content: flex-start; gap: 14px; min-height: 280px; }
.fitem .focus-number { margin-bottom: 42px; }
.fitem h3 { margin-top: auto; }
.focus-description { display: block; font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--text-secondary); }
.fitem:first-child .focus-description { color: var(--text-on-ink-muted); }
.fitem[aria-expanded="true"] .focus-description { color: var(--ne-ink); }
@media (min-width: 821px) {
  .fitem:last-child { grid-column: auto; }
}
@media (hover: hover) and (pointer: fine) {
  .fitem:hover .focus-description { color: var(--ne-ink); }
}
@media (max-width: 520px) {
  .fitem, .fitem[aria-expanded="true"] { min-height: 0; padding: 20px 72px 20px 20px; gap: 10px; }
  .fitem .focus-number { margin-bottom: 0; }
  .fitem h3 { margin-top: 0; }
  .focus-description { font-size: 15px; line-height: 1.45; }
}

/* Focus cards disclose detail on request rather than showing all copy at once. */
.fitem { min-height: 220px; padding-top: 92px; }
.fitem h3 { margin-top: auto; }
.focus-description[hidden] { display: none; }
.focus-description:not([hidden]) { animation: focus-detail-in 300ms ease both; }
@keyframes focus-detail-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .fitem, .fitem[aria-expanded="true"] { min-height: 100px; padding: 22px 72px 22px 20px; justify-content: center; }
  .fitem h3 { margin-top: 0; }
}

/* Anchor mobile focus icons while their descriptions expand. */
@media (max-width: 520px) {
  .fitem .focus-star,
  .fitem:first-child .focus-star { top: 30px; margin-top: 0; }
}

/* What: headline and three connected panels, joined by the brand cube. */
#what .col2 { position: relative; display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.what-statement { padding: clamp(28px,4vw,44px); border-radius: 24px; background: var(--ne-white); }
#what .lede { max-width: none; font-size: clamp(28px,3.1vw,40px); line-height: 1.16; text-wrap: pretty; }
.what-badge { position: relative; z-index: 2; justify-self: center; width: 78px; height: 78px; margin: -51px 0; display: grid; place-items: center; border-radius: 50%; background: var(--ne-ink); box-shadow: 0 0 0 10px var(--ne-paper); pointer-events: none; }
.what-badge img { display: block; width: 36px; height: 40px; }
#what .body-col { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
#what .body-col p { margin: 0; padding: 64px 26px 28px; border-radius: 24px; background: var(--ne-white); font-size: 17px; line-height: 1.5; }
#what .body-col p:last-child { background: var(--ne-ink); color: var(--text-on-ink-muted); }
.what-card-title { display: block; margin-bottom: 16px; color: var(--ne-ink); font-size: 1.25em; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
#what .body-col p:last-child .what-card-title { color: var(--ne-white); }
.what-emphasis { color: var(--ne-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ne-lime); text-decoration-thickness: 3px; text-underline-offset: 2px; }
#what .body-col p:last-child .what-emphasis { color: var(--ne-white); }
@media (max-width: 820px) {
  .what-statement { padding: 24px 22px 38px; border-radius: 22px; }
  #what .lede { font-size: clamp(25px,6.5vw,32px); }
  #what .body-col { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #what .body-col p { padding: 24px 22px; font-size: 16px; border-radius: 22px; }
  #what .body-col p:first-child { padding-top: 54px; }
  .what-badge { width: 64px; height: 64px; margin: -44px 0; box-shadow: 0 0 0 9px var(--ne-paper); }
  .what-badge img { width: 30px; height: 34px; }
}

/* Preserve the joined badge, with extra space inside the headline panel. */
.what-statement { padding-bottom: 76px; }
@media (max-width: 820px) {
  .what-statement { padding-bottom: 64px; }
}

/* Audience rows: side-by-side copy on desktop, stacked on mobile. */
#who .who-split-cards { grid-template-columns: minmax(0,1fr); gap: 12px; }
#who .who-split-card { display: grid; grid-template-columns: minmax(220px,.85fr) minmax(0,1.2fr); align-items: center; gap: 32px; padding: 32px; border-radius: 24px; text-decoration: none; color: var(--ne-ink); }
#who .audience-name { padding: 0; border: 0; border-radius: 0; align-self: center; font-size: clamp(28px,2.5vw,36px); font-weight: 400; line-height: 1; letter-spacing: -.05em; text-transform: uppercase; }
#who .audience-name strong { display: block; font-weight: 800; }
#who .audience-copy { gap: 10px; }
#who .audience-copy h3 { margin: 0; font-size: 21px; }
#who .audience-copy p { margin: 0; font-size: 16px; line-height: 1.55; }
#who .audience-c { color: var(--ne-white); }
#who .who-split-card:hover .audience-name { background: transparent; color: inherit; }
#who .audience-c:hover { background: var(--ne-ink); color: var(--ne-white); }
#who .audience-c:hover p { color: var(--text-on-ink-muted); }
#who .who-split-card:focus-visible { outline: 3px solid var(--ne-lime); outline-offset: 4px; }
@media (max-width: 820px) {
  #who .who-split-card { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 24px 22px; border-radius: 22px; }
  #who .audience-name { font-size: 29px; }
  #who .audience-copy h3 { font-size: 20px; }
}

/* Five-cube stage meters, with the copy below each header. */
#how .steps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#how .step { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: auto 1fr; align-content: start; align-items: start; gap: 14px 18px; min-height: 0; padding: 24px; }
#how .step .step-cubes { grid-column: 1; grid-row: 1; display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; align-self: center; transform: none; }
#how .step .step-title { grid-column: 2; grid-row: 1; justify-self: start; align-self: center; text-align: left; font-size: 22px; }
#how .step .step-copy { grid-column: 1 / -1; grid-row: 2; }
#how .cube-pending { filter: grayscale(1); opacity: .18; }
@media (min-width: 821px) {
  #how .step:last-child { grid-column: span 2; }
}
@media (min-width: 1100px) {
  #how .steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #how .step { min-height: 220px; padding: 30px; grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto 1fr; gap: 16px; }
  #how .step .step-cubes { grid-column: 1; grid-row: 1; }
  #how .step .step-title { grid-column: 1; grid-row: 2; font-size: 28px; }
  #how .step .step-copy { grid-column: 1; grid-row: 3; font-size: 19px; line-height: 1.5; }
  #how .step-cubes img { width: 24px; height: 27px; }
  #how .step:last-child { grid-column: 3; grid-row: 1 / 3; grid-template-rows: auto auto auto; align-content: end; gap: 18px; padding: 32px; }
  #how .step:last-child .step-title { font-size: 40px; }
  #how .step:last-child .step-copy { font-size: 24px; }
  #how .step:last-child .step-cubes img { width: 32px; height: 36px; }
}
@media (max-width: 820px) {
  #how .steps { grid-template-columns: minmax(0,1fr); }
  #how .step { padding: 22px 20px; gap: 14px 16px; }
  #how .step .step-title { font-size: 20px; }
}
@media (max-width: 360px) {
  #how .step { padding: 18px 16px; column-gap: 12px; }
  #how .step .step-cubes { gap: 3px; }
  #how .step-cubes img { width: 16px; height: 18px; }
  #how .step .step-title { font-size: 18px; }
}

/* A quiet terminal-style cursor on the two main wordmarks. */
.ne-hero-logo .ne-word::after,
.cta-brand .word::after {
  content: "";
  display: inline-block;
  width: .075em;
  height: .94em;
  margin-left: .12em;
  vertical-align: -.04em;
  background: var(--ne-lime);
  animation: wordmark-cursor 1.4s step-end infinite;
}
@keyframes wordmark-cursor {
  0%, 54% { opacity: 1; }
  55%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ne-hero-logo .ne-word::after,
  .cta-brand .word::after { animation: none; }
}

/* The full sentence retains its layout while individual words appear. */
.intro-caret { display: inline-block; width: .075em; height: .94em; margin-left: .12em; vertical-align: -.04em; background: var(--ne-lime); animation: wordmark-cursor 1.4s step-end infinite; }
.intro-word.is-waiting { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .intro-caret { animation: none; }
  .intro-word.is-waiting { visibility: visible; }
}

.intro-ending-weight, .intro-ending { font-weight: 800; }
.intro-ending { color: var(--ne-lime); }
.intro-ending-part { animation: intro-lime-in 800ms ease-in-out var(--intro-delay, 300ms) both; }
@keyframes intro-lime-in {
  from { color: var(--text-on-ink-muted); }
  to { color: var(--ne-lime); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-ending-part { animation: none; }
  .intro-caret.is-finishing { animation: none; opacity: 0; }
}

.intro-caret.is-finishing { animation: intro-cursor-out 800ms ease-in-out 300ms both; }
@keyframes intro-cursor-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-caret.is-finishing { animation: none; opacity: 0; }
}

.footer-rights { white-space: nowrap; }
@media (max-width: 600px) {
  .footer-rights { display: block; margin-top: 4px; }
}
