/* =====================================================================================
   Nomad Sounds site theme, after the Inumaki template (FF Studio):
   off-white and cobalt blue, Bricolage Grotesque capitals, Kosugi for text and labels,
   "(Label)" captions, underlined arrow links, and fade-in-up entrances while scrolling.

   Load order: site.css (Tailwind utilities used by the scripts' own markup), custom.css
   (layout of the shop, player and account widgets), then this file, which sets the look.
   ===================================================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin-ext.woff2) format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kosugi"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/kosugi-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kosugi"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/kosugi-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Decorative Japanese labels only: a subset with just the characters they use (Google Fonts "text=" subset).
   A separate family, so Chinese text on /cn/ pages never mixes these glyphs with the system Chinese font.
   Adding a label with a new character: re-download the subset with every character the labels use. */
@font-face { font-family: "Kosugi Deco"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/kosugi-kana.woff2) format("woff2");
  unicode-range: U+3000-30FF, U+4E00-9FFF, U+FF00-FFEF; }

/* ---------- Tokens ---------- */
:root {
  --im-blue: #121212;
  --im-blue-dk: #3A3A3A;
  --im-red: #E53935;
  --im-yellow: #F2C230;
  --im-bg: #F7F7F7;
  --im-cream: #FFF8EF;
  --im-black: #121212;
  --im-ice: #BDBDBD;
  --im-border: #C6C6C6;
  --im-grey: #E8E8E8;
  --im-white: #FFFFFF;
  --im-head: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --im-body: "Kosugi", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --im-gutter: clamp(20px, 4.2vw, 64px);
  --im-max: 1280px;
  --im-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* The site's original colour tokens, used by markup the scripts build (player bar, screenshot
     viewer, cart, account, download buttons): mapped onto the new palette. */
  --color-ink: #F7F7F7;
  --color-ink-raised: #FFFFFF;
  --color-ink-panel: #E8E8E8;
  --color-chalk: #121212;
  --color-fog: #3A3A3A;
  --color-fog-dim: #6B6B6B;
  --color-gold: #121212;
  --color-gold-bright: #3A3A3A;
  --color-line: #C6C6C6;
  --color-line-soft: #DDDDDD;
  --font-sans: var(--im-body);
}

/* ---------- Base ---------- */
html.im { background: var(--im-bg); scroll-padding-top: 6rem; }
html.im body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--im-bg); color: var(--im-blue);
  font-family: var(--im-body); font-size: 15px; line-height: 1.7; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html.im ::selection { background: var(--im-blue); color: var(--im-cream); }
html.im main { flex: 1 0 auto; }
html.im img, html.im video { max-width: 100%; }
html.im a { color: inherit; }
html.im :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.im-skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.75rem 1rem; background: var(--im-blue); color: var(--im-cream); }
.im-skip:focus { left: 1rem; top: 1rem; }

/* ---------- Layout ---------- */
.im-wrap { width: 100%; max-width: calc(var(--im-max) + 2 * var(--im-gutter)); margin: 0 auto; padding: 0 var(--im-gutter); }
.im-sec { position: relative; padding: clamp(70px, 9vw, 120px) 0; }
.im-sec--tight { padding: clamp(50px, 6vw, 70px) 0; }
.im-sec--top0 { padding-top: 0; }
.im-sec--bot0 { padding-bottom: 0; }
.im-light { background: var(--im-bg); color: var(--im-blue); }
.im-blue { background: var(--im-blue); color: var(--im-cream); }
.im-white { background: var(--im-white); color: var(--im-blue); }
.im-row { display: flex; gap: clamp(24px, 4vw, 60px); }
.im-row > * { min-width: 0; }
.im-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.im-split--wide { grid-template-columns: 1.35fr 1fr; }
.im-split--narrow { grid-template-columns: 1fr 1.35fr; }
.im-split--center { align-items: center; }
.im-stack > * + * { margin-top: 1.25rem; }
.im-mt-s { margin-top: 1rem; } .im-mt { margin-top: 2rem; } .im-mt-l { margin-top: clamp(3rem, 6vw, 5rem); }
.im-right { text-align: right; } .im-center { text-align: center; }
.im-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.im-hero-title, .im-big, .im-h1, .im-h2, .im-h3, .im-h4, .im-h5, .im-statement {
  margin: 0; font-family: var(--im-head); text-transform: uppercase; font-optical-sizing: auto;
  letter-spacing: -0.012em; color: inherit;
}
.im-hero-title { font-weight: 700; line-height: 0.86; font-size: clamp(3.6rem, 15.5vw, 16rem); letter-spacing: -0.02em; }
.im-hero-title.im-fit-m { font-size: clamp(3rem, 11.5vw, 12rem); }
.im-hero-title.im-fit-s { font-size: clamp(2.6rem, 8.2vw, 8.75rem); line-height: 0.9; }
.im-hero-title.im-fit-xs { font-size: clamp(2.3rem, 6.4vw, 6.5rem); line-height: 0.92; }
.im-big { font-weight: 700; line-height: 0.9; font-size: clamp(3.4rem, 11vw, 10rem); letter-spacing: -0.02em; }
.im-big.im-fit-m { font-size: clamp(3rem, 8.5vw, 8rem); }
.im-h1 { font-weight: 700; line-height: 0.95; font-size: clamp(2.75rem, 5.6vw, 4.5rem); }
.im-h2 { font-weight: 700; line-height: 1; font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.im-h3 { font-weight: 600; line-height: 1.05; font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.im-h4 { font-weight: 600; line-height: 1.1; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.im-h5 { font-weight: 600; line-height: 1.2; font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.im-statement { font-weight: 700; line-height: 1.04; font-size: clamp(1.9rem, 3.6vw, 3.25rem); text-align: justify; text-align-last: left; hyphens: manual; }
.im-statement--sm { font-size: clamp(1.6rem, 2.7vw, 2.4rem); line-height: 1.08; font-weight: 600; }
.im-cap { margin: 0; font-family: var(--im-body); font-size: 13px; line-height: 1.75; letter-spacing: 0.02em; }
.im-cap--lg { font-size: 15px; }
.im-just { text-align: justify; text-align-last: left; }
.im-label { display: inline-block; margin: 0; font-family: var(--im-body); font-size: 13px; line-height: 1.5; letter-spacing: 0.02em; white-space: nowrap; }
.im-label::before { content: "("; } .im-label::after { content: ")"; }
.im-lead { margin: 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.75; }
.im-prose { max-width: 46rem; }
.im-prose p, .im-prose ul, .im-prose ol { margin: 0; }
.im-prose > * + * { margin-top: 1.1em; }
.im-prose h2, .im-prose h3 { margin: 2.2em 0 0; font-family: var(--im-head); font-weight: 600; font-size: 1.35rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0; }
.im-prose h2 + *, .im-prose h3 + * { margin-top: 0.7em; }
.im-prose a:not(.im-arrow) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.im-prose a:not(.im-arrow):hover { color: var(--im-blue-dk); }
.im-prose strong { font-weight: 400; color: var(--im-black); }
.im-prose ul { padding-left: 1.2em; list-style: square; }
.im-prose ol { padding-left: 1.4em; list-style: decimal; }
.im-prose li + li { margin-top: 0.4em; }
.im-blue .im-prose strong { color: var(--im-white); }

/* Decorative Japanese label + line, as in the template ("音楽アーティスト ——") */
.im-mark { display: flex; align-items: center; gap: 1.25rem; font-family: "Kosugi Deco", var(--im-body); }
.im-kana { font-size: clamp(1.05rem, 2vw, 1.75rem); line-height: 1; letter-spacing: 0.04em; font-weight: 400; -webkit-text-stroke: 0.4px currentColor; white-space: nowrap; }
.im-mark .im-rule { flex: 0 0 auto; width: clamp(60px, 10vw, 150px); height: 1px; background: currentColor; transform-origin: left center; }
.im-mark--end { justify-content: flex-end; }
.im-mark--sm .im-kana { font-size: clamp(0.95rem, 1.3vw, 1.15rem); }

/* ---------- Links and buttons ---------- */
.im-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 0 10px; border-bottom: 1px solid currentColor;
  font-family: var(--im-body); font-size: 15px; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none;
  -webkit-text-stroke: 0.25px currentColor; transition: color .3s, border-color .3s; cursor: pointer; background: none;
}
.im-arrow::after {
  content: ""; width: 0.8em; height: 0.8em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--im-ease);
}
.im-arrow:hover { color: var(--im-blue-dk); }
.im-arrow:hover::after { transform: translate(2px, -2px); }
.im-blue .im-arrow:hover, .im-photo .im-arrow:hover, .im-footer .im-arrow:hover { color: var(--im-ice); }
.im-arrow--down::after { transform: rotate(90deg); }
.im-arrow--down:hover::after { transform: rotate(90deg) translate(2px, -2px); }

.im-btn, .ke-btn.ns-add, .ke-btn.ns-checkout, html.im .ke-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem 1.75rem; border: 1px solid var(--im-blue); border-radius: 0; background: var(--im-blue); color: var(--im-cream);
  font-family: var(--im-body); font-size: 14px; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  -webkit-text-stroke: 0.3px currentColor; box-shadow: none; filter: none; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.im-btn:hover, html.im .ke-btn:hover:not(:disabled) { background: var(--im-blue-dk); border-color: var(--im-blue-dk); filter: none; }
.im-btn--line { background: transparent; color: var(--im-blue); }
.im-btn--line:hover { background: var(--im-blue); color: var(--im-cream); }
.im-blue .im-btn, .im-photo .im-btn { background: var(--im-cream); border-color: var(--im-cream); color: var(--im-blue); }
.im-blue .im-btn:hover, .im-photo .im-btn:hover { background: var(--im-ice); border-color: var(--im-ice); }
.im-blue .im-btn--line, .im-photo .im-btn--line { background: transparent; color: var(--im-cream); }
.im-blue .im-btn--line:hover, .im-photo .im-btn--line:hover { background: var(--im-cream); color: var(--im-blue); }
html.im .ke-btn:disabled { opacity: 0.55; cursor: default; }

/* ---------- Header ---------- */
.im-header {
  position: fixed; inset: 0 0 auto; z-index: 40; color: var(--im-cream);
  transition: background-color .45s var(--im-ease), padding .45s var(--im-ease), box-shadow .45s;
}
.im-header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 22px; padding-bottom: 22px; transition: padding .45s var(--im-ease); }
.im-header.is-solid { background: var(--im-blue); box-shadow: 0 1px 0 rgb(255 255 255 / 0.12); }
.im-header.is-solid .im-header-in { padding-top: 12px; padding-bottom: 12px; }
.im-logo { display: block; flex: none; line-height: 0; }
.im-logo img { height: 30px; width: auto; }
.im-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.im-nav a, .im-tools > a { position: relative; padding: 6px 0; font-size: 14px; line-height: 1; letter-spacing: 0.02em; text-decoration: none; -webkit-text-stroke: 0.3px currentColor; transition: color .3s; }
.im-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--im-ease); }
.im-nav a:hover, .im-tools > a:hover { color: var(--im-ice); }
.im-nav a:hover::after, .im-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.im-tools { display: flex; align-items: center; gap: 1.1rem; }
.im-header .ns-currency select {
  padding: 0.3rem 1.25rem 0.3rem 0.15rem; border: 0; border-bottom: 1px solid rgb(255 248 239 / 0.45); border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23FFF8EF' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 0.1rem center / 0.65rem;
  color: var(--im-cream); font-family: var(--im-body); font-size: 13px; letter-spacing: 0.03em;
}
.im-header .ns-currency select:hover, .im-header .ns-currency select:focus-visible { border-bottom-color: var(--im-cream); color: var(--im-cream); }
.im-header .ns-currency option { background: var(--im-white); color: var(--im-blue); }
.im-header .ns-cart-link { display: inline-flex; align-items: center; gap: 0.45rem; }
.im-header .ns-cart-link svg { width: 18px; height: 18px; }
.im-header .ns-cart-count { min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; border-radius: 0; background: var(--im-yellow); color: var(--im-black); font-family: var(--im-body); font-size: 11px; font-weight: 400; -webkit-text-stroke: 0.3px currentColor; }
.im-menu { position: relative; display: none; }
.im-menu summary { display: flex; align-items: center; gap: 0.6rem; padding: 6px 0; list-style: none; cursor: pointer; font-size: 14px; -webkit-text-stroke: 0.3px currentColor; }
.im-menu summary::-webkit-details-marker { display: none; }
.im-menu summary i { display: grid; gap: 5px; }
.im-menu summary i b { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .35s var(--im-ease); }
.im-menu[open] summary i b:first-child { transform: translateY(3px) rotate(45deg); }
.im-menu[open] summary i b:last-child { transform: translateY(-3px) rotate(-45deg); }
.im-menu-panel {
  position: fixed; inset: 0 0 auto; z-index: -1; padding: 92px var(--im-gutter) 36px; background: var(--im-blue); color: var(--im-cream);
  animation: im-drop .5s var(--im-ease);
}
.im-menu-panel a { display: block; padding: 10px 0; border-bottom: 1px solid rgb(255 248 239 / 0.25); font-family: var(--im-head); font-weight: 700; font-size: clamp(2rem, 9vw, 3.25rem); line-height: 1; text-transform: uppercase; text-decoration: none; }
.im-menu-panel a:hover { color: var(--im-ice); }
.im-menu-panel .im-mark { margin-top: 1.75rem; }
@keyframes im-drop { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- Heroes ---------- */
.im-hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: clamp(150px, 16vw, 210px) 0 clamp(60px, 7vw, 100px); overflow: hidden; color: var(--im-cream); background: var(--im-blue); }
.im-hero--photo { min-height: 100svh; background: #1c1c1c; }
.im-hero-media { position: absolute; inset: 0; z-index: 0; }
.im-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 30%; transform: scale(1.06); animation: im-settle 2.4s var(--im-ease) forwards; }
.im-hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgb(10 10 10 / 0.45) 0%, rgb(10 10 10 / 0) 24%, rgb(10 10 10 / 0) 52%, rgb(10 10 10 / 0.55) 100%); }
@keyframes im-settle { to { transform: scale(1); } }
.im-hero > .im-wrap { position: relative; z-index: 1; }
.im-hero-top { display: grid; grid-template-columns: minmax(0, 17rem) 1fr minmax(0, 13rem); gap: 2rem; align-items: start; }
.im-hero-top > :last-child { justify-self: end; text-align: right; }
.im-hero-meta { display: flex; flex-direction: column; gap: 0.25rem; }
.im-hero-bottom { margin-top: clamp(70px, 12vw, 190px); }
.im-hero--photo .im-hero-bottom { margin-top: clamp(110px, 24vh, 300px); }
.im-hero-bottom .im-mark { margin-bottom: clamp(10px, 1.6vw, 22px); }
.im-hero--end .im-hero-bottom { text-align: right; }
.im-hero--end .im-mark { justify-content: flex-end; }
.im-hero--end .im-hero-top { grid-template-columns: minmax(0, 19rem) 1fr; }
.im-hero--end .im-hero-top > :last-child { justify-self: start; text-align: left; }
/* blue heroes: a large outlined Japanese character drifting slowly behind the title */
.im-hero-ghost { position: absolute; right: -2vw; top: 50%; z-index: 0; font-family: "Kosugi Deco", var(--im-body); font-size: clamp(14rem, 42vw, 40rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgb(255 248 239 / 0.14); transform: translateY(-50%); pointer-events: none; user-select: none; white-space: nowrap; animation: im-ghost 22s ease-in-out infinite alternate; }
@keyframes im-ghost { from { transform: translate(0, -50%); } to { transform: translate(-4vw, -48%); } }

/* ---------- Statement block (picture + justified capitals) ---------- */
.im-intro { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.im-intro-pic { position: relative; overflow: hidden; background: var(--im-grey); }
.im-intro-pic img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--im-ease); }
.im-intro-pic:hover img { transform: scale(1.04); }
.im-intro-foot { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 60px); margin-top: clamp(36px, 5vw, 60px); align-items: end; }
.im-list { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.9; }
.im-list li { display: flex; align-items: center; gap: 0.6rem; }
.im-list li::before { content: ""; width: 0.7em; height: 0.7em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- "Sound craft" style list: big capitals with arrows ---------- */
.im-craft { margin: 0; padding: 0; list-style: none; }
.im-craft li { display: flex; align-items: baseline; gap: 0.9rem; font-family: var(--im-head); font-weight: 600; font-size: clamp(1.5rem, 2.9vw, 2.4rem); line-height: 1.32; text-transform: uppercase; }
.im-craft li::before { content: ""; width: 0.62em; height: 0.62em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.im-craft a { text-decoration: none; transition: color .3s; }
.im-craft a:hover { color: var(--im-ice); }
.im-light .im-craft a:hover { color: var(--im-blue-dk); }
.im-tags { display: flex; gap: clamp(1.5rem, 6vw, 6rem); flex-wrap: wrap; }

/* ---------- Picture with caption ---------- */
.im-figure { margin: 0; }
.im-figure-frame { position: relative; overflow: hidden; background: var(--im-grey); }
.im-figure-frame img, .im-figure-frame video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--im-ease); }
.im-figure:hover .im-figure-frame img { transform: scale(1.04); }
.im-figure figcaption { margin-top: 0.9rem; font-size: 13px; line-height: 1.6; }
.im-gray img { filter: grayscale(1) contrast(1.05); transition: filter .8s var(--im-ease), transform 1.2s var(--im-ease); }
.im-gray:hover img { filter: grayscale(0); }

