/* Mentaligent redesign. Bespoke token layer + components. No UI library. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/mentaligent-redesign-assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/mentaligent-redesign-assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  src: url("/mentaligent-redesign-assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/mentaligent-redesign-assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #06140e;
  --surface: #0a1c14;
  --raised: #0e2419;
  --line: rgba(215, 242, 166, 0.14);
  --line-strong: rgba(215, 242, 166, 0.32);
  --text: #edf3e8;
  --muted: #93a79b;
  --lime: #d7f2a6;
  --teal: #2e8b78;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: var(--body);
  --r-panel: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--lime);
  color: var(--ground);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 90;
  padding: 0.6rem 0.9rem;
  background: var(--lime);
  color: var(--ground);
  font-weight: 700;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - clamp(2rem, 6.5vw, 7rem), 1300px);
  margin-inline: auto;
}

.sec {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  position: relative;
}

.sec-head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: clamp(2rem, 3.5vw, 3.2rem);
}

.sec-title {
  font-size: clamp(2rem, 3.9vw, 3.6rem);
  letter-spacing: -0.04em;
}

.sec-intro {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  max-width: 60ch;
}

.hair {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* Header ------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brandlink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.brandmark {
  width: 170px;
  height: auto;
}

.brand-logo {
  position: relative;
  display: block;
}

.brand-logo img {
  width: 100%;
  clip-path: inset(0 0 0 25%);
  filter: brightness(0) invert(1);
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/mentaligent-redesign-assets/mentaligent-logo-color.png") center / 100% 100% no-repeat;
  clip-path: inset(0 75% 0 0);
  filter: brightness(1.2) saturate(1.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.9rem;
}

.navlink {
  position: relative;
  padding-block: 0.25rem;
  color: var(--text);
  opacity: 0.86;
  transition: opacity 0.2s var(--ease);
}

.navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.navlink:hover {
  opacity: 1;
}

.navlink:hover::after {
  transform: scaleX(1);
}

.langwrap {
  position: relative;
  display: flex;
  align-items: center;
}

.langsel {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.9rem 0.45rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.langsel:hover {
  border-color: var(--line-strong);
  background: rgba(215, 242, 166, 0.05);
}

.langsel,
.cselect {
  color-scheme: light;
}

.langsel option,
.cselect option {
  background-color: #f7f8f1;
  color: #172e2b;
}

.langwrap::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--lime);
  border-bottom: 1.5px solid var(--lime);
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}

.headcta {
  --mx: 0px;
  --my: 0px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transform: translate(var(--mx), var(--my));
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.headcta:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #0a1f15;
}

.menubtn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}

.menubtn span {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.menubtn span::before,
.menubtn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}

.menubtn span::before {
  top: -5px;
}

.menubtn span::after {
  top: 5px;
}

.mobilepanel {
  display: none;
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 86% 8%, rgba(46, 139, 120, 0.22), transparent 58%),
    radial-gradient(70% 60% at 6% 100%, rgba(215, 242, 166, 0.08), transparent 70%),
    var(--ground);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(215, 242, 166, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(215, 242, 166, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 70% at 60% 40%, black, transparent 85%);
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-46%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28rem, 46vw, 52rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 242, 166, 0.13);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  min-height: calc(100dvh - 72px);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 36rem;
}

.herotitle {
  max-width: 11ch;
  font-size: clamp(2.85rem, 5.5vw, 6.1rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.herotitle span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.herotitle span > b {
  display: block;
  font-weight: inherit;
  animation: rise 1s var(--ease) both;
}

.herotitle span:nth-child(2) > b {
  animation-delay: 0.09s;
  color: var(--lime);
}

.herotitle span:nth-child(3) > b {
  animation-delay: 0.18s;
  color: var(--lime);
}

@keyframes rise {
  from {
    transform: translateY(112%);
  }
  to {
    transform: translateY(0);
  }
}

.herosub {
  margin-top: clamp(1.2rem, 2vw, 1.7rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  max-width: 46ch;
  animation: fadeUp 0.9s 0.35s var(--ease) both;
}

@keyframes fadeUp {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  animation: fadeUp 0.9s 0.45s var(--ease) both;
}

.cta-slide {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  background: var(--lime);
  color: #082013;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s var(--ease), transform 0.18s var(--ease);
}

.cta-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

.cta-slide:hover::before {
  transform: translateY(0);
}

.cta-slide:hover {
  color: #06140e;
}

.cta-slide:active {
  transform: translateY(1px);
}

.cta-slide .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.cta-slide:hover .arrow {
  transform: translate(4px, 4px);
}

.hero-quiet {
  color: var(--muted);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-quiet:hover {
  color: var(--text);
  border-color: var(--lime);
}

/* Console ------------------------------------------------------------ */

