/* KUMA gallery: black, bone, hairlines and air. Shared by every page of kumawebdesign.com. */
:root {
  --ink: #0b0a09; --bone: #f1ebe3; --paper: #f7f3ee; --brown: #7a5e57; --sand: #b99a8d;
  /* Gallery walls and the four accents. Accents only appear in small doses, inside the hidden details. */
  --umber: #18120f; --clay: #e8d5c2;
  --crown: #e0b22e; --blue: #2f4b6e; --terra: #b9583a; --ochre: #c99a4b;
  --dim: rgba(241,235,227,.56); --line: rgba(241,235,227,.18);
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "Cormorant Garamond", Georgia, serif;
  --edge: clamp(16px, 2.2vw, 28px);
  --g: max(clamp(16px, 4vw, 56px), calc((100vw - 1200px) / 2));
  --ease: cubic-bezier(.22,1,.36,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall, var(--ink)); color: var(--fg, var(--bone)); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.mono.lc { text-transform: none; }
.dim { color: var(--dim); }
.arrow::after { content: " →"; font-family: var(--sans); }
.big-link { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.01em; line-height: 1; }
a:hover.big-link, .hov:hover { opacity: .6; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--edge); mix-blend-mode: difference; color: #f1ebe3; pointer-events: none; }
.top > * { pointer-events: auto; }
.top .l { display: flex; align-items: center; gap: clamp(20px, 7vw, 100px); }
.top .bear-s { width: 62px; height: 27px; background: currentColor; -webkit-mask: url(../assets/kuma-mark-light.png) center / contain no-repeat; mask: url(../assets/kuma-mark-light.png) center / contain no-repeat; }
.top .c { font-size: 24px; font-weight: 600; letter-spacing: -.02em; opacity: 0; transition: opacity .5s; }
.top.show .c, .top.always .c { opacity: 1; }
.top .r { justify-self: end; display: flex; gap: clamp(20px, 6vw, 90px); }
.top a:hover { opacity: .6; }

/* Breathing wordmark */
.word { display: inline-flex; white-space: nowrap; }
.word span { display: inline-block; animation: breathe 7s var(--ease) infinite; }
.word span:nth-child(2) { --d: .08em; animation-delay: -1.2s; }
.word span:nth-child(3) { --d: .34em; animation-delay: -2.1s; }
.word span:nth-child(4) { --d: .62em; animation-delay: -3.3s; }
@keyframes breathe { 0%, 100% { margin-left: 0; } 50% { margin-left: var(--d, 0); } }

/* ---------- Warm haze (hero and closing band) ---------- */
.haze-wrap { position: relative; overflow: hidden; background: #140f0c; }
.haze { position: absolute; inset: -20%; filter: blur(70px) saturate(1.1); }
.haze i { position: absolute; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.haze i:nth-child(1) { width: 60%; height: 70%; left: 8%; top: 12%; background: radial-gradient(closest-side, #b8835e, transparent); }
.haze i:nth-child(2) { width: 55%; height: 60%; right: 4%; top: 22%; background: radial-gradient(closest-side, #7a5e57, transparent); animation-duration: 28s; animation-delay: -6s; }
.haze i:nth-child(3) { width: 45%; height: 50%; left: 30%; bottom: 4%; background: radial-gradient(closest-side, #e2c2a4, transparent); opacity: .75; animation-duration: 18s; animation-delay: -3s; }
.haze i:nth-child(4) { width: 40%; height: 45%; left: -6%; bottom: 10%; background: radial-gradient(closest-side, #2a1d17, transparent); animation-duration: 25s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, -5%) scale(1.12); } 100% { transform: translate(-5%, 4%) scale(.94); } }
.grain { position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* The bear: a faint line, with a heartbeat of light running along it. */
.bear { position: relative; width: min(560px, 78vw); aspect-ratio: 494 / 214; }
.bear img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bear .base { opacity: .38; }
.bear .pulse { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 10%, transparent 18%); mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 10%, transparent 18%); -webkit-mask-size: 600% 100%; mask-size: 600% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: beat 3.4s cubic-bezier(.45,.05,.55,.95) infinite; filter: drop-shadow(0 0 6px rgba(255,236,214,.9)) drop-shadow(0 0 22px rgba(232,170,120,.6)); }
.bear .glow { opacity: 0; animation: glowin 3.4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,236,214,.55)); }
@keyframes beat { 0% { -webkit-mask-position: 120% 0; mask-position: 120% 0; } 100% { -webkit-mask-position: -20% 0; mask-position: -20% 0; } }
@keyframes glowin { 0%, 35%, 100% { opacity: 0; } 50% { opacity: .55; } 65% { opacity: .15; } }

/* ---------- Sections ---------- */
.sec-head { padding: 150px var(--g) 56px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); align-items: end; }
.sec-head h2 { font-size: clamp(36px, 5.2vw, 74px); font-weight: 400; letter-spacing: -.03em; line-height: .98; }
.sec-head p { color: var(--dim); max-width: 440px; line-height: 1.55; }
.kicker { padding: 0 var(--g); color: var(--dim); display: flex; justify-content: space-between; }
.rule { border-top: 1px solid var(--line); margin: 0 var(--g); }

/* Connector: a full-width row that sends you somewhere else */
.connector { display: flex; justify-content: space-between; align-items: center; margin: 0 var(--g); padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: clamp(36px, 5.2vw, 74px); letter-spacing: -.03em; line-height: 1; transition: padding .5s var(--ease); }
.connector .go { font-size: .8em; transition: transform .5s var(--ease); }
.connector:hover { padding-left: 14px; }
.connector:hover .go { transform: translateX(-14px); }

/* Before / after */
.compare { position: relative; margin: 0 var(--g); overflow: hidden; aspect-ratio: 1278 / 1040; max-height: 86vh; width: calc(100% - 2 * var(--g)); --pos: 50%; background: #1a1714; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--bone); }
.compare .handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--bone); color: var(--ink); display: grid; place-items: center; font-size: 15px; }
.compare .tag { position: absolute; top: 14px; background: var(--ink); padding: 7px 9px; }
.compare .tag.b { left: 14px; } .compare .tag.a { right: 14px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 var(--g); border-bottom: 1px solid var(--line); }
.nums div { padding: 20px 20px 34px 0; }
.nums div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.nums b { display: block; font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -.03em; line-height: 1; margin-top: 18px; }
.nums b s { color: var(--dim); text-decoration-thickness: 1px; font-size: .5em; letter-spacing: 0; margin-right: 8px; }
.nums span { display: block; color: var(--dim); font-size: 13px; margin-top: 10px; }
.source { padding: 14px var(--g) 0; color: var(--dim); }

/* Light section */
.light { background: var(--paper); color: var(--ink); --dim: rgba(11,10,9,.56); --line: rgba(11,10,9,.16); }
.light ::selection { background: var(--ink); color: var(--paper); }

/* ---------- Bot ---------- */
.kuma-bot { position: fixed; right: var(--edge); bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; transition: opacity .5s, transform .5s var(--ease); }
body.at-hero .kuma-bot:not(.is-open) { opacity: 0; transform: translateY(12px); pointer-events: none; }
.bot-launcher { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--bone); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .4s var(--ease); }
.bot-launcher:hover { transform: scale(1.06); }
.bot-launcher img { width: 38px; }
.bot-teaser { max-width: 290px; position: relative; background: var(--bone); color: var(--ink); animation: rise .5s var(--ease); }
.bot-teaser-open { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; text-align: left; font: inherit; font-size: 14px; line-height: 1.4; color: inherit; background: none; border: 0; padding: 14px 30px 14px 14px; cursor: pointer; }
.bot-teaser-close { position: absolute; top: 4px; right: 6px; background: none; border: 0; font-size: 18px; cursor: pointer; color: inherit; }
.bot-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.bot-avatar img { width: 26px; }
.bot-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); background: var(--ink); border: 1px solid var(--line); display: none; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.kuma-bot.is-open .bot-panel { display: flex; animation: rise .45s var(--ease); }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bot-head .bot-avatar { background: var(--bone); }
.bot-head strong { display: block; font-weight: 400; font-size: 17px; }
.bot-head small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.bot-head .dot { width: 6px; height: 6px; border-radius: 50%; background: #8fd19e; }
.bot-close { margin-left: auto; background: none; border: 0; color: var(--bone); font-size: 24px; cursor: pointer; }
.bot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bot-messages .msg { max-width: 85%; font-size: 15px; line-height: 1.45; }
.bot-messages .msg.user { align-self: flex-end; background: var(--bone); color: var(--ink); padding: 10px 14px; }
.bot-messages .msg.bot { align-self: flex-start; border-left: 1px solid var(--sand); padding: 2px 0 2px 12px; }
.bot-messages .msg a { text-decoration: underline; }
.bot-messages .typing { display: flex; gap: 5px; }
.bot-messages .typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); animation: pulse 1s infinite; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.bot-chips button { font: inherit; font-size: 13px; color: var(--bone); background: none; border: 1px solid var(--line); padding: 7px 11px; cursor: pointer; }
.bot-chips button:hover { border-color: var(--bone); }
.bot-form { display: flex; border-top: 1px solid var(--line); }
.bot-form input { flex: 1; font: inherit; font-size: 15px; color: var(--bone); background: none; border: 0; padding: 15px 16px; outline: none; }
.bot-form button { width: 52px; background: none; border: 0; color: var(--bone); font-size: 18px; cursor: pointer; }
.bot-note { font-family: var(--mono); font-size: 10.5px; line-height: 1.4; color: var(--dim); padding: 8px 16px 12px; }
.bot-note a { text-decoration: underline; }

/* ---------- Footer ---------- */
.foot-rows { padding: 120px var(--g) 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); border-top: 1px solid var(--line); padding: 16px 0 56px; }
.row .stack { display: grid; gap: 12px; }
.row .stack a:hover { opacity: .6; }


.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8fd19e; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .top .l .mono, .top .hide-s { display: none; }
  .top .c { font-size: 20px; }
  .sec-head, .row { grid-template-columns: 1fr; gap: 18px; }
  .sec-head { padding-top: 110px; }
  .nums { grid-template-columns: 1fr 1fr; }
  .nums div:nth-child(3) { padding-left: 0; border-left: 0; }
  .nums div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bear .base { opacity: 1; }
}

/* ---------- Kuma speaks in clouds: soft, glassy, a little alive ---------- */
.bot-teaser {
  max-width: 300px; color: var(--ink); isolation: isolate;
  background: radial-gradient(120% 140% at 22% 12%, rgba(255,252,247,.96), rgba(241,235,227,.86) 55%, rgba(222,204,190,.8));
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-radius: 46% 54% 50% 50% / 58% 52% 48% 42%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -10px 24px rgba(185,154,141,.25), 0 18px 50px rgba(185,154,141,.35), 0 0 70px rgba(241,235,227,.22);
  animation: rise .6s var(--ease), cloud 10s ease-in-out infinite;
  margin-right: 34px; margin-bottom: 4px;
}
.bot-teaser::before, .bot-teaser::after { content: ""; position: absolute; border-radius: 50%; background: inherit; box-shadow: 0 8px 24px rgba(185,154,141,.3); z-index: -1; }
.bot-teaser::before { width: 22px; height: 18px; right: -18px; bottom: -6px; animation: puff 4s ease-in-out infinite; }
.bot-teaser::after { width: 11px; height: 10px; right: -32px; bottom: -18px; animation: puff 4s ease-in-out infinite .6s; }
.bot-teaser-open { padding: 24px 34px 24px 26px; grid-template-columns: 30px 1fr; }
.bot-teaser-close { top: 14px; right: 18px; opacity: .55; }
.bot-teaser .bot-avatar { width: 30px; height: 30px; }
@keyframes cloud {
  0%, 100% { border-radius: 46% 54% 50% 50% / 58% 52% 48% 42%; transform: translateY(0); }
  33% { border-radius: 54% 46% 44% 56% / 50% 60% 40% 50%; transform: translateY(-3px); }
  66% { border-radius: 50% 50% 56% 44% / 44% 50% 50% 56%; transform: translateY(2px); }
}
@keyframes puff { 50% { transform: translate(-2px, -3px) scale(1.08); } }

.bot-panel {
  border-radius: 30px; overflow: hidden; border: 1px solid rgba(241,235,227,.16);
  background: radial-gradient(140% 90% at 20% 0%, rgba(122,94,87,.35), transparent 55%), rgba(14,12,11,.82);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 80px rgba(185,154,141,.12), inset 0 1px 0 rgba(255,255,255,.08);
}
.bot-head { border-bottom-color: rgba(241,235,227,.1); }
.bot-messages .msg.user { border-radius: 20px 20px 6px 20px; }
.bot-messages .msg.bot { border-left: 0; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: rgba(241,235,227,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.bot-chips button { border-radius: 999px; }
.bot-form { margin: 0 12px 4px; border: 1px solid rgba(241,235,227,.14); border-radius: 999px; }
.bot-form input { padding: 12px 18px; }
.bot-launcher { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 0 rgba(241,235,227,.35); animation: halo 3.6s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 10px rgba(241,235,227,0); } }

/* =====================================================================
   The gallery: walls that change as you walk, rooms, labels, and a few
   artists hiding in the details. v8
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang { display: flex; gap: 10px; }
.lang button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .5; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Walls: the body carries the colour of the room you are standing in, and blends to the next one. */
@property --wall { syntax: "<color>"; inherits: true; initial-value: #0b0a09; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #f1ebe3; }
@property --dim { syntax: "<color>"; inherits: true; initial-value: rgba(241,235,227,.56); }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(241,235,227,.18); }
body { --wall: var(--ink); --fg: var(--bone); transition: --wall 1.2s var(--ease), --fg 1.2s var(--ease), --dim 1.2s var(--ease), --line 1.2s var(--ease); }
body[data-wall="umber"] { --wall: var(--umber); }
body[data-wall="paper"] { --wall: var(--paper); --fg: var(--ink); --dim: rgba(11,10,9,.6); --line: rgba(11,10,9,.16); }
body[data-wall="clay"] { --wall: var(--clay); --fg: var(--ink); --dim: rgba(11,10,9,.64); --line: rgba(11,10,9,.18); }
body[data-wall="clay"] ::selection { background: var(--terra); color: var(--paper); }
.kuma-bot { --dim: rgba(241,235,227,.56); --line: rgba(241,235,227,.18); color: var(--bone); }

/* Room numbers, like a museum floor plan */
.room { color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.sec-head .room, .c-head .room { display: block; margin-bottom: 26px; }

/* Curtain reveal for pictures */
.wipe > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease); }
.wipe > :nth-child(2) { transition-delay: .2s; } .wipe > :nth-child(3) { transition-delay: .4s; }
.wipe.in > * { clip-path: inset(0 0 0 0); }

/* Crossed out so you see it more */
.x { position: relative; white-space: nowrap; }
.x::after { content: ""; position: absolute; left: -3%; right: -3%; top: 44%; height: .32em; background: currentColor; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 17C40 11 80 20 120 12S200 16 240 9S290 12 296 8M9 23C70 15 150 25 292 14' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 17C40 11 80 20 120 12S200 16 240 9S290 12 296 8M9 23C70 15 150 25 292 14' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.6,0,.3,1) 1s; }
.in .x::after { clip-path: inset(0 0 0 0); }

/* The clock is a little soft */
#clock { display: inline-flex; white-space: pre; }
#clock .ch { display: inline-block; transform-origin: 50% 0; transition: transform 1.8s var(--ease); }
#clock:hover .ch, #clock.melt .ch { transform: translateY(calc(var(--m) * .8px)) scaleY(calc(1 + var(--m) * .12)) skewX(calc(var(--m) * -2deg)); }

/* Corridor: the client life cycle, walked sideways */
.corridor .pin { padding-top: 150px; }
.corridor.pinned .pin { position: sticky; top: 0; height: 100svh; padding: 60px 0 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.c-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); padding: 0 var(--g); align-items: end; }
.c-head h2 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.c-head p { color: var(--dim); max-width: 440px; line-height: 1.55; }
.walk { display: flex; gap: clamp(24px, 3.4vw, 56px); padding: clamp(34px, 6vh, 64px) var(--g) 0; will-change: transform; }
.plate { flex: 0 0 clamp(270px, 29vw, 420px); border-top: 1px solid var(--line); padding-top: 14px; }
.plate > .mono { color: var(--dim); }
.plate svg { display: block; width: 100%; height: auto; margin: 6px 0 20px; overflow: visible; }
.plate svg path { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; transition: stroke-dashoffset 1.8s var(--ease); }
.plate svg path.h { stroke-width: .8; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity 1.2s var(--ease) 1.3s; }
.plate.in svg path { stroke-dashoffset: 0; } .plate.in svg path.h { opacity: .5; }
.plate b { display: block; font-weight: 400; font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.03em; line-height: 1; margin-top: 12px; }
.plate .d { display: block; color: var(--dim); margin-top: 10px; max-width: 300px; font-size: 15.5px; line-height: 1.5; }
.c-foot { display: flex; align-items: center; gap: 16px; padding: clamp(26px, 5vh, 48px) var(--g) 0; color: var(--dim); }
.c-foot .prog { flex: 1; height: 1px; background: var(--line); position: relative; }
.c-foot .prog i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--fg); }

