/* ── کاشی (kashi) — Persian tilework, today ──
   Cream glazed paper, lapis ink, turquoise glaze, saffron and gold. The avatar
   sits on a shamseh (an eight-point star of turquoise glaze) that turns once into
   place, under a slow-turning rosette; a star-and-cross girih lattice runs behind
   the hero; every card is a framed tile with lachak (corner) ornaments; section
   titles are sarlowh headings between two gilded rules. The user's accent paints
   the main button only — the palette itself is fixed. Light (day) and dark
   (lapis night with gold) via light-dark(); data-mode picks.
   Ornaments are SVG masks over colour tokens, so one drawing serves both modes. */
.kp[data-tpl="kashi"] {
  --bg: light-dark(#f4ead6, #0b1330);
  --ink: light-dark(#1b2549, #f2e8d0);
  --muted: light-dark(#6f6550, #a9a58f);
  --line: light-dark(rgba(31, 60, 136, .16), rgba(226, 187, 99, .2));
  --card: light-dark(#fbf5e7, #121d42);
  --surface: light-dark(#f1e6cf, #18244f);
  --lapis: light-dark(#1f3c88, #2c4ea8);
  --firouzeh: light-dark(#1a9aa0, #36bfc1);
  --saffron: light-dark(#d9962a, #e8b04a);
  --anar: #b4283f;
  --gold: light-dark(#b88a32, #e2bb63);
  --frame: light-dark(rgba(31, 60, 136, .22), rgba(226, 187, 99, .3));
  --orn: light-dark(rgba(26, 154, 160, .75), rgba(226, 187, 99, .7));
  --pat: light-dark(rgba(31, 60, 136, .11), rgba(226, 187, 99, .09));
  --radius: 18px;
  --gap: 14px;
  --display: "Markazi", "Vazirmatn", serif;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --glaze: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 18px -12px rgba(0, 0, 0, .25);
  /* masks */
  --m-girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpolygon points='60,0 77.6,17.6 102.4,17.6 102.4,42.4 120,60 102.4,77.6 102.4,102.4 77.6,102.4 60,120 42.4,102.4 17.6,102.4 17.6,77.6 0,60 17.6,42.4 17.6,17.6 42.4,17.6'/%3E%3Cpolygon points='60,34 67.6,41.6 78.4,41.6 78.4,52.4 86,60 78.4,67.6 78.4,78.4 67.6,78.4 60,86 52.4,78.4 41.6,78.4 41.6,67.6 34,60 41.6,52.4 41.6,41.6 52.4,41.6'/%3E%3Ccircle cx='60' cy='60' r='5' fill='%23000'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23000'/%3E%3Ccircle cx='120' cy='0' r='3' fill='%23000'/%3E%3Ccircle cx='0' cy='120' r='3' fill='%23000'/%3E%3Ccircle cx='120' cy='120' r='3' fill='%23000'/%3E%3C/svg%3E");
  --m-rosette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpolygon points='200,4 232.9,34.7 275,18.9 293.6,59.8 338.6,61.4 340.2,106.4 381.1,125 365.3,167.1 396,200 365.3,232.9 381.1,275 340.2,293.6 338.6,338.6 293.6,340.2 275,381.1 232.9,365.3 200,396 167.1,365.3 125,381.1 106.4,340.2 61.4,338.6 59.8,293.6 18.9,275 34.7,232.9 4,200 34.7,167.1 18.9,125 59.8,106.4 61.4,61.4 106.4,59.8 125,18.9 167.1,34.7'/%3E%3Cpolygon points='200,50 243.9,93.9 306.1,93.9 306.1,156.1 350,200 306.1,243.9 306.1,306.1 243.9,306.1 200,350 156.1,306.1 93.9,306.1 93.9,243.9 50,200 93.9,156.1 93.9,93.9 156.1,93.9'/%3E%3Cpolygon points='200,80 218.7,105.8 245.9,89.1 253.3,120.2 284.9,115.1 279.8,146.7 310.9,154.1 294.2,181.3 320,200 294.2,218.7 310.9,245.9 279.8,253.3 284.9,284.9 253.3,279.8 245.9,310.9 218.7,294.2 200,320 181.3,294.2 154.1,310.9 146.7,279.8 115.1,284.9 120.2,253.3 89.1,245.9 105.8,218.7 80,200 105.8,181.3 89.1,154.1 120.2,146.7 115.1,115.1 146.7,120.2 154.1,89.1 181.3,105.8'/%3E%3Ccircle cx='200' cy='200' r='184' stroke-dasharray='2 7'/%3E%3Ccircle cx='200' cy='200' r='60'/%3E%3C/svg%3E");
  --m-sarloh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 24'%3E%3Cpath d='M8 12 L112 10.6 L112 13.4z M272 12 L168 10.6 L168 13.4z'/%3E%3Cpolygon points='140,0 144.6,7.4 152,7.4 147.6,12 152,16.6 144.6,16.6 140,24 135.4,16.6 128,16.6 132.4,12 128,7.4 135.4,7.4'/%3E%3Cpath d='M120 12l4-4 4 4-4 4zM152 12l4-4 4 4-4 4z'/%3E%3Ccircle cx='100' cy='12' r='2'/%3E%3Ccircle cx='180' cy='12' r='2'/%3E%3C/svg%3E");
  --m-lachak: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M42 2C20 2 2 20 2 42'/%3E%3Cpath d='M42 10C24 10 10 24 10 42'/%3E%3Cpath d='M42 2v8M2 42h8'/%3E%3Cpolygon points='34,26 36.3,31.7 42,34 36.3,36.3 34,42 31.7,36.3 26,34 31.7,31.7' fill='%23000' stroke='none'/%3E%3C/svg%3E");
  --m-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12,0 15.1,4.6 20.5,3.5 19.4,8.9 24,12 19.4,15.1 20.5,20.5 15.1,19.4 12,24 8.9,19.4 3.5,20.5 4.6,15.1 0,12 4.6,8.9 3.5,3.5 8.9,4.6'/%3E%3C/svg%3E");
}
.kp[data-tpl="kashi"] ::selection { background: var(--firouzeh); color: #fff; }

/* Ground: girih lattice fading down, warm light, paper grain */
[data-tpl="kashi"] .kp-bg { background: var(--bg); }
[data-tpl="kashi"] .kp-b1 {
  inset: 0; background: var(--pat);
  -webkit-mask-image: var(--m-girih), linear-gradient(180deg, #000 0, rgba(0, 0, 0, .55) 40%, transparent 78%);
  mask-image: var(--m-girih), linear-gradient(180deg, #000 0, rgba(0, 0, 0, .55) 40%, transparent 78%);
  -webkit-mask-size: 120px 120px, 100% 100%; mask-size: 120px 120px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-position: top center, 0 0; mask-position: top center, 0 0;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
[data-tpl="kashi"] .kp-b2 { inset: -20% -20% auto; height: 80vh; background: radial-gradient(ellipse at 50% 30%, light-dark(rgba(255, 248, 230, .9), rgba(54, 191, 193, .12)), transparent 65%); }
[data-tpl="kashi"] .kp-b3 { inset: auto 0 0; height: 40vh; background: linear-gradient(transparent, light-dark(rgba(217, 150, 42, .07), rgba(0, 0, 0, .35))); }
[data-tpl="kashi"] .kp-grain { opacity: .16; mix-blend-mode: multiply; }
.kp[data-tpl="kashi"][data-mode="dark"] .kp-grain { mix-blend-mode: overlay; opacity: .1; }

/* Layout: one centred column, a little wider than a phone */
.kp[data-tpl="kashi"] .kp-shell { grid-template-columns: minmax(0, 1fr); max-width: 920px; gap: 42px; padding-top: 72px; }
[data-tpl="kashi"] .kp-hero { position: relative; top: 0; align-items: center; text-align: center; gap: 18px; }
[data-tpl="kashi"] .kp-id { align-items: center; gap: 10px; }
[data-tpl="kashi"] .kp-actions { justify-content: center; }
[data-tpl="kashi"] .kp-bio { margin-inline: auto; max-width: 48ch; color: var(--muted); font-size: 16px; line-height: 2.05; }

/* The rosette behind the shamseh: turns very slowly */
[data-tpl="kashi"] .kp-hero::before {
  content: ""; position: absolute; z-index: -1; top: -150px; left: 50%; width: 460px; height: 460px; margin-left: -230px;
  background: var(--orn); opacity: .5;
  -webkit-mask-image: var(--m-rosette), radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, .35) 62%, transparent 100%);
  mask-image: var(--m-rosette), radial-gradient(closest-side, #000 30%, rgba(0, 0, 0, .35) 62%, transparent 100%);
  -webkit-mask-size: contain, contain; mask-size: contain, contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: kp-kashi-turn 160s linear infinite;
}
@keyframes kp-kashi-turn { to { transform: rotate(360deg); } }

/* The shamseh: an eight-point turquoise star, a gold rim, the face in a medallion */
[data-tpl="kashi"] .kp-av { width: 132px; height: 132px; margin: 22px 0 12px; }
[data-tpl="kashi"] .kp-av-img, [data-tpl="kashi"] .kp-av-ph {
  border-radius: 50%; z-index: 2;
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5.5px var(--gold), 0 18px 34px -16px rgba(20, 30, 70, .7);
}
[data-tpl="kashi"] .kp-av-ph { background: radial-gradient(circle at 35% 30%, light-dark(#3157b8, #3a5fc4), var(--lapis)); color: #f6ecd4; font-family: var(--display); font-size: 58px; font-weight: 700; }
[data-tpl="kashi"] .kp-av-ring {
  inset: -30px; border-radius: 0; z-index: 1;
  clip-path: polygon(50% 0%, 64.65% 14.64%, 85.36% 14.64%, 85.36% 35.35%, 100% 50%, 85.36% 64.65%, 85.36% 85.36%, 64.65% 85.36%, 50% 100%, 35.35% 85.36%, 14.64% 85.36%, 14.64% 64.65%, 0% 50%, 14.64% 35.35%, 14.64% 14.64%, 35.35% 14.64%);
  background:
    radial-gradient(circle at 50% 50%, transparent 47%, rgba(255, 255, 255, .18) 48%, transparent 52%),
    conic-gradient(from 22.5deg, var(--firouzeh), light-dark(#12777c, #1f9597), var(--firouzeh), light-dark(#2bb3b8, #4fd3d4), var(--firouzeh));
  animation: kp-kashi-settle 1.8s var(--expo) .1s backwards;
}
/* a cream inner star, so the glaze reads as a rim with grout */
[data-tpl="kashi"] .kp-av-ring::after {
  content: ""; position: absolute; inset: 9px; clip-path: inherit;
  background: radial-gradient(circle, var(--card) 0 60%, light-dark(#efe1c2, #1a2756) 61%);
}
@keyframes kp-kashi-settle { from { transform: rotate(-135deg) scale(.6); } }
[data-tpl="kashi"][data-still] .kp-av-ring { animation: none; }

[data-tpl="kashi"] .kp-status {
  background: light-dark(rgba(26, 154, 160, .12), rgba(54, 191, 193, .14)); color: light-dark(#0f6b70, #7fe0e0);
  border: 1px solid light-dark(rgba(26, 154, 160, .35), rgba(54, 191, 193, .4)); padding: 4px 14px 4px 16px;
}
[data-tpl="kashi"] .kp-status i, [data-tpl="kashi"] .kp-status i::after { background: var(--firouzeh); }

/* Name: lapis ink at poster scale, sarlowh rule underneath */
[data-tpl="kashi"] .kp-name { font-size: clamp(56px, 10.5vw, 100px); line-height: 1; font-weight: 700; letter-spacing: 0; color: light-dark(var(--lapis), #f6e9c8); }
[data-tpl="kashi"] .kp-headline { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3.2vw, 30px); color: var(--ink); line-height: 1.45; }
[data-tpl="kashi"] .kp-loc { color: var(--muted); font-weight: 600; }
[data-tpl="kashi"] .kp-id::after {
  content: ""; order: 2; display: block; width: 280px; max-width: 76%; height: 24px; margin: 2px 0 4px; background: var(--gold);
  -webkit-mask: var(--m-sarloh) center / contain no-repeat; mask: var(--m-sarloh) center / contain no-repeat;
}
[data-tpl="kashi"] .kp-name { order: 1; }
[data-tpl="kashi"] .kp-status { order: 0; }
[data-tpl="kashi"] .kp-headline { order: 3; }
[data-tpl="kashi"] .kp-loc { order: 4; }

/* Buttons: glazed tiles */
[data-tpl="kashi"] .kp-cta, [data-tpl="kashi"] .kp-share { height: 54px; border-radius: 14px; font-size: 15px; }
[data-tpl="kashi"] .kp-cta { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glaze), 0 0 0 1.5px light-dark(transparent, rgba(226, 187, 99, .65)), 0 14px 28px -16px color-mix(in srgb, var(--accent) 80%, #000); }
[data-tpl="kashi"] .kp-share { background: var(--card); color: var(--ink); border: 1.5px solid var(--frame); }
[data-tpl="kashi"] .kp-cta:hover, [data-tpl="kashi"] .kp-share:hover { transform: translateY(-2px); }
/* Chips: little diamond tiles */
[data-tpl="kashi"] .kp-chips { justify-content: center; gap: 18px; padding: 8px 0; }
[data-tpl="kashi"] .kp-chip { width: 42px; height: 42px; border-radius: 10px; transform: rotate(45deg); background: var(--card); color: var(--lapis); box-shadow: 0 0 0 1.5px var(--frame), 0 8px 16px -10px rgba(20, 30, 70, .5); }
.kp[data-tpl="kashi"][data-mode="dark"] .kp-chip { color: var(--gold); }
[data-tpl="kashi"] .kp-chip .kp-ic { transform: rotate(-45deg); }
[data-tpl="kashi"] .kp-chip:hover { transform: rotate(45deg) scale(1.1); box-shadow: var(--glaze); }
[data-tpl="kashi"] .kp-foot a { background: var(--card); border-color: var(--frame); }

/* Cards: framed tiles with lachak corners */
[data-tpl="kashi"] .kp-card {
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--frame), 0 1px 0 light-dark(rgba(255, 255, 255, .8), rgba(255, 255, 255, .04)) inset, 0 18px 36px -24px rgba(40, 30, 10, .45);
}
[data-tpl="kashi"] .kp-card::before {
  content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none; background: var(--orn);
  -webkit-mask: var(--m-lachak) top right / 30px 30px no-repeat; mask: var(--m-lachak) top right / 30px 30px no-repeat;
}
/* the bottom-left lachak is the same drawing turned half round */
[data-tpl="kashi"] .kp-card::after {
  content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none; background: var(--orn); transform: rotate(180deg);
  -webkit-mask: var(--m-lachak) top right / 30px 30px no-repeat; mask: var(--m-lachak) top right / 30px 30px no-repeat;
}
[data-tpl="kashi"] .kp-link.kp-sz-s::before, [data-tpl="kashi"] .kp-link.kp-sz-s::after { opacity: .6; }
[data-tpl="kashi"] .kp-card.in:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 6px var(--card), inset 0 0 0 7px var(--firouzeh), 0 26px 44px -24px rgba(40, 30, 10, .55); }
[data-tpl="kashi"] .kp-card[data-tilt].in:hover { transform: none; }
[data-tpl="kashi"] .kp-spot { background: radial-gradient(300px circle at var(--mx) var(--my), light-dark(rgba(26, 154, 160, .1), rgba(226, 187, 99, .1)), transparent 60%); }
[data-tpl="kashi"] .kp-go { background: transparent; color: var(--lapis); box-shadow: inset 0 0 0 1.5px var(--frame); top: 18px; left: 18px; }
.kp[data-tpl="kashi"][data-mode="dark"] .kp-go { color: var(--gold); }
[data-tpl="kashi"] .kp-card:hover .kp-go { background: var(--firouzeh); color: #fff; box-shadow: none; }
[data-tpl="kashi"] .kp-logo { border-radius: 30%; box-shadow: var(--glaze), 0 0 0 3px var(--card), 0 0 0 4.5px var(--frame); }
[data-tpl="kashi"] .kp-wm { color: var(--lapis); opacity: .06; }
[data-tpl="kashi"] .kp-body h3, [data-tpl="kashi"] .kp-link.kp-sz-l .kp-link-txt b { font-weight: 700; }
[data-tpl="kashi"] .kp-body h3 { font-size: 21px; }
[data-tpl="kashi"] .kp-project.kp-sz-l .kp-body h3 { font-size: 30px; }
[data-tpl="kashi"] .kp-sz-s .kp-body h3 { font-size: 17px; }
[data-tpl="kashi"] .kp-price b { color: light-dark(var(--lapis), var(--gold)); font-weight: 700; font-size: 21px; }
[data-tpl="kashi"] .kp-tags span { background: transparent; color: light-dark(#0f6b70, #7fe0e0); border: 1px solid light-dark(rgba(26, 154, 160, .4), rgba(54, 191, 193, .4)); }
[data-tpl="kashi"] .kp-badge { background: var(--saffron); color: #2a1a05; box-shadow: var(--glaze); border-radius: 8px; }
[data-tpl="kashi"] .kp-off { background: var(--anar); border-radius: 8px; }
[data-tpl="kashi"] .kp-media { border-radius: 12px; margin: 12px 12px 0; }
[data-tpl="kashi"] .kp-image .kp-media { margin: 0; border-radius: 0; }
[data-tpl="kashi"] .kp-project.kp-sz-w .kp-media, [data-tpl="kashi"] .kp-product.kp-sz-w .kp-media { margin: 12px; }
[data-tpl="kashi"] .kp-body { padding-inline: 20px; }
[data-tpl="kashi"] .kp-order { background: var(--accent); color: var(--accent-ink); border-radius: 10px; box-shadow: var(--glaze); }
[data-tpl="kashi"] .kp-cap { background: var(--card); color: var(--ink); border-radius: 8px; box-shadow: 0 0 0 1px var(--frame); }
[data-tpl="kashi"] .kp-eyebrow { color: var(--firouzeh); font-weight: 800; }
[data-tpl="kashi"] .kp-q { color: var(--firouzeh); opacity: .3; }
[data-tpl="kashi"] .kp-text.kp-sz-l p, [data-tpl="kashi"] .kp-text .kp-rich { font-family: var(--display); font-size: 20px; line-height: 1.75; }
[data-tpl="kashi"] .kp-rich a { color: var(--firouzeh); }

/* Glazed tiles: a stat is a lapis tile with gold numerals and a faint lattice */
[data-tpl="kashi"] .kp-stat { background: radial-gradient(circle at 30% 20%, light-dark(#2d50a8, #3253b0), var(--lapis) 70%); color: #f6ecd4; --frame: rgba(246, 236, 212, .35); --orn: rgba(226, 187, 99, .8); box-shadow: inset 0 0 0 6px transparent, inset 0 0 0 7px var(--frame), var(--glaze), 0 18px 36px -22px rgba(20, 30, 70, .7); }
[data-tpl="kashi"] .kp-stat .kp-stat-v { color: #f0cf7e; font-family: var(--display); font-weight: 700; }
[data-tpl="kashi"] .kp-stat .kp-stat-l { color: rgba(246, 236, 212, .8); }
/* the contact card is a turquoise glazed panel */
[data-tpl="kashi"] .kp-contact { background: radial-gradient(circle at 20% 0%, light-dark(#2bb5ba, #47cfd0), var(--firouzeh) 60%, light-dark(#127a7f, #1f9597)); color: #fff; --frame: rgba(255, 255, 255, .4); --orn: rgba(255, 246, 220, .85); box-shadow: inset 0 0 0 6px transparent, inset 0 0 0 7px var(--frame), var(--glaze), 0 20px 40px -22px rgba(15, 90, 95, .7); }
[data-tpl="kashi"] .kp-contact-t { font-weight: 700; }
[data-tpl="kashi"] .kp-contact-glow { inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: #fff; opacity: .14;
  -webkit-mask: var(--m-rosette) center / contain no-repeat; mask: var(--m-rosette) center / contain no-repeat; }
[data-tpl="kashi"] .kp-cbtn { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; }
[data-tpl="kashi"] .kp-cbtn:hover { background: #fff; color: #0f6b70; }

/* Sections: sarlowh — the title between two gilded rules, each ending in a star */
[data-tpl="kashi"] .kp-section { justify-content: center; text-align: center; font-size: clamp(32px, 5vw, 46px); font-weight: 700; margin: 58px 2px 22px; gap: 16px; color: light-dark(var(--lapis), #f6e9c8); }
[data-tpl="kashi"] .kp-section-n { display: none; }
[data-tpl="kashi"] .kp-section::before, [data-tpl="kashi"] .kp-section::after {
  content: ""; flex: 1; max-width: 220px; height: 16px; background: var(--gold);
  -webkit-mask: var(--m-star) left center / 14px 14px no-repeat, linear-gradient(90deg, #000, transparent) right 0 center / calc(100% - 22px) 1.5px no-repeat;
  mask: var(--m-star) left center / 14px 14px no-repeat, linear-gradient(90deg, #000, transparent) right 0 center / calc(100% - 22px) 1.5px no-repeat;
}
[data-tpl="kashi"] .kp-section::after { transform: scaleX(-1); }
[data-tpl="kashi"] .kp-section::before { -webkit-mask: var(--m-star) left center / 14px 14px no-repeat, linear-gradient(270deg, #000, transparent) right 0 center / calc(100% - 22px) 1.5px no-repeat; mask: var(--m-star) left center / 14px 14px no-repeat, linear-gradient(270deg, #000, transparent) right 0 center / calc(100% - 22px) 1.5px no-repeat; }
[data-tpl="kashi"] .kp-section-sub { text-align: center; margin-inline: auto; }

/* Placeholder art: girih panels in the glaze palette */
[data-tpl="kashi"] .kp-ph {
  color: #f6ecd4; background: var(--lapis);
  --pa: var(--firouzeh); --pb: var(--lapis); --pc: var(--saffron); --pd: light-dark(#f4ead6, #e9dcb8); --pe: transparent; --pl: #f6ecd4; --ps: var(--card);
}
[data-tpl="kashi"] .kp-ph-art .gl { stroke: light-dark(#f4ead6, #0b1330); stroke-width: 2.4; stroke-linejoin: round; }
[data-tpl="kashi"] .kp-ph-l { font-size: 200px; color: transparent; -webkit-text-stroke: 2px rgba(246, 236, 212, .55); bottom: -48px; left: 6px; font-weight: 700; }
[data-tpl="kashi"] .kp-ph-ic { width: 46px; height: 46px; padding: 9px; border-radius: 12px; background: var(--card); color: var(--lapis); box-shadow: 0 0 0 2px var(--gold), 0 10px 20px -8px rgba(0, 0, 0, .5); opacity: 1; }

/* Phase-4 blocks */
[data-tpl="kashi"] .kp-play { background: var(--card); color: var(--lapis); box-shadow: 0 0 0 3px var(--gold), 0 18px 40px -12px rgba(0, 0, 0, .6); }
[data-tpl="kashi"] .kp-menu-nav a, [data-tpl="kashi"] .kp-route, [data-tpl="kashi"] .kp-divider span { background: var(--card); border: 1.5px solid var(--frame); color: var(--ink); border-radius: 10px; }
[data-tpl="kashi"] .kp-menu-nav a:hover { background: var(--firouzeh); color: #fff; border-color: transparent; }
[data-tpl="kashi"] .kp-menu-h h3, [data-tpl="kashi"] .kp-faq-t, [data-tpl="kashi"] .kp-form-h h3 { font-weight: 700; color: light-dark(var(--lapis), #f6e9c8); }
[data-tpl="kashi"] .kp-mg h4 { color: var(--firouzeh); font-family: var(--display); font-weight: 700; font-size: 24px; }
[data-tpl="kashi"] .kp-mg h4::after { height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .6; }
[data-tpl="kashi"] .kp-mi-p { color: light-dark(var(--lapis), var(--gold)); font-family: var(--display); font-weight: 700; font-size: 18px; }
[data-tpl="kashi"] .kp-mi-h em { background: var(--saffron); color: #2a1a05; border-radius: 6px; }
[data-tpl="kashi"] .kp-map-art { margin: 12px 12px 0; border-radius: 12px; background: var(--surface); }
[data-tpl="kashi"] .kp-map.kp-sz-w .kp-map-art, [data-tpl="kashi"] .kp-map.kp-sz-f .kp-map-art { margin: 12px; }
[data-tpl="kashi"] .kp-map-streets { stroke: var(--frame); }
[data-tpl="kashi"] .kp-pin { background: var(--anar); color: #fff; }
[data-tpl="kashi"] .kp-qt-ini { background: var(--firouzeh); color: #fff; }
[data-tpl="kashi"] .kp-star.on { fill: var(--saffron); }
[data-tpl="kashi"] .kp-quote blockquote, [data-tpl="kashi"] .kp-quote p { font-family: var(--display); }
[data-tpl="kashi"] .kp-fq { border-color: var(--frame); }
[data-tpl="kashi"] .kp-fq summary i { background: var(--surface); color: var(--ink); border-radius: 8px; }
[data-tpl="kashi"] .kp-fq[open] summary i { background: var(--firouzeh); color: #fff; }
[data-tpl="kashi"] .kp-cd-u { background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--frame); }
[data-tpl="kashi"] .kp-cd-u b { font-family: var(--display); font-weight: 700; color: light-dark(var(--lapis), var(--gold)); }
.kp[data-tpl="kashi"] .kp-fld input, .kp[data-tpl="kashi"] .kp-fld textarea { background: var(--surface); border: 1.5px solid var(--frame); border-radius: 12px; color: var(--ink); }
.kp[data-tpl="kashi"] .kp-fld input:focus, .kp[data-tpl="kashi"] .kp-fld textarea:focus { border-color: var(--firouzeh); box-shadow: 0 0 0 4px light-dark(rgba(26, 154, 160, .16), rgba(54, 191, 193, .2)); }
[data-tpl="kashi"] .kp-send, [data-tpl="kashi"] .kp-cd-cta { background: var(--accent); color: var(--accent-ink); border-radius: 12px; box-shadow: var(--glaze); }
[data-tpl="kashi"] .kp-div-line::before, [data-tpl="kashi"] .kp-div-line::after { border-top: 1.5px solid var(--frame); }
[data-tpl="kashi"] .kp-div-wave svg { stroke: var(--firouzeh); }
[data-tpl="kashi"] .kp-div-wave span { background: var(--bg); }
[data-tpl="kashi"] .kp-div-stars i { color: var(--gold); }
[data-tpl="kashi"] .kp-dock { box-shadow: var(--glaze), 0 20px 40px -14px var(--brand); border-radius: 16px; }
[data-tpl="kashi"] .kp-video, [data-tpl="kashi"] .kp-gallery { padding: 12px; }
[data-tpl="kashi"] .kp-vid, [data-tpl="kashi"] .kp-gal-track { inset: 12px; border-radius: 10px; }
[data-tpl="kashi"] .kp-gallery.kp-sz-f .kp-gal-track { inset: 0; }

@media (max-width: 640px) {
  .kp[data-tpl="kashi"] .kp-shell { padding-top: 56px; }
  [data-tpl="kashi"] .kp-av { width: 112px; height: 112px; }
  [data-tpl="kashi"] .kp-av-ring { inset: -24px; }
  [data-tpl="kashi"] .kp-hero::before { width: 380px; height: 380px; margin-left: -190px; top: -130px; }
  [data-tpl="kashi"] .kp-name { font-size: clamp(50px, 15vw, 66px); }
  [data-tpl="kashi"] .kp-project.kp-sz-l .kp-body h3 { font-size: 24px; }
  [data-tpl="kashi"] .kp-card::before, [data-tpl="kashi"] .kp-card::after { inset: 9px; }
}
@media (prefers-reduced-motion: reduce) { [data-tpl="kashi"] .kp-hero::before, [data-tpl="kashi"] .kp-av-ring { animation: none; } }