.console {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: linear-gradient(165deg, rgba(14, 36, 25, 0.94), rgba(6, 20, 14, 0.97));
  box-shadow: 0 50px 90px -60px #000, inset 0 1px 0 rgba(215, 242, 166, 0.08);
  overflow: hidden;
  animation: fadeUp 1s 0.3s var(--ease) both;
}

.cbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.cmark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--lime);
  color: #082013;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
}

.cname {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
}

.cbadge {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.cchips {
  display: flex;
  gap: 0.3rem;
  padding: 0.6rem 0.9rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.cchips::-webkit-scrollbar {
  display: none;
}

.cchip {
  flex: 0 0 auto;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.cchip:hover {
  color: var(--text);
  border-color: var(--line);
}

.cchip.is-on {
  background: rgba(215, 242, 166, 0.12);
  border-color: rgba(215, 242, 166, 0.34);
  color: var(--lime);
}

.cbody {
  padding: clamp(1rem, 1.6vw, 1.35rem);
  display: grid;
  gap: 0.85rem;
}

.cfield {
  display: grid;
  gap: 0.4rem;
}

.clabel {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cselectwrap {
  position: relative;
}

.cselectwrap::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--lime);
  border-bottom: 1.5px solid var(--lime);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.cselect {
  width: 100%;
  appearance: none;
  background: rgba(6, 20, 14, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.62rem 2rem 0.62rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.cselect:hover {
  border-color: var(--line-strong);
}

.cfixed {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.cfixed b {
  color: var(--text);
  font-weight: 500;
}

.canswer {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
  min-height: 11.5rem;
  align-content: start;
}

.canswer .label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.thinking {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.thinking i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  animation: blink 1s infinite ease-in-out;
}

.thinking i:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.chead {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cdetail {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

.csource {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: #b9cbbd;
}

.srcmark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(46, 139, 120, 0.24);
  color: var(--lime);
  font-family: var(--display);
  font-size: 0.7rem;
  flex: 0 0 auto;
}

.typed {
  border-right: 1px solid var(--lime);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

/* Audience ----------------------------------------------------------- */

.aud {
  border-bottom: 1px solid var(--line);
}

.aud-list {
  display: grid;
}

.aud-row {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) 13rem 1.7rem;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background 0.3s var(--ease);
}

.aud-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.aud-row:hover {
  background: rgba(215, 242, 166, 0.035);
}

.aud-num {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}

.aud-row:hover .aud-num,
.aud-row.is-open .aud-num {
  color: var(--lime);
  transform: translateX(4px);
}

.aud-name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  display: grid;
  gap: 0.3rem;
}

.aud-desc {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--muted);
  max-width: 40ch;
}

.aud-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.62) contrast(1.02) brightness(0.9);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}

.aud-row:hover .aud-thumb,
.aud-row.is-open .aud-thumb {
  filter: saturate(0.9) contrast(1.03) brightness(1);
  transform: scale(1.02);
}

.aud-caret {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.8rem;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease);
}

.aud-row.is-open .aud-caret {
  transform: rotate(45deg);
  background: var(--lime);
  color: var(--ground);
}

.aud-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}

.aud-expand.is-open {
  grid-template-rows: 1fr;
}

.aud-expand-inner {
  overflow: hidden;
}

.aud-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-bottom: 1.4rem;
}