/* ---------- Works / product cards ---------- */
.im-works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); align-items: start; }
.im-card { display: block; text-decoration: none; }
.im-card-num { display: block; margin-bottom: 0.75rem; font-size: 13px; }
.im-card-frame { position: relative; overflow: hidden; background: #1c1c1c; }
.im-card-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--im-ease), filter .8s; }
.im-card-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 18 18 / 0) 45%, rgb(18 18 18 / 0.72) 100%); transition: opacity .6s; }
.im-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(16px, 2vw, 26px); color: var(--im-cream); }
.im-card-title { display: block; font-family: var(--im-head); font-weight: 600; font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.05; text-transform: uppercase; }
.im-card-sub { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; font-size: 13px; line-height: 1.4; }
.im-card-go { position: absolute; top: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px); z-index: 1; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--im-cream); color: var(--im-blue); transform: scale(0.4) rotate(-45deg); opacity: 0; transition: transform .6s var(--im-ease), opacity .4s; }
.im-card-go svg { width: 16px; height: 16px; }
.im-card:hover .im-card-frame img { transform: scale(1.06); }
.im-card:hover .im-card-go { transform: none; opacity: 1; }

/* ---------- Milestone rows (title · text · (note)) ---------- */
.im-rows { border-top: 1px solid var(--im-border); }
.im-rows > li, .im-rows > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: clamp(18px, 2.2vw, 26px) 0; border-bottom: 1px solid var(--im-border); list-style: none; transition: padding .5s var(--im-ease), background-color .5s; }
.im-rows > li:hover, .im-rows > div:hover { padding-left: 14px; padding-right: 14px; background: rgb(18 18 18 / 0.045); }
.im-rows .im-row-title { margin: 0; font-family: var(--im-head); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.1; text-transform: uppercase; }
.im-rows .im-row-text { margin: 0; font-size: 13px; line-height: 1.75; text-align: justify; text-align-last: left; }
.im-rows .im-row-note { margin: 0; font-size: 13px; text-align: right; white-space: nowrap; }
ul.im-rows, ol.im-rows { margin: 0; padding: 0; }

/* ---------- Spec table (work-detail style) ---------- */
.im-spec { margin: 0; }
.im-spec > div { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 1.6fr); gap: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--im-border); }
.im-spec > div:first-child { border-top: 1px solid var(--im-border); }
.im-spec dt { font-size: 13px; -webkit-text-stroke: 0.35px currentColor; }
.im-spec dd { margin: 0; font-size: 13px; text-align: right; }
.im-spec dd a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.im-spec .ns-daws { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 0; margin: 0; padding: 0; list-style: none; columns: auto; }
.im-spec .ns-daws li { display: inline; }
.im-spec .ns-daws li:not(:last-child)::after { content: " · "; white-space: pre; opacity: 0.55; }

/* ---------- Step cards ("Built step by step") ---------- */
.im-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; counter-reset: im-step; }
.im-steps > li { display: flex; flex-direction: column; min-height: 22rem; padding: clamp(20px, 2.2vw, 32px); background: var(--im-grey); counter-increment: im-step; transition: background-color .5s var(--im-ease), color .5s var(--im-ease); }
.im-steps > li:hover { background: var(--im-blue); color: var(--im-cream); }
.im-steps p { margin: 0; font-size: 13px; line-height: 1.75; text-align: justify; text-align-last: left; }
.im-steps .im-step-n { margin-top: auto; padding-top: 2.5rem; font-size: 13px; }
.im-steps .im-step-n::before { content: "(00-" counter(im-step) ")"; }
.im-steps h3 { margin: 1.25rem 0 0; font-family: var(--im-head); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.12; text-transform: uppercase; }
.im-steps a { text-decoration: none; }
.im-steps a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Numbers ("By numbers") ---------- */
.im-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.im-numbers b { display: block; font-family: var(--im-head); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; }
.im-numbers span { display: block; margin-top: 0.6rem; font-family: var(--im-head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Accordion (FAQ) ---------- */
.im-acc { border-top: 1px solid var(--im-border); }
.im-acc details { border-bottom: 1px solid var(--im-border); }
.im-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 0; list-style: none; cursor: pointer; font-size: 14px; -webkit-text-stroke: 0.3px currentColor; transition: color .3s; }
.im-acc summary::-webkit-details-marker { display: none; }
.im-acc summary::after { content: ""; flex: none; width: 12px; height: 12px; background:
  linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .45s var(--im-ease); }
.im-acc details[open] summary::after { transform: rotate(135deg); }
.im-acc summary:hover { color: var(--im-blue-dk); }
.im-acc .im-acc-body { padding: 0 0 18px; font-size: 13px; line-height: 1.8; text-align: justify; text-align-last: left; }
.im-acc details[open] .im-acc-body { animation: im-acc .55s var(--im-ease); }
@keyframes im-acc { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Media rows (product feature videos) ---------- */
.im-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.im-feature + .im-feature { margin-top: clamp(60px, 8vw, 110px); }
.im-feature--flip > :first-child { order: 2; }
.im-feature-media { position: relative; overflow: hidden; background: #0d0d0d; }
.im-feature-media video, .im-feature-media img { display: block; width: 100%; height: auto; }
.im-feature-copy .im-label { display: block; margin-bottom: 1rem; }
.im-feature-copy h2, .im-feature-copy h3 { margin: 0; font-family: var(--im-head); font-weight: 700; font-size: clamp(1.75rem, 3.1vw, 2.75rem); line-height: 1.02; text-transform: uppercase; }
.im-feature-copy p { margin: 1.25rem 0 0; font-size: 14px; line-height: 1.8; text-align: justify; text-align-last: left; }
.im-feature-copy ul { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--im-border); }
.im-feature-copy li { padding: 14px 0; border-bottom: 1px solid var(--im-border); }
.im-feature-copy li h3 { font-size: 1.1rem; font-weight: 600; }
.im-feature-copy li p { margin-top: 0.35rem; font-size: 13px; }

/* ---------- Photo call-to-action ("New session for you") ---------- */
.im-photo { position: relative; overflow: hidden; color: var(--im-cream); background: #161616; }
.im-photo-media { position: absolute; inset: 0; }
.im-photo-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.08); transition: transform 2.5s var(--im-ease); }
.im-photo.is-in .im-photo-media img { transform: scale(1); }
.im-photo-media::after { content: ""; position: absolute; inset: 0; background: rgb(18 18 18 / 0.58); }
.im-photo > .im-wrap { position: relative; z-index: 1; }
.im-cta-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.im-cta-top > :last-child { justify-self: end; max-width: 15rem; }
.im-cta-title { margin-top: clamp(60px, 9vw, 130px); }
.im-cta-title .im-big { display: block; }
.im-cta-title .im-big + .im-big { text-align: right; }
.im-cta-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: end; margin-top: clamp(40px, 6vw, 80px); }
.im-cta-foot > :last-child { justify-self: end; }