/* Works hung on the wall, with their labels */
.hang { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.6vw, 40px); margin: 0 var(--g); }
.work { display: grid; gap: 16px; align-content: start; }
.work .frame { position: relative; aspect-ratio: 4 / 5; background: var(--ink); color: var(--bone); display: grid; place-items: center; padding: 18px; box-shadow: 0 30px 40px -30px rgba(11,10,9,.55); transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.work .frame::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(241,235,227,.14); pointer-events: none; }
.work:hover .frame { transform: translateY(-5px); box-shadow: 0 44px 50px -34px rgba(11,10,9,.6); }
.work .wm { text-align: center; font-size: clamp(22px, 2.3vw, 34px); letter-spacing: -.01em; line-height: 1; }
.work .label { display: grid; gap: 3px; font-size: 14px; line-height: 1.35; }
.work .label b { font-weight: 500; font-size: 15px; }
.work .label b em { font-family: inherit; font-style: normal; font-weight: 500; }
.work .label i { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.15; }
.work .label .mono { color: var(--dim); font-size: 10.5px; margin-top: 4px; }
.work .label .st { color: var(--fg); margin-top: 8px; }
.work.empty .frame { background: transparent; color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.work.empty .frame::after { border: 1px dashed var(--line); }
.work.empty .wm { color: var(--dim); }
.crown { position: absolute; left: 50%; top: calc(50% - 74px); width: 58px; transform: translateX(-50%) rotate(-7deg); color: var(--crown); overflow: visible; }
.crown path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; transition: stroke-dashoffset 1.2s var(--ease); }
.crown circle { fill: currentColor; opacity: 0; transition: opacity .4s; }
.work.empty:hover .crown path, .work.empty:focus-visible .crown path { stroke-dashoffset: 0; }
.work.empty:hover .crown circle, .work.empty:focus-visible .crown circle { opacity: 1; transition-delay: 1s; }
@media (hover: none) {
  .hang.in .crown path { stroke-dashoffset: 0; transition-delay: 1.6s; }
  .hang.in .crown circle { opacity: 1; transition-delay: 2.7s; }
}

