/* Sepia, v2 (owner, 19 Oct evening: "a lot more slick", aim for ottr.site). ottr's structure in Sepia's colours:
   one bold sepia field, a big Sepia, one big headline, one bright gold action, space, and motion that means something
   (today's painting paints itself onto his easel canvas). Colours sampled from the locked mascot. */
:root {
  color-scheme: light;
  --sepia: #5D3625;        /* the field: the art's own ground */
  --sepia-hi: #7A4A31;     /* the light behind Sepia */
  --sepia-base: #4A2A1C;   /* the hero's base strip and its drips */
  --sepia-deep: #2E1B12;   /* the footer */
  --cream: #FBF4E6;        /* Sepia himself; text on sepia */
  --page: #FAF6EF;
  --surface: #FFFFFF;
  --surface-2: #F6EFE4;
  --line: #ECE2D4;
  --line-2: #DDD0BE;
  --ink: #26170E;
  --ink-2: #4E3B2F;
  --muted: #7A6656;
  --gold: #F5B83D;         /* the one action */
  --gold-2: #FFC95A;
  --gold-deep: #C68A1E;
  --good: #3FA35C;
  --bad: #B23A26;
  --r: #F2484B; --o: #F7923A; --y: #FCD447; --g: #5CC566; --b: #3E8EF0; --v: #9C5BE8;
  --rainbow: linear-gradient(90deg, var(--r) 0 16.66%, var(--o) 16.66% 33.33%, var(--y) 33.33% 50%, var(--g) 50% 66.66%, var(--b) 66.66% 83.33%, var(--v) 83.33% 100%);
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --wrap: 1180px;
  --gut: clamp(18px, 4.5vw, 40px);
  --top-h: 64px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --pill: 999px;
  --shadow: 0 1px 2px rgba(38, 23, 14, .05), 0 14px 34px -16px rgba(38, 23, 14, .22);
  --shadow-lg: 0 2px 4px rgba(38, 23, 14, .06), 0 30px 64px -26px rgba(38, 23, 14, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.on-sepia { --ink: #FBF4E6; --ink-2: rgba(251, 244, 230, .9); --muted: rgba(251, 244, 230, .76); --line: rgba(251, 244, 230, .18); color: var(--ink); }
.on-sepia-deep { --ink: #FBF4E6; --ink-2: rgba(251, 244, 230, .86); --muted: rgba(251, 244, 230, .66); --line: rgba(251, 244, 230, .14); color: var(--ink); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; border-radius: 8px; }
.label { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 9px; font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.kicker.on { color: var(--gold); }
.lede { font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }

/* the wordmark: the logo's Fraunces, with a drop of rainbow paint for the i's dot */
.word { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.025em; line-height: 1; white-space: nowrap; }
.i { position: relative; display: inline-block; }
.dot { position: absolute; left: 50%; top: .13em; width: .19em; height: .19em; margin-left: -.095em; border-radius: 50%; background: var(--rainbow); transform: rotate(-28deg); }

/* buttons (ottr's: pills, one gold action) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .16s var(--ease), background-color .16s, box-shadow .16s, border-color .16s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--gold); border-color: transparent; color: #26170E; box-shadow: 0 8px 20px -10px rgba(197, 128, 18, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.primary:hover { background: var(--gold-2); }
.btn.glass { background: rgba(255, 255, 255, .08); border-color: rgba(251, 244, 230, .26); color: var(--cream); }
.btn.glass:hover { background: rgba(255, 255, 255, .14); }
.btn.line { background: transparent; }
.btn.line:hover { background: var(--surface-2); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* the top bar */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); background: rgba(250, 246, 239, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo .tile { width: 34px; height: 34px; border-radius: 9px; }
.logo .word { font-size: 27px; color: var(--ink); }
.nav { display: none; gap: 4px; margin-left: 14px; }
.nav a { padding: 8px 12px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ca-chip { font: 600 11.5px/1 var(--mono); letter-spacing: .05em; padding: 10px 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); text-decoration: none; white-space: nowrap; }
.top-cta { display: none; }

/* the hero: the sepia field */
.hero { position: relative; isolation: isolate; background: radial-gradient(70% 60% at 78% 44%, var(--sepia-hi) 0%, rgba(122, 74, 49, 0) 70%), var(--sepia); overflow: hidden; }
.hero-in { display: grid; gap: 8px; padding-top: clamp(30px, 6vw, 72px); }
.hero-copy { display: grid; justify-items: start; gap: 20px; }
.define { max-width: 31em; font-size: 15px; line-height: 1.55; color: var(--muted); }
.define dfn { font-family: 'Fraunces', Georgia, serif; font-style: normal; font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-size: 21px; color: var(--cream); letter-spacing: -.02em; }
.define .pos { font-style: italic; color: var(--cream); margin-right: 2px; }
.define i { font-style: italic; color: var(--cream); }
.define b { color: var(--cream); font-weight: 700; white-space: nowrap; }
.hero-title { font: 800 clamp(48px, 12.6vw, 88px)/.96 var(--font); letter-spacing: -.035em; color: var(--cream); }
.hero-title span { position: relative; display: inline-block; white-space: nowrap; }
.hero-title span::after { content: ''; position: absolute; left: .02em; right: .02em; bottom: -.04em; height: .085em; border-radius: 99px; background: var(--rainbow); transform-origin: 0 50%; animation: stroke 1.1s var(--ease) .35s both; }
@keyframes stroke { from { transform: scaleX(0); } }
.hero .lede { color: var(--ink-2); font-weight: 500; }
.hero .lede b { color: var(--cream); font-weight: 750; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.proof li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: var(--pill); background: rgba(32, 17, 10, .32); font-weight: 600; font-size: 13px; color: var(--cream); white-space: nowrap; }
.proof li svg { color: var(--gold); }

/* Sepia at his easel. The stage is the 1000 x 661 picture; site.js scales it to fit and puts today's painting on the
   canvas (a perspective transform, masked to the canvas face so the easel's legs and the drips stay in front). */
.easel { position: relative; aspect-ratio: 1000 / 661; margin: 6px calc(var(--gut) * -1) 0; }
.easel-glow { position: absolute; inset: 8% 6% 4% 20%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(251, 214, 160, .2), transparent); }
.easel-stage { position: absolute; left: 0; top: 0; width: 1000px; height: 661px; transform-origin: 0 0; transform: scale(var(--k, .39)); }
.easel-art { width: 1000px; height: 661px; max-width: none; }
.easel-canvas { position: absolute; inset: 0; -webkit-mask: url(../img/easel-canvas-mask.png) 0 0 / 1000px 661px no-repeat; mask: url(../img/easel-canvas-mask.png) 0 0 / 1000px 661px no-repeat; }
.easel-paint { position: absolute; left: 0; top: 0; width: 400px; height: 500px; max-width: none; transform-origin: 0 0; opacity: 0;
  -webkit-mask-image: linear-gradient(104deg, #000 44%, transparent 56%); mask-image: linear-gradient(104deg, #000 44%, transparent 56%);
  -webkit-mask-size: 280% 100%; mask-size: 280% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.easel.painting .easel-paint { opacity: 1; animation: paint-in 2.6s cubic-bezier(.45, .05, .25, 1) .5s forwards; }
@keyframes paint-in { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* the hero's base strip: live numbers and today's painting */
.hero-base { position: relative; background: linear-gradient(180deg, rgba(74, 42, 28, 0) 0%, rgba(74, 42, 28, .9) 34%, var(--sepia-base) 100%); padding: 22px 0 10px; margin-top: -24px; }
.hero-base-in { display: grid; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: grid; gap: 4px; }
.stat-v { font: 600 clamp(19px, 5.4vw, 26px)/1.1 var(--mono); letter-spacing: -.02em; color: var(--cream); }
.stat-l { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.live { display: grid; gap: 9px; text-decoration: none; }
.live-label { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.live-label i { width: 8px; height: 8px; border-radius: 50%; background: #6DDC8B; box-shadow: 0 0 0 0 rgba(109, 220, 139, .6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(109, 220, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(109, 220, 139, 0); } }
.live-card { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: var(--r-lg); background: var(--surface); color: #26170E; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
.live:hover .live-card { transform: translateY(-2px); }
.live-card img { width: 52px; height: 65px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #E3D5C1; }
.live-card span { display: grid; gap: 3px; flex: 1; min-width: 0; }
.live-card b { font-size: 16px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card small { font: 500 12px var(--mono); color: #7A6656; }
.live-card svg { color: var(--gold-deep); flex: none; }

/* ink drips: the sepia runs into the page below it */
.drips { position: absolute; left: 0; right: 0; bottom: -46px; height: 48px; z-index: 2; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='540' height='48' viewBox='0 0 540 48'%3E%3Cg fill='%234A2A1C'%3E%3Crect width='540' height='8'/%3E%3Crect x='18' width='13' height='30' rx='6.5'/%3E%3Crect x='52' width='8' height='16' rx='4'/%3E%3Crect x='83' width='17' height='44' rx='8.5'/%3E%3Crect x='131' width='10' height='22' rx='5'/%3E%3Crect x='164' width='14' height='34' rx='7'/%3E%3Crect x='209' width='8' height='14' rx='4'/%3E%3Crect x='246' width='19' height='40' rx='9.5'/%3E%3Crect x='301' width='11' height='26' rx='5.5'/%3E%3Crect x='339' width='15' height='46' rx='7.5'/%3E%3Crect x='390' width='8' height='18' rx='4'/%3E%3Crect x='428' width='13' height='30' rx='6.5'/%3E%3Crect x='475' width='9' height='20' rx='4.5'/%3E%3Crect x='503' width='16' height='38' rx='8'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 540px 48px; }
.hero { overflow: visible; }
.hero-in, .hero-base { overflow: hidden; }
.hero + .section { padding-top: clamp(84px, 9vw, 120px); }

/* sections */
.section { padding-top: clamp(64px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: 28px; max-width: 46em; }
.section-head h2, .band h2 { font: 800 clamp(32px, 7.4vw, 52px)/1.02 var(--font); letter-spacing: -.03em; }

/* the commission desk */
.desk-grid { display: grid; gap: 24px; align-items: start; }
.desk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-lg); }
.desk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.slot .n { position: absolute; left: 8px; top: 8px; font: 600 10px/1 var(--mono); letter-spacing: .06em; color: #A8968A; }
.slot .s { position: absolute; inset: auto 0 9px; text-align: center; font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #A8968A; }
.slot .plus { position: absolute; left: 50%; top: 44%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1.5px solid #CDBDAA; }
.slot .plus::before, .slot .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; background: #B9A794; }
.slot .plus::after { transform: rotate(90deg); }
.slot.done { box-shadow: 0 0 0 2px var(--gold); }
.slot.done img { width: 100%; height: 100%; object-fit: cover; }
.slot.done .n { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.slot.fresh img { animation: fill .9s var(--ease) both; }
@keyframes fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.slot.painting { background: repeating-linear-gradient(115deg, #F6EEE2 0 12px, #EFE3D2 12px 24px); background-size: 200% 100%; animation: brush 1.2s linear infinite; }
.slot.painting .s { color: var(--gold-deep); }
@keyframes brush { to { background-position: -54px 0; } }
.slot .pick { all: unset; position: absolute; inset: 0; cursor: pointer; }
.meter { margin: 12px 0 16px; font: 500 12.5px/1.3 var(--mono); color: var(--muted); }
.paste { display: flex; gap: 8px; }
.paste input { flex: 1; min-width: 0; height: 54px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: #fff; padding: 0 20px; font: 500 15px var(--font); color: var(--ink); }
.paste input::placeholder { color: #A8968A; }
.paste input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(38, 23, 14, .08); }
.paste .btn { flex: none; }
.notice { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); }
.notice p { font-size: 15px; color: var(--ink-2); }
.notice b { color: var(--ink); }
.status { min-height: 1.4em; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.status.bad { color: var(--bad); }
.status.good { color: var(--good); }
.status.working::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--gold); animation: pulse-gold 1.2s ease-in-out infinite; vertical-align: 1px; }
@keyframes pulse-gold { 50% { opacity: .35; transform: scale(.8); } }
.result { margin-top: 16px; }
.result .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

.examples { margin: 0; display: grid; gap: 14px; }
.ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ex { padding: 7px; border-radius: 6px; background: linear-gradient(150deg, #F8CF6E, #D8992C 60%, #F2BF57); box-shadow: inset 0 0 0 2px rgba(122, 74, 18, .35), var(--shadow); }
.ex img { border-radius: 2px; }
.examples figcaption { font-size: 14px; color: var(--muted); }
.examples figcaption .label { margin-right: 8px; color: var(--gold-deep); }

/* a portrait card: the coin's mascot in a gold frame, with its name */
.portrait { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 16px; box-shadow: var(--shadow); }
.portrait .ex { padding: 8px; }
.portrait figcaption { margin-top: 12px; display: grid; gap: 2px; }
.portrait figcaption b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.portrait figcaption span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.portrait figcaption small { font: 500 11.5px var(--mono); color: var(--muted); margin-top: 4px; }
.bare { all: unset; display: block; width: 100%; cursor: pointer; }
.bare:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; }

/* today's painting: the centrepiece on the sepia wall */
.wall { position: relative; margin-top: clamp(72px, 9vw, 110px); padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 100px); background: radial-gradient(50% 46% at 50% 38%, rgba(251, 214, 160, .13), transparent 70%), var(--sepia); }
.wall .drips { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='540' height='48' viewBox='0 0 540 48'%3E%3Cg fill='%235D3625'%3E%3Crect width='540' height='8'/%3E%3Crect x='18' width='13' height='30' rx='6.5'/%3E%3Crect x='52' width='8' height='16' rx='4'/%3E%3Crect x='83' width='17' height='44' rx='8.5'/%3E%3Crect x='131' width='10' height='22' rx='5'/%3E%3Crect x='164' width='14' height='34' rx='7'/%3E%3Crect x='209' width='8' height='14' rx='4'/%3E%3Crect x='246' width='19' height='40' rx='9.5'/%3E%3Crect x='301' width='11' height='26' rx='5.5'/%3E%3Crect x='339' width='15' height='46' rx='7.5'/%3E%3Crect x='390' width='8' height='18' rx='4'/%3E%3Crect x='428' width='13' height='30' rx='6.5'/%3E%3Crect x='475' width='9' height='20' rx='4.5'/%3E%3Crect x='503' width='16' height='38' rx='8'/%3E%3C/g%3E%3C/svg%3E"); background-position: 170px 0; }
.wall-in { display: grid; gap: 30px; justify-items: center; }
.wall-art { width: min(100%, 440px); }
.gilt { padding: clamp(12px, 3vw, 16px); border-radius: 6px; background: linear-gradient(145deg, #F9D57A 0%, #D99A2B 38%, #F3C25A 62%, #C98B22 100%); box-shadow: inset 0 0 0 2px rgba(110, 66, 12, .4), 0 34px 70px -28px rgba(0, 0, 0, .7); }
.mat { padding: clamp(14px, 4vw, 22px); background: #FBF6EC; box-shadow: inset 0 2px 6px rgba(60, 35, 15, .25); }
.mat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wall-art.paint img { -webkit-mask-image: linear-gradient(104deg, #000 44%, transparent 56%); mask-image: linear-gradient(104deg, #000 44%, transparent 56%); -webkit-mask-size: 280% 100%; mask-size: 280% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
.wall-art.paint.in img { animation: paint-in 2.2s cubic-bezier(.45, .05, .25, 1) .25s forwards; }
.wall-label { display: grid; gap: 12px; justify-items: start; width: min(100%, 440px); }
.wall-label .no { font: 500 13px var(--mono); color: var(--muted); }
.wall-label h2 { font: 800 clamp(30px, 7vw, 44px)/1.04 var(--font); letter-spacing: -.03em; }
.wall-label .diary { font-size: 17px; font-style: italic; color: var(--ink-2); max-width: 26em; }
.wall-label .next { font-size: 14px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.share .btn { height: 42px; font-size: 14.5px; }
.wall .share .btn { background: rgba(255, 255, 255, .08); border-color: rgba(251, 244, 230, .26); color: var(--cream); }
.wall .share .btn:hover { background: rgba(255, 255, 255, .15); }

/* the gallery */
.gallery { padding-top: clamp(96px, 10vw, 130px); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.thumb button { all: unset; display: block; width: 100%; cursor: pointer; }
.thumb button:focus-visible { outline: 3px solid var(--b); outline-offset: 4px; border-radius: 8px; }
.thumb .frame { padding: 8px; background: #fff; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.thumb button:hover .frame { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.thumb .no { display: block; margin-top: 12px; font: 500 11.5px var(--mono); color: var(--muted); }
.thumb b { display: block; margin-top: 3px; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.sub-h { margin: 46px 0 16px; font: 800 24px/1.1 var(--font); letter-spacing: -.02em; }
.portraits .portrait { padding: 10px 10px 12px; }

/* the closing band */
.band { position: relative; overflow: hidden; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 26px 22px 34px; border-radius: var(--r-xl); background: radial-gradient(60% 70% at 50% 20%, var(--sepia-hi), rgba(122, 74, 49, 0) 70%), var(--sepia); box-shadow: var(--shadow-lg); }
.band-art { width: min(100%, 340px); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px) rotate(-1.5deg); } }
.band-copy { display: grid; gap: 16px; justify-items: center; }
.band .lede { color: var(--ink-2); }

/* footer */
.foot { margin-top: clamp(72px, 9vw, 110px); background: var(--sepia-deep); padding: 46px 0 52px; }
.foot-in { display: grid; gap: 22px; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand .word { font-size: 36px; color: var(--cream); }
.foot-brand p { color: var(--muted); max-width: 32em; font-size: 15px; }
.cabox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.cabox .soon { color: var(--muted); font-size: 14px; }
.cabox code { font: 600 13px var(--mono); overflow-wrap: anywhere; color: var(--cream); }
.cabox .btn { height: 36px; }
.risk { font-weight: 700; color: var(--cream); }
.fine-foot { font-size: 13px; color: var(--muted); max-width: 52em; }

/* the painting viewer */
.viewer { border: 0; padding: 0; background: transparent; width: min(560px, 94vw); max-height: 94vh; overflow: visible; }
.viewer::backdrop { background: rgba(30, 17, 10, .84); backdrop-filter: blur(4px); }
.viewer .sheet { background: var(--page); border-radius: var(--r-lg); padding: 18px; max-height: 90vh; overflow: auto; }
.viewer .close { position: absolute; right: -6px; top: -6px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cream); color: var(--ink); font: 700 24px/1 var(--font); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.viewer .gilt { box-shadow: inset 0 0 0 2px rgba(110, 66, 12, .4); }
.viewer .v-label { display: grid; gap: 6px; margin-top: 14px; }
.viewer .v-label h3 { font: 800 24px/1.1 var(--font); letter-spacing: -.02em; }
.viewer .v-label p { color: var(--muted); }

/* reveal on scroll (only when the page's script runs) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* phones: one action above the fold (the live card below links to today's painting), the gallery as a swipe strip */
@media (max-width: 639px) {
  .hero .ctas .btn.glass { display: none; }
  .hero .ctas .btn.primary { width: 100%; }
  .gallery .grid:not(.portraits) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 64%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 14px; scrollbar-width: none; }
  .gallery .grid:not(.portraits)::-webkit-scrollbar { display: none; }
  .gallery .grid:not(.portraits) > li { scroll-snap-align: start; }
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .ex-grid { gap: 16px; }
  .result .portrait { max-width: 380px; }
}
@media (min-width: 960px) {
  .nav, .top-cta { display: inline-flex; }
  .hero-in { grid-template-columns: 1fr 1.08fr; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 8px; }
  .hero-copy { padding-bottom: 40px; }
  .easel { margin: 0 calc(var(--gut) * -1) 0 0; }
  .hero-base-in { grid-template-columns: 1fr minmax(320px, 420px); align-items: end; gap: 40px; }
  .stats { gap: 36px; display: flex; }
  .desk-grid { grid-template-columns: 1.08fr .92fr; gap: 36px; }
  .desk-card { padding: 26px; }
  .wall-in { grid-template-columns: minmax(0, 470px) minmax(0, 400px); justify-content: center; align-items: center; gap: 64px; }
  .wall-art { width: 100%; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
  .band { grid-template-columns: 300px 1fr; justify-items: start; text-align: left; padding: 40px 48px; gap: 40px; align-items: center; }
  .band-copy { justify-items: start; }
  .foot-in { grid-template-columns: 1.2fr 1fr; align-items: start; column-gap: 48px; }
  .foot-in .risk, .foot-in .fine-foot { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .easel-paint, .wall-art.paint img { -webkit-mask-position: 0 0 !important; mask-position: 0 0 !important; opacity: 1 !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ===== v3 (owner, 19 Oct night: no paid backend; "look like tech, pretty and professional") ===== */
/* the hero's ink-dot field (launch-visuals dotfield.js): faint behind the words, fuller around Sepia */
.hero .dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.3) 42%, #000 66%, #000 100%); mask-image: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.3) 42%, #000 66%, #000 100%); }
.hero-copy .kicker { margin-bottom: -2px; }
/* the easel's canvas: a coin being inked, dot by dot (site.js maps it onto the canvas face) */
.easel-ink { position: absolute; left: 0; top: 0; width: 400px; height: 500px; max-width: none; transform-origin: 0 0; }
.easel-tag { position: absolute; right: 6%; bottom: 2%; margin: 0; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(251, 244, 230, .82); background: rgba(32, 17, 10, .42); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
/* the hero's base: the coin card */
.coin-card { display: grid; gap: 9px; }
.card-in { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--r-lg); background: var(--surface); color: #26170E; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.card-in img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.card-in > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.card-in b { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-in b.mono { font: 600 14px var(--mono); }
.card-in small { font-size: 12.5px; color: #7A6656; }
.card-in .btn { flex: none; color: #26170E; border-color: #DDD0BE; background: #fff; }

/* the ink desk */
.ink-grid { display: grid; gap: 24px; align-items: start; }
.print { margin: 16px 0 0; }
.print-frame { padding: 10px; border-radius: 8px; background: linear-gradient(145deg, #F9D57A 0%, #D99A2B 38%, #F3C25A 62%, #C98B22 100%); box-shadow: inset 0 0 0 2px rgba(110, 66, 12, .4), var(--shadow); }
.print-frame canvas { display: block; width: 100%; aspect-ratio: 1; background: rgb(246, 237, 220); }
.print figcaption { margin-top: 12px; display: grid; gap: 2px; }
.print figcaption b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.print figcaption span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.print figcaption small { font: 500 12px var(--mono); color: var(--muted); margin-top: 3px; }
.print.inking .print-frame { animation: frame-glow 1.2s ease-in-out infinite; }
@keyframes frame-glow { 50% { box-shadow: inset 0 0 0 2px rgba(110, 66, 12, .4), 0 0 0 6px rgba(245, 184, 61, .25), var(--shadow); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ex canvas { display: block; width: 100%; aspect-ratio: 1; border-radius: 2px; background: rgb(246, 237, 220); }

/* the studio: the strip of all paintings under the featured one */
.strip { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.strip button { all: unset; display: block; cursor: pointer; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 2px rgba(251, 244, 230, .16); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.strip button:hover { transform: translateY(-2px); }
.strip button[aria-current="true"] { box-shadow: 0 0 0 2px var(--gold); }
.strip button:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* the coin, plainly */
.coin { padding-top: clamp(96px, 10vw, 130px); }
.coin-grid { display: grid; gap: 20px; }
.spec { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 6px 22px; box-shadow: var(--shadow); }
.spec div { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec div:last-child { border-bottom: 0; }
.spec dt { font: 600 11.5px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.spec dd a { color: var(--gold-deep); }
.spec .soon { color: var(--muted); font-weight: 500; }
.live-panel { background: var(--sepia-deep); color: var(--cream); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-lg); }
.lp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.live-panel .label { color: rgba(251, 244, 230, .62); }
.lp-dot { width: 9px; height: 9px; border-radius: 50%; background: #6E5A4C; }
.lp-dot.on { background: #6DDC8B; animation: pulse 2.4s ease-out infinite; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.lp-v { display: block; font: 600 clamp(19px, 5vw, 24px)/1.1 var(--mono); letter-spacing: -.02em; }
.lp-v.up { color: #6DDC8B; } .lp-v.down { color: #FF9A8B; }
.lp-l { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(251, 244, 230, .62); }
.lp-note { margin-top: 18px; font-size: 13.5px; color: rgba(251, 244, 230, .62); }

/* the footer's motion switch (launch-visuals house rule: the visitor's choice stops every animation) */
.foot-side { display: grid; gap: 12px; justify-items: start; }
.fx-switch { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: rgba(251, 244, 230, .7); background: none; border: 1px solid rgba(251, 244, 230, .22); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.fx-switch:hover { color: var(--cream); border-color: rgba(251, 244, 230, .4); }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }

@media (min-width: 960px) {
  .hero .dots { -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.3) 40%, #000 62%); mask-image: linear-gradient(100deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.3) 40%, #000 62%); }
  .ink-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .desk-card { padding: 26px; }
  .coin-grid { grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
  .foot-side { justify-items: end; }
}

@media (max-width: 639px) { .easel-tag { right: auto; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 9.5px; padding: 6px 10px; } }

/* the six styles: "the tech" chips, the style picker and the examples grid */
.tech { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tech li { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.styles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.styles button { font: 600 13.5px/1 var(--font); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.styles button:hover { border-color: var(--ink-2); }
.styles button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.styles button:focus-visible { outline: 3px solid var(--b); outline-offset: 2px; }
.ex-grid.six { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ex-grid.six figure { margin: 0; }
.ex-grid.six .ex { display: block; }
.ex-grid.six figcaption { margin-top: 7px; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 640px) { .ex-grid.six { grid-template-columns: repeat(3, 1fr); } }
