body.showcase-page { background: #080808; }
body.showcase-page #navbar { display: none; }
body.showcase-page footer { display: none; }
body.showcase-page #to-top { display: none; }

.show-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1080px) {
  .show-shell { grid-template-columns: 1fr 88px; }
}

.show-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 52px; padding: 0 16px;
  background: #0c0c0b; color: #eeeae2; border-bottom: 1px solid #2a2926;
  font-size: 13px;
}
.show-bar a { color: #9a958c; }
.show-bar a:hover { color: #eeeae2; }
.show-bar strong { font-weight: 600; letter-spacing: .04em; }

.show-stage-wrap {
  position: relative;
  min-height: calc(100svh - 52px);
  background: #111;
}
#demo-root {
  min-height: calc(100svh - 52px);
  transform-origin: center top;
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1), clip-path .7s cubic-bezier(.22,1,.36,1);
}
#demo-root.is-out {
  opacity: 0;
  transform: translateY(12px) scale(.985);
  clip-path: inset(0 0 12% 0);
  pointer-events: none;
}
#demo-root.is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* RAIL desktop */
.show-rail {
  display: none;
  border-left: 1px solid #2a2926;
  background: #0c0c0b;
  position: sticky; top: 0; height: 100svh;
  overflow: auto;
  scrollbar-width: none;
}
.show-rail::-webkit-scrollbar { display: none; }
@media (min-width: 1080px) {
  .show-rail { display: flex; flex-direction: column; }
}
.rail-item {
  flex: 1; min-height: 64px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; border: 0; background: transparent; color: #6f6b64;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 4px; cursor: pointer; border-bottom: 1px solid #1e1d1b;
}
.rail-item b { font-size: 12px; font-weight: 650; letter-spacing: 0; color: inherit; }
.rail-item:hover { color: #eeeae2; background: #161513; }
.rail-item.active { color: #c4a574; background: #16140f; }

/* mobile selector */
.show-mobile-rail {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px;
  background: #0c0c0b; border-top: 1px solid #2a2926;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1080px) { .show-mobile-rail { display: none; } }
.show-mobile-rail button {
  flex: 0 0 auto; border: 1px solid #2a2926; background: transparent; color: #9a958c;
  padding: 8px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.show-mobile-rail button.active { border-color: #c4a574; color: #c4a574; }

/* ===== DEMO SITES ===== */
.demo { min-height: calc(100svh - 52px); color: var(--d-text); background: var(--d-bg); font-family: var(--d-sans); }
.demo * { box-sizing: border-box; }
.demo a { color: inherit; text-decoration: none; }
.demo img { max-width: 100%; display: block; }
.d-wrap { width: min(var(--d-max, 1120px), calc(100% - 36px)); margin: 0 auto; }
.d-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 4px;
}
.d-brand { font-weight: 650; letter-spacing: .08em; font-size: 13px; }
.d-links { display: none; gap: 18px; font-size: 13px; opacity: .75; }
@media (min-width: 760px) { .d-links { display: flex; } }
.d-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; font-size: 13px; font-weight: 600;
  background: var(--d-accent); color: var(--d-accent-ink, #111); border: 0; cursor: pointer;
}
.d-hero { position: relative; min-height: 72vh; display: grid; align-items: end; overflow: hidden; }
.d-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-hero .veil { position: absolute; inset: 0; background: var(--d-veil); }
.d-hero .copy { position: relative; z-index: 1; padding: 48px 0 56px; }
.d-hero h1 { font-family: var(--d-serif); font-weight: 400; font-size: clamp(36px, 6vw, 76px); line-height: 1.02; margin: 0 0 12px; max-width: 12ch; letter-spacing: -.03em; }
.d-hero p { max-width: 40ch; margin: 0; opacity: .86; }
.d-sec { padding: 72px 0; }
.d-sec h2 { font-family: var(--d-serif); font-size: clamp(26px, 3.5vw, 42px); font-weight: 400; margin: 0 0 16px; }
.d-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .d-grid-3 { grid-template-columns: 1fr 1fr 1fr; } .d-grid-2 { grid-template-columns: 1fr 1fr; } .d-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.d-card h3 { margin: 12px 0 6px; font-size: 18px; }
.d-card p { margin: 0; opacity: .72; font-size: 14px; }
.d-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.d-foot { padding: 36px 0; border-top: 1px solid color-mix(in srgb, var(--d-text) 12%, transparent); font-size: 13px; opacity: .7; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.d-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-bottom: 10px; }

/* Architecture */
.t-arch { --d-bg: #f6f3ee; --d-text: #161513; --d-accent: #161513; --d-accent-ink: #f6f3ee; --d-serif: "Cormorant Garamond", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, rgba(22,21,19,.1), rgba(22,21,19,.72)); --d-max: 1180px; }
.t-arch .d-nav { letter-spacing: .18em; }
.t-arch .d-cta { border-radius: 0; }
.t-arch .d-card img { aspect-ratio: 3/4; }

/* Restaurant */
.t-rest { --d-bg: #1a0f0d; --d-text: #f3e6d4; --d-accent: #c45c3a; --d-accent-ink: #fff; --d-serif: "Cormorant Garamond", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, rgba(26,15,13,.2), rgba(26,15,13,.85)); }
.t-rest .d-cta { border-radius: 0; letter-spacing: .08em; text-transform: uppercase; }
.t-rest .menu-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(243,230,212,.15); font-size: 15px; }
.t-rest .menu-row b { font-family: var(--d-serif); font-weight: 500; }

/* Hotel */
.t-hotel { --d-bg: #0e1012; --d-text: #ece6da; --d-accent: #c4a574; --d-accent-ink: #1a150e; --d-serif: "Cormorant Garamond", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, rgba(14,16,18,.15), rgba(14,16,18,.78)); }
.t-hotel .d-cta { border-radius: 0; }
.t-hotel .room img { aspect-ratio: 16/10; }

/* Creative */
.t-crea { --d-bg: #0b0b0b; --d-text: #f2f2f0; --d-accent: #f2f2f0; --d-accent-ink: #0b0b0b; --d-serif: "Instrument Serif", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(90deg, rgba(11,11,11,.85), rgba(11,11,11,.2)); }
.t-crea .d-hero { min-height: 88vh; }
.t-crea .d-hero h1 { max-width: 16ch; font-size: clamp(42px, 8vw, 92px); }
.t-crea .work { position: relative; overflow: hidden; }
.t-crea .work img { aspect-ratio: 1; filter: grayscale(.4); }
.t-crea .work span { position: absolute; left: 12px; bottom: 12px; font-family: var(--d-serif); font-size: 22px; }

/* Shop */
.t-shop { --d-bg: #f7f5f1; --d-text: #1c1a17; --d-accent: #2c4a3e; --d-accent-ink: #f7f5f1; --d-serif: "Instrument Serif", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, transparent, rgba(28,26,23,.55)); }
.t-shop .d-cta { border-radius: 999px; }
.t-shop .price { font-weight: 650; margin-top: 8px; }
.t-shop .d-card { background: #fff; padding: 0 0 16px; }
.t-shop .d-card h3, .t-shop .d-card p, .t-shop .d-card .price { padding: 0 12px; }

/* Medical */
.t-med { --d-bg: #f4f7f8; --d-text: #163038; --d-accent: #1d6b75; --d-accent-ink: #fff; --d-serif: "Figtree", sans-serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, rgba(22,48,56,.1), rgba(22,48,56,.7)); }
.t-med h1, .t-med h2, .t-med h3 { font-family: var(--d-sans); font-weight: 650; letter-spacing: -.02em; }
.t-med .d-cta { border-radius: 8px; }
.t-med .d-card { background: #fff; padding: 20px; border: 1px solid #dde5e7; }

/* Law */
.t-law { --d-bg: #12151c; --d-text: #e7e3d8; --d-accent: #b49a63; --d-accent-ink: #12151c; --d-serif: "Cormorant Garamond", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, rgba(18,21,28,.2), rgba(18,21,28,.82)); }
.t-law .d-cta { border-radius: 0; letter-spacing: .1em; text-transform: uppercase; }
.t-law .d-links { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }

/* Real estate */
.t-real { --d-bg: #f8f6f2; --d-text: #1e1b16; --d-accent: #1e1b16; --d-accent-ink: #f8f6f2; --d-serif: "Instrument Serif", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, transparent 30%, rgba(30,27,22,.7)); }
.t-real .prop { background: #fff; }
.t-real .prop img { aspect-ratio: 16/10; }
.t-real .prop-body { padding: 16px; }
.t-real .prop-body b { display: block; font-size: 18px; margin-top: 4px; }

/* Tech */
.t-tech { --d-bg: #07080c; --d-text: #e8eef4; --d-accent: #7d9aa8; --d-accent-ink: #07080c; --d-serif: "Figtree", sans-serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, rgba(7,8,12,.2), rgba(7,8,12,.86)); }
.t-tech h1, .t-tech h2 { font-weight: 550; letter-spacing: -.04em; }
.t-tech .d-cta { border-radius: 6px; }
.t-tech .feat { border-top: 1px solid rgba(232,238,244,.12); padding: 20px 0; }

/* Fashion */
.t-fash { --d-bg: #111010; --d-text: #f4efe8; --d-accent: #f4efe8; --d-accent-ink: #111010; --d-serif: "Cormorant Garamond", serif; --d-sans: "Figtree", sans-serif; --d-veil: linear-gradient(180deg, rgba(17,16,16,.05), rgba(17,16,16,.55)); }
.t-fash .d-hero h1 { font-style: italic; max-width: 14ch; }
.t-fash .look img { aspect-ratio: 3/4; object-fit: cover; }
.t-fash .d-cta { border-radius: 0; letter-spacing: .16em; text-transform: uppercase; }

@media (max-width: 1079px) {
  #demo-root { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  #demo-root { transition: none; }
}


/* KLARWERK LIVE REBUILD */
.show-top-actions{display:flex;align-items:center;gap:14px}
.show-lang{display:flex;gap:3px}
.show-lang button{border:0;background:transparent;color:#6f6b64;font:600 10px/1 Figtree,sans-serif;letter-spacing:.08em;padding:5px 6px;cursor:pointer}
.show-lang button.active,.show-lang button:hover{color:#c4a574}
.rebuild-overlay{position:absolute;inset:0;z-index:25;display:grid;place-items:center;pointer-events:none;opacity:0;visibility:hidden;background:#080808}
.rebuild-overlay.active{opacity:1;visibility:visible}
.rebuild-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(196,165,116,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(196,165,116,.08) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,transparent,black 20%,black 80%,transparent)}
.rebuild-core{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.rebuild-k{font:600 10px/1 Figtree,sans-serif;letter-spacing:.2em;color:#8f897e}
.rebuild-core strong{font:400 clamp(28px,4vw,52px)/1 "Instrument Serif",serif;color:#eeeae2;letter-spacing:-.02em}
.rebuild-line{width:160px;height:1px;background:#c4a574;transform-origin:left;animation:rebuildLine .8s ease both}
@keyframes rebuildLine{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:1}}
.show-stage-wrap{overflow:hidden}
#demo-root.rebuilding .d-nav,
#demo-root.rebuilding .d-hero .copy,
#demo-root.rebuilding .d-sec,
#demo-root.rebuilding .d-foot{filter:blur(4px)}
#demo-root .demo-extra,#demo-root .demo-story{animation:sectionRise .8s cubic-bezier(.22,1,.36,1) both}
#demo-root .demo-extra{animation-delay:.08s}
#demo-root .demo-story{animation-delay:.18s}
@keyframes sectionRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.rail-item{position:relative;overflow:hidden}
.rail-item .rail-preview{display:block;width:48px;height:28px;background-image:var(--rail-bg);background-size:cover;background-position:center;opacity:.35;filter:saturate(.65);transition:opacity .25s,transform .35s}
.rail-item:hover .rail-preview,.rail-item.active .rail-preview{opacity:.8;transform:scale(1.06)}
.rail-item.active:after{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:#c4a574}
@media(min-width:1080px){
  .show-shell{grid-template-columns:1fr 112px}
  .show-rail{width:112px}
  .rail-item{min-height:92px}
}
@media(max-width:700px){
  .show-note{display:none}
  .show-bar{height:56px}
  .show-mobile-rail{bottom:0}
}
@media(prefers-reduced-motion:reduce){
 .rebuild-overlay{display:none}
 #demo-root .demo-extra,#demo-root .demo-story{animation:none}
}
