/* Tagdeed — brand guideline colours: #9933CC, #FAB91A, #FF7036. Brand font: DG Agnadeen */
@font-face { font-family: "DG Agnadeen"; src: url("../fonts/dg-agnadeen-100.woff") format("woff"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "DG Agnadeen"; src: url("../fonts/dg-agnadeen-300.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "DG Agnadeen"; src: url("../fonts/dg-agnadeen-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DG Agnadeen"; src: url("../fonts/dg-agnadeen-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DG Agnadeen"; src: url("../fonts/dg-agnadeen-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DG Agnadeen"; src: url("../fonts/dg-agnadeen-900.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
:root {
  --purple: #9933cc;
  --purple-deep: #6d1f9c;
  --purple-ink: #4b1470;
  --purple-wash: #f4eafb;
  --yellow: #fab91a;
  --orange: #ff7036;
  --ink: #24112f;
  --ink-soft: #55456a;
  --paper: #fcfaff;
  --white: #ffffff;
  --line: #e8ddf1;
  --brand-gradient: linear-gradient(120deg, #9933cc 0%, #c4519a 38%, #ff7036 68%, #fab91a 100%);

  --radius-m: 16px;
  --radius-l: 28px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "DG Agnadeen", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.65; font-weight: 300;
}
html[dir="rtl"] body { line-height: 1.8; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -9999px; z-index: 100; }
.skip:focus { inset-inline-start: 16px; top: 16px; background: var(--white); padding: 10px 16px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .75em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--bounce), background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.95); }
.btn-primary { background: var(--purple); color: var(--white); box-shadow: 0 6px 0 var(--purple-ink); }
.btn-primary:hover { box-shadow: 0 8px 0 var(--purple-ink); }
.btn-primary:active { box-shadow: 0 2px 0 var(--purple-ink); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--purple-ink); box-shadow: 0 6px 0 rgba(36,17,47,.25); }
.btn-light:hover { background: var(--yellow); color: var(--ink); }
.btn-small { min-height: 44px; padding: .55em 1.15em; font-size: .96rem; }
.btn-primary.btn-small { box-shadow: 0 4px 0 var(--purple-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo { display: block; flex: none; border-radius: 8px; transition: transform .35s var(--bounce); }
.logo:hover { transform: rotate(-4deg) scale(1.04); }
.logo img { height: 62px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: 1rem; transition: background-color .2s ease; }
.nav a:hover { background: var(--purple-wash); }
.nav a[aria-current="page"] { background: var(--purple); color: var(--white); }
.lang-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--purple); color: var(--purple); font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.lang-toggle:hover { background: var(--purple); color: var(--white); }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto;
    width: 46px; height: 46px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; top: 100%; inset-inline: 0; margin: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
  .logo img { height: 54px; }
  .header-row { min-height: 68px; }
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(72px, 8vw, 110px); overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-purple.svg") repeat; background-size: 96px 112px; mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.tagline { display: inline-block; font-weight: 500; color: var(--purple-deep); background: var(--white); border: 2px solid var(--purple-wash); border-radius: 999px; padding: 6px 16px; margin-bottom: 20px; font-size: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 900; max-width: 13ch; }
html[dir="rtl"] .hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.hero-lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 44ch; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Paint-chip fan */
.deck { position: relative; height: clamp(360px, 42vw, 480px); }
.chip {
  position: absolute; bottom: 0; inset-inline-start: 50%;
  width: clamp(150px, 15vw, 190px); height: clamp(300px, 34vw, 400px); margin-inline-start: calc(clamp(150px, 15vw, 190px) / -2);
  background: var(--white); border-radius: var(--radius-m); padding: 10px 10px 12px;
  box-shadow: 0 1px 0 rgba(36,17,47,.06), 0 18px 40px -18px rgba(36,17,47,.4);
  display: flex; flex-direction: column; transform-origin: 50% 115%;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
  border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer;
}
.chip-color { flex: 1; border-radius: 10px; background: var(--c); }
.chip-name { order: -2; max-width: 52%; font-weight: 600; font-size: .86rem; line-height: 1.2; min-height: 2.4em; }
.chip-code { order: -1; max-width: 52%; font-size: .72rem; color: var(--ink-soft); margin: 2px 0 10px; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .chip-code { text-align: right; }
.deck .chip:nth-child(2) { transition-delay: .04s; } .deck .chip:nth-child(3) { transition-delay: .08s; }
.deck .chip:nth-child(4) { transition-delay: .12s; } .deck .chip:nth-child(5) { transition-delay: .16s; } .deck .chip:nth-child(6) { transition-delay: .2s; }
.deck.fanned .chip { transform: rotate(var(--r)); }
.deck.fanned .chip:hover, .deck.fanned .chip:focus-visible { transform: rotate(var(--r)) translateY(-18px); z-index: 5; transition-delay: 0s; }
.deck.fanned .chip.picked { transform: rotate(var(--r)) translateY(-34px) scale(1.04); z-index: 6; transition-delay: 0s; }
.deck .chip:nth-child(1) { --r: -30deg; } .deck .chip:nth-child(2) { --r: -18deg; } .deck .chip:nth-child(3) { --r: -6deg; }
.deck .chip:nth-child(4) { --r: 6deg; } .deck .chip:nth-child(5) { --r: 18deg; } .deck .chip:nth-child(6) { --r: 30deg; }
html[dir="rtl"] .deck .chip:nth-child(1) { --r: 30deg; } html[dir="rtl"] .deck .chip:nth-child(2) { --r: 18deg; } html[dir="rtl"] .deck .chip:nth-child(3) { --r: 6deg; }
html[dir="rtl"] .deck .chip:nth-child(4) { --r: -6deg; } html[dir="rtl"] .deck .chip:nth-child(5) { --r: -18deg; } html[dir="rtl"] .deck .chip:nth-child(6) { --r: -30deg; }
.splash { position: absolute; border-radius: 50%; pointer-events: none; background: var(--c); transform: translate(-50%, -50%) scale(0); opacity: .9; animation: splash .9s var(--bounce) forwards; z-index: 0; }
@keyframes splash { 60% { opacity: .5; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
.deck-hint { position: absolute; bottom: -56px; inset-inline: 0; text-align: center; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .deck { height: 300px; margin-top: 8px; margin-bottom: 52px; }
  .chip { width: 124px; height: 240px; margin-inline-start: -62px; padding: 8px; }
  .chip-name, .chip-code { display: none; }
}
@media (max-width: 420px) {
  .deck { height: 260px; }
  .chip { width: 104px; height: 210px; margin-inline-start: -52px; }
  .deck .chip:nth-child(1) { --r: -26deg; } .deck .chip:nth-child(6) { --r: 26deg; }
  html[dir="rtl"] .deck .chip:nth-child(1) { --r: 26deg; } html[dir="rtl"] .deck .chip:nth-child(6) { --r: -26deg; }
}

/* ---------- Page headers: brand gradient + interactive nib field ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: var(--brand-gradient); isolation: isolate; }
.page-hero[data-tone="purple"] { background: linear-gradient(135deg, #7d1fb5 0%, #9933cc 55%, #b65ad9 100%); }
.page-hero[data-tone="sunset"] { background: linear-gradient(120deg, #9933cc 0%, #ff7036 70%, #fab91a 120%); }
.page-hero[data-tone="sun"] { background: linear-gradient(120deg, #ff7036 0%, #fab91a 100%); color: var(--ink); }
.nib-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.page-hero-inner { padding-block: clamp(48px, 8vw, 112px) clamp(44px, 7vw, 96px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .95rem; font-weight: 400; opacity: .9; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .6; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(2.8rem, 7.5vw, 6rem); font-weight: 900; max-width: 15ch; text-wrap: balance; }
html[dir="rtl"] .page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
.page-hero .lede { margin-top: 18px; font-size: clamp(1.12rem, 1.9vw, 1.4rem); font-weight: 300; max-width: 42ch; }
html[dir="rtl"] .page-hero .lede { font-weight: 300; }
.page-hero h1, .page-hero .lede, .page-hero .crumbs { text-shadow: 0 2px 18px rgba(36,17,47,.18); }
.page-hero[data-tone="sun"] h1, .page-hero[data-tone="sun"] .lede, .page-hero[data-tone="sun"] .crumbs { text-shadow: none; }
.field-hint { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 400; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 6px 14px; border-radius: 999px; }
.page-hero[data-tone="sun"] .field-hint { background: rgba(255,255,255,.4); border-color: rgba(36,17,47,.15); }
.page-hero .wave { position: absolute; inset-inline: 0; bottom: -1px; height: 34px; width: 100%; color: var(--paper); }
.page-body { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 9vw, 112px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 900; max-width: 18ch; }
.section-head p { color: var(--ink-soft); max-width: 44ch; }
.band { background: var(--white); border-block: 1px solid var(--line); }

/* Home doorways */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.door a {
  position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; min-height: 300px;
  padding: 28px; border-radius: var(--radius-l); text-decoration: none; background: var(--c); color: var(--fg, var(--ink));
  transition: transform .35s var(--bounce);
}
.door a::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 220px; height: 220px; background: url("../img/pattern-white.svg") repeat; background-size: 96px 112px; border-radius: 50%; opacity: .9; transition: transform .6s var(--bounce); }
.door a:hover { transform: translateY(-6px) rotate(-1deg); }
.door a:hover::after { transform: rotate(20deg) scale(1.15); }
.door h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); font-weight: 900; position: relative; z-index: 1; }
.door p { margin-top: 10px; max-width: 28ch; position: relative; z-index: 1; font-weight: 400; }
.door .go { margin-top: auto; padding-top: 28px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.door .go svg { transition: transform .3s var(--bounce); }
.door a:hover .go svg { transform: translateX(6px); }
html[dir="rtl"] .door .go svg { transform: scaleX(-1); }
html[dir="rtl"] .door a:hover .go svg { transform: scaleX(-1) translateX(6px); }
.soon { display: inline-block; align-self: flex-start; white-space: nowrap; margin-bottom: 14px; padding: 4px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; background: var(--yellow); color: var(--ink); position: relative; z-index: 1; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door a { min-height: 0; } }

/* ---------- Products ---------- */
.tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.tag { display: flex; flex-direction: column; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-l); padding: 12px 12px 20px; transition: transform .35s var(--bounce), border-color .2s ease; }
.tag:hover { transform: translateY(-6px); border-color: var(--c); }
.tag-art { position: relative; aspect-ratio: 1; border-radius: 20px; background: var(--c); display: grid; place-items: center; overflow: hidden; }
.tag-art::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-white.svg") repeat; background-size: 72px 84px; opacity: .8; }
.tag-art svg { position: relative; width: 66%; height: auto; transition: transform .5s var(--bounce); }
.tag-art .photo { position: relative; width: 80%; aspect-ratio: 1; object-fit: contain; background: var(--white); border-radius: 16px; padding: 6%; box-shadow: 0 14px 30px -14px rgba(36,17,47,.45); transform: rotate(-3deg); transition: transform .5s var(--bounce); }
.tag:hover .tag-art svg, .tag:hover .tag-art .photo { transform: rotate(3deg) scale(1.06); }
.tag-body { padding: 16px 6px 0; flex: 1; }
.tag h3 { font-size: 1.18rem; font-weight: 700; }
.tag p { color: var(--ink-soft); font-size: 1rem; margin-top: 6px; }
.tag .btn { margin: 16px 6px 0; }
.store { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.disclosure { margin-top: 20px; font-size: .95rem; color: var(--ink-soft); }
.store-note { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: var(--radius-l); background: var(--purple-wash); }
.store-note p { max-width: 60ch; font-weight: 400; }
@media (max-width: 1020px) { .tags { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tags { grid-template-columns: 1fr; } }

/* ---------- Courses: coming soon ---------- */
.soon-stage { display: grid; place-items: center; text-align: center; padding-block: clamp(24px, 5vw, 56px); }
.ink-nib { width: clamp(72px, 10vw, 104px); height: auto; overflow: visible; }
.ink-nib .ghost { fill: var(--purple-wash); }
.ink-nib .fill { fill: var(--purple); clip-path: inset(0 0 100% 0); animation: ink 2.2s cubic-bezier(.6,.05,.3,1) forwards .4s; }
.ink-nib:hover .fill { animation: wobble .6s var(--bounce); clip-path: inset(0); }
@keyframes ink { to { clip-path: inset(0 0 0 0); } }
@keyframes wobble { 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.ink-nib .fill { transform-origin: 50% 0; }
.soon-stage h2 { margin-top: 28px; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
.soon-stage p { margin-top: 14px; font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }
.soon-stage .btn { margin-top: 30px; }
.soon-dots { display: inline-flex; gap: 8px; margin-top: 22px; }
.soon-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--c); animation: hop 1.4s ease-in-out infinite; }
.soon-dots span:nth-child(2) { animation-delay: .15s; } .soon-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }

/* ---------- App band ---------- */
.app-band { position: relative; overflow: hidden; background: var(--purple); color: var(--white); }
.app-band::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-white.svg") repeat; background-size: 96px 112px; opacity: .55; pointer-events: none; }
.app-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.app-band h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 900; max-width: 15ch; }
.app-band .lede { margin-top: 18px; font-size: 1.15rem; max-width: 44ch; font-weight: 300; }
.app-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.app-points li { display: flex; gap: 14px; align-items: center; font-weight: 400; }
.app-points li::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--yellow) url("../img/logo-mark-white.svg") center / 9px auto no-repeat; }
.app-points li:nth-child(2)::before { background-color: var(--orange); }
.app-points li:nth-child(3)::before { background-color: var(--white); background-image: url("../img/logo-mark.svg"); }
.app-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.app-band .btn-ghost { color: var(--white); }
.app-band .btn-ghost:hover { background: var(--white); color: var(--purple-ink); border-color: var(--white); }
.phone { width: min(300px, 80%); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 42px; background: var(--ink); padding: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: rotate(4deg); transition: transform .6s var(--bounce); }
.phone:hover { transform: rotate(0deg) scale(1.02); }
html[dir="rtl"] .phone { transform: rotate(-4deg); }
.phone-screen { height: 100%; border-radius: 32px; background: var(--paper); color: var(--ink); padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; align-items: center; }
.phone-top img { height: 34px; width: auto; }
.phone-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-gradient); }
.phone-hello { font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.phone-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone-strip span { aspect-ratio: 3 / 4; border-radius: 10px; background: var(--c); }
.phone-card { border-radius: 14px; background: var(--white); border: 1px solid var(--line); padding: 11px; display: flex; gap: 10px; align-items: center; }
.phone-card i { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--c); }
.phone-card b { display: block; font-weight: 600; font-size: .86rem; line-height: 1.3; }
.phone-card small { color: var(--ink-soft); font-size: .76rem; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } .phone { width: min(260px, 72%); } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.post a { display: block; text-decoration: none; }
.post-cover { position: relative; aspect-ratio: 5 / 3; border-radius: var(--radius-l); background: var(--c); overflow: hidden; transition: transform .4s var(--bounce); }
.post-cover::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-white.svg") repeat; background-size: 72px 84px; opacity: .7; }
.post-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s var(--bounce); }
.post a:hover .post-cover { transform: rotate(-1.5deg); }
.post a:hover .post-cover svg { transform: scale(1.08); }
.post-topic { margin-top: 16px; font-size: .94rem; color: var(--purple); font-weight: 600; }
.post h3 { margin-top: 6px; font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.post a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--orange); }
.post-time { margin-top: 6px; font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; gap: 30px; } .post a { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; } .post-cover { aspect-ratio: 1; border-radius: 20px; } .post-topic { margin-top: 0; } }

