/* nauvid brand page and mark lab (T2 in docs/design/landing-v3.md), on top of site.css.
   The mark on /brand is still; a state tile plays once on click or key (nv.js). The mark lab keeps continuous motion. */
:root { --float: var(--sh); --e-out: var(--out); --e-spring: var(--out); --sh2: rgba(0, 0, 0, .3); }
.b-hero { padding-top: 64px; padding-bottom: 100px; }
.b-hero h1 { font: 600 60px/1.04 var(--sans); letter-spacing: -.04em; margin-top: 16px; padding-bottom: .05em; }
.b-lede { font-size: 19px; line-height: 1.5; color: var(--ink2); max-width: 560px; margin-top: 18px; }
.b-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.b-cta .arr { width: 14px; height: 14px; }
.b-big { margin-top: 56px; height: 380px; display: grid; place-items: center; background: var(--surface); isolation: isolate; }
.b-big .field::before { background-size: 22px 22px; }
.b-big .nv { width: 176px; height: 176px; position: relative; }
.b-sec { padding-bottom: 120px; }
.b-sec > .sec-head { margin-bottom: 28px; display: grid; gap: 10px; max-width: 760px; }
.b-sec > .sec-head h2 { font: 600 30px/1.15 var(--sans); letter-spacing: -.03em; }
.b-sec > .sec-head h2 .dim { color: var(--ink3); }
.b-sec > .sec-head p:not(.ey) { font-size: 16px; line-height: 1.55; color: var(--ink2); max-width: 600px; }
.b-sec > .sec-head .ey { margin-bottom: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.plate { height: 150px; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.plate img { width: 150px; height: auto; }
.plate.acc { background: #2456e6; color: #fff; font-size: 13px; }
:root[data-theme="dark"] .plate.acc { background: #7aa2ff; color: #10151f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate.acc { background: #7aa2ff; color: #10151f; } }
.pair .spec-t { padding: 18px 20px 20px; gap: 4px; }
.pair .spec-t h3 { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.pair .spec-t p { font-size: 13px; color: var(--ink2); }
/* the state tiles: still marks; press to play a state once */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; cursor: pointer; padding: 0; transition: border-color .16s var(--out); }
.tile:hover { border-color: var(--line2); }
.tile-v { height: 150px; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.tile-v .nv { width: 64px; height: 64px; }
.tile-t { padding: 16px 18px 18px; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.tile-t b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
.b-note { margin-top: 18px; font-size: 14px; color: var(--ink2); }
.b-note a, .note-box a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.icon-tile { display: inline-grid; place-items: center; flex: none; width: 1em; height: 1em; font-size: 28px; border-radius: 27%; background: var(--ink-solid); }
.icon-tile .nv { width: 68%; height: 68%; color: var(--surface); }
.spec .tag { position: static; padding: 0; }
.lab-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* specimen card: text, then the thing itself on drafting paper */
.spec { display: flex; flex-direction: column; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s linear; }
.spec:hover { border-color: var(--line2); }
.spec-t { display: grid; gap: 10px; padding: 28px 28px 24px; align-content: start; }
.spec-t .tag { font-size: 11.5px; letter-spacing: .04em; color: var(--ink2); text-transform: uppercase; }
.spec-t h3 { font-size: 22px; line-height: 27px; letter-spacing: -.03em; }
.spec-t p { font-size: 15.5px; line-height: 1.55; color: var(--ink2); max-width: 52ch; }
.spec-t .dl { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
/* download rows: one per variant, a label, then PNG sizes and the SVG (file names come from the download attribute) */
.dlr { margin-top: 12px; display: grid; gap: 6px; }
.dlr > div { display: flex; align-items: center; gap: 10px; }
.dlr dt { flex: none; width: 76px; font-size: 13px; color: var(--ink2); }
.dlr dd { display: flex; flex-wrap: wrap; gap: 6px; }
.dlr a { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2); font: 500 11.5px/1 var(--mono); color: var(--ink); white-space: nowrap; transition: box-shadow .2s linear; }
.dlr a:hover { box-shadow: inset 0 0 0 1px var(--ink3); }
.paper { position: relative; flex: 1; display: grid; place-items: center; min-height: 260px; margin: 0 8px 8px; border-radius: 14px; background-color: var(--bg); color: var(--ink-solid);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; background-position: center; box-shadow: inset 0 0 0 1px var(--line); }
.paper.plain { background-image: none; }
.paper.dark { background-color: #141413; color: #f2f2f0; }
.paper.light { background-color: #f8f8f6; color: #141413; color-scheme: light; }
.paper img { max-width: 76%; height: auto; }
.chipb { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line2), 0 4px 10px -8px transparent; font: 500 13px/1 var(--sans); color: var(--ink); cursor: pointer; border: 0; scale: 1; transition: scale .42s var(--e-spring), box-shadow .5s cubic-bezier(.45, .03, .52, .96), background-color .2s linear, color .2s linear; }
.chipb:hover { box-shadow: inset 0 0 0 1px var(--ink3); }
.chipb .arr { width: 13px; height: 13px; }
.chipb[aria-pressed="true"] { background: var(--ink-solid); color: var(--bg); box-shadow: none; }

.lab-pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 12%; background: var(--surface); box-shadow: 0 0 0 2px var(--accent), var(--sh); display: grid; place-items: center; font: 600 11px/1 var(--sans); color: var(--ink); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 500 11.5px/16px var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink2); padding: 0 16px 12px 0; }
.tbl td { padding: 13px 16px 13px 0; border-top: 1px solid var(--line); color: var(--ink2); vertical-align: top; line-height: 1.5; }
.tbl td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.tbl td.m, .tbl .m { font: 400 12.5px/20px var(--mono); }
.tbl a { color: var(--ink); }

/* clear space */
.clear { position: relative; padding: 0; }
.clear svg { width: min(86%, 520px); height: auto; overflow: visible; }
.sizes { display: flex; align-items: flex-end; gap: 36px; color: var(--ink-solid); }
.sizes figure { display: grid; justify-items: center; gap: 12px; font: 500 11px/14px var(--mono); color: var(--ink2); }

/* colour */
.sw { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sw button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 14px; padding: 10px 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--e-spring), border-color .2s linear; }
.sw button:hover { border-color: var(--line2); }
.sw i { display: block; height: 96px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .22); }
.sw b { display: block; padding: 0 6px; font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; }
.sw span { display: block; padding: 0 6px; font: 400 12px/18px var(--mono); color: var(--ink2); }
.sw button[data-copied] span.hex { color: var(--accent); }
.sw button[data-copied] span.hex::after { content: " copied"; }
@media (max-width: 900px) { .sw { grid-template-columns: repeat(2, 1fr); } }

/* type */
.type-big { font: 500 clamp(56px, 9vw, 132px)/.95 var(--sans); letter-spacing: -.055em; }
.type-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.type-row > span { font: 500 11.5px/18px var(--mono); color: var(--ink2); }
@media (max-width: 700px) { .type-row { grid-template-columns: 1fr; gap: 6px; } }

/* don'ts */
.dos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.do { display: grid; gap: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.do > div { position: relative; display: grid; place-items: center; height: 150px; background: var(--bg); color: var(--ink-solid); margin: 8px 8px 0; border-radius: 10px; }
.do > div::after { content: ""; position: absolute; right: 10px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-solid) center/10px no-repeat; mask: none; }
.do > div::before { content: ""; position: absolute; right: 14px; top: 15px; z-index: 1; width: 7px; height: 4px; border-left: 1.6px solid var(--bg); border-bottom: 1.6px solid var(--bg); transform: rotate(-45deg); }
.dos { grid-template-columns: repeat(3, 1fr); }
.do b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.do svg { width: 64px; height: 64px; }
.do > div { overflow: hidden; }
.do p { padding: 14px 16px 16px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
@media (max-width: 900px) { .dos { grid-template-columns: repeat(2, 1fr); } }

.note-box { max-width: 640px; margin: 0 auto 100px; padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.note-box a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.b-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 32px; border-top: 1px solid var(--line); font: 400 12px/20px var(--mono); color: var(--ink2); }
.b-foot a:hover { color: var(--ink); }

/* mark lab */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding-top: 24px; padding-bottom: 96px; }
.lab-stage { position: relative; min-height: 560px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.lab-stage .big { width: 256px; height: 256px; }
.lab-row { position: absolute; left: 28px; bottom: 26px; display: flex; align-items: flex-end; gap: 28px; }
.lab-row figure { display: grid; justify-items: center; gap: 10px; font: 500 11px/14px var(--mono); color: var(--ink2); }
.lab-side { display: grid; gap: 16px; align-content: start; }
.panel { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.panel h2 { font: 500 11.5px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.panel .btns { display: flex; flex-wrap: wrap; gap: 6px; }
.panel p { font-size: 14px; line-height: 1.5; color: var(--ink2); min-height: 63px; }
.read { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font: 400 12px/18px var(--mono); color: var(--ink2); }
.read dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } }
.paper { color-scheme: inherit; }
:root[data-theme="dark"] .adapt { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .adapt { filter: invert(1); } }

/* name: the word in use */
.say { place-items: center start; padding: 24px 28px; }
.say dl { display: grid; gap: 16px; margin: 0; width: 100%; }
.say dt { font: 500 11px/16px var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink2); }
.say dd { margin: 2px 0 0; font-size: 17px; line-height: 1.4; letter-spacing: -.012em; color: var(--ink); }
.say dd.mono { font: 450 13.5px/1.5 var(--mono); letter-spacing: .01em; }

/* screens: wallpapers and the link preview */
.walls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; place-items: center; }
.walls img { width: 100%; max-width: none; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 12px 28px -16px var(--sh2); }
.og { padding: 20px; }
.og figure { margin: 0; width: min(100%, 420px); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -16px var(--sh2); }
.og img { display: block; width: 100%; max-width: none; height: auto; }
.og figcaption { display: grid; gap: 2px; padding: 10px 14px 12px; font-size: 13.5px; line-height: 1.35; }
.og figcaption b { font-weight: 500; color: var(--ink); }
.og figcaption span { font: 400 12px/16px var(--mono); color: var(--ink2); }

/* The 3D mark (D-155, design https://nauvid.com/c/8RnB0nJnmG B1 to C2). Every canvas[data-mark3d] is drawn by nv3d.js
   (the app's renderer) in a fixed box of 1.5 times the mark, so nothing shifts when it draws; the hero idles, the rest are
   stills, a tile plays once on press. The hero's flat mark is the fallback until the 3D one draws. */
/* the canvas sits over the flat mark (blank until drawn; never display:none, or it is never seen and never mounted) */
.b-big canvas.m3 { position: absolute; left: 50%; top: 50%; width: 336px; height: 336px; transform: translate(-50%, -50%); }
.b-big.m3-on > .nv { visibility: hidden; }
.b-big { position: relative; height: 420px; }
.b-rec { position: absolute; left: 20px; bottom: 16px; font-size: 11.5px; line-height: 16px; color: var(--ink3); }
.b-rec.r { left: auto; right: 20px; }
.g21 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 280px; margin: 8px 8px 0; border-radius: 14px; background: var(--bg); color: var(--ink-solid); }
.steps > div { position: relative; display: grid; place-items: center; padding-bottom: 28px; }
.steps > div + div { box-shadow: -1px 0 0 var(--line); }
.steps .flat { width: 120px; height: 120px; }
.cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11.5px; line-height: 16px; color: var(--ink3); }
.an { display: grid; grid-template-columns: auto 1fr; margin-top: 6px; font-size: 14.5px; line-height: 22px; }
.an dt, .an dd { padding: 8px 0; border-top: 1px solid var(--line); }
.an dt { color: var(--ink2); padding-right: 18px; }
.an dd { font: 450 13px/22px var(--mono); text-align: right; color: var(--ink); }
.paper.m3p { min-height: 240px; }
.tiles.t9 { grid-template-columns: repeat(9, 1fr); gap: 10px; }
.t9 .tile { align-items: center; text-align: center; padding: 0 4px 14px; }
.t9 .tile canvas { display: block; margin: -8px -10px -6px; }
.t9 .tile.on { border-color: var(--accent); }
.t9 .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.t9 .tile-t { padding: 0; font-size: 12.5px; line-height: 17px; color: var(--ink3); }
.t9 .tile-t b { font-size: 14px; line-height: 20px; }
.sizes.s3 { gap: 0; flex-wrap: wrap; justify-content: center; padding: 12px; }
.sizes.s3 canvas { display: block; }
.sizes.s3 figure:nth-child(1) canvas { margin: 0 -44px -30px; }
.sizes.s3 figure:nth-child(2) canvas { margin: 0 -18px -16px; }
.sizes.s3 figure:nth-child(3) canvas { margin: 0 -6px -8px; }
.sizes.s3 figure:nth-child(4) canvas { margin: 0 -2px -4px; }
.sizes.s3 figure:last-child img { margin: 0 18px 12px; }
.donts-h { margin: 36px 0 14px; font: 600 20px/26px var(--sans); letter-spacing: -.02em; }
.donts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.donts figure { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.donts .p { position: relative; height: 160px; display: grid; place-items: center; overflow: hidden; margin: 8px 8px 0; border-radius: 10px; background: var(--bg); color: var(--ink-solid); }
.donts .p.dark { background: #141413; }
.donts .p::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 1.5px; background: #e5484d; transform: rotate(-24deg); opacity: .85; }
.donts figcaption { padding: 12px 16px 14px; font-size: 14px; line-height: 1.45; color: var(--ink2); }
.ant { position: relative; display: block; width: 108px; height: 108px; }
.ant svg { position: absolute; inset: 0; width: 108px; height: 108px; color: #141413; }
.lk3 { display: inline-flex; align-items: center; color: var(--ink-solid); }
.lk3 canvas { margin: -10px -10px -10px -14px; }
.lk3 .wm { height: 22px; width: auto; }
@media (max-width: 1060px) { .tiles.t9 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .g21 { grid-template-columns: 1fr; } .donts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .b-big { height: 380px; } .b-rec.r { display: none; }
  .steps { grid-template-columns: 1fr; } .steps > div { min-height: 210px; } .steps > div + div { box-shadow: 0 -1px 0 var(--line); }
}