/* A portrait that comes apart in planes when you look at it for a while */
.cub-in { position: relative; }
.cub .facet { position: absolute; inset: 0; background: var(--ph) 50% 25% / cover no-repeat; filter: grayscale(1) contrast(1.05); opacity: 0; pointer-events: none; transition: transform 1.3s var(--ease), opacity .8s var(--ease); }
.cub .f1 { clip-path: polygon(0 0, 52% 0, 40% 46%, 0 58%); }
.cub .f2 { clip-path: polygon(52% 0, 100% 0, 100% 44%, 60% 54%, 40% 46%); filter: grayscale(1) sepia(1) hue-rotate(175deg) saturate(1.7) brightness(.82); }
.cub .f3 { clip-path: polygon(40% 46%, 60% 54%, 100% 44%, 100% 100%, 26% 100%, 0 58%); }
.cub:hover .facet, .cub.shift .facet { opacity: 1; }
.cub:hover .f1, .cub.shift .f1 { transform: translate(-14px, 8px) rotate(-1.4deg); }
.cub:hover .f2, .cub.shift .f2 { transform: translate(12px, -10px) rotate(1.1deg); }
.cub:hover .f3, .cub.shift .f3 { transform: translate(6px, 12px) scale(1.025); }

/* KUMA signature: one line that writes the name and keeps going until it becomes the bear */
svg.sig:not([width]) { display: block; width: 100%; height: auto; overflow: visible; }
.sig path { fill: none; stroke: currentColor; stroke-width: var(--sw, 3.2); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; }
.sig.in path { stroke-dashoffset: 0; transition: stroke-dashoffset var(--u) cubic-bezier(.45,.05,.55,.95) var(--t); }
.sig-cap { color: var(--dim); margin-top: 12px; display: block; }

