/* ==========================================================================
   Mishkat al-Hidayah
   A small, consistent design system: one card, one list, one section pattern.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  /* colour */
  --ink: #0f1f1b;
  --ink-2: #16302a;
  --forest: #1e3d35;
  --gold: #b3843f;
  --gold-hover: #9f7535;
  --gold-text: #86602a;
  --gold-light: #e2c48d;
  --bg: #f7f3ea;
  --bg-alt: #efe8d9;
  --surface: #fffdf9;
  --text: #1b1d1a;
  --text-2: #4a4942;
  --border: #e4dccb;
  --border-strong: #cfc4ad;
  --on-dark: #f7f3ea;
  --on-dark-2: rgba(247, 243, 234, 0.82);
  --border-dark: rgba(247, 243, 234, 0.14);
  --green: #1f8f5f;

  /* type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;

  /* layout */
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(15, 31, 27, 0.04), 0 12px 32px -18px rgba(15, 31, 27, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23e2c48d' stroke-width='0.8'%3E%3Crect x='27' y='27' width='30' height='30'/%3E%3Crect x='27' y='27' width='30' height='30' transform='rotate(45 42 42)'/%3E%3Cpath d='M0 42h12M72 42h12M42 0v12M42 72v12'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[lang="ar"] { font-family: var(--arabic); }
::selection { background: var(--gold-light); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.display { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.022em; }
.h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1.1; }
.h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.hl { font-style: italic; font-weight: 400; color: var(--gold-text); }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.eyebrow { display: block; font-family: var(--sans); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.text-2 { color: var(--text-2); }
.small { font-size: 1rem; }

.dark { color: var(--on-dark); }
.dark .hl, .dark .eyebrow { color: var(--gold-light); }
.dark .lede, .dark .text-2 { color: var(--on-dark-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-hover); }
.btn-dark:hover { background: var(--forest); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--text); }
.dark .btn-outline { color: var(--on-dark); border-color: rgba(247, 243, 234, 0.38); }
.dark .btn-outline:hover { border-color: var(--on-dark); }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: #187a50; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.98rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 234, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; color: var(--gold); flex: none; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; white-space: nowrap; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 1.02rem; color: var(--text-2); text-decoration: none; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(27, 29, 26, 0.06); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }
.nav-toggle { display: none; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); font-weight: 700; cursor: pointer; }
.nav-toggle-bars { position: relative; width: 20px; height: 14px; }
.nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav { height: 68px; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -24px rgba(15, 31, 27, 0.3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.3s; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 16px 18px; font-size: 1.15rem; border-radius: 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 1.15rem; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lede { margin-top: 16px; }

/* Dark rounded panel used for hero, testimonials */
.panel {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: 12px; border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 60% 70% at 85% 20%, rgba(226, 196, 141, 0.13), transparent 70%), linear-gradient(180deg, var(--ink-2), var(--ink));
  color: var(--on-dark);
}
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--pattern); background-size: 84px; opacity: 0.06; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 90% 10%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 90% 10%, #000 10%, transparent 75%); }
@media (max-width: 600px) { .panel { margin-inline: 8px; border-radius: 22px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.split-center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(36px, 5vw, 72px); padding-block: clamp(56px, 8vw, 104px); }
.hero .lede { margin-top: 22px; }
.hero .actions { margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; color: var(--on-dark-2); font-size: 1.02rem; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points svg { width: 20px; height: 20px; color: var(--gold-light); flex: none; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { display: none; } }

.niche { justify-self: center; width: min(100%, 360px); aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: 50% 50% 16px 16px / 36% 36% 16px 16px; border: 1px solid rgba(226, 196, 141, 0.35); background: radial-gradient(circle at 50% 40%, rgba(242, 200, 121, 0.5), rgba(242, 200, 121, 0.06) 45%, transparent 68%), linear-gradient(180deg, #24493f, var(--ink-2) 85%); box-shadow: inset 0 0 0 10px rgba(15, 31, 27, 0.45), inset 0 0 0 11px rgba(226, 196, 141, 0.18), 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.niche { position: relative; }
.niche-letter { font-family: var(--arabic); font-size: clamp(9rem, 16vw, 12.5rem); line-height: 1; color: var(--on-dark); text-shadow: 0 0 40px rgba(242, 200, 121, 0.55); margin-top: -18%; }
.niche-caption { position: absolute; left: 20px; right: 20px; bottom: 9%; text-align: center; }
.niche-caption::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 16px; background: rgba(226, 196, 141, 0.55); }
.niche-caption strong { display: block; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 1.85rem); font-weight: 500; font-style: italic; color: var(--gold-light); line-height: 1.2; }
.niche-caption span { display: block; margin-top: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.7; text-transform: uppercase; color: var(--on-dark-2); }

.poster { justify-self: center; width: min(100%, 440px); padding: 10px; border-radius: 26px; background: rgba(247, 243, 234, 0.06); border: 1px solid rgba(226, 196, 141, 0.28); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.poster img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
@media (max-width: 960px) { .poster { display: block; justify-self: start; width: min(100%, 420px); } }

.lamp { justify-self: center; width: min(100%, 340px); color: var(--gold-light); }
.lamp .flame { transform-origin: 190px 252px; animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.04, 0.97); } 70% { transform: scale(0.97, 1.03); } }

/* ---------- Card ---------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.card-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
a.card { display: flex; flex-direction: column; text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.2s; }
a.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
a.card .link { margin-top: auto; padding-top: 20px; }

.icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--bg-alt); color: var(--gold-text); }
.icon svg { width: 24px; height: 24px; }
.icon-dark { background: var(--forest); color: var(--gold-light); }

/* ---------- Lists ---------- */

.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.checklist li::before { content: ""; flex: none; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2c48d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }

.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.chips li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; }
.chips svg { width: 22px; height: 22px; color: var(--gold-text); }

