/* Clay3d site styles: one file for every page (home, shop, tools, 404).
   The v3 store look, approved 2026-11-19, moved here unchanged from the store page;
   additions for the home page, the 404 page and a variable footer are at the end. */
/* Layout: product-store idiom. Slim translucent global bar with a full-width Shop flyout,
   search and bag; a photo-led hero; a two-up tile grid; listing with filters; a product
   page with gallery, sticky buy panel and a local bar. White ground, graphite type,
   one blue for actions. Real product photos carry the colour. */
:root {
  --bg: #FFFFFF; --alt: #F4F5F7; --ink: #101216; --muted: #636973; --line: #DDE0E5;
  --accent: #0A5BD8; --accent-ink: #FFFFFF; --dark: #0C0D10; --dark-ink: #F4F5F7; --dark-muted: #A3A9B3;
  --nav: rgba(255,255,255,.8); --ok: #137A4B;
  --font: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --max: 1200px; --bar: 48px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0D10; --alt: #16181C; --ink: #F1F2F4; --muted: #9AA1AB; --line: #2A2D33;
    --accent: #5B9BFF; --accent-ink: #04101F; --dark: #16181C; --dark-ink: #F4F5F7; --dark-muted: #A3A9B3;
    --nav: rgba(12,13,16,.76); --ok: #4CC78E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0D10; --alt: #16181C; --ink: #F1F2F4; --muted: #9AA1AB; --line: #2A2D33;
  --accent: #5B9BFF; --accent-ink: #04101F; --dark: #16181C; --dark-ink: #F4F5F7; --dark-muted: #A3A9B3;
  --nav: rgba(12,13,16,.76); --ok: #4CC78E;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 90; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 99px; padding: 10px 22px; font-weight: 500; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn.line { background: transparent; color: var(--accent); }
.btn.line:hover { background: var(--accent); color: var(--accent-ink); filter: none; }
.btn.wide { width: 100%; padding-block: 14px; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* global bar */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav-in { height: var(--bar); display: flex; align-items: center; gap: 6px; }
.brand { text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.03em; margin-right: 22px; }
.links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.links a, .links button { background: none; border: 0; text-decoration: none; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.links a:hover, .links button:hover, .links button[aria-expanded="true"], .links a[aria-current="page"] { color: var(--ink); }
.links button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 7px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--alt); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#bag-count { position: absolute; right: 2px; bottom: 3px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; margin-left: -10px; }
.panel { border-top: 1px solid var(--line); background: var(--bg); }
.fly { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 56px; padding-block: 36px 44px; }
.fly h2 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 14px; letter-spacing: 0; }
.fly ul { list-style: none; display: grid; gap: 10px; }
.fly .big a { font-size: 24px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.fly a, .fly button { text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 15px; text-align: left; }
.fly a:hover, .fly button:hover { color: var(--accent); }
.mob a, .mob button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; cursor: pointer; }
.search { padding-block: 22px 28px; display: grid; gap: 14px; }
.search input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 24px; font-weight: 500; letter-spacing: -.02em; padding: 8px 0; outline: none; }
.search input:focus { border-bottom-color: var(--accent); }
.search ul { list-style: none; display: grid; gap: 2px; }
.search li a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; text-decoration: none; }
.search li a:hover b { color: var(--accent); }
.search li span { color: var(--muted); font-size: 15px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }

/* product local bar */
.localbar { position: sticky; top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 1px); z-index: 30; background: var(--nav); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.localbar .wrap { height: 52px; display: flex; align-items: center; gap: 16px; }
.localbar b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.localbar span { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.localbar .btn { padding: 6px 16px; font-size: 14px; }

/* hero */
.hero { background: var(--bg); }
.hero img { width: 100%; height: clamp(320px, 44vw, 620px); object-fit: cover; object-position: 50% 58%; }
.hero-copy { padding-block: clamp(36px, 6vw, 76px) clamp(24px, 3.4vw, 44px); display: grid; gap: 10px; justify-items: start; }
.hero h1 { font-weight: 600; font-size: clamp(48px, 7vw, 100px); line-height: 1; letter-spacing: -.045em; }
.hero p { font-size: clamp(19px, 2.1vw, 28px); letter-spacing: -.015em; line-height: 1.25; color: var(--muted); }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 12px; }
.tile { position: relative; background: var(--alt); border-radius: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.tile.dark { background: var(--dark); color: var(--dark-ink); }
.tile-text { padding: clamp(24px, 3.4vw, 44px) clamp(22px, 3.4vw, 44px) 18px; display: grid; gap: 6px; justify-items: start; }
.tile h2 { font-weight: 600; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.05; }
.tile h2 a { text-decoration: none; }
.tile h2 a::after { content: ""; position: absolute; inset: 0; }
.tile p { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 32ch; }
.tile.dark p { color: var(--dark-muted); }
.tile .cue { color: var(--accent); font-weight: 500; font-size: 16px; margin-top: 6px; }
.tile.dark .cue { color: #7FB1FF; }
.tile:hover .cue { text-decoration: underline; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; align-self: end; }
.tile.shot img { object-fit: contain; aspect-ratio: auto; padding: 0 clamp(16px, 3vw, 40px); }

.band { padding-block: clamp(48px, 7vw, 96px); }
.band.alt { background: var(--alt); }
.h2 { font-weight: 600; font-size: clamp(30px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; margin-top: clamp(24px, 3vw, 40px); }
.facts h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 16px; }
.cross { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 20px 40px; align-items: end; }
.cross p { color: var(--muted); max-width: 52ch; margin-top: 12px; }

/* listing */
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; padding-block: clamp(32px, 5vw, 64px) 20px; }
.list-head h1 { font-weight: 600; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.045em; line-height: 1; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 7px 16px; font-size: 15px; cursor: pointer; }
.chips button:hover { border-color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.sort select { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 7px 10px; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; padding-block: 28px clamp(48px, 7vw, 96px); }
.card { position: relative; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--alt); }
.card h2 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.card h2 a { text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h2 { color: var(--accent); }
.card p { color: var(--muted); font-size: 16px; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(128,128,128,.55); }
.price { font-variant-numeric: tabular-nums; font-weight: 500; }
.eg.nfs { margin-left: 0; }
.eg { display: inline-block; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; white-space: nowrap; }
.empty { padding: 40px 0 80px; color: var(--muted); }

/* product page */
.crumbs { padding-block: 20px 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px clamp(32px, 5vw, 72px); padding-block: 20px clamp(40px, 6vw, 72px); align-items: start; }
.gallery { display: grid; gap: 10px; min-width: 0; }
.gallery .main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--alt); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 0; background: none; cursor: pointer; outline-offset: 2px; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .6; }
.thumbs button[aria-pressed="true"] img { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.buy { position: sticky; top: calc(var(--bar) + 76px); display: grid; gap: 18px; min-width: 0; }
.buy .cat { font-size: 14px; color: var(--muted); }
.buy h1 { font-weight: 600; font-size: clamp(34px, 3.8vw, 50px); letter-spacing: -.04em; line-height: 1.02; }
.buy .p { font-size: 21px; font-variant-numeric: tabular-nums; }
.buy .p small { color: var(--muted); font-size: 15px; margin-left: 6px; }
.buy .desc { color: var(--muted); }
.opt { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.opt .lab { font-size: 15px; } .opt .lab b { font-weight: 600; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(128,128,128,.55); outline-offset: 3px; }
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(128,128,128,.55), 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 20px; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--alt); }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.also { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 4px; }
.also b { color: var(--ink); font-weight: 600; }
.specs { padding-bottom: clamp(48px, 7vw, 96px); }
.specs h2 { font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; margin-bottom: 16px; }
.specs dl { border-top: 1px solid var(--ink); max-width: 820px; }
.specs dl div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs .draft { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 70ch; }