.aud-example {
  background: var(--ground);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.aud-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

.aud-q {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.aud-a {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.aud-note {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marquee ------------------------------------------------------------ */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(215, 242, 166, 0.04);
  padding-block: 0.95rem;
}

.mtrack {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
  will-change: transform;
}

.mgroup {
  display: flex;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

.marquee:hover .mtrack {
  animation-play-state: paused;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.mitem {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: #cfe0cd;
  white-space: nowrap;
}

.mdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.7;
}

/* Examples index ----------------------------------------------------- */

.ex {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(46, 139, 120, 0.07), transparent 40%),
    var(--ground);
}

.ex-grid {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.ex-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.ex-dept {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.4rem 0.72rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease),
    background 0.25s var(--ease);
}

.ex-dept::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.ex-dept:hover {
  color: var(--text);
  padding-left: 1.3rem;
}

.ex-dept.is-on {
  color: var(--text);
  padding-left: 1.3rem;
  background: rgba(215, 242, 166, 0.045);
}

.ex-dept.is-on::before {
  transform: scaleY(1);
}

.ex-dept-num {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.7;
  min-width: 1.5rem;
}

.ex-dept-name {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.ex-detail {
  display: grid;
  gap: 1.2rem;
  padding-top: 0.2rem;
}

.ex-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.ex-num {
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 242, 166, 0.4);
  letter-spacing: -0.04em;
}

.ex-field {
  text-align: right;
  display: grid;
  gap: 0.3rem;
}

.ex-field span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ex-field b {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--lime);
}

.ex-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ex-opt {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.ex-opt:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.ex-opt.is-on {
  background: var(--lime);
  border-color: var(--lime);
  color: #082013;
  font-weight: 500;
}

.ex-answer {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
  animation: fadeUp 0.45s var(--ease) both;
}

.ex-headline {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 28ch;
}

.ex-body {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 58ch;
}

.ex-source {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #b9cbbd;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  justify-self: start;
}

/* Process ------------------------------------------------------------ */

.proc {
  border-bottom: 1px solid var(--line);
}

.proc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 0;
}

.steps::before {
  content: "";
  position: absolute;
  left: 1.32rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: var(--line);
}

.steps::after {
  content: "";
  position: absolute;
  left: 1.32rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: var(--lime);
  transform-origin: top;
  transform: scaleY(var(--rail, 0));
  transition: transform 0.6s var(--ease);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 1.1rem;
  padding-block: 1.5rem;
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ground);
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}

.step.is-on .step-num {
  color: var(--ground);
  background: var(--lime);
  border-color: var(--lime);
}

.step h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 46ch;
}

.step-rail {
  position: absolute;
  left: 1.32rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: linear-gradient(var(--lime), rgba(215, 242, 166, 0.2));
  transform-origin: top;
  transform: scaleY(var(--rail, 0));
  transition: transform 0.4s var(--ease);
}

.proc-visual {
  display: grid;
  gap: 1rem;
  position: relative;
}

.proc-plate {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  filter: saturate(0.85) brightness(0.95);
}

.proc-card {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: rgba(10, 28, 20, 0.75);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.proc-card span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.proc-card p {
  font-size: 0.92rem;
  color: #cfdfd2;
  line-height: 1.55;
}

/* Band --------------------------------------------------------------- */

.band {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.band img {
  width: 100%;
  height: clamp(18rem, 46vw, 34rem);
  object-fit: cover;
  object-position: center 8%;
  filter: saturate(0.55) contrast(1.02) brightness(0.72);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 14, 0.55), rgba(6, 20, 14, 0.15) 45%, var(--ground));
}

.band-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.4rem, 3vw, 2.6rem);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.band-caption p {
  max-width: 30ch;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.band-caption span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

/* Practical ---------------------------------------------------------- */

.prac {
  border-bottom: 1px solid var(--line);
}

.prac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(16rem, 30vw, 26rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.prow {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) 2rem;
  align-items: start;
  gap: 1rem;
  width: 100%;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background 0.3s var(--ease), padding 0.35s var(--ease);
}

.prow:last-of-type {
  border-bottom: 1px solid var(--line);
}

.prow.is-on {
  padding-left: 0.7rem;
  background: rgba(215, 242, 166, 0.035);
}

.prow-num {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.5rem;
}

.prow-title {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease);
}

.prow.is-on .prow-title {
  color: var(--lime);
}

.prow-body {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 52ch;
}

.prow-arrow {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 0.5rem;
  transition: transform 0.35s var(--ease), color 0.3s var(--ease);
}

.prow.is-on .prow-arrow {
  color: var(--lime);
  transform: translate(3px, 3px);
}

.prac-window {
  position: sticky;
  top: 6.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.prac-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.9);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}

.prac-window img.is-on {
  opacity: 1;
  transform: scale(1);
}

.prac-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 20, 14, 0.85));
  pointer-events: none;
}

.prac-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-size: 0.78rem;
  color: #cfdfd2;
}

/* FAQ ---------------------------------------------------------------- */

.faq {
  border-bottom: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.qa-list {
  border-top: 1px solid var(--line);
}

.qa {
  border-bottom: 1px solid var(--line);
}

.qa-btn {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  width: 100%;
  padding-block: 1.35rem;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 0.25s var(--ease);
}

.qa-btn:hover {
  color: var(--lime);
}

.qa-glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--lime);
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.qa.is-open .qa-glyph {
  transform: rotate(45deg);
  background: var(--lime);
  color: var(--ground);
}

.qa-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.qa.is-open .qa-panel {
  grid-template-rows: 1fr;
}

.qa-inner {
  overflow: hidden;
}

.qa-a {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
  max-width: 62ch;
  padding-bottom: 1.4rem;
}

/* Demo --------------------------------------------------------------- */

.demo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(215, 242, 166, 0.1), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(46, 139, 120, 0.18), transparent 65%),
    var(--ground);
}