/* Footer: a small directory, then the mountains */
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); padding: 110px var(--g) 50px; }
.foot-grid > div { display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--line); padding-top: 14px; }
.foot-grid > div > span { margin-bottom: 14px; }
.foot-grid a { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.01em; line-height: 1.15; width: fit-content; transition: opacity .3s; }
.foot-grid a:hover { opacity: .6; }
.foot-grid sup { font-size: 9px; color: var(--dim); margin-left: 3px; vertical-align: super; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 var(--g); padding: 16px 0 22px; border-top: 1px solid var(--line); color: var(--dim); }
.end { position: relative; height: clamp(220px, 34vh, 340px); overflow: hidden; }
.end .ridges { position: absolute; inset: 0; width: 100%; height: 100%; }
.end-word { position: absolute; left: var(--edge); bottom: 18px; font-size: clamp(56px, 9vw, 130px); font-weight: 600; letter-spacing: -.035em; line-height: .9; }

/* Inner pages (catalogue, curated, shop) */
.intro { padding: 150px var(--g) 0; }
.intro h1 { font-size: clamp(64px, 12vw, 190px); font-weight: 400; letter-spacing: -.045em; line-height: .9; }
.intro p { color: var(--dim); max-width: 520px; margin-top: 28px; line-height: 1.55; }

@media (max-width: 820px) {
  .top .l #clock { display: none; }
  .c-head { grid-template-columns: 1fr; gap: 18px; }
  .corridor .pin { padding-top: 110px; }
  .walk { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .walk::-webkit-scrollbar { display: none; }
  .plate { flex-basis: 78vw; scroll-snap-align: center; }
  .c-foot { display: none; }
  .hang { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .wipe > * { clip-path: none; }
  .x::after { clip-path: none; }
  .plate svg path, .sig path, .crown path { stroke-dashoffset: 0; }
  .plate svg path.h { opacity: .5; }
}

/* Every page is signed at the bottom right, like a painting */
.end .sig.end-sig { position: absolute; right: var(--edge); bottom: 26px; width: clamp(210px, 28vw, 420px); color: var(--bone); }
@media (max-width: 820px) { .end .sig.end-sig { width: 56vw; bottom: auto; top: 28px; } }