/* ---------- Footer ---------- */
.im-footer { background: var(--im-blue); color: var(--im-cream); padding: clamp(70px, 8vw, 100px) 0 20px; overflow: hidden; }
.im-foot-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; padding-bottom: clamp(36px, 4vw, 50px); }
.im-foot-top h2 { margin: 0; font-family: var(--im-head); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.im-foot-top p { max-width: 22rem; margin: 0.9rem 0 0; font-size: 13px; line-height: 1.7; }
.im-foot-nav { display: flex; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.im-foot-nav a { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid transparent; font-size: 14px; text-decoration: none; -webkit-text-stroke: 0.3px currentColor; transition: color .3s, border-color .3s; }
.im-foot-nav a:hover { color: var(--im-ice); border-bottom-color: var(--im-ice); }
.im-wordmark { display: block; margin: clamp(14px, 2vw, 30px) 0 clamp(10px, 1.5vw, 20px); font-family: var(--im-head); font-weight: 700; font-size: clamp(3rem, 14.6vw, 13.6rem); line-height: 0.8; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; text-align: center; }
.im-foot-bottom { display: flex; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid rgb(255 248 239 / 0.28); font-size: 12px; }
.im-foot-bottom ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.im-foot-bottom a { text-decoration: none; transition: color .3s; }
.im-foot-bottom a:hover { color: var(--im-ice); }

/* ---------- Scroll entrances (Elementor "fadeInUp") ---------- */
html.im-js .im-r { opacity: 0; }
html.im-js .im-r.is-in { animation: im-fade-up 1.25s var(--im-ease) both; animation-delay: var(--d, 0s); }
html.im-js .im-r-fade { opacity: 0; transition: opacity 1.4s var(--im-ease); transition-delay: var(--d, 0s); }
html.im-js .im-r-fade.is-in { opacity: 1; }
html.im-js .im-mark.im-r .im-rule { transform: scaleX(0); }
html.im-js .im-mark.im-r.is-in .im-rule { transform: scaleX(1); transition: transform 1.4s var(--im-ease) .35s; }
@keyframes im-fade-up { from { opacity: 0; transform: translate3d(0, min(100%, 90px), 0); } to { opacity: 1; transform: none; } }
/* hero title: letters rise in turn */
html.im-js .im-split-chars .im-ch { display: inline-block; opacity: 0; transform: translate3d(0, 0.5em, 0); }
html.im-js .im-split-chars.is-in .im-ch { animation: im-ch 1.1s var(--im-ease) both; animation-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
@keyframes im-ch { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.im-js .im-r, html.im-js .im-r-fade, html.im-js .im-split-chars .im-ch { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .im-hero-media img, .im-photo-media img { animation: none; transform: none; }
  .im-hero-ghost { animation: none; }
}

/* =====================================================================================
   Existing widgets (built by shop.js / site.js or kept from the old pages), in the new look
   ===================================================================================== */
html.im .text-chalk { color: var(--im-blue); }
html.im .ns-link, html.im .ns-linkbtn { color: var(--im-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
html.im .ns-link:hover, html.im .ns-linkbtn:hover { color: var(--im-blue-dk); }
html.im .ns-credit-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html.im .ns-badge { padding: 0.3rem 0.6rem; border-radius: 0; background: var(--im-yellow); color: var(--im-black); font-family: var(--im-body); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; -webkit-text-stroke: 0.3px currentColor; }
html.im .ns-small, html.im .ns-buy-note { color: inherit; opacity: 0.8; font-size: 12px; }

/* Buy panel (Kawaii Vox) */
html.im .ns-buy { gap: 0.9rem; }
html.im .ns-buy-price { font-family: var(--im-head); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3rem); letter-spacing: -0.02em; color: inherit; }
html.im .ns-buy-price s { color: inherit; opacity: 0.55; font-size: 0.5em; font-weight: 500; }
html.im .ns-promo { padding: 0.7rem 0.9rem; border: 0; border-left: 3px solid var(--im-yellow); border-radius: 0; background: rgb(242 194 48 / 0.14); color: inherit; font-size: 13px; line-height: 1.6; }
html.im .ns-promo strong { color: inherit; font-weight: 400; -webkit-text-stroke: 0.35px currentColor; }
html.im .ns-btn-secondary { padding: 1rem 1.6rem; border: 1px solid currentColor; border-radius: 0; color: inherit; font-family: var(--im-body); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; -webkit-text-stroke: 0.3px currentColor; }
html.im .ns-btn-secondary:hover { background: var(--im-blue); border-color: var(--im-blue); color: var(--im-cream); }

/* Bundle + voice cards */
html.im .ns-shop { padding: 0; }
html.im .ns-bundle { margin: 0; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: clamp(24px, 4vw, 60px); }
@media (min-width: 800px) { html.im .ns-bundle { grid-template-columns: 1.4fr 1fr; } }
html.im .ns-bundle img { border-radius: 0; }
html.im .ns-bundle-body { padding: 0; }
html.im .ns-bundle h3 { margin-top: 1rem; font-family: var(--im-head); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; text-transform: uppercase; color: inherit; }
html.im .ns-bundle-desc { color: inherit; font-size: 14px; }
html.im .ns-bundle-price strong { font-family: var(--im-head); font-size: 2.4rem; color: inherit; }
html.im .ns-bundle-price s { color: inherit; opacity: 0.55; }
html.im .ns-voices { max-width: none; margin: clamp(40px, 5vw, 64px) 0 0; gap: clamp(14px, 1.8vw, 26px); }
html.im .ns-voice { padding: 0; border: 0; border-radius: 0; background: transparent; }
html.im .ns-voice-art { overflow: hidden; background: var(--im-grey); }
html.im .ns-voice img { border-radius: 0; transition: transform 1.2s var(--im-ease); }
html.im .ns-voice:hover img { transform: scale(1.05); }
html.im .ns-voice h3 { margin-top: 1rem; padding: 0; font-family: var(--im-head); font-weight: 600; font-size: 1.4rem; line-height: 1.05; text-transform: uppercase; color: inherit; }
html.im .ns-voice p { padding: 0; color: inherit; font-size: 13px; line-height: 1.6; }
html.im .ns-voice .ns-voice-cast { opacity: 0.75; }
html.im .ns-voice .ns-voice-price { padding-top: 0.9rem; font-family: var(--im-head); font-weight: 700; font-size: 1.4rem; color: inherit; }
html.im .ns-add-quiet { width: 100%; padding: 0.85rem 1rem; border: 1px solid currentColor; border-radius: 0; color: inherit; font-family: var(--im-body); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; -webkit-text-stroke: 0.3px currentColor; transition: background-color .3s, color .3s; }
html.im .ns-add-quiet:hover:not(:disabled) { border-color: var(--im-blue); background: var(--im-blue); color: var(--im-cream); }
html.im .ns-voice-demo { border-radius: 50%; box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); }

/* Demo tracks */
html.im .kv-tracks { border: 0; border-top: 1px solid var(--im-border); border-radius: 0; }
html.im .kv-track { background: transparent; border-bottom: 1px solid var(--im-border); }
html.im .kv-track:hover { background: rgb(18 18 18 / 0.045); }
html.im .kv-track.is-active { background: rgb(18 18 18 / 0.07); }
html.im .kv-track-btn { padding: 1rem 0.5rem 0.35rem; }
html.im .kv-track-title { font-family: var(--im-head); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; }
html.im .kv-track-artist, html.im .kv-track-time { color: inherit; opacity: 0.75; font-size: 12px; }
html.im .kv-wave { margin: 0 0.5rem 0.9rem 3.6rem; }
html.im .kv-wave-tip { border-radius: 0; background: var(--im-blue); color: var(--im-cream); }
html.im .kv-track button span:first-child { border-radius: 50%; }

/* Page panels (cart, order, account, sign-in) */
html.im .ns-page { padding: 0; }
html.im .ns-panel { margin-top: 0; max-width: 54rem; font-size: 14px; }
html.im .ns-cart-lines, html.im .ns-owned, html.im .ns-orders { border-top-color: var(--im-border); }
html.im .ns-line, html.im .ns-owned li, html.im .ns-orders li { border-bottom-color: var(--im-border); }
html.im .ns-line img, html.im .ns-owned-row img { border-radius: 0; }
html.im .ns-line-name { font-family: var(--im-head); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; color: inherit; }
html.im .ns-line-price { font-family: var(--im-head); font-weight: 700; font-size: 1.2rem; color: inherit; }
html.im .ns-cart-total { color: inherit; }
html.im .ns-cart-total strong { font-family: var(--im-head); font-size: 2.25rem; color: inherit; }
html.im .ns-cart-discount { color: var(--im-blue-dk); }
html.im .ns-welcome, html.im .ns-notice { border: 0; border-left: 3px solid var(--im-yellow); border-radius: 0; background: rgb(242 194 48 / 0.14); box-shadow: none; color: inherit; }
html.im .ns-welcome strong { color: inherit; -webkit-text-stroke: 0.35px currentColor; }
html.im .ns-check input { accent-color: var(--im-blue); }
html.im .ns-cart-error { color: var(--im-red); }
html.im .ns-input { padding: 0.9rem 0.1rem; border: 0; border-bottom: 1px solid var(--im-blue); border-radius: 0; background: transparent; color: var(--im-blue); font-family: var(--im-body); font-size: 15px; }
html.im .ns-input::placeholder { color: var(--im-ice); }
html.im .ns-input:focus { border-bottom-color: var(--im-blue-dk); box-shadow: 0 1px 0 var(--im-blue-dk); }
html.im .ns-acct-lead, html.im .ns-order-lead { color: inherit; font-size: 15px; }
html.im .ns-acct-lead strong, html.im .ns-order-lead strong { color: inherit; -webkit-text-stroke: 0.35px currentColor; font-weight: 400; }
html.im .ns-order-h { font-family: var(--im-head); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: inherit; }
html.im .ns-order-items, html.im .ns-order-steps, html.im .ns-order-total { color: inherit; }
html.im .ns-cart-fine, html.im .ns-cart-tax { color: inherit; opacity: 0.75; font-size: 12px; }
html.im .ns-cart-empty { color: inherit; }
html.im .ns-testmode { max-width: calc(var(--im-max)); margin: 0 auto; border: 0; border-left: 3px solid var(--im-yellow); border-radius: 0; background: rgb(242 194 48 / 0.16); color: var(--im-black); }
html.im .ns-testmode strong { color: var(--im-black); }
html.im .ns-testmode:first-child { position: relative; z-index: 41; }

/* Claim page (/kawaiioffer/) */
html.im .ns-claim { padding: 0; }
html.im .ns-claim-voice .ke-btn.ns-add { padding: 0.9rem 1rem; font-size: 13px; }
html.im .ns-claim-dialog { border-radius: 0; color: var(--im-blue); box-shadow: 0 30px 80px -20px rgb(18 18 18 / 0.45); }
html.im .ns-claim-dialog::backdrop { background: rgb(18 18 18 / 0.55); }
html.im .ns-claim-dialog-title { font-family: var(--im-head); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; color: var(--im-blue); }
html.im .ns-claim-pick img { border-radius: 0; background: var(--im-grey); }
html.im .ns-claim-pick-name { font-family: var(--im-head); text-transform: uppercase; color: var(--im-blue); }
html.im .ns-claim-pick-price, html.im .ns-claim-news, html.im .ns-claim-small { color: var(--im-blue); }
html.im .ns-claim-dialog .ns-input { background: transparent; border-color: var(--im-blue); color: var(--im-blue); }
html.im .ns-claim-dialog .ns-input:focus { border-color: var(--im-blue-dk); }
html.im .ns-claim-news input { accent-color: var(--im-blue); }
html.im .ns-claim-close { border-radius: 0; color: var(--im-blue); }
html.im .ns-claim-close:hover { background: var(--im-grey); }
html.im .ns-claim-used { border-radius: 0; background: var(--im-grey); color: var(--im-blue); }
html.im .ns-claim-dialog .ns-cart-error { color: var(--im-red); }
html.im .ns-claim-steps, html.im .ns-claim-fine { color: inherit; }
html.im .ns-claim-steps strong { color: inherit; -webkit-text-stroke: 0.35px currentColor; font-weight: 400; }
html.im .ns-claim-bundle { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

/* Download buttons: the scripts swap these for Windows/phones, so they keep their utility classes */
html.im a.ke-btn.rounded-full { border-radius: 0; padding: 1rem 1.75rem; }
html.im a.ke-btn.rounded-full svg { width: 1.15rem; height: 1.15rem; }
html.im .im-dl-alt { font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; color: inherit; opacity: 0.85; }
html.im .im-dl-alt:hover { opacity: 1; }
html.im [aria-disabled="true"].rounded-full { border-radius: 0; border-color: currentColor; color: inherit; opacity: 0.7; }

/* Player bar + screenshot viewer, built by site.js */
html.im body > div.fixed.bottom-0 { background: var(--im-blue); color: var(--im-cream); border-top: 0; --color-chalk: #FFF8EF; --color-fog: #FFF8EF; --color-fog-dim: #BDBDBD; --color-gold: #FFF8EF; --color-gold-bright: #BDBDBD; --color-ink: #121212; --color-ink-panel: #3A3A3A; --color-line: #BDBDBD; }
html.im body > div.fixed.bottom-0 [data-toggle] svg { color: var(--im-blue); }
html.im body > div[role="dialog"].fixed { background: rgb(18 18 18 / 0.9); }
html.im [data-frame] { border-radius: 0; }

/* Video embeds and the About video */
.im-embed { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.im-embed iframe, .im-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.im .ns-about-video, html.im .kv-video { margin: 0; border-radius: 0; }
html.im .ns-about-video iframe, html.im .kv-video iframe { border-radius: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .im-nav { display: none; }
  .im-menu { display: block; }
  .im-hero-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .im-hero-top > :nth-child(2) { display: none; }
}
@media (max-width: 1024px) {
  .im-intro-foot { grid-template-columns: 1fr 1fr; }
  .im-intro-foot > :first-child { grid-column: 1 / -1; }
  .im-cta-foot { grid-template-columns: 1fr 1fr; }
  .im-steps > li { min-height: 18rem; }
}
@media (max-width: 860px) {
  .im-split, .im-split--wide, .im-split--narrow, .im-intro, .im-feature { grid-template-columns: minmax(0, 1fr); }
  .im-feature--flip > :first-child { order: 0; }
  .im-intro-pic { max-width: 26rem; }
  .im-rows > li, .im-rows > div { grid-template-columns: minmax(0, 1fr) auto; }
  .im-rows .im-row-text { grid-column: 1 / -1; grid-row: 2; }
  .im-steps { grid-template-columns: minmax(0, 1fr); }
  .im-steps > li { min-height: 0; }
  .im-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .im-works > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .im-cta-top { grid-template-columns: 1fr 1fr; }
  .im-cta-top > :last-child { grid-column: 1 / -1; justify-self: start; }
  .im-foot-top { grid-template-columns: minmax(0, 1fr); }
  .im-foot-nav { justify-content: flex-start; gap: 0.9rem 1.6rem; }
}
@media (max-width: 640px) {
  html.im body { font-size: 14px; }
  .im-header-in { padding-top: 16px; padding-bottom: 16px; }
  .im-logo img { height: 24px; }
  .im-tools { gap: 0.75rem; }
  .im-tools .ns-account-link, .im-tools .ns-cart-label { display: none; }
  .im-hero { min-height: 0; }
  .im-hero--photo { min-height: 92svh; }
  .im-hero-top { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .im-hero-top > :last-child { justify-self: start; text-align: left; }
  .im-hero--end .im-hero-bottom { text-align: left; }
  .im-hero--end .im-mark { justify-content: flex-start; }
  .im-hero-media img { object-position: 30% 30%; }
  .im-intro-foot, .im-cta-foot { grid-template-columns: minmax(0, 1fr); }
  .im-cta-foot > :last-child { justify-self: start; }
  .im-cta-title .im-big + .im-big { text-align: left; }
  .im-spec > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .im-spec dd, .im-spec .ns-daws { text-align: left; justify-content: flex-start; }
  .im-statement { text-align: left; }
  .im-foot-bottom { flex-direction: column; }
}

/* ---------- Cross-fading picture sets (Kawaii Vox banner, Black Friday voices) ---------- */
.im-slides { position: relative; overflow: hidden; background: #1c1c1c; }
.im-slides img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: im-slide 20s infinite; }
.im-slides img:first-child { position: relative; }
.im-slides--5 img:nth-child(1) { animation-delay: -0.6s; object-position: center 25%; }
.im-slides--5 img:nth-child(2) { animation-delay: 3.4s; }
.im-slides--5 img:nth-child(3) { animation-delay: 7.4s; }
.im-slides--5 img:nth-child(4) { animation-delay: 11.4s; }
.im-slides--5 img:nth-child(5) { animation-delay: 15.4s; }
.im-slides--4 img { animation-name: im-slide4; animation-duration: 12s; }
.im-slides--4 img:nth-child(1) { animation-delay: -0.5s; }
.im-slides--4 img:nth-child(2) { animation-delay: 2.5s; }
.im-slides--4 img:nth-child(3) { animation-delay: 5.5s; }
.im-slides--4 img:nth-child(4) { animation-delay: 8.5s; }
.im-slides:hover img { animation-play-state: paused; }
@keyframes im-slide { 0% { opacity: 0; } 3% { opacity: 1; } 23% { opacity: 1; } 26% { opacity: 0; } 100% { opacity: 0; } }
@keyframes im-slide4 { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .im-slides img { animation: none; } .im-slides img:first-child { opacity: 1; } }

/* ---------- Small pieces ---------- */
.im-menu summary span.grid { display: grid; gap: 5px; }
.im-menu summary span.grid span { width: 18px; height: 1px; background: currentColor; transition: transform .35s var(--im-ease); }
.im-menu[open] summary span.grid span:first-child { transform: translateY(3px) rotate(45deg); }
.im-menu[open] summary span.grid span:last-child { transform: translateY(-3px) rotate(-45deg); }
.im-header.is-menu { background: var(--im-blue); }
.im-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.im-inline li { display: flex; align-items: center; gap: 0.75rem; }
.im-inline .text-line { color: inherit; opacity: 0.5; }
.im-dl { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.im-dl .text-left { text-align: left; }
.im-dl .ke-btn .block { display: block; }
.im-dl .ke-btn .text-xs { font-size: 11px; letter-spacing: 0.04em; text-transform: none; opacity: 0.75; }
.im-blue .im-dl .ke-btn, .im-photo .im-dl .ke-btn { background: var(--im-cream); border-color: var(--im-cream); color: var(--im-blue); }
.im-blue .im-dl .ke-btn:hover, .im-photo .im-dl .ke-btn:hover { background: var(--im-ice); border-color: var(--im-ice); }
.im-big-pic { display: grid; justify-items: center; gap: clamp(14px, 2vw, 26px); text-align: center; }
.im-big-pic .im-figure-frame { width: 100%; aspect-ratio: 21 / 8; }
.im-quote { margin: 0; font-family: var(--im-head); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.2; text-transform: uppercase; }
.im-pill { display: inline-block; padding: 0.3rem 0.6rem; background: var(--im-yellow); color: var(--im-black); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; -webkit-text-stroke: 0.3px currentColor; }
.im-blue .ns-shop-about strong, .im-light .ns-shop-about strong { color: inherit; font-weight: 400; -webkit-text-stroke: 0.4px currentColor; }
html.im .ns-shop-about { margin: 0; color: inherit; font-size: 14px; line-height: 1.8; columns: 2 22rem; column-gap: clamp(28px, 4vw, 60px); }
html.im .ns-shop-about p { break-inside: avoid; }
html.im .kv-story p + p { margin-top: 1.1em; }

/* Test-mode / release-hold notice, inserted by shop.js at the top of <main>: a bar under the header */
html.im main > .ns-testmode:first-child { width: 100%; max-width: none; margin: 0; padding: 96px var(--im-gutter) 14px; border: 0; background: var(--im-blue-dk); color: var(--im-cream); font-size: 13px; }
html.im main > .ns-testmode:first-child strong { color: var(--im-yellow); }
html.im main > .ns-testmode:first-child + .im-hero { padding-top: clamp(60px, 8vw, 110px); }

/* ---------- Fixes after the first look ---------- */
.im-logo img { height: 42px; }
.im-header.is-solid .im-logo img { height: 36px; }
.im-logo img { transition: height .45s var(--im-ease); }
.im-fit-name { font-size: min(12.6vw, 11.1rem) !important; }
.im-wordmark { font-size: min(12.9vw, 11.3rem); }
.im-dot::after { content: "."; }
/* Black Friday offer lines (shop.js fills in the amounts) */
.im-bf p { margin: 0; font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; background: none; -webkit-text-fill-color: currentColor; }
.im-bf .bf-big { font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 700; line-height: 1; }
.im-bf .bf-big small { display: block; margin-top: 0.4rem; font-size: 0.42em; color: inherit; -webkit-text-fill-color: currentColor; }
.im-bf [data-welcome-amount], .im-bf [data-bundle-after-welcome], .im-bf [data-price-short] { color: var(--im-yellow); -webkit-text-fill-color: var(--im-yellow); }
.im-bf .bf-line { display: block; }
.im-bf li + li { margin-top: 1.4rem; }
.im-bf li::before { margin-top: 0.15em; }
.im-rows--one > li { grid-template-columns: minmax(0, 1fr) auto !important; }
.im-rows--one .im-row-text { grid-column: auto !important; grid-row: auto !important; font-size: 14px; }
html.im .ns-about-photo, html.im .ns-about-photo img, html.im .ns-about-play { border-radius: 0 !important; }
@media (max-width: 640px) {
  .im-hero--photo .im-hero-meta .im-cap, .im-hero--photo .im-hero-top > p { display: none; }
  .im-hero--photo .im-hero-media img { object-position: 36% 20%; }
  .im-fit-name { font-size: 19vw !important; line-height: 0.86; }
  .im-hero--photo .im-hero-bottom { margin-top: 52svh; }
  .im-wordmark { font-size: 12.4vw; }
  .im-hero { padding-top: 120px; }
  .im-hero-bottom { margin-top: 70px; }
  .im-hero-ghost { font-size: 70vw; right: -10vw; }
}
.im-hero--short { min-height: 0; padding-bottom: clamp(40px, 5vw, 70px); }
.im-hero--short .im-hero-bottom { margin-top: clamp(30px, 5vw, 70px); }
html.im body > div.fixed.bottom-0 .text-chalk, html.im body > div.fixed.bottom-0 [data-title] { color: var(--im-cream); font-family: var(--im-head); text-transform: uppercase; }
html.im body > div.fixed.bottom-0 [data-artist], html.im body > div.fixed.bottom-0 .text-line { color: var(--im-ice); }
#demos > .im-wrap > p.im-cap { margin-top: 1.25rem; }

/* ---------- No eyebrows or small labels (the builder leaves them out): close the gaps they left ---------- */
.im-rows > li, .im-rows > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.im-steps .im-step-n, .im-steps > li > p + h3 { margin-top: auto; padding-top: 2.5rem; }
.im-hero-bottom h1, .im-hero-bottom .im-hero-title { margin-top: 0; }
.im-cta-title { margin-top: clamp(40px, 7vw, 100px); }
.im-hero-meta .im-cap { margin-top: 0 !important; }
.im-arrow--plain::after { display: none; }
.im-intro-text { max-width: 34rem; margin-top: clamp(1.5rem, 2.5vw, 2.25rem); }

/* Homepage hero: "Nomad Sounds" in six languages above the name */
.im-names { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem clamp(1rem, 2vw, 1.75rem); margin: 0 0 clamp(12px, 1.8vw, 26px); font-family: "Kosugi Deco", var(--im-body); font-size: clamp(0.95rem, 1.55vw, 1.45rem); line-height: 1.3; letter-spacing: 0.02em; }
.im-names span[lang] { white-space: nowrap; -webkit-text-stroke: 0.3px currentColor; }
.im-names .im-rule { width: clamp(40px, 6vw, 110px); height: 1px; background: currentColor; }
@media (max-width: 640px) { .im-names { gap: 0.35rem 0.9rem; font-size: 0.9rem; } .im-names .im-rule { display: none; } }
/* names line: evenly spaced across exactly the width of the title below it */
.im-hero--photo .im-hero-bottom { width: fit-content; max-width: 100%; }
.im-hero--photo .im-names { flex-wrap: nowrap; justify-content: space-between; gap: 0 1rem; }
.im-hero--photo .im-names .im-rule { display: none; }
@media (max-width: 900px) {
  .im-hero--photo .im-names { flex-wrap: wrap; justify-content: flex-start; gap: 0.35rem 0.9rem; }
}
/* feature rows: the video column is the same width whichever side it's on, and every video box has the same shape */
.im-feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.im-feature-media.ns-vid-crop { aspect-ratio: 1280 / 670 !important; }
@media (max-width: 860px) { .im-feature--flip { grid-template-columns: minmax(0, 1fr); } }
.im-footer { padding-top: clamp(40px, 5vw, 70px); }
.im-footer .im-wordmark { margin-top: 0; }

/* ---------- Larger small text everywhere (paragraphs, captions, links, rows, tables) ---------- */
html.im body { font-size: 16px; }
.im-cap { font-size: 16px; line-height: 1.75; }
.im-cap--lg { font-size: 17px; }
.im-lead { font-size: clamp(16px, 1.35vw, 18px); }
.im-arrow { font-size: 16px; }
.im-rows .im-row-text, .im-rows--one .im-row-text { font-size: 15px; }
.im-spec dt, .im-spec dd { font-size: 15px; }
.im-acc summary { font-size: 16px; }
.im-acc .im-acc-body { font-size: 15px; }
.im-steps p { font-size: 15px; }
.im-feature-copy p { font-size: 16px; }
.im-feature-copy li p { font-size: 15px; }
.im-card-sub { font-size: 14px; }
.im-inline { font-size: 14px; }
.im-figure figcaption { font-size: 15px; }
.im-foot-bottom { font-size: 13px; }
.im-dl-alt, html.im .im-dl-alt { font-size: 15px; }
html.im .ns-panel { font-size: 16px; }
html.im .ns-voice p { font-size: 14px; }
html.im .ns-shop-about { font-size: 16px; }
html.im .ns-promo, html.im .ns-welcome { font-size: 15px; }
html.im .ns-small, html.im .ns-buy-note, html.im .ns-cart-fine, html.im .ns-cart-tax { font-size: 14px; }
html.im .kv-track-artist, html.im .kv-track-time { font-size: 14px; }
.im-prose p, .im-prose li, .ns-legal-body p.text-sm { font-size: 16px !important; line-height: 1.75; }
@media (max-width: 640px) {
  html.im body { font-size: 15px; }
  .im-cap, .im-arrow, .im-feature-copy p { font-size: 15px; }
}

/* ---------- No arrow icons anywhere (lists, links, card hover badges) ---------- */
.im-craft li::before, .im-list li::before, .im-arrow::after, .im-card-go { display: none !important; }
.im-craft li, .im-list li { gap: 0; }
/* homepage statement: "No AI, Ever." on its own line, then the human-made line under it */
.im-st-line { display: block; }
.im-st-line + .im-st-line { margin-top: 0.15em; }
.im-st-sub { margin-top: clamp(1rem, 1.8vw, 1.5rem); max-width: 40rem; }
/* homepage intro: every block runs the full width of the column, justified like the statement */
.im-intro .im-st-sub, .im-intro .im-intro-text { max-width: none; text-align: justify; text-align-last: left; }
/* "Real musicians…": evenly balanced lines, each set flush to both edges, so the sentence reads as one solid block */
/* homepage intro: smaller statement, set left with normal word spacing (no justified gaps) */
.im-intro .im-statement { font-size: clamp(1.6rem, 2.7vw, 2.55rem); line-height: 1.06; text-align: left; }
.im-intro .im-st-sub { font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
.im-intro .im-st-sub, .im-intro .im-intro-text { text-align: left; }
/* Black Friday banner: shorter, title and offer beside the voice slideshow */
.im-bf-sec { padding: clamp(50px, 6vw, 80px) 0; }
.im-bf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(28px, 5vw, 80px); align-items: center; }
.im-bf-grid .im-h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
.im-bf-grid .im-btn { text-align: left; line-height: 1.4; }
@media (max-width: 760px) { .im-bf-grid { grid-template-columns: minmax(0, 1fr); } .im-bf-grid figure { max-width: 20rem; } }
.im-bf-grid .im-bf .bf-big { font-family: var(--im-head); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1; }
.im-bf-grid .im-bf .bf-big small { font-weight: 600; }

/* ---------- Homepage product cards (Kawaii Vox, KeyEngine) ---------- */
.im-pcard { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 60px); padding: clamp(24px, 4vw, 56px); background: var(--im-white); }
.im-pcard + .im-pcard { margin-top: clamp(20px, 2.5vw, 32px); }
.im-pcard-copy { grid-column: 1; grid-row: 1; }
.im-pcard-pic { grid-column: 2; grid-row: 1 / span 2; display: block; overflow: hidden; aspect-ratio: 2 / 1; background: var(--im-grey); }
.im-pcard-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--im-ease); }
.im-pcard-pic:hover img { transform: scale(1.04); }
.im-pcard-cta { grid-column: 1; grid-row: 2; align-self: end; }
.im-pcard-human { margin: 1.25rem 0 0; font-family: var(--im-head); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.2; text-transform: uppercase; }
.im-pcard-human a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.im-pcard-cta .ke-btn { font-family: var(--im-head); font-size: 1.1rem; letter-spacing: 0.02em; }
.im-pcard--ke { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(48px, 7vw, 100px) clamp(24px, 4vw, 56px); background: var(--im-black); }
.im-pcard-logo { width: 100%; max-width: 40rem; height: auto; }
.im-pcard--ke .im-dl { margin-top: clamp(32px, 4vw, 52px); align-items: center; }
.im-pcard--ke .ns-ke-more { margin-top: 1.5rem; }
html.im .im-pcard--ke .ns-ke-more .ke-btn { background: transparent; border-color: var(--im-cream); color: var(--im-cream); }
html.im .im-pcard--ke .ns-ke-more .ke-btn:hover { background: var(--im-cream); color: var(--im-black); }
.im-pcard--ke .im-inline { justify-content: center; margin-top: clamp(28px, 3.5vw, 44px); opacity: 0.85; }
@media (max-width: 860px) {
  .im-pcard { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .im-pcard-copy, .im-pcard-pic, .im-pcard-cta { grid-column: 1; grid-row: auto; }
}
html.im .im-pcard--ke .im-inline li, html.im .im-pcard--ke .im-inline .text-fog, html.im .im-pcard--ke .im-dl-alt { color: var(--im-cream); }

/* ---------- Homepage product banners: full width, with the live site's backgrounds ---------- */
.im-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 7vw, 100px) 0; }
.im-band .im-pcard { padding: 0; background: transparent; }
.im-band .im-pcard + .im-pcard { margin-top: 0; }
/* Kawaii Vox: the pink -> lavender gradient */
.im-band--kv { background: linear-gradient(160deg, #fde0ef 0%, #f4b6de 40%, #b48ee8 78%, #9f79e2 100%); color: #4a1d44; }
.im-band--kv ::selection { background: #8f1760; color: #fff; }
.im-band--kv .im-h1, .im-band--kv .im-pcard-human { color: #8f1760; }
.im-band--kv .im-pcard-pic { background: transparent; }
html.im .im-band--kv .ke-btn { background: linear-gradient(90deg, #ff5fa8, #b98cff); border: 0; color: #fff; }
html.im .im-band--kv .ke-btn:hover { background: linear-gradient(90deg, #ff4a9c, #a97aff); }
/* KeyEngine: black, a soft spotlight from the top left, haze along the floor, fine grain */
.im-band--ke { color: var(--im-cream); background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
  radial-gradient(ellipse 75% 13% at 50% 100%, rgb(255 255 255 / 0.32), transparent 75%),
  radial-gradient(ellipse 110% 24% at 50% 104%, rgb(255 255 255 / 0.16), transparent 80%),
  linear-gradient(170deg, #020203 0%, #000000 45%, #000000 100%); }
.im-band--ke::before, .im-band--ke::after { content: ""; position: absolute; z-index: -1; left: -60%; top: -28%; width: 150%; height: 170%; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; transform: rotate(-20deg); transform-origin: 34.7% 5.9%; }
.im-band--ke::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='white' stop-opacity='.27'/%3E%3Cstop offset='.45' stop-color='white' stop-opacity='.095'/%3E%3Cstop offset='.95' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='34.7,5.9 22,100 73.3,100' fill='url(%23g)'/%3E%3C/svg%3E"); filter: blur(38px); }
.im-band--ke::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='white' stop-opacity='.52'/%3E%3Cstop offset='.3' stop-color='white' stop-opacity='.18'/%3E%3Cstop offset='.72' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon points='34.7,6.5 31.3,62 56,62' fill='url(%23g)'/%3E%3C/svg%3E"); filter: blur(15px); }
.im-band--ke .im-pcard--ke { padding: clamp(20px, 3vw, 40px) 0; background: transparent; }
html.im .im-band--ke .im-dl .ke-btn { color: #16141f; border: 0; background-image: linear-gradient(180deg, #f5f5f8 0%, #9c9da9 100%); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.45) inset, 0 6px 36px -8px rgb(235 235 245 / 0.35); }
html.im .im-band--ke .im-dl .ke-btn:hover { filter: brightness(1.06); }
html.im .im-band--ke .ns-ke-more .ke-btn { background: transparent; border: 1.5px solid rgb(255 255 255 / 0.9); color: #fff; }
html.im .im-band--ke .ns-ke-more .ke-btn:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
html.im .im-band--ke .im-inline li, html.im .im-band--ke .im-inline .text-fog, html.im .im-band--ke .im-dl-alt { color: var(--im-cream); }
/* homepage banners: bigger buttons and button text */
html.im .im-band .ke-btn { padding: 1.4rem 2.6rem; gap: 1rem; font-size: 1.35rem; }
html.im .im-band .ke-btn svg { width: 1.7rem; height: 1.7rem; }
html.im .im-band .im-dl .ke-btn .text-sm { font-size: 1.35rem; letter-spacing: 0.04em; }
html.im .im-band .im-dl .ke-btn .text-xs { font-size: 0.95rem; }
html.im .im-band .im-dl-alt { font-size: 1.1rem; }
html.im .im-band--kv .im-pcard-cta .ke-btn { font-size: 1.6rem; padding: 1.3rem 2.8rem; }
html.im .im-band--ke .ns-ke-more .ke-btn { font-size: 1.15rem; padding: 1.2rem 2.4rem; }
@media (max-width: 640px) {
  html.im .im-band .ke-btn { padding: 1.1rem 1.8rem; font-size: 1.1rem; }
  html.im .im-band .im-dl .ke-btn .text-sm { font-size: 1.1rem; }
  html.im .im-band--kv .im-pcard-cta .ke-btn { font-size: 1.3rem; }
}
/* buttons: regular weight (Kosugi has no bold, and faked bold reads poorly) */
html.im .ke-btn, html.im .ke-btn *, html.im .im-btn, html.im .im-btn *, html.im .ns-btn-secondary, html.im .ns-add-quiet, html.im .im-dl-alt {
  font-weight: 400 !important; -webkit-text-stroke: 0 !important; font-synthesis: none;
}
html.im .im-band--kv .im-pcard-cta .ke-btn { font-family: var(--im-body); }

/* ---------- Page-title banners (every page except the homepage photo): about half the height ---------- */
.im-hero:not(.im-hero--photo) { min-height: 0; padding: clamp(100px, 9vw, 130px) 0 clamp(30px, 3.5vw, 50px); }
.im-hero:not(.im-hero--photo) .im-hero-top { grid-template-columns: minmax(0, 30rem) 1fr; }
.im-hero:not(.im-hero--photo) .im-hero-bottom { margin-top: clamp(24px, 3vw, 44px); }
.im-hero:not(.im-hero--photo) .im-hero-title { font-size: clamp(2.6rem, 9vw, 9rem); }
.im-hero:not(.im-hero--photo) .im-hero-title.im-fit-m { font-size: clamp(2.4rem, 7vw, 7.5rem); }
.im-hero:not(.im-hero--photo) .im-hero-title.im-fit-s { font-size: clamp(2.1rem, 5.4vw, 5.6rem); }
.im-hero:not(.im-hero--photo) .im-hero-title.im-fit-xs { font-size: clamp(1.9rem, 4.4vw, 4.4rem); }
.im-hero:not(.im-hero--photo) .im-hero-ghost { font-size: clamp(9rem, 26vw, 24rem); }
@media (max-width: 640px) { .im-hero:not(.im-hero--photo) { padding-top: 96px; } }
/* About: the three AI-policy paragraphs in one font and size */
.im-ai-text { max-width: 56rem; }
.im-ai-text p { margin: 0; font-family: var(--im-body); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.75; }
.im-ai-text p + p { margin-top: 1.1em; }

/* ---------- Full width wherever nothing sits beside the block ---------- */
.im-prose, .im-ai-text, html.im .ns-panel { max-width: none; }
.im-hero:not(.im-hero--photo) .im-hero-top { grid-template-columns: minmax(0, 1fr); }
.im-hero:not(.im-hero--photo) .im-hero-top > :empty { display: none; }

/* ---------- KeyEngine page (same layout as the live page) ---------- */
.im-ke-top { padding: clamp(130px, 12vw, 170px) 0 clamp(60px, 7vw, 100px); }
.im-ke-top .im-pcard--ke { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--im-gutter); background: transparent; }
/* feature rows: text left + video right, or video left + text right; the video column is the same width either way */
.im-feature--copy-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.im-feature--copy-left > .im-feature-copy { order: -1; }
.im-feature--media-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) {
  .im-feature--copy-left, .im-feature--media-left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) { .im-feature--media-left > .im-feature-copy { order: -1; } }

/* spacing helpers win over the headings' own margin: 0 (e.g. the gap above KeyEngine "Specifications") */
:is(.im-h1, .im-h2, .im-h3, .im-h4, .im-h5, .im-big, .im-statement).im-mt-s { margin-top: 1rem; }
:is(.im-h1, .im-h2, .im-h3, .im-h4, .im-h5, .im-big, .im-statement).im-mt { margin-top: 2rem; }
:is(.im-h1, .im-h2, .im-h3, .im-h4, .im-h5, .im-big, .im-statement).im-mt-l { margin-top: clamp(4rem, 8vw, 7rem); }
/* spec tables: the label column only as wide as its longest label, so values (the DAW list) get the rest of the row */
.im-spec > div { grid-template-columns: max-content minmax(0, 1fr); gap: 3rem; }
.im-spec .ns-daws { gap: 0.15rem 0; font-size: 14px; }
.im-spec .ns-daws li:not(:last-child)::after { content: " · "; }
/* KeyEngine banners: larger "Free forever · VST3, AU and AAX · macOS …" line */
html.im .im-band--ke .im-inline { font-size: clamp(16px, 1.35vw, 19px); gap: 0.4rem 1rem; }
html.im .im-band--ke .im-inline li { gap: 1rem; }
/* About "Why I Started Nomad Sounds": paragraphs full width under the title, with space between them */
.im-why p + p { margin-top: 1.1em; }
/* Support steps: the card turns black on hover, so its title link turns white with it */
html.im .im-steps > li:hover a, html.im .im-steps > li:hover .ns-link { color: var(--im-white); }

/* =====================================================================================
   Kawaii Vox page: the live page's background and colours (pink -> blue -> peach -> lilac through the four hair
   colours), in the new theme's type, square corners and buttons.
   ===================================================================================== */
body.im-kv .im-header { background: var(--im-black); }
body.im-kv main {
  padding-top: 74px; color: #4a1d44;
  background: linear-gradient(180deg, #f7b4d2 0%, #f7b4d2 8%, #f5b4d4 10%, #efb6d8 12%, #e8b8df 14%, #dfb9e6 16%, #d8bbec 18%, #d5bcf0 20%, #d3bcf0 22%, #cebdf1 24%, #c6bef3 26%, #bbc0f6 28%, #b2c1f8 30%, #abc3f9 32%, #a8c3fa 34%, #abc4f9 36%, #b3c5f7 38%, #bfc8f3 40%, #cccaf0 42%, #d8cdec 44%, #e0ceea 46%, #e3cfe9 48%, #e4cee4 50%, #e8cdd8 52%, #eccbc6 54%, #f2c8b1 56%, #f6c69f 58%, #fac593 60%, #fbc48e 62%, #fbc490 64%, #f9c397 66%, #f7c1a0 68%, #f5bfab 70%, #f3bdb6 72%, #f1bcbe 74%, #f0bbc2 76%, #efbbc3 78%, #ecb9c7 80%, #e4b4ce 82%, #dbafd6 84%, #d2aadf 86%, #caa5e7 88%, #c4a2ec 90%, #c2a1ee 92%, #c2a1ee 100%);
  --color-chalk: #4a1d44; --color-fog: #6b2f5f; --color-fog-dim: #6b2f5f; --color-gold: #b81f73; --color-gold-bright: #ff5fa8;
  --color-ink-raised: #ffffff; --color-ink-panel: #ffffff; --color-line: #ffc9e2; --color-line-soft: #ffe3f0;
}
body.im-kv ::selection { background: #4a1d44; color: #fff; }
@media (max-width: 640px) { body.im-kv main { padding-top: 58px; } }
body.im-kv .im-kv-banner .im-slides { aspect-ratio: 2000 / 1040; width: 100%; }
body.im-kv .im-kv-banner .im-slides img:nth-child(1) { object-position: center top; }
body.im-kv .im-kv-sec { padding: clamp(48px, 6vw, 80px) 0 0; }
body.im-kv .im-kv-sec:last-child { padding-bottom: clamp(70px, 8vw, 110px); }
body.im-kv .im-h1, body.im-kv .im-h2, body.im-kv .ns-shop-title { color: #7a1356; }
body.im-kv .im-feature-copy h3, body.im-kv .ns-bundle h3, body.im-kv .ns-voice h3 { color: #4a1d44; }
body.im-kv .kv-tagline { margin: 1rem 0 0; color: #4a1d44; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
body.im-kv .kv-story { margin-top: 1.5rem; padding: clamp(1.25rem, 2.5vw, 2.25rem); background: rgb(255 255 255 / 0.62); color: #2a0a26; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; }
body.im-kv .kv-story p + p { margin-top: 1rem; }
body.im-kv .kv-story a { color: #a30e5b; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgb(163 14 91 / 0.5); }
body.im-kv .im-kv-runs { margin: 1.25rem 0 0; font-size: 15px; }
body.im-kv .im-kv-runs a, body.im-kv .ns-shop-about a, body.im-kv .ns-link { color: #7a1356; text-decoration: underline; text-underline-offset: 3px; }
body.im-kv .ns-buy { margin-top: 1.25rem; align-items: flex-start; text-align: left; color: #4a1d44; }
body.im-kv .ns-badge { background: #fff; color: #7a1356; }
body.im-kv .ns-promo { border: 0; background: #fff; color: #5d2653; }
body.im-kv .ns-promo strong { color: #7a1356; }
/* buttons: square, with the live page's pink -> lilac fill */
html.im body.im-kv .ke-btn { background: linear-gradient(90deg, #ff5fa8, #b98cff); border: 0; color: #fff; }
html.im body.im-kv .ke-btn:hover:not(:disabled) { background: linear-gradient(90deg, #ff4a9c, #a97aff); }
html.im body.im-kv .ns-btn-secondary { background: #fff; border: 0; color: #7a1356; }
html.im body.im-kv .ns-btn-secondary:hover { background: #ffeaf4; color: #7a1356; }
html.im body.im-kv .ns-add-quiet { background: #ffe0ef; border: 0; color: #7a1356; }
html.im body.im-kv .ns-add-quiet:hover:not(:disabled) { background: #ffd0e6; color: #7a1356; }
html.im body.im-kv .ns-add-quiet:disabled { background: #ffeef6; color: #8c4f79; }
/* white panels (square): demo tracks, feature videos, bundle, voice cards */
html.im body.im-kv .kv-tracks { background: #fff; border: 0; }
html.im body.im-kv .kv-track { border-bottom-color: #ffe3f0; }
html.im body.im-kv .kv-track:hover { background: #fff6fb; }
html.im body.im-kv .kv-track.is-active { background: #ffeaf4; }
body.im-kv .im-kv-note { margin: 1rem 0 0; font-size: 15px; color: #5d2653; }
body.im-kv .im-feature-media { background: #fff; }
body.im-kv .im-feature-copy p { color: #5d2653; }
html.im body.im-kv .ns-shop-about { color: #5d2653; }
html.im body.im-kv .ns-shop-about strong { color: #7a1356; -webkit-text-stroke: 0.4px currentColor; }
html.im body.im-kv .ns-bundle { background: #fff; padding: clamp(14px, 1.6vw, 22px); }
html.im body.im-kv .ns-bundle-desc { color: #5d2653; }
html.im body.im-kv .ns-voices { margin-top: clamp(14px, 1.8vw, 26px); }
html.im body.im-kv .ns-voice { background: #fff; padding: 10px 10px 14px; }
html.im body.im-kv .ns-voice p { color: #5d2653; }
body.im-kv .im-spec > div, body.im-kv .im-spec > div:first-child { border-color: rgb(58 18 54 / 0.3); }
body.im-kv .im-spec dt { color: #3a1236; }
body.im-kv .im-spec dd { color: #25081f; }
/* Kawaii Vox: the header always in its compact, solid form, so the banner starts right under it */
body.im-kv .im-header .im-header-in { padding-top: 12px; padding-bottom: 12px; }
body.im-kv .im-header .im-logo img { height: 36px; }
body.im-kv main { padding-top: 60px; }
@media (max-width: 640px) { body.im-kv main { padding-top: 60px; } }
/* footer: the seven-language line sits above the wordmark, spread across exactly its width */
.im-foot-name { width: fit-content; max-width: 100%; margin: 0 auto; }
.im-foot-name .im-names { flex-wrap: nowrap; justify-content: space-between; gap: 0 1rem; margin-bottom: clamp(6px, 1vw, 14px); }
.im-foot-name .im-wordmark { margin-top: 0; }
@media (max-width: 900px) { .im-foot-name .im-names { flex-wrap: wrap; justify-content: flex-start; gap: 0.35rem 0.9rem; } }
/* Kawaii Vox: larger reading text (feature descriptions, the "Kawaii Vox is:" notes and credits, small notes) */
html.im body.im-kv .ns-shop-about { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; }
html.im body.im-kv .ns-shop-about p + p { margin-top: 1rem; }
body.im-kv .im-feature-copy p { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; }
body.im-kv .im-feature-copy h3 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); }
body.im-kv .im-kv-note, body.im-kv .im-kv-runs { font-size: 17px; }
html.im body.im-kv .ns-voice p { font-size: 16px; }
html.im body.im-kv .ns-bundle-desc { font-size: 17px; }
body.im-kv .im-spec dt, body.im-kv .im-spec dd { font-size: 17px; }

/* Free-voice page (/kawaiioffer/): the Kawaii Vox page's background and colours (body.im-kv), live page's layout */
body.im-kv-offer .im-kv-offer-head { text-align: center; }
body.im-kv-offer .im-kv-offer-head .kv-tagline { max-width: none; }
html.im body.im-kv-offer .ns-claim-voices { margin-top: clamp(28px, 4vw, 48px); }
html.im body.im-kv-offer .ns-claim-bundle { margin-top: clamp(14px, 1.8vw, 26px); background: #fff; padding: clamp(14px, 1.6vw, 22px); }
html.im body.im-kv-offer .ns-claim-price s { color: #6b2f5f; }
html.im body.im-kv-offer .ns-claim-price strong { color: #7a1356; }
body.im-kv-offer .ns-claim-more .ns-claim-h { margin: clamp(48px, 6vw, 80px) 0 0; font-family: var(--im-head); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1; text-transform: uppercase; color: #7a1356; }
body.im-kv-offer .ns-claim-more .ns-claim-h:first-child { margin-top: 0; }
body.im-kv-offer .ns-claim-more .ns-claim-steps { margin-top: 1.25rem; padding-left: 1.4em; list-style: decimal; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.7; color: #4a1d44; }
body.im-kv-offer .ns-claim-more .ns-claim-steps li + li { margin-top: 0.4rem; }
body.im-kv-offer .ns-claim-more .ns-claim-steps strong { color: #2a0a26; -webkit-text-stroke: 0.4px currentColor; font-weight: 400; }
body.im-kv-offer .ns-claim-more .ns-claim-fine { margin-top: 1.5rem; font-size: 16px; color: #5d2653; }
body.im-kv-offer .ns-claim-more .mt-6 { margin-top: 1.25rem; }
body.im-kv-offer .ns-claim-more a { color: #7a1356; text-decoration: underline; text-underline-offset: 3px; }
html.im .ns-claim-more > .im-wrap { max-width: calc(var(--im-max) + 2 * var(--im-gutter)); }
/* bigger text on the shop buttons (free-voice page and Kawaii Vox page) */
html.im body.im-kv .ns-claim-voice .ke-btn.ns-add, html.im body.im-kv .ns-voice .ns-add-quiet { font-size: clamp(16px, 1.35vw, 19px); padding: 1rem 1rem; }
html.im body.im-kv .ns-bundle .ke-btn, html.im body.im-kv .ns-buy .ke-btn, html.im body.im-kv .ns-btn-secondary { font-size: clamp(16px, 1.35vw, 19px); padding: 1.05rem 1.8rem; }

/* ---------- All buttons in the heading font (Bricolage Grotesque, real semibold) ---------- */
html.im .ke-btn, html.im .ke-btn *, html.im .im-btn, html.im .im-btn *, html.im .ns-btn-secondary, html.im .ns-add-quiet {
  font-family: var(--im-head) !important; font-weight: 600 !important; letter-spacing: 0.02em; -webkit-text-stroke: 0 !important; font-synthesis: none;
}
html.im .ke-btn .text-xs, html.im .im-dl .ke-btn .text-xs { font-weight: 500 !important; letter-spacing: 0.01em; }
/* buttons: regular weight, normal spacing */
html.im .ke-btn, html.im .ke-btn *, html.im .im-btn, html.im .im-btn *, html.im .ns-btn-secondary, html.im .ns-add-quiet { font-weight: 400 !important; letter-spacing: 0; }
html.im .ke-btn .text-xs, html.im .im-dl .ke-btn .text-xs { font-weight: 400 !important; }
/* voice-card buttons: same size as the voice name above them */
html.im .ns-voice .ke-btn.ns-add, html.im .ns-voice .ns-add-quiet, html.im body.im-kv .ns-claim-voice .ke-btn.ns-add, html.im body.im-kv .ns-voice .ns-add-quiet { font-size: 1.4rem; line-height: 1.05; }
/* bundle buttons: same size as the voice-card buttons */
html.im .ns-bundle .ke-btn, html.im body.im-kv .ns-bundle .ke-btn, html.im body.im-kv .ns-claim-bundle .ke-btn.ns-add { font-size: 1.4rem; line-height: 1.05; }
/* crossed-out prices and "Free": the same font and size as the bundle price ($40) */
html.im .ns-bundle-price s, html.im .ns-claim-price s, html.im .ns-claim-price strong, html.im .ns-buy-price s, html.im .ns-voice .ns-voice-price.ns-claim-price {
  font-family: var(--im-head); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -0.01em; -webkit-text-stroke: 0;
}
html.im .ns-claim-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; }
html.im .ns-bundle-price s, html.im .ns-claim-price s, html.im .ns-buy-price s { opacity: 0.45; margin: 0; }
html.im .ns-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; font-size: 2.4rem; }
/* all shop prices one size: bundle price, crossed-out prices, "Free", voice-card prices */
html.im .ns-bundle-price strong, html.im .ns-bundle-price s, html.im .ns-claim-price s, html.im .ns-claim-price strong,
html.im .ns-buy-price, html.im .ns-buy-price s, html.im .ns-voice .ns-voice-price, html.im .ns-voice .ns-voice-price.ns-claim-price {
  font-family: var(--im-head); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.01em;
}
/* crossed-out prices, "Free" and voice-card prices at 28px; the main prices ($40 bundle, $70 at the top of Kawaii Vox) stay 32px */
html.im .ns-bundle-price s, html.im .ns-claim-price s, html.im .ns-claim-price strong, html.im .ns-buy-price s,
html.im .ns-voice .ns-voice-price, html.im .ns-voice .ns-voice-price.ns-claim-price { font-size: 28px; }
html.im .ns-bundle-price strong, html.im .ns-buy-price { font-size: 32px; }
/* free-voice page fine print: sized to run the full content width on one line (shrinks with the window, wraps on phones),
   with the same space below it (before the footer) as above it */
body.im-kv-offer .ns-claim-more .ns-claim-fine {
  margin-top: 2rem; padding-bottom: 2rem; line-height: 1.5;
  font-size: max(15px, min(19.8px, calc((min(100vw, 1280px + 2 * var(--im-gutter)) - 2 * var(--im-gutter)) * 0.0152)));
}
/* (fine print, exact): measured against its own column rather than the window */
body.im-kv-offer .ns-claim-more > .im-wrap { container-type: inline-size; }
body.im-kv-offer .ns-claim-more .ns-claim-fine { font-size: max(15px, 1.545cqw); }
/* voice names on the voice cards, a bit bigger */
html.im .ns-voice h3 { font-size: 1.75rem; }
/* homepage portrait: no zoom on hover */
.im-intro-pic:hover img { transform: none; }
/* homepage intro: founding paragraph first, then the statement */
.im-intro .im-intro-first { margin-top: 0; }
.im-intro .im-statement-after { margin-top: clamp(1.5rem, 2.5vw, 2.25rem); }
/* homepage: "No AI, Ever." set in cream on a black block */
.im-intro .im-st-line:last-child { display: inline-block; margin-top: 0.3em; padding: 0.06em 0.14em 0.02em; background: var(--im-black); color: var(--im-cream); }
.im-intro .im-st-line:last-child::selection { background: var(--im-cream); color: var(--im-black); }
/* Black Friday banner: text block scaled as one (--k, set by theme.js) so it is exactly as tall as the picture */
.im-bf-col { --k: 1; }
.im-bf-col .im-h1 { font-size: calc(clamp(2.6rem, 5.4vw, 5rem) * var(--k)) !important; }
.im-bf-col .im-bf { margin-top: calc(2rem * var(--k)); }
.im-bf-grid .im-bf-col .im-bf .bf-big { font-size: calc(clamp(2rem, 3.6vw, 3.4rem) * var(--k)); }
.im-bf-col > p.im-mt { margin-top: calc(2rem * var(--k)); }
html.im .im-bf-col .im-btn { font-size: calc(14px * var(--k)); padding: calc(1rem * var(--k)) calc(1.75rem * var(--k)); }
/* homepage Kawaii Vox banner: text block (with the price button) scaled as one (--k, theme.js) to the banner art's height */
.im-band--kv .im-pcard { grid-template-rows: auto; align-items: start; }
.im-band--kv .im-pcard-pic { grid-row: 1; }
.im-band--kv .im-pcard-copy { --k: 1; }
.im-band--kv .im-pcard-copy .im-h1 { font-size: calc(clamp(2.75rem, 5.6vw, 4.5rem) * var(--k)); }
.im-band--kv .im-pcard-copy .im-lead { font-size: calc(clamp(16px, 1.35vw, 18px) * var(--k)); margin-top: calc(1rem * var(--k)); }
.im-band--kv .im-pcard-copy .im-pcard-human { font-size: calc(clamp(1.1rem, 1.6vw, 1.4rem) * var(--k)); margin-top: calc(1.25rem * var(--k)); }
.im-band--kv .im-pcard-copy .im-pcard-cta { margin-top: calc(2rem * var(--k)); }
html.im .im-band--kv .im-pcard-copy .im-pcard-cta .ke-btn { font-size: calc(1.6rem * var(--k)); padding: calc(1.3rem * var(--k)) calc(2.8rem * var(--k)); }

/* ---------- Header: larger, regular-weight text; the four page links centred in the bar ---------- */
.im-header-in { display: grid; grid-template-columns: 1fr auto 1fr; }
.im-header-in > .im-logo { justify-self: start; }
.im-header-in > .im-tools { justify-self: end; }
.im-nav a, .im-tools > a, .im-menu summary, .im-header .ns-currency select {
  font-family: var(--im-head); font-weight: 400; -webkit-text-stroke: 0 !important; font-synthesis: none; letter-spacing: 0.01em;
}
.im-nav a, .im-tools > a, .im-menu summary { font-size: 17px; }
.im-header .ns-currency select { font-size: 15px; }
.im-nav { gap: clamp(1.5rem, 2.8vw, 2.75rem); }
@media (max-width: 1100px) { .im-header-in { grid-template-columns: auto 1fr; } .im-header-in > .im-nav { display: none; } }
/* header: keep the original typeface (Kosugi), just larger and without the faked bold */
.im-nav a, .im-tools > a, .im-menu summary, .im-header .ns-currency select { font-family: var(--im-body); }
/* About: the text beside Seth's video scaled (--k, theme.js) to the video's height */
.im-about-story { --k: 1; }
.im-about-story p { font-size: calc(16px * var(--k)) !important; }
.im-about-story > * + * { margin-top: calc(1.1em); }
.im-about-story .im-arrow { font-size: calc(16px * var(--k)); }

/* ---------- About page: one heading size and one body size throughout ---------- */
body.im-about main :is(h2, .im-big, .im-h1, .im-h2, .im-statement) {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem) !important; line-height: 1 !important; text-align: left; text-align-last: auto;
}
body.im-about main :is(p, li, .im-lead, .im-cap, .im-prose p, .im-ai-text p, .im-row-text, .im-row-title, .im-arrow) {
  font-size: clamp(17px, 1.4vw, 20px) !important; line-height: 1.75;
}
body.im-about main .im-row-title { line-height: 1.3; }
body.im-about main .im-prose > * + * { margin-top: 1.1em; }
/* list rows (About collaborators/musicians and similar): no hover shift or highlight */
.im-rows > li:hover, .im-rows > div:hover { padding-left: 0; padding-right: 0; background: none; }
.im-rows > li, .im-rows > div { transition: none; }
/* legal pages: intro line and "Last updated" at the top of the body */
.im-legal-meta { margin: 0 0 0.5rem; }
.im-legal-meta + .ns-legal-body { margin-top: 2rem; }
/* Support "Write to us": one simple column, as on the live site */
.im-contact .im-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; }
.im-contact-email { margin: 2rem 0; font-family: var(--im-head); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.im-contact-email a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.im-contact-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.im-contact-list li { padding: 0.35rem 0 0.35rem 1.1rem; border-left: 1px solid var(--im-border); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.im-contact-list li + li { margin-top: 0.6rem; }
.im-contact-note { margin-top: 2rem; }

/* ---------- Support page: one body text size throughout (the About page's size) ---------- */
body.im-support main :is(p, li, .im-lead, .im-cap, .im-steps p, .im-contact-list li, .im-contact-email, .im-statement + p) {
  font-size: clamp(17px, 1.4vw, 20px) !important; line-height: 1.75;
}
body.im-support main .im-contact-email { font-family: var(--im-body); font-weight: 400; }
body.im-support main .im-steps p { text-align: left; text-align-last: auto; }
/* Support page: one heading size for the section headings (same as the About page) */
body.im-support main :is(h2, .im-big, .im-h1, .im-h2, .im-statement) {
  font-size: clamp(2.25rem, 4.4vw, 3.5rem) !important; line-height: 1 !important; text-align: left; text-align-last: auto;
}
/* Support "Changed your mind": the guarantee itself links to the refund policy */
.im-refund-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .3s; }
.im-refund-link:hover { color: var(--im-ice); }
.im-refund-link { text-decoration: none; }
/* Support refunds: the guarantee sized (--k, theme.js) to the height of "Changed your mind?" */
body.im-support .im-refund-text { --k: 1; }
body.im-support main .im-refund-text p { font-size: calc(1.3rem * var(--k)) !important; line-height: 1.1 !important; }
/* list rows (About collaborators and musicians): no divider lines */
.im-rows, .im-rows > li, .im-rows > div { border: 0 !important; }
.im-rows > li, .im-rows > div { padding-top: clamp(10px, 1.2vw, 16px); padding-bottom: clamp(10px, 1.2vw, 16px); }

/* =====================================================================================
   Body font: BIZ UDGothic (Morisawa, Google Fonts) in place of Kosugi. Same kind of fixed-width Japanese-gothic
   Latin, but with a real bold, so emphasis no longer relies on faked stroke thickening.
   (Kosugi files stay in assets/fonts; set --im-body back to "Kosugi" to return to it.)
   ===================================================================================== */
@font-face { font-family: "BIZ UDGothic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/biz-udgothic-400-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "BIZ UDGothic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/biz-udgothic-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "BIZ UDGothic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/biz-udgothic-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "BIZ UDGothic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/biz-udgothic-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --im-body: "BIZ UDGothic", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
/* no more faked bold anywhere (the outlined background characters keep their outline) */
html.im *:not(.im-hero-ghost) { -webkit-text-stroke: 0 !important; }
/* emphasis uses the font's real bold */
html.im main strong, html.im main b, html.im .ns-shop-about strong, html.im .ns-promo strong, html.im .ns-welcome strong,
html.im .ns-acct-lead strong, html.im .ns-order-lead strong, html.im .ns-claim-steps strong, html.im .im-prose strong { font-weight: 700 !important; }

/* ---- Body font trial: M PLUS 1 Code (variable 100-700, real bold) ---- */
@font-face { font-family: "M PLUS 1 Code"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/assets/fonts/mplus1code-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "M PLUS 1 Code"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(/assets/fonts/mplus1code-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --im-body: "M PLUS 1 Code", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }


/* Footer wordmark in Lexend, the logo's typeface */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/lexend-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.im-footer .im-wordmark { font-family: "Lexend", var(--im-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
/* Lexend is wider than the heading font: scale the wordmark so it spans the language line exactly */
.im-footer .im-wordmark { font-size: min(10.89vw, 9.66rem); }
@media (max-width: 640px) { .im-footer .im-wordmark { font-size: 10.35vw; } }
/* pull the letters' side bearings (N's left, S's right) outside the box so the ink, not the advance, spans the language line */
.im-footer .im-wordmark { margin-left: -0.085em; margin-right: -0.021em; }

/* Homepage hero title: same Lexend treatment as the footer wordmark (ink spans the language line above it) */
.im-fit-name { font-family: "Lexend", var(--im-head); font-weight: 600; letter-spacing: -0.02em; font-size: min(10.89vw, 9.66rem) !important; margin-left: -0.085em; margin-right: -0.021em; white-space: nowrap; }
@media (max-width: 640px) { .im-fit-name { font-size: 19vw !important; margin-right: 0; white-space: normal; } }

/* KeyEngine bands (homepage card, KeyEngine page top): the plugin background Seth supplied (final version) */
.im-band--ke { background: #000 image-set(url(/assets/img/keyengine-bg-1200.webp) 1x, url(/assets/img/keyengine-bg-2000.webp) 2x) center / cover no-repeat; }
@media (min-width: 1100px) { .im-band--ke { background-image: url(/assets/img/keyengine-bg-2000.webp); } }
.im-band--ke::before, .im-band--ke::after { content: none; display: none; }

/* ---- Trial: Lexend for all headings (and the heading-font buttons/prices) instead of Bricolage Grotesque ---- */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/lexend-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --im-head: "Lexend", "Bricolage Grotesque", Arial, sans-serif; }

/* ---- Trial: headings in Fraunces Soft (the live site's title font), in their written case instead of capitals.
   Buttons, prices and the NOMAD SOUNDS wordmarks stay in Lexend (--im-head). ---- */
@font-face { font-family: "Fraunces Soft"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/fraunces-soft-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --im-title: "Fraunces Soft", Georgia, "Times New Roman", serif; }
html.im :is(.im-hero-title:not(.im-fit-name), .im-big, .im-h1, .im-h2, .im-h3, .im-h4, .im-h5, .im-statement, .im-st-line,
  .im-prose h2, .im-prose h3, .im-craft li, .im-card-title, .im-rows .im-row-title, .im-steps h3, .im-feature-copy h2, .im-feature-copy h3,
  .im-foot-top h2, .ns-bundle h3, .ns-voice h3, .ns-order-h, .ns-claim-dialog-title, .im-quote, .im-bf-grid .im-bf .bf-big,
  .im-pcard-human, .ns-claim-more .ns-claim-h, .ns-claim-title, .im-menu-panel a) {
  font-family: var(--im-title) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: -0.01em; }

/* Homepage hero photo: the studio wide shot (Seth on the centre screen) - keep the centre in view */
.im-hero--photo .im-hero-media img { object-position: 50% 30%; }
@media (max-width: 640px) { .im-hero--photo .im-hero-media img { object-position: 50% 20%; } }
/* ...and size the hero to the photo's own shape (2000 x 925) so it shows whole instead of being cropped to a full-screen
   frame; the title sits on the bottom of the photo. Phones keep the taller cropped frame (the wide photo would be a strip). */
@media (min-width: 641px) {
  .im-hero--photo { min-height: 0; aspect-ratio: 2000 / 925; max-height: 100svh; padding-top: 90px; }
  .im-hero--photo .im-hero-bottom { margin-top: auto; }
  .im-hero--photo .im-hero-media img { object-position: 50% 50%; }
}
/* the title now covers the lower half of the photo: darken that half a little more so the names line stays readable */
@media (min-width: 641px) {
  .im-hero--photo .im-hero-media::after { background: linear-gradient(180deg, rgb(10 10 10 / 0.4) 0%, rgb(10 10 10 / 0) 22%, rgb(10 10 10 / 0.1) 42%, rgb(10 10 10 / 0.62) 100%); }
}
/* title + language line sit lower on the photo */
@media (min-width: 641px) { .im-hero--photo { padding-bottom: clamp(16px, 2.6vw, 40px); } }

/* Homepage hero: silent studio loop cut from "Seth Tsui, Inspired" (1600 x 666) in place of the photo */
.im-hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (min-width: 641px) { .im-hero--photo { aspect-ratio: 1600 / 666; } }

/* About: a little more room between the Frequent Collaborators / Musicians headings and their first line */
body.im-about main h2 + ul.im-rows { margin-top: 0.75rem; }

/* Support: "Getting set up" sits closer to the section above, and the step cards start below its descenders */
body.im-support main section:has(+ section h2.im-dot) { padding-bottom: clamp(30px, 4vw, 56px); }
body.im-support h2.im-dot + .im-steps { margin-top: 1rem; }

/* Background characters stay still (no drift) */
.im-hero-ghost { animation: none !important; }

/* Header tools: the EN / currency dropdowns use the same size and line box as Sign in and Cart, so all the text sits on one line */
.im-header .ns-currency select { font-size: 17px; line-height: 17px; height: auto; padding: 6px 1.25rem 6px 0.15rem; margin: 0; vertical-align: baseline; }
.im-tools { align-items: baseline; }
.im-header .ns-cart-link { align-items: baseline; }
.im-header .ns-cart-link svg { align-self: center; }

/* theme.js measures the homepage intro column with its scroll-in offsets switched off */
.im-measuring, .im-measuring * { transform: none !important; transition: none !important; }

/* homepage intro: "Everything you see and hear..." a touch larger */
.im-intro .im-st-sub { font-size: clamp(1.2rem, 1.75vw, 1.55rem); line-height: 1.2; }

/* Kawaii Vox buy row: "Add bundle to cart" and "Single voices" are the same size (two equal columns as wide as the wider one) */
html.im div:has(> .ke-btn.ns-add + .ns-btn-secondary) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; max-width: 100%; }
html.im div:has(> .ke-btn.ns-add + .ns-btn-secondary) > :is(.ns-add, .ns-btn-secondary) { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; line-height: 1.2; box-sizing: border-box; }
@media (max-width: 560px) { html.im div:has(> .ke-btn.ns-add + .ns-btn-secondary) { grid-auto-flow: row; width: 100%; } }

/* About: less space between the opening line and "Nomad Sounds was created by Seth Tsui..." */
body.im-about .im-lead + .im-statement { margin-top: clamp(1.75rem, 3.2vw, 2.75rem); }

/* Kawaii Vox: the "Kawaii Vox is: / Five Mood Keyswitches / ... / credits" notes in one full-width column, a bit larger */
html.im body.im-kv .ns-shop-about, html.im body .ns-shop-about { column-count: 1 !important; columns: auto !important; font-size: clamp(19px, 1.7vw, 24px); }
html.im .ns-shop-about p { font-size: inherit; }

/* Phones: the homepage NOMAD SOUNDS stays on one line, sized so its letters span the content width
   (Lexend 600: the ink of "NOMAD SOUNDS" is 8.284em wide) */
@media (max-width: 640px) {
  .im-hero--photo > .im-wrap { container-type: inline-size; }
  .im-fit-name { white-space: nowrap; font-size: calc(100cqw / 8.3) !important; margin-right: -0.021em; line-height: 1; }
}

/* /kawaiioffer/ voice buttons on phones: one word per line ("GET / NAME / FREE"), so all four are three lines and the
   same height; the size only drops if the card is too narrow for the longest name (Lexend caps: "SEORIN" is ~4.1em) */
@media (max-width: 640px) {
  html.im .ns-claim-voice { container-type: inline-size; }
  html.im .ns-claim-voice .ns-claim-btn { word-spacing: 100vw; font-size: min(22.4px, calc((100cqw - 32px) / 4.3)) !important; }
}

/* /kawaiioffer/: "Get all four for $40" fills the full width of its box */
html.im .ns-claim-btn[data-claim="kawaii-vox-bundle"] { display: block; text-align: center; width: 100%; box-sizing: border-box; }
/* ...and stays on one line: on narrow screens the text shrinks just enough to fit ("GET ALL FOUR FOR $40" is 11.7em in Lexend caps) */
html.im .ns-bundle-body { container-type: inline-size; }
html.im .ns-claim-btn[data-claim="kawaii-vox-bundle"] { white-space: nowrap; padding-left: 16px; padding-right: 16px; font-size: min(22.4px, calc((100cqw - 32px) / 11.9)) !important; }

/* Homepage Black Friday band, phones and narrow tablets: the offer button reads as one centred block of text (no
   split "$40" column), and the voice slideshow runs the full content width */
html.im .im-bf-col .im-btn { display: inline-block; text-align: center; }
@media (max-width: 760px) {
  .im-bf-grid { gap: 28px; }
  .im-bf-grid figure { max-width: none; width: 100%; }
  html.im .im-bf-col .im-btn { display: block; width: 100%; box-sizing: border-box; }
}

/* Phones: the "Nomad Sounds" language line keeps Chinese, Japanese, Korean and Arabic (German, Swedish and Bulgarian
   hidden) on one line spread across the width, above the homepage title and the footer wordmark */
@media (max-width: 640px) {
  .im-names span:is([lang="de"], [lang="sv"], [lang="bg"]) { display: none; }
  html.im .im-names, html.im .im-hero--photo .im-names, html.im .im-foot-name .im-names { flex-wrap: nowrap; justify-content: space-between; gap: 0 0.5rem; font-size: min(1.05rem, calc((100cqw - 1.5rem) / 24.2)); }
  .im-footer > .im-wrap { container-type: inline-size; }
}

/* ---- Japanese site (/ja/, <html lang="ja">): Japanese system fonts for the Japanese text, so Windows doesn't fall
   back to a Chinese font (Microsoft YaHei) for kanji. The Latin fonts stay first for Latin letters. Headings use a bold
   Japanese gothic next to Fraunces; headings and statements break at phrase boundaries where the browser supports it. */
html[lang="ja"] {
  --im-body: "M PLUS 1 Code", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --im-title: "Fraunces Soft", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", Georgia, serif;
  --im-head: "Lexend", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}
html[lang="ja"] :is(h1, h2, h3, .im-statement, .im-st-line, .im-quote, .im-btn, .ke-btn) { word-break: auto-phrase; }
html[lang="ja"] main [lang="en"] { word-break: normal; }
/* Japanese offer page: the voice buttons' label has a line break ("AMI を / 無料でゲット") that must show */
html[lang="ja"] .ns-claim-voice .ns-claim-btn { white-space: pre-line; }

/* ---- Korean site (/ko/, <html lang="ko">): Korean system fonts for Hangul (Apple SD Gothic Neo on Mac/iPhone, Malgun
   Gothic on Windows), after the Latin fonts. Korean is written with spaces, so lines break between words (keep-all)
   instead of in the middle of a word. */
html[lang="ko"] {
  --im-body: "M PLUS 1 Code", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
  --im-title: "Fraunces Soft", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Noto Sans CJK KR", Georgia, serif;
  --im-head: "Lexend", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
}
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] main [lang="en"] { word-break: normal; overflow-wrap: normal; }
/* Korean offer page: the voice buttons' label has a line break ("아미 / 무료로 받기") that must show */
html[lang="ko"] .ns-claim-voice .ns-claim-btn { white-space: pre-line; }
