/* NILE visual language on shop.app structure.
   paper page · cloud / ink cards and bands · mint only as accent · zero shadows ·
   General Sans display, DM Sans body, Geist Mono micro labels · radius ladder 36/26/24/18/14/9/999 */
:root {
  --ink: #0b0b0c; --ink-soft: #141416; --ink-card: #1e1e20; --paper: #fff; --cloud: #f4f4f1; --cloud-2: #ececea; --cloud-3: #e4e2dc;
  --line: #e5e5e0; --line-ink: rgba(255,255,255,.12); --mint: #00ffc3; --mint-deep: #00e0ac;
  --text: #0b0b0c; --text-2: #333; --muted: #6a6a68; --muted-2: #9a9a97; --muted-ink: rgba(255,255,255,.6);
  --disp: "General Sans", "DM Sans", "PingFang SC", sans-serif; --body: "DM Sans", "PingFang SC", system-ui, sans-serif; --mono: "Geist Mono", "PingFang SC", monospace;
  --r-xl: 36px; --r-lg: 26px; --r-band: 24px; --r-md: 18px; --r-sm: 14px; --r-nav: 9px; --r-pill: 999px;
  --ease: cubic-bezier(.22,1,.36,1); --max: 1440px; --gutter: 40px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
*, *::before, *::after { box-shadow: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { font-family: var(--body); background: var(--paper); color: var(--text); line-height: 1.4; font-size: 16px; -webkit-font-smoothing: antialiased; padding: 96px 0 150px; }
h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: .96; letter-spacing: -.03em; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--mint); color: #000; }
code { font-family: var(--mono); font-size: .88em; background: var(--cloud); padding: 1px 6px; border-radius: 6px; }
.on-ink code, .hero-ink code, .lp-ink code { background: rgba(11,11,12,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mono em { font-style: normal; color: var(--muted-2); margin-left: 8px; }

/* eyebrow: pill with a mint dot, General Sans, not mono */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--disp); font-weight: 600; font-size: 13px; letter-spacing: .02em; padding: 7px 16px 7px 8px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink); margin-bottom: 18px; background: var(--paper); }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--ink); }
.eyebrow .dot svg { width: 11px; height: 11px; display: block; }
.eyebrow.on-ink { background: rgba(11,11,12,.55); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-color: rgba(255,255,255,.18); color: #fff; }

/* buttons: pill + river-circle arrow */
.btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--disp); font-weight: 600; font-size: 15px; padding: 6px 6px 6px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: transform .12s var(--ease), border-color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn .bcirc { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .25s var(--ease); }
.btn:hover .bcirc { transform: translateX(3px); }
.btn.sm { font-size: 13px; padding: 4px 4px 4px 14px; } .btn.sm .bcirc { width: 26px; height: 26px; }
.btn:not(:has(.bcirc)) { padding-right: 18px; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); } .btn-dark .bcirc { background: #fff; color: var(--ink); }
.btn-mint { background: var(--mint); color: #000; border-color: var(--mint); } .btn-mint .bcirc { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; } .btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-ink { background: rgba(11,11,12,.45); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); color: #fff; border-color: rgba(255,255,255,.16); } .btn-ghost-ink:hover { border-color: #fff; background: rgba(11,11,12,.6); }
.lnk { font-family: var(--disp); font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; } .lnk:hover { color: var(--ink); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--disp); font-weight: 500; font-size: 13.5px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill); padding: 8px 14px; color: var(--text-2); white-space: nowrap; transition: border-color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chips.on-ink .chip { background: rgba(11,11,12,.45); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-color: rgba(255,255,255,.16); color: #fff; } .chips.on-ink .chip:hover { border-color: var(--mint); color: var(--mint); background: rgba(11,11,12,.6); }

/* NILE morphing nav (osmo-style bar: scaled 1.06 at top, settles to 1 on scroll; widens when the menu opens) */
:root { --bar-w: 680px; --nav-w-sm: var(--bar-w); --nav-w-lg: 980px; --ease-nav: cubic-bezier(.9,0,.1,1); }
header.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 20px; display: flex; justify-content: center; pointer-events: none; }
/* dark frosted glass: translucent ink + backdrop blur, a hairline light edge instead of a shadow */
.nav-shell { pointer-events: auto; position: relative; width: 100%; max-width: var(--nav-w-sm); background: rgba(11,11,12,.8); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px); border: 1px solid rgba(255,255,255,.10); color: #fff; border-radius: var(--r-nav); overflow: hidden; transform: scale(1.06); transform-origin: center; transition: max-width .5s var(--ease) .22s, transform .42s var(--ease-nav), background .35s, border-color .35s; }
.nav-shell::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); pointer-events: none; }
header.nav.menu-open .nav-shell { max-width: var(--nav-w-lg); background: rgba(11,11,12,.9); transition: max-width .5s var(--ease) 0s, background .35s; }
header.nav.scrolled .nav-shell { transform: scale(1); background: rgba(11,11,12,.66); border-color: rgba(255,255,255,.18); }
.nav-shell > .nav-row, .nav-shell > .nav-panel { transform: scale(.9434); transform-origin: center; transition: transform .42s var(--ease-nav); }
header.nav.scrolled .nav-shell > .nav-row, header.nav.scrolled .nav-shell > .nav-panel { transform: scale(1); }
.nav-row { position: relative; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 6px 0 14px; }
.menu-toggle { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: #fff; font-family: var(--disp); font-weight: 600; font-size: 14px; padding: 8px 6px; cursor: pointer; }
.menu-toggle .bars { position: relative; width: 18px; height: 10px; display: block; }
.menu-toggle .bars span { position: absolute; left: 0; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle .bars span:nth-child(1) { top: 0; } .menu-toggle .bars span:nth-child(2) { top: 8px; }
header.nav.menu-open .menu-toggle .bars span:nth-child(1) { top: 4px; transform: rotate(45deg); }
header.nav.menu-open .menu-toggle .bars span:nth-child(2) { top: 4px; transform: rotate(-45deg); }
.menu-toggle .lbl-close { display: none; }
header.nav.menu-open .menu-toggle .lbl-open { display: none; } header.nav.menu-open .menu-toggle .lbl-close { display: inline; }
.nav-row .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; perspective: 600px; z-index: 2; color: #fff; }
.brand .wordmark, .brand .nmark { grid-area: 1 / 1; transition: transform .45s var(--ease); backface-visibility: hidden; display: block; color: #fff; }
.brand .wordmark { height: 24px; width: auto; aspect-ratio: 2691 / 1253; }
.brand .nmark { height: 22px; width: auto; aspect-ratio: 953 / 906; transform: rotateX(-180deg); }
header.nav.scrolled .brand .wordmark { transform: rotateX(180deg); }
header.nav.scrolled .brand .nmark { transform: rotateX(0deg); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right .login { font-family: var(--disp); font-weight: 600; font-size: 14px; color: #fff; padding: 8px 8px; }
.nav-right .btn { padding: 5px 5px 5px 15px; font-size: 14px; } .nav-right .btn .bcirc { width: 32px; height: 32px; }
.nav-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease) 0s; }
header.nav.menu-open .nav-panel { grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease) .3s; }
.nav-panel__clip { overflow: hidden; min-height: 0; }
.nav-panel__inner { padding: 6px 14px 18px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; }
.nav-col { padding: 20px 22px; }
.nav-col.is--products { background: rgba(255,255,255,.05); border-radius: var(--r-sm); }
.nav-col h5 { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.nav-col ul { list-style: none; }
.nav-col ul.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.nav-col li { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
header.nav.menu-open .nav-col li { opacity: 1; transform: none; transition-delay: .44s; }
.nav-col a { display: flex; align-items: baseline; gap: 9px; font-family: var(--disp); font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: #fff; padding: 5px 0; transition: color .2s, padding .3s var(--ease); }
.nav-col a:hover { color: var(--mint); padding-left: 6px; }
.nav-col a small { font-family: var(--body); font-weight: 500; font-size: 12px; color: rgba(255,255,255,.38); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-panel__foot { grid-column: 1 / -1; margin-top: 2px; padding: 15px 8px 0; border-top: 1px solid var(--line-ink); }
.nav-panel__foot p { font-size: 13px; color: var(--muted-ink); } .nav-panel__foot p b { color: #fff; font-weight: 600; font-family: var(--disp); }
.logo { color: inherit; }

/* developer utilities: outside the nav, top-right */
.util { position: fixed; top: 22px; right: 24px; z-index: 99; display: flex; align-items: center; gap: 6px; }
.badge { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); white-space: nowrap; background: var(--paper); }
.badge[data-native="true"] { color: #000; border-color: var(--mint); background: var(--mint); }

/* sections */
main > section, main > .story { margin: 0 0 64px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 38px); }
.sec-head .eyebrow { margin-bottom: 12px; }
.h-search { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -.045em; }

/* hero: ink text card + borderless mosaic */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-cards .fcard-media { aspect-ratio: 1; }
.hero-ink, .lp-ink { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
/* every ink container carries a NILE lifestyle photo behind an ink gradient so the type stays on ink */
.hero-ink, .lp-ink, .band.ink { background-color: var(--ink); background-size: cover; background-repeat: no-repeat; background-position: center 30%; background-image: linear-gradient(100deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.84) 46%, rgba(11,11,12,.46) 100%), var(--photo, none); }
.hero-ink { --photo: url("/assets/hero-bg.webp"); min-height: 560px; }
.lp-ink { --photo: url("/assets/photo-merchant.webp"); background-position: center 40%; min-height: 360px; background-image: linear-gradient(100deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.8) 42%, rgba(11,11,12,.28) 100%), var(--photo); }
.band.ink.photo-team { --photo: url("/assets/photo-team.webp"); }
.band.ink.photo-devs { --photo: url("/assets/photo-devs.jpg"); background-position: center 35%; }
.band.ink.photo-gold { --photo: url("/assets/photo-gold.webp"); background-position: center 45%; }
.band.ink { min-height: 220px; }
.eyebrow.plain { padding: 7px 14px; }
.btn.plain { padding: 12px 22px; }
.hero h1, .lp-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 68px); letter-spacing: -.05em; line-height: .92; margin-bottom: 20px; }
.lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted-ink); max-width: 46ch; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.mosaic { display: grid; gap: 6px; border-radius: var(--r-lg); overflow: hidden; background: var(--cloud); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; background: var(--cloud-2); }
.mosaic img.dead { visibility: hidden; }
.mosaic.m4 { grid-template-columns: 1fr 1fr; }
.mosaic.m6 { grid-template-columns: repeat(3, 1fr); }

/* landing page hero: full-width borderless mosaic, then ink band */
.lp-hero { display: grid; gap: 12px; }
.lp-hero .mosaic.m4 { grid-template-columns: repeat(4, 1fr); }
.lp-hero .mosaic img { aspect-ratio: 4 / 3; }
.lp-hero.loading .mosaic { display: none; }
.lp-ink .chips { margin-top: 4px; }

/* frame card: cloud card, image edge-to-edge inside 8px, text indented */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 292px; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -2px; }
.rail::-webkit-scrollbar { display: none; }
.rail .fcard { scroll-snap-align: start; }
/* hover-to-scroll: a soft edge glow on the side the rail is moving towards (siblings, so the first card stays flush left) */
.rail { scroll-snap-type: none; scroll-behavior: auto; }
.rail-wrap { position: relative; }
.rail-edge { position: absolute; top: 0; bottom: 10px; width: 56px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.rail-edge.l { left: 0; background: linear-gradient(90deg, rgba(244,244,241,.95), rgba(244,244,241,0)); border-radius: var(--r-md) 0 0 var(--r-md); }
.rail-edge.r { right: 0; background: linear-gradient(270deg, rgba(244,244,241,.95), rgba(244,244,241,0)); border-radius: 0 var(--r-md) var(--r-md) 0; }
.rail.scroll-left ~ .rail-edge.l, .rail.scroll-right ~ .rail-edge.r { opacity: 1; }
.rail.scroll-left, .rail.scroll-right { cursor: ew-resize; }
.fcard { display: flex; flex-direction: column; background: var(--cloud); border-radius: var(--r-md); padding: 8px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, background .2s; cursor: pointer; }
.fcard:hover { background: var(--cloud-2); }
.fcard.focused { outline-color: var(--mint-deep); }
.fcard-media { display: block; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.fcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.fcard:hover .fcard-media img { transform: scale(1.03); }
.fcard-media.dead img { visibility: hidden; }
.fcard-media.dead { background: repeating-linear-gradient(45deg, var(--cloud) 0 12px, var(--cloud-2) 12px 24px); }
.noimg { height: 100%; display: grid; place-items: center; color: var(--muted-2); font-family: var(--mono); font-size: 11px; }
.fcard-body { padding: 14px 6px 6px 14px; display: flex; flex-direction: column; gap: 6px; }
.fcard-body .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard-title { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.price { font-family: var(--disp); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acts .lnk { padding: 6px 0; }

/* story block: big borderless image + text (the image/text flow) */
.story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; align-items: stretch; }
.story.flip .story-media { order: 2; }
.story-media { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--cloud); min-height: 420px; }
.story-media > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease); }
.story-media:hover > img { transform: scale(1.02); }
.story-thumbs { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; }
.story-thumbs img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; border: 2px solid var(--paper); }
.story-text { background: var(--cloud); border-radius: var(--r-lg); padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.story-text h2 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.04em; margin-bottom: 14px; }
.story-text p { font-size: 17px; color: var(--muted); max-width: 34ch; margin-bottom: 26px; }