/* tools */
.tool-shot { background: var(--dark); padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 48px) 0; }
.tool-shot img { width: 100%; }
.tools { width: 100%; border-collapse: collapse; }
.table-scroll { overflow-x: auto; }
.tools th { text-align: left; font-size: 14px; font-weight: 500; color: var(--muted); padding: 0 20px 12px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tools td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tools td:first-child { font-weight: 600; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.tools td:nth-child(2), .tools td:nth-child(3) { min-width: 230px; color: var(--muted); }
.tools td:last-child { white-space: nowrap; font-size: 15px; }
.made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.made img { width: 100%; background: #000; }
.launch { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 64px; align-items: start; }
.launch p { color: var(--muted); margin-top: 12px; max-width: 48ch; }
.launch form { display: flex; gap: 8px; flex-wrap: wrap; }
.launch input { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 11px 18px; }
#signup-msg { font-size: 15px; font-weight: 500; min-height: 1.5em; margin-top: 10px; color: var(--ink); }

/* bag drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 80; background: var(--bg); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px max(20px, env(safe-area-inset-right, 0px)) 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.lines { overflow-y: auto; padding: 0 22px; }
.bag-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.bag-line img { width: 76px; aspect-ratio: 1; object-fit: cover; }
.bag-line b { font-weight: 600; display: block; letter-spacing: -.01em; }
.bag-line small { color: var(--muted); font-size: 14px; display: block; margin-bottom: 8px; }
.bag-line .qty button { width: 30px; height: 30px; font-size: 17px; }
.bag-line .rm { background: none; border: 0; color: var(--accent); font-size: 14px; cursor: pointer; padding: 0; margin-top: 8px; display: block; margin-left: auto; }
.bag-line .lp { display: block; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.bag-empty { padding: 48px 0; color: var(--muted); display: grid; gap: 16px; justify-items: start; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; }
.total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-foot p { font-size: 14px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 99px; font-size: 15px; font-weight: 500; z-index: 85; max-width: calc(100% - 32px); }

footer { background: var(--alt); padding-block: 48px 36px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot h2 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot p { color: var(--muted); max-width: 34ch; }
.legal { padding-top: 18px; display: flex; gap: 8px 28px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

@media (max-width: 880px) {
  .links { display: none; }
  .menu-btn { display: grid; }
  .brand { margin-right: auto; }
  .fly, .facts, .cross, .pdp, .launch { grid-template-columns: 1fr; }
  .tiles, .grid { grid-template-columns: 1fr; }
  .buy { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .hero img { height: clamp(260px, 70vw, 420px); }
  .made { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- additions, 2026-12-02 ---------- */
.home-nav .nav-in { justify-content: flex-start; }
.home-nav .brand { margin-right: auto; }
.hero .eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.btn.lg { padding: 14px 32px; font-size: 18px; }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
.foot { grid-template-columns: 1.3fr repeat(var(--cols, 3), minmax(0, 1fr)); }
.notfound { padding-block: clamp(48px, 9vw, 120px); }
.notfound .wrap { display: grid; gap: 14px; justify-items: start; }
.notfound h1 { font-weight: 600; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.045em; }
.notfound p { font-size: clamp(18px, 1.8vw, 24px); color: var(--muted); max-width: 40ch; letter-spacing: -.01em; line-height: 1.3; }
.notfound .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 880px) {
  .facts.two { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
