/* ==========================================================================
   096 · STILLWATER STUDIO (مَلاذ السكينة) — 1:1 Washi Breathwork, Sound Bath & Tea Sanctuary
   Washi #F3EFE6 / #E9E3D6 · Sumi-e Ink #1A1A1A · Celadon Wash #6B7B7A · Vermilion Hanko Seal #B23A2E · Night #141615
   ========================================================================== */

:root {
  --paper: #F3EFE6;
  --paper-2: #E9E3D6;
  --ink: #1A1A1A;
  --ink-soft: #545B59;
  --wash: #6B7B7A;
  --seal: #B23A2E;
  --jade: #A9B9B0;
  --night: #141615;
  --line: rgba(26, 26, 26, 0.14);
  --serif: 'Amiri', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  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); }

/* Rotated -3deg Vermilion Hanko Seal */
.sw-seal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  background: var(--seal);
  color: #F3EFE6;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  transform: rotate(-3deg);
  flex-shrink: 0;
}

.sw-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.sw-pill-ghost {
  background: transparent;
  color: inherit;
  border-color: var(--line);
}

/* ======================== FIXED WASHI NAVBAR + BOOKING DRAWER ======================== */
.sw-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 75;
  height: 68px;
  padding: 0 clamp(20px, 3.5vw, 48px);
  background: rgba(243, 239, 230, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.sw-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.sw-links a:hover { color: var(--seal); }

.sw-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: min(430px, 92vw);
  z-index: 95;
  background: var(--paper);
  border-inline-start: 1px solid var(--line);
  box-shadow: -18px 0 42px rgba(20, 22, 21, 0.22);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s;
}
.sw-drawer.open { transform: translateX(0); visibility: visible; }

/* ======================== 1. HERO (100svh WASHI BREATH ORB + MISTY HORIZON) ======================== */
.sw-hero {
  position: relative;
  min-height: 100dvh;
  padding: 96px clamp(20px, 3.5vw, 48px) 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.sw-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.sw-hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(243,239,230,0.92) 0%, rgba(243,239,230,0.64) 45%, transparent 82%);
  pointer-events: none;
}

.sw-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 600px;
  margin-top: auto;
  margin-bottom: auto;
}

.sw-h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  font-weight: 400;
  line-height: 1.32;
  margin-bottom: 16px;
}

.sw-h1 em, .sw-h2 em {
  font-style: normal;
  color: var(--seal);
  font-weight: 700;
}

.sw-hero-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.sw-next-card {
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 18px;
  font-size: 13.5px;
}

/* ======================== SECTIONS ======================== */
.sw-sec {
  padding: 86px clamp(20px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
}

.sw-sec-stone { background: var(--paper-2); }
.sw-container { max-width: 1180px; margin: 0 auto; }

.sw-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1.30;
}

/* 2. Four Practices Editorial Index */
.sw-plist {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.sw-prow {
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1.1fr 1.6fr auto;
  align-items: center;
  gap: 16px;
}

/* 3. Plans 3-Column Grid (Center Night Card) */
.sw-plans-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.sw-plan-card {
  background: #FAF7F0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sw-plan-card.night {
  background: var(--night);
  color: var(--paper);
  border-color: var(--night);
}

/* 4. Interactive Breath-Pacer Studio (#breathe on #E9E3D6) */
.sw-breathe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.sw-mode-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.sw-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.sw-chip.active {
  background: var(--ink);
  color: var(--paper);
}

.sw-orb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sw-orb {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #D9E8E6 38%, #E6C8C3 72%, #9AB0AE 100%);
  box-shadow: 0 24px 60px rgba(107, 123, 122, 0.28), inset 0 0 24px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s ease-in-out;
}

/* 5. After Dark Sanctuary Band (#141615) & Washi Footer */
.sw-evening {
  background: var(--night);
  color: var(--paper);
  padding: 86px clamp(20px, 3.5vw, 48px);
}

.sw-footer {
  background: var(--paper);
  padding: 58px clamp(20px, 3.5vw, 48px) 36px;
}

.sw-watermark {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 15vw, 11.5rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.18), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 0.95;
  margin: 18px 0 26px;
  direction: ltr;
}

.sw-showcase-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .sw-links { display: none; }
  .sw-prow,
  .sw-plans-3,
  .sw-breathe-grid {
    grid-template-columns: 1fr;
  }
}