/* Article */
.read-progress { position: fixed; top: 0; inset-inline-start: 0; height: 5px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--brand-gradient); z-index: 60; }
html[dir="rtl"] .read-progress { transform-origin: 100% 50%; }
.article-cover { position: relative; aspect-ratio: 21 / 8; border-radius: var(--radius-l); background: var(--c); overflow: hidden; margin-top: clamp(-80px, -6vw, -40px); box-shadow: 0 30px 60px -30px rgba(36,17,47,.45); z-index: 2; }
.article-cover::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-white.svg") repeat; background-size: 96px 112px; opacity: .6; }
.article-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose { max-width: 68ch; margin-inline: auto; padding-block: 48px 80px; font-size: 1.15rem; line-height: 1.8; font-weight: 300; }
html[dir="rtl"] .prose { line-height: 2; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 12px; font-weight: 800; }
.prose p + p { margin-top: 18px; }
.prose ul { padding-inline-start: 1.2em; margin: 16px 0; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--orange); }
.prose .tip { margin: 30px 0; padding: 20px 24px; border-radius: var(--radius-m); background: var(--purple-wash); border-inline-start: 6px solid var(--purple); font-weight: 400; }
.next-read { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 48px; font-weight: 400; }
.next-read a { color: var(--purple); font-weight: 700; }
.article-meta { margin-top: 16px; font-weight: 400; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-body { max-width: 60ch; font-size: 1.2rem; }
.about-body p + p { margin-top: 18px; }
.about-body .big { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.4; color: var(--purple-deep); }
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-m); background: var(--white); border: 2px solid var(--line); transition: transform .35s var(--bounce), border-color .2s ease; }
.pillar:hover { transform: translateX(6px); border-color: var(--c); }
html[dir="rtl"] .pillar:hover { transform: translateX(-6px); }
.pillar-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--c); display: grid; place-items: center; }
.pillar-icon svg { width: 30px; height: 30px; }
.pillar b { display: block; font-weight: 800; font-size: 1.15rem; }
.pillar span { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-radius: var(--radius-m); background: var(--white); border: 2px solid var(--line); margin-bottom: 12px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--purple); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-weight: 600; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--purple-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239933cc' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--bounce), background-color .2s ease; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--yellow); }
.faq .answer { padding: 0 22px 22px; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact-card { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--ink); color: var(--white); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-white.svg") repeat; background-size: 96px 112px; opacity: .35; }
.contact-card > * { position: relative; }
.contact-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 900; }
.contact-card p { margin-top: 14px; color: #ddd0e8; max-width: 44ch; }
.socials { display: grid; gap: 12px; }
.social { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--radius-m); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); text-decoration: none; font-weight: 600; transition: transform .3s var(--bounce), background-color .2s ease; }
.social:hover { background: var(--purple); transform: translateY(-3px); }
.social small { color: #cbbcd9; font-weight: 300; direction: ltr; unicode-bidi: isolate; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--white); border-top: 1px solid var(--line); padding-block: 44px 48px; font-size: .98rem; color: var(--ink-soft); }
.site-footer::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 6px; background: var(--brand-gradient); }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { text-decoration: none; font-weight: 400; } .footer-links a:hover { color: var(--purple); }
.footer-small { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.lost h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 900; }
.lost p { margin: 16px auto 32px; max-width: 40ch; color: var(--ink-soft); font-size: 1.2rem; }
.lost .ink-nib { margin: 0 auto 24px; transform: rotate(18deg); }