/* bands */
.band { border-radius: var(--r-xl); padding: 40px 40px 36px; }
.band.cloud { background: var(--cloud); }
.band.ink { background-color: var(--ink); color: #fff; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.band.ink h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.04em; }
.band .sec-head { margin-bottom: 22px; }
.brands { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 112px; flex: none; text-align: center; font-family: var(--disp); font-weight: 600; font-size: 13px; color: var(--text-2); }
.brand img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.brand:hover { color: var(--ink); }
.more-wrap { display: flex; justify-content: center; margin: 28px 0; }
.empty { padding: 44px; text-align: center; color: var(--muted); background: var(--cloud); border-radius: var(--r-band); }
.dead-note { margin: 14px 0 0; }
.search-note { margin: -8px 0 14px; }
.tr.heard .tr-name { color: #ffd54f; }
.live-rail { margin-top: 40px; }
.stream { margin-top: 24px; }
.stream-end { height: 1px; }

/* skeletons */
.sk { pointer-events: none; }
.sk .fcard-media { background: linear-gradient(90deg, var(--cloud-2) 25%, var(--paper) 50%, var(--cloud-2) 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
.skl { height: 12px; border-radius: 6px; background: var(--cloud-2); margin: 4px 0; } .skl.w40 { width: 40%; } .skl.w60 { width: 60%; }
@keyframes sh { to { background-position: -200% 0; } }

/* floating omnibar: ink pill, mint send */
.omni-wrap { position: fixed; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.omni-wrap > * { pointer-events: auto; }
.suggest { display: none; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 760px; } .suggest.show { display: flex; }
.suggest .chip { background: var(--paper); font-size: 12.5px; padding: 6px 12px; }
.omni { display: flex; align-items: center; gap: 10px; width: min(var(--bar-w), 100%); transform: scale(1.06); transform-origin: center bottom; background: rgba(11,11,12,.78); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-pill); padding: 6px 6px 6px 18px; color: #fff; position: relative; transition: transform .45s var(--ease), background .35s, border-color .35s; }
.omni::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 55%); pointer-events: none; }
.omni:focus-within { border-color: var(--mint); background: rgba(11,11,12,.86); }
body.scrolled .omni { background: rgba(11,11,12,.66); border-color: rgba(255,255,255,.2); transform: scale(1); }
.suggest { width: min(var(--bar-w), 100%); }
.omni > * { position: relative; }
.omni-spark { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.omni input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15.5px; background: transparent; color: #fff; min-width: 0; }
.omni input::placeholder { color: var(--muted-ink); }
.omni-go { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mint); color: #000; display: grid; place-items: center; transition: transform .2s var(--ease); }
.omni-go:hover { transform: translateX(2px); }
.omni #live { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-ink); white-space: nowrap; padding-right: 4px; }
.omni #live[data-kind="busy"] { color: var(--mint); } .omni #live[data-kind="err"] { color: #ff8a80; }
.status { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; }
.status[data-kind="busy"] { color: var(--ink); border-color: var(--mint); } .status[data-kind="err"] { color: #b3261e; } .status[data-kind="ok"] { color: var(--muted); }

/* fallback when the viewport height is unreliable (embedded panes): bars in normal flow */
body.no-fixed { padding-top: 12px; }
body.no-fixed header.nav { position: static; padding: 12px 20px 0; }
body.no-fixed .omni-wrap { position: static; padding: 14px 16px 6px; }
body.no-fixed .omni { transform: none !important; background: var(--ink); }
body.no-fixed .util { position: static; justify-content: center; padding: 6px 0; }
/* trace drawer (ink card) */
.trace { position: fixed; right: 20px; top: 84px; width: 400px; max-height: 62vh; background: var(--ink-card); color: #eee; border-radius: var(--r-md); display: none; flex-direction: column; overflow: hidden; z-index: 95; font-size: 12px; border: 1px solid var(--line-ink); }
.trace.open { display: flex; }
.trace-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-ink); font-family: var(--disp); font-weight: 600; }
.trace-log { overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.tr { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center; background: var(--ink); border-radius: var(--r-nav); padding: 7px 9px; }
.tr-name { color: var(--mint); font-family: var(--mono); font-size: 11px; }
.tr-via { color: var(--muted-ink); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-ink); border-radius: var(--r-pill); padding: 1px 6px; }
.tr code { background: transparent; color: #ccc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-ms { color: var(--mint-deep); font-family: var(--mono); font-size: 11px; } .tr-ms.err { color: #ff8a80; }
.x { background: transparent; border: 0; font-size: 20px; line-height: 1; color: inherit; opacity: .7; } .x:hover { opacity: 1; }
#trace-btn.pulse { border-color: var(--mint); }

/* help dialog */
.help { border: 0; border-radius: var(--r-band); padding: 26px 28px; width: min(760px, 92vw); background: var(--paper); }
.help::backdrop { background: rgba(11,11,12,.45); }
.help-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: var(--disp); font-size: 20px; font-weight: 600; }
.help-grammar { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 14px; }
.help-grammar td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-grammar td:first-child { white-space: nowrap; }
.help-tools { list-style: none; margin: 10px 0 0; display: grid; gap: 8px; }
.help-tools li { display: grid; grid-template-columns: 160px 1fr; gap: 10px; color: var(--muted); font-size: 14px; }
.help strong { font-family: var(--disp); font-size: 16px; }

/* footer: NILE cloud band — brand column, link columns, vertical wordmark at the right edge */
.foot { background: var(--cloud); border-radius: var(--r-band); position: relative; overflow: hidden; color: var(--ink); margin-top: 40px; }
.foot-inner { padding: 32px 220px 28px 32px; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand-col .brand { display: block; position: absolute; top: 50%; right: -96px; transform: translateY(-50%) rotate(270deg); width: 264px; }
.foot .brand-col .brand .wordmark { width: 264px; height: auto; aspect-ratio: 2691 / 1253; color: var(--ink); display: block; }
.foot-built { margin-top: 0; font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.foot-built b { font-family: var(--disp); font-weight: 600; color: var(--ink); font-size: 16px; }
.foot h5 { font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot li a { font-family: var(--disp); font-weight: 600; font-size: 14px; color: var(--ink); } .foot li a:hover { color: var(--mint-deep); }
.foot-bottom { padding: 16px 220px 22px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
/* enterable containers */
[data-href] { cursor: pointer; }
.sec-head.linked h2 a { transition: color .2s; } .sec-head.linked:hover h2 a { color: var(--mint-deep); }
.story[data-href]:hover .story-text { background: var(--cloud-2); }
.hero-ink[data-href]:hover .eyebrow, .band.ink[data-href]:hover .eyebrow { border-color: var(--mint); }
.band.cloud[data-href]:hover { background: var(--cloud-2); }
/* brands page */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.brand-tile { display: flex; flex-direction: column; background: var(--cloud); border-radius: var(--r-md); padding: 8px; transition: background .2s; min-height: 240px; }
.brand-tile:hover { background: var(--cloud-2); }
.brand-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--paper); }
.brand-tile-text { padding: 12px 6px 6px 12px; display: grid; gap: 4px; }
.brand-tile-text strong { font-family: var(--disp); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }
.brand-tile.sk { background: var(--cloud-2); animation: sh 1.2s infinite; }
/* gamified landing page (scratch to win) */
.game-stage { position: relative; overflow: hidden; text-align: center; background: linear-gradient(180deg, #d9f7ee 0%, #eefcf7 70%, var(--paper) 100%); border-radius: var(--r-lg); padding: 56px 24px 40px; margin-bottom: 40px; }
.game-stage h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -.05em; line-height: .92; margin: 6px 0 8px; }
.game-stage .lede { margin: 0 auto 26px; max-width: 46ch; color: var(--text-2); }
.game-stage .eyebrow { background: var(--paper); }
.spark { position: absolute; width: 60px; height: 60px; background: var(--paper); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: .9; animation: twinkle 3.2s ease-in-out infinite; }
.spark.s1 { left: 14%; top: 52%; } .spark.s2 { right: 12%; top: 14%; width: 44px; height: 44px; animation-delay: 1s; } .spark.s3 { right: 30%; bottom: 10%; width: 26px; height: 26px; animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: .7; } 50% { transform: scale(1.25) rotate(12deg); opacity: 1; } }
.scratch { position: relative; width: min(360px, 100%); aspect-ratio: 720 / 440; margin: 0 auto; border-radius: var(--r-md); overflow: hidden; background: var(--ink); cursor: crosshair; touch-action: none; user-select: none; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .6s var(--ease); }
.scratch-hint { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: .02em; color: rgba(255,255,255,.75); pointer-events: none; text-shadow: none; transition: opacity .3s; }
.scratch-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; background: radial-gradient(circle at 50% 40%, #1e1e20, var(--ink)); }
.scratch-prize strong { font-family: var(--disp); font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.04em; line-height: 1; color: var(--mint); }
.scratch-prize .code { font-size: 14px; color: var(--muted-ink); } .scratch-prize .code b { color: #fff; font-family: var(--mono); letter-spacing: .08em; }
.scratch-prize small { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 8px; }
.scratch.revealed canvas, .scratch.revealed .scratch-hint { opacity: 0; pointer-events: none; }
.scratch-tip { margin-top: 14px; }
.game .sec-head { margin-top: 8px; }
/* listicle format */
.listicle { list-style: none; display: grid; gap: 12px; }
.lrow { display: grid; grid-template-columns: 44px 200px 1fr; gap: 16px; align-items: center; background: var(--cloud); border-radius: var(--r-md); padding: 8px; }
.lnum { font-family: var(--disp); font-weight: 700; font-size: 34px; letter-spacing: -.04em; text-align: center; color: var(--ink); }
.lmedia { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.lmedia img { width: 100%; height: 100%; object-fit: cover; }
.lbody { display: grid; gap: 6px; padding-right: 8px; }
.lbody .fcard-title { font-size: 18px; -webkit-line-clamp: 2; }
.lwhy { color: var(--muted); font-size: 14px; }
.lrow .fcard-foot { flex-direction: row; align-items: center; justify-content: space-between; }
@media (max-width: 720px) { .lrow { grid-template-columns: 32px 96px 1fr; } .lnum { font-size: 24px; } .lbody .fcard-title { font-size: 15px; } }
/* product sheet (right-hand panel) */
.sheet { position: fixed; inset: 0; z-index: 96; background: rgba(11,11,12,.45); display: flex; justify-content: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel { width: min(720px, 100%); height: 100%; background: var(--paper); border-radius: var(--r-lg) 0 0 var(--r-lg); padding: 24px; overflow-y: auto; position: relative; transform: translateX(24px); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.sheet.open .sheet-panel { transform: none; opacity: 1; }
.sheet-x { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--cloud); display: grid; place-items: center; font-size: 22px; opacity: 1; z-index: 2; }
.sheet-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sheet-media { border-radius: var(--r-md); overflow: hidden; background: var(--cloud); aspect-ratio: 4 / 5; }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-text { display: flex; flex-direction: column; gap: 10px; padding-top: 44px; }
.sheet-text h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.05; }
.sheet-text .price { font-size: 24px; }
.sheet-text .muted { color: var(--muted); font-size: 14px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sheet-hint { margin-top: auto; padding-top: 16px; }
@media (max-width: 720px) { .sheet-body { grid-template-columns: 1fr; } .sheet-panel { border-radius: var(--r-lg) var(--r-lg) 0 0; height: auto; max-height: 92vh; align-self: flex-end; } .sheet { align-items: flex-end; } }

/* login dialog */
.login .login-note { font-size: 15px; color: var(--muted); max-width: 46ch; margin: 6px 0 20px; }
.login-actions { display: flex; gap: 10px; }

@media (max-width: 960px) {
  :root { --gutter: 20px; }
  .chip { white-space: normal; text-align: left; }
  .mono em { display: none; }
  .hero-cta .btn { white-space: normal; }
  body { padding-top: 88px; }
  .hero, .story, .band.ink { grid-template-columns: 1fr; }
  .story.flip .story-media { order: 0; }
  .story-media { min-height: 300px; }
  .hero-ink, .lp-ink, .story-text { padding: 32px 26px; }
  :root { --bar-w: 100%; --nav-w-lg: 100%; }
  .nav-right .login { display: none; }
  .nav-panel__inner { grid-template-columns: 1fr; }
  .util { top: 82px; right: auto; left: 16px; }
  .badge { display: none; }
  .hero-cards { grid-template-columns: 1fr 1fr; }
  .lp-hero .mosaic.m4 { grid-template-columns: 1fr 1fr; }
  .trace { left: 16px; right: 16px; width: auto; }
  .help-tools li { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; padding: 28px 24px 20px; } .foot-bottom { padding: 14px 24px 20px; }
  .foot .brand-col { grid-column: 1 / -1; } .foot .brand-col .brand { position: static; transform: none; width: auto; } .foot .brand-col .brand .wordmark { width: 120px; }
  .nav-col ul.two-col { grid-template-columns: 1fr; }
  main > section, main > .story { margin-bottom: 44px; }
}