.steps { display: grid; gap: 20px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; counter-increment: step; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; font-weight: 700; font-size: 1.1rem; }
.steps strong { display: block; font-size: 1.1rem; }
.steps span { display: block; color: var(--text-2); }

.levels { display: grid; gap: 16px; }
.level { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.level-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: var(--gold-light); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.level h4 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; }
.level p { color: var(--text-2); margin-top: 4px; }

.note { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 1rem; }
.note svg { width: 20px; height: 20px; color: var(--gold-text); flex: none; margin-top: 3px; }

/* Detail rows (course details, instructor facts) */
.details { display: grid; }
.details > li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--border); }
.details > li:first-child { border-top: 0; padding-top: 0; }
.details > li:last-child { padding-bottom: 0; }
.details-label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); }
.details-value { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.4; margin-top: 2px; }
.details-value small { display: block; font-size: 1rem; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.details .icon { width: 44px; height: 44px; }

/* ---------- Plans (two ways to learn) ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 24px; }
.plan-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--bg-alt); font-size: 0.92rem; font-weight: 700; }
.plan-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.plan .card-title { font-size: clamp(1.6rem, 2.4vw, 1.95rem); margin-top: -8px; }
.plan-key { padding: 18px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.plan-key strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.plan-key strong small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan-key span { display: block; color: var(--text-2); font-size: 1rem; margin-top: 4px; }
.plan h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.times { display: grid; gap: 8px; }
.times li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); font-weight: 600; }
.times li span { font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; }

/* ---------- Testimonials ---------- */

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr 1fr; } .t-audio { grid-column: 1 / -1; } }
@media (max-width: 620px) { .testimonials { grid-template-columns: 1fr; } }
.t-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid var(--border-dark); }
.t-card video { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; background: #000; }
.t-card figcaption { padding: 16px 20px; font-weight: 600; color: var(--on-dark); }
.t-audio { justify-content: space-between; padding: 28px; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(242, 200, 121, 0.14), transparent 70%), var(--forest); }
.t-audio-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--on-dark); }
.t-audio-title svg { width: 36px; height: 36px; color: var(--gold-light); margin-bottom: 14px; }
.player { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 60px; cursor: pointer; }
.wave i { flex: 0 0 3px; border-radius: 3px; background: rgba(247, 243, 234, 0.25); }
.wave i.on { background: var(--gold-light); }
.player.is-playing .wave i { animation: wave 1.1s ease-in-out infinite alternate; }
@keyframes wave { to { transform: scaleY(0.55); } }
.player-row { display: flex; align-items: center; gap: 16px; }
.play-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--gold); color: #fff; display: grid; place-items: center; flex: none; }
.play-btn:hover { background: var(--gold-hover); }
.play-btn svg { width: 22px; height: 22px; }
.play-btn .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player-label { color: var(--on-dark-2); line-height: 1.35; }
.player-label strong { display: block; color: var(--on-dark); }
.player-time { font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; font-size: 1.12rem; font-weight: 700; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1d1a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; }
.faq details[open] summary::after { background-color: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f3ea' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.faq summary:hover { color: var(--gold-text); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); }
.sticky { position: sticky; top: 110px; }
@media (max-width: 900px) { .sticky { position: static; } }

/* ---------- Embedded Google Form ---------- */

.form-embed { padding: 8px; overflow: hidden; }
.form-embed iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: #fff; }
.form-note { padding: 14px 16px 8px; text-align: center; font-size: 0.98rem; color: var(--text-2); }
.form-placeholder { min-height: 560px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 32px; text-align: center; border: 2px dashed var(--border-strong); border-radius: 12px; color: var(--text-2); }
.form-placeholder svg { width: 36px; height: 36px; color: var(--gold-text); }
.form-placeholder strong { color: var(--text); font-size: 1.05rem; word-break: break-word; }

/* ---------- Community (WhatsApp) ---------- */

.community { display: flex; gap: 18px; align-items: flex-start; }
.community-icon { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--green); color: #fff; }
.community-icon svg { width: 28px; height: 28px; }
.community h3 { font-size: 1.35rem; font-weight: 600; }
.community p { color: var(--text-2); margin: 4px 0 16px; }
.community-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.community-band .community p { margin-bottom: 0; }
.community-band .community { flex: 1 1 420px; }

/* ---------- About ---------- */

.profile { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .profile { grid-template-columns: 1fr; } }
.profile-card { position: sticky; top: 100px; padding: 0; overflow: hidden; }
@media (max-width: 960px) { .profile-card { position: static; max-width: 520px; } }
.portrait { aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(242, 200, 121, 0.3), transparent 60%), linear-gradient(180deg, #24493f, var(--ink)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { padding: 12px 18px; border: 2px dashed rgba(226, 196, 141, 0.5); border-radius: 12px; color: var(--on-dark-2); font-weight: 600; }
.profile-body { padding: 26px 28px 30px; }
.profile-body .card-title { font-size: 1.8rem; }
.profile-body > p { color: var(--text-2); margin-bottom: 22px; }
.bio h3 { font-size: 1.55rem; font-weight: 600; margin: 40px 0 12px; }
.bio h3:first-child { margin-top: 0; }
.bio p { color: #34342e; max-width: 64ch; }
.callout { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 20px 22px; border-radius: 16px; background: var(--forest); color: var(--on-dark); font-weight: 600; line-height: 1.45; }
.callout svg { width: 32px; height: 32px; color: var(--gold-light); flex: none; }

.names { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .names { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .names { grid-template-columns: 1fr; } }
.names li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.names svg { width: 30px; height: 30px; color: var(--gold); flex: none; }
.names small { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); }
.names strong { display: block; font-size: 1.15rem; line-height: 1.3; }

/* ---------- Footer ---------- */

.site-footer { margin: 0 12px 12px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-dark); }
@media (max-width: 600px) { .site-footer { margin: 0 8px 8px; border-radius: 22px; } }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; padding-block: 56px 44px; }
.footer-col p { padding: 6px 0; color: var(--on-dark-2); }
.footer-main .brand { margin-bottom: 16px; }
.footer-main p { color: var(--on-dark-2); font-size: 1rem; max-width: 38ch; }
.footer-col h2 { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { padding-block: 22px 28px; border-top: 1px solid var(--border-dark); font-size: 0.95rem; color: rgba(247, 243, 234, 0.65); }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-main > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-main { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