.demo::before {
  content: "?";
  position: absolute;
  left: -3vw;
  bottom: -22%;
  font-family: var(--display);
  font-size: clamp(24rem, 40vw, 44rem);
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 242, 166, 0.1);
  pointer-events: none;
}

.demo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.demo-title {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  letter-spacing: -0.045em;
  max-width: 14ch;
}

.demo-intro {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 1rem;
}

.demo-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.55rem 0.1rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 4.6rem;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f8479;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(215, 242, 166, 0.04);
}

.field.err input,
.field.err textarea {
  border-color: #e79c8b;
}

.field .hint {
  font-size: 0.76rem;
  color: #e79c8b;
}

.fsubmit {
  justify-self: start;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
  padding: 0.9rem 1.35rem;
  background: var(--lime);
  color: #082013;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.18s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.fsubmit:hover:not(:disabled) {
  background: var(--text);
}

.fsubmit:active:not(:disabled) {
  transform: translateY(1px);
}

.fsubmit:disabled {
  cursor: progress;
  opacity: 0.75;
}

.formnote {
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2rem;
}

.formnote.bad {
  color: #e79c8b;
}

.form-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.success {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  background: rgba(10, 28, 20, 0.85);
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
  animation: fadeUp 0.5s var(--ease) both;
}

.success h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.success p {
  color: var(--muted);
  font-size: 0.92rem;
}

.success pre {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 20, 14, 0.8);
  color: #cfdfd2;
  font-family: var(--body);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.copybtn {
  justify-self: start;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.copybtn:hover {
  background: var(--lime);
  color: var(--ground);
}

/* Footer ------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.foot-mark {
  width: clamp(11rem, 22vw, 17rem);
  height: auto;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--text);
}

.totop {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.88rem;
}

.totop i {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-style: normal;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.totop:hover i {
  transform: translateY(-3px);
  background: var(--lime);
  color: var(--ground);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Reveal (transform only, never waits at opacity 0) ------------------- */

.rev {
  transform: translateY(20px);
  transition: transform 0.8s var(--ease);
}

.nf {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.nf-inner {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  text-align: center;
  justify-items: center;
}

.nf-code {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.nf-inner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.nf-inner p {
  color: var(--muted);
  font-size: 0.96rem;
}

.nf-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.rev.is-in {
  transform: none;
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: 2.5rem 3rem;
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 40ch;
  }

  .hero-mark {
    top: 22%;
    right: -12vw;
    font-size: 34rem;
    opacity: 0.7;
  }

  .console {
    max-width: 34rem;
  }

  .ex-grid {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .prac-grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }
}

@media (max-width: 900px) {
  .nav,
  .langwrap,
  .headcta {
    display: none;
  }

  .menubtn {
    display: inline-flex;
  }

  .mobilepanel {
    display: grid;
    gap: 0.2rem;
    padding: 0.6rem 0 1.2rem;
    border-top: 1px solid var(--line);
  }

  .mobilepanel a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
  }

  .mobilepanel .langwrap {
    display: flex;
    padding-top: 0.9rem;
  }

  .aud-row {
    grid-template-columns: 2.6rem minmax(0, 1fr) 1.7rem;
  }

  .aud-thumb {
    display: none;
  }

  .ex-grid,
  .proc-grid,
  .prac-grid,
  .faq-grid,
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ex-list {
    display: flex;
    overflow-x: auto;
    gap: 0.4rem;
    border-top: 0;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
  }

  .ex-list::-webkit-scrollbar {
    display: none;
  }

  .ex-dept {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
  }

  .ex-dept::before {
    display: none;
  }

  .ex-dept.is-on,
  .ex-dept:hover {
    padding-left: 0.9rem;
    background: var(--lime);
    color: #082013;
    border-color: var(--lime);
  }

  .ex-dept-num {
    display: none;
  }

  .ex-field {
    text-align: left;
  }

  .ex-top {
    align-items: center;
  }

  .prac-window {
    position: relative;
    top: 0;
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .prac-caption {
    display: none;
  }

  .step-rail,
  .steps::before {
    display: none;
  }

  .step {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.9rem;
    border-top: 1px solid var(--line);
  }

  .step-num {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (max-width: 620px) {
  .brandmark {
    width: 140px;
  }

  .herotitle {
    font-size: clamp(2.5rem, 10.5vw, 3.4rem);
  }

  .aud-examples {
    grid-template-columns: minmax(0, 1fr);
  }

  .aud-row {
    gap: 0.8rem;
  }

  .band-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .prow {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .prow-arrow {
    display: none;
  }

  .foot-top {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .herotitle span > b {
    transform: none !important;
  }

  .rev {
    transform: none;
  }

  .mtrack {
    animation: none;
  }
}
