/* ==========================================================================
   085 · KILN (أَتون الخزف — Kiln Studio) — 1:1 Tactile Stoneware & Chef Tableware
   Bisque #EDE3D4 · Kiln Charcoal #2F2A26 · Terracotta #B65E3C · Celadon #6F8A7A · Sand #D9B48F
   ========================================================================== */

:root {
  --bisque: #EDE3D4;
  --charcoal: #2F2A26;
  --terracotta: #B65E3C;
  --hero-em: #E39A6A;
  --celadon: #6F8A7A;
  --sand: #D9B48F;
  --cream-card: #FFFAF3;
  --line: rgba(47, 42, 38, 0.15);
  --muted: rgba(47, 42, 38, 0.72);
  --serif: 'Amiri', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bisque);
  color: var(--charcoal);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  background: var(--bisque);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--mono); }

/* Tactile Clay Bevel Pill Buttons */
.kl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px rgba(47, 42, 38, 0.28), inset 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, background 0.2s ease;
}

.kl-btn:hover { transform: translateY(-1px); }
.kl-btn-clay { background: var(--terracotta); color: #FFF7EE; }
.kl-btn-clay:hover { background: #A6512F; }
.kl-btn-line {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* Soft Terracotta Clay Ball Cursor */
.kl-clay-dot {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E39A6A, #B65E3C);
  pointer-events: none;
  z-index: 110;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
@media (hover: hover) { .kl-clay-dot.on { opacity: 0.75; } }

/* ======================== FIXED TOP NAVBAR ======================== */
.kl-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 70;
  height: 72px;
  color: var(--bisque);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.kl-nav.stuck {
  background: rgba(237, 227, 212, 0.93);
  backdrop-filter: blur(12px);
  color: var(--charcoal);
  box-shadow: 0 1px 0 var(--line);
}

.kl-nav-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.kl-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.kl-links a:hover { color: var(--hero-em); }
.kl-nav.stuck .kl-links a:hover { color: var(--terracotta); }

.kl-basket {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 16px;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.kl-basket b {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #FFF7EE;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}

/* Slide-Over Basket Drawer */
.kl-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: min(410px, 92vw);
  z-index: 95;
  background: var(--bisque);
  color: var(--charcoal);
  border-inline-start: 1px solid var(--line);
  box-shadow: -14px 0 36px rgba(47, 42, 38, 0.25);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
}
.kl-drawer.open { transform: translateX(0); }

/* ======================== 1. HERO (POTTER'S WHEEL + CIRCULAR STAMP + RPM HUD) ======================== */
.kl-hero {
  position: relative;
  min-height: 100dvh;
  background: var(--charcoal);
  color: var(--bisque);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 96px 28px 24px;
  overflow: hidden;
}

.kl-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.kl-wheel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.kl-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(270deg, rgba(47,42,38,0.9) 0%, rgba(47,42,38,0.62) 42%, rgba(47,42,38,0.18) 76%);
  pointer-events: none;
}

/* Rotating 248px Circular Stamp */
.kl-stamp-ring {
  position: absolute;
  top: 50%;
  left: 26%;
  width: 236px;
  height: 236px;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  animation: klRotate 26s linear infinite;
}

@keyframes klRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.kl-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 610px;
  margin-top: auto;
  margin-bottom: auto;
}

.kl-kicker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sand);
  display: inline-block;
  margin-bottom: 12px;
}

.kl-h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.7rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 16px;
}

.kl-h1 em {
  font-style: italic;
  color: var(--hero-em);
}

.kl-lead {
  font-size: 16.5px;
  color: rgba(237, 227, 212, 0.86);
  max-width: 510px;
  margin-bottom: 24px;
}

/* Bottom Kiln Telemetry HUD */
.kl-hud {
  position: relative;
  z-index: 4;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(237, 227, 212, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.kl-temp-bar {
  display: inline-block;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sand), #FF7A2F);
  vertical-align: middle;
  margin-inline-start: 8px;
}

/* ======================== SECTIONS ======================== */
.kl-sec {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 24px;
}

.kl-h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.12;
}

/* 2. Batch 42 4-Column Product Shelf */
.kl-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.kl-prod-card {
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease;
}

.kl-prod-card:hover { transform: translateY(-4px) rotate(-0.8deg); }

.kl-prod-photo {
  position: relative;
  aspect-ratio: 4 / 4.5;
  border-radius: 16px;
  overflow: hidden;
  background: #DFD2BD;
}

.kl-prod-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.kl-prod-card:hover .kl-prod-photo img { transform: scale(1.06); }

.kl-batch-pill {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--bisque);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

/* 3. Studio Story + Steps */
.kl-story-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 40px;
  align-items: center;
}

.kl-framed-photo {
  aspect-ratio: 4 / 4.6;
  border-radius: 22px;
  border: 8px solid #FFFAF3;
  box-shadow: 0 22px 48px rgba(47, 42, 38, 0.16);
  overflow: hidden;
}

.kl-framed-photo img { width: 100%; height: 100%; object-fit: cover; }

.kl-steps-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.kl-step-box {
  background: rgba(255, 250, 243, 0.78);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
}

/* 4. Workshops Dark Feature Band (#2F2A26) */
.kl-dark-band {
  background: var(--charcoal);
  color: var(--bisque);
  padding: 86px 24px;
}

.kl-ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.kl-ws-card {
  background: var(--bisque);
  color: var(--charcoal);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 5. Wholesale Enquiry Split + Discount Slider */
.kl-wh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.kl-wh-form {
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kl-type-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kl-type-pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.kl-type-pill.active {
  background: var(--charcoal);
  color: var(--bisque);
  border-color: var(--charcoal);
}

.kl-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
}

/* 6. Charcoal Footer + Giant Hollow Outlined Kiln Wordmark */
.kl-footer {
  background: var(--charcoal);
  color: var(--bisque);
  padding: 64px 24px 36px;
}

.kl-hollow-mark {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 18vw, 14rem);
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(217, 180, 143, 0.38);
  line-height: 0.9;
  margin: 22px 0 30px;
  direction: ltr;
}

.kl-showcase-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 227, 212, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .kl-links, .kl-stamp-ring { display: none; }
  .kl-shelf-grid,
  .kl-story-grid,
  .kl-steps-2x2,
  .kl-ws-grid,
  .kl-wh-grid {
    grid-template-columns: 1fr;
  }
}
