:root {
  --main-navy: #123A63;
  --deep-navy: #0D1B3D;
  --royal-blue: #1E4D8F;
  --soft-blue: #6C8FB6;
  --pale-blue-gray: #D7DFE8;
  --warm-ivory: #FBF6EE;
  --surface-cream: #FFFDF8;
  --cream-text: #FBF6EE;
  --cream-muted: rgba(251, 246, 238, 0.82);
  --cream-soft: rgba(251, 246, 238, 0.68);
  --soft-sand: #EFE4CF;
  --ceremonial-gold: #D4A017;
  --antique-gold: #B8862B;
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #128C7E;
  --ink: #223044;
  --muted: #647080;
  --deep: var(--deep-navy);
  --madinah-blue: var(--main-navy);
  --blue-quiet: var(--pale-blue-gray);
  --teal: var(--soft-blue);
  --leaf: var(--antique-gold);
  --gold: var(--ceremonial-gold);
  --gold-soft: #F1D47A;
  --clay: var(--antique-gold);
  --ivory: var(--warm-ivory);
  --paper: #FFFDF8;
  --white: #FFFFFF;
  --line: rgba(18, 58, 99, 0.14);
  --container: 1180px;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(18, 58, 99, 0.13);
  --shadow-small: 0 12px 28px rgba(18, 58, 99, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  background-image:
    linear-gradient(rgba(18, 58, 99, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 58, 99, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, var(--ivory), var(--paper));
  background-size: 38px 38px, 38px 38px, auto;
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(201, 154, 46, 0.06) 0 1px, transparent 1px 18px);
  opacity: 0.55;
  z-index: -1;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--cream-text);
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 300px; max-height: 80px; object-fit: contain; }
.header-panel { display: flex; flex-direction: column; align-items: flex-end; gap: 11px; min-width: 0; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.main-nav a {
  position: relative;
  color: var(--madinah-blue);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 8px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 0.22s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.header-cta { min-height: 40px; padding: 0 17px; font-size: 0.86rem; box-shadow: 0 10px 24px rgba(18, 58, 99, 0.18); }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: var(--deep);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--surface-cream); border-radius: 99px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; color: var(--deep); line-height: 1.08; letter-spacing: 0; }
h1, .display-heading { font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif; font-size: 4.7rem; font-weight: 800; line-height: 1.02; }
h2 { font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif; font-size: 3.05rem; font-weight: 800; line-height: 1.08; }
h3 { font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif; font-size: 1.22rem; font-weight: 800; line-height: 1.18; }
p { margin: 14px 0 0; }
.lead { font-size: 1.17rem; color: #4F5F72; max-width: 780px; }
.small { font-size: 0.9rem; color: var(--cream-soft); }
.section { padding: 86px 0; }
.section.compact { padding: 64px 0; }
.section.paper { background: rgba(255, 253, 248, 0.82); border-block: 1px solid rgba(23, 33, 48, 0.08); }
.section-heading { max-width: 800px; margin-bottom: 38px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading.center .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--cream-text); background: var(--madinah-blue); box-shadow: 0 14px 30px rgba(18, 58, 99, 0.25); }
.btn-primary:hover { background: var(--deep); }
.btn-secondary { color: var(--deep); background: var(--surface-cream); border-color: rgba(18, 58, 99, 0.22); box-shadow: var(--shadow-small); }
.btn-gold { color: var(--deep); background: linear-gradient(135deg, var(--gold-soft), var(--gold)); box-shadow: 0 14px 30px rgba(201, 154, 46, 0.24); }
.btn-link { color: var(--madinah-blue); font-weight: 900; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.btn-link::after { content: "→"; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(620px, calc(100svh - 130px));
  display: flex;
  align-items: center;
  padding: 56px 0 52px;
  overflow: hidden;
  color: var(--cream-text);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 26, 45, 0.91) 0%, rgba(7, 26, 45, 0.74) 48%, rgba(7, 26, 45, 0.26) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(135deg, rgba(251, 246, 238, 0.08) 0 1px, transparent 1px 28px);
}
.hero-content { max-width: 780px; }
.hero h1 { color: var(--cream-text); }
.hero .lead { color: rgba(251, 246, 238, 0.86); }
.hero-calligraphy {
  position: absolute;
  right: 6vw;
  bottom: 18px;
  color: rgba(242, 212, 124, 0.34);
  font-family: Amiri, Georgia, serif;
  font-size: 8.5rem;
  line-height: 1;
  pointer-events: none;
}
.hero-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-mini span {
  padding: 8px 12px;
  border: 1px solid rgba(251, 246, 238, 0.24);
  border-radius: 999px;
  color: rgba(251, 246, 238, 0.88);
  background: rgba(251, 246, 238, 0.08);
  font-weight: 800;
  font-size: 0.9rem;
}

.signal-strip { background: var(--paper); border-bottom: 1px solid rgba(23, 33, 48, 0.08); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.signal-item { padding: 28px; border-inline-end: 1px solid rgba(23, 33, 48, 0.08); }
.signal-item:last-child { border-inline-end: 0; }
.signal-item strong { display: block; color: var(--deep); font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif; font-size: 1.12rem; font-weight: 800; line-height: 1.18; }
.signal-item span { display: block; color: var(--muted); margin-top: 4px; }

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  display: flex;
  align-items: center;
  padding: 72px 0;
  overflow: hidden;
  color: var(--cream-text);
  background: var(--deep);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(7, 26, 45, 0.92), rgba(7, 26, 45, 0.58)), var(--page-image);
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(242, 212, 124, 0.08) 0 1px, transparent 1px 26px);
}
.page-hero h1 { color: var(--cream-text); max-width: 900px; }
.page-hero .lead { color: rgba(251, 246, 238, 0.86); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.split.wide-left { grid-template-columns: 1.08fr 0.92fr; }
.split.wide-right { grid-template-columns: 0.92fr 1.08fr; }
.image-frame { position: relative; }
.image-frame img { width: 100%; height: 470px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(23, 33, 48, 0.12); }
.image-frame::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -18px;
  width: 72%;
  height: 18px;
  background: linear-gradient(90deg, var(--gold), var(--soft-blue), var(--clay));
  border-radius: 999px;
  box-shadow: var(--shadow-small);
}
.arch-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 210px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(7, 26, 45, 0.86);
  color: var(--cream-text);
  border: 1px solid rgba(242, 212, 124, 0.42);
  box-shadow: var(--shadow-small);
}
.arch-note strong { display: block; font-family: Amiri, Georgia, serif; font-size: 2rem; line-height: 1; color: var(--gold-soft); }
.arch-note span { display: block; margin-top: 6px; font-size: 0.9rem; color: rgba(251, 246, 238, 0.76); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.four-grid { grid-template-columns: repeat(4, 1fr); }
.card, .program-card, .teacher-card, .contact-card, .form-card, .path-card, .family-note {
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(23, 33, 48, 0.10);
  box-shadow: var(--shadow-small);
}
.card { padding: 28px; min-height: 248px; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--deep);
  background: linear-gradient(135deg, rgba(242, 212, 124, 0.78), rgba(108, 143, 182, 0.18));
  font-family: Amiri, Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.card p, .program-card p, .teacher-card p, .path-card p { color: #586679; }
.feature-list { display: grid; gap: 12px; margin-top: 24px; }
.feature-list div, .check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid rgba(23, 33, 48, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.66);
  color: var(--madinah-blue);
  font-weight: 800;
}
.check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-blue);
  color: var(--cream-text);
  font-size: 0.85rem;
}

.pathway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: pathway; }
.path-card { position: relative; padding: 26px; overflow: hidden; }
.path-card::before {
  counter-increment: pathway;
  content: counter(pathway, decimal-leading-zero);
  display: block;
  color: var(--gold);
  font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.path-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--madinah-blue), var(--soft-blue), var(--gold));
}

.program-menu { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.program-menu a {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--surface-cream);
  border: 1px solid rgba(18, 58, 99, 0.16);
  color: var(--madinah-blue);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 26, 45, 0.06);
}
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.program-card { padding: 30px; min-height: 310px; display: flex; flex-direction: column; align-items: flex-start; }
.program-card.featured { background: linear-gradient(145deg, var(--deep), var(--madinah-blue)); color: rgba(251, 246, 238, 0.84); }
.program-card.featured h3 { color: var(--cream-text); }
.program-card.featured p { color: rgba(251, 246, 238, 0.78); }
.program-card.featured .icon-badge { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }
.program-card .btn-link { margin-top: auto; }
.program-detail { border-top: 1px solid rgba(23, 33, 48, 0.10); padding-top: 46px; margin-top: 46px; }
.detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; }
.detail-panel { padding: 26px; border-radius: var(--radius); background: var(--surface-cream); border: 1px solid rgba(23, 33, 48, 0.10); box-shadow: var(--shadow-small); }
.detail-panel h3 { color: var(--madinah-blue); }
.outcome-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.teacher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.teacher-card { padding: 30px; }
.avatar-mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: var(--radius); background: var(--blue-quiet); margin-bottom: 18px; }
.avatar-mark img { width: 52px; height: 52px; object-fit: contain; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badges span { padding: 7px 10px; border-radius: 999px; background: rgba(108, 143, 182, 0.16); color: var(--soft-blue); font-weight: 900; font-size: 0.8rem; }

.quote-band { position: relative; overflow: hidden; background: var(--deep); color: var(--cream-muted); }
.quote-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(45deg, rgba(242, 212, 124, 0.08) 25%, transparent 25% 50%, rgba(242, 212, 124, 0.08) 50% 75%, transparent 75%); background-size: 46px 46px; }
.quote-inner { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 42px; align-items: center; }
.quote-band h2, .quote-band h3 { color: var(--cream-text); }
.quote-band .lead { color: rgba(251, 246, 238, 0.78); }
.quote-mark { color: var(--gold-soft); font-family: Amiri, Georgia, serif; font-size: 6rem; line-height: 0.7; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; min-height: 250px; border-radius: var(--radius); background: var(--blue-quiet); box-shadow: var(--shadow-small); }
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; min-height: 514px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: var(--radius); background: rgba(7, 26, 45, 0.76); color: var(--cream-text); font-weight: 800; }
.rhythm-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rhythm-step { padding: 20px; border-radius: var(--radius); border: 1px solid rgba(23, 33, 48, 0.10); background: var(--surface-cream); box-shadow: var(--shadow-small); }
.rhythm-step strong { display: block; color: var(--gold); font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif; font-size: 1.2rem; }

.contact-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 28px; align-items: start; }
.contact-card, .form-card { padding: 32px; }
.contact-methods { display: grid; gap: 12px; margin-top: 24px; }
.contact-methods a, .contact-methods div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 54px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(18, 58, 99, 0.06);
  color: var(--madinah-blue);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.contact-methods span {
  flex: 0 0 auto;
  min-width: 78px;
  color: var(--soft-blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 900;
}
.contact-subtitle { margin-top: 28px; }
.center-actions { justify-content: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.form-field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--deep); font-weight: 900; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(18, 58, 99, 0.22);
  background: rgba(255, 253, 248, 0.94);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 138px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--soft-blue); box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.16); }
.form-card .btn { margin-top: 18px; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.faq-item { padding: 24px; border-radius: var(--radius); background: var(--surface-cream); border: 1px solid rgba(23, 33, 48, 0.10); box-shadow: var(--shadow-small); }

.social-links { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-top: 0; }
.footer-brand .social-links { margin-top: 20px; }
.contact-card .social-links { margin-top: 18px; }

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 62px 0 0;
  background: linear-gradient(145deg, var(--warm-ivory), var(--soft-sand));
  color: var(--ink);
  border-top: 1px solid rgba(184, 134, 43, 0.22);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.20;
  background-image:
    linear-gradient(135deg, rgba(184, 134, 43, 0.18) 0 1px, transparent 1px 26px),
    radial-gradient(circle at 16% 18%, rgba(212, 160, 23, 0.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(108, 143, 182, 0.18), transparent 30%);
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.35fr 0.78fr 1fr 0.95fr; gap: 34px; align-items: start; }
.footer-brand img { width: 286px; max-width: 100%; padding: 8px 10px; border-radius: var(--radius); background: rgba(255, 253, 248, 0.90); border: 1px solid rgba(184, 134, 43, 0.24); box-shadow: 0 10px 22px rgba(18, 58, 99, 0.06); }
.site-footer h3 { color: var(--main-navy); font-size: 1.05rem; text-transform: none; letter-spacing: 0; margin-bottom: 16px; font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif; font-weight: 800; }
.site-footer h3::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 9px; background: linear-gradient(90deg, var(--ceremonial-gold), var(--antique-gold)); }
.site-footer a { display: block; margin: 9px 0; color: #40536A; font-weight: 700; }
.site-footer a:hover { color: var(--royal-blue); }
.footer-bottom { position: relative; margin-top: 42px; padding: 20px; border-top: 1px solid rgba(184, 134, 43, 0.20); text-align: center; }
.footer-bottom p { margin: 0; color: #667287; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .main-nav { gap: 14px; }
}

@media (max-width: 1080px) {
  .split, .split.wide-left, .split.wide-right, .contact-grid, .quote-inner, .detail-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid.four-grid, .program-grid, .teacher-grid, .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .pathway { grid-template-columns: repeat(2, 1fr); }
  .rhythm-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 222px; max-height: 66px; }
  .menu-toggle { display: block; order: 3; }
  .header-panel {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .site-header.nav-open .header-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav { display: grid; grid-template-columns: 1fr; gap: 0; justify-content: stretch; }
  .main-nav a { padding: 12px 4px; }
  .header-actions { justify-content: stretch; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(18, 58, 99, 0.10); }
  .header-cta { flex: 1 1 145px; }
  .hero { min-height: min(560px, calc(100svh - 118px)); padding: 46px 0 42px; }
  .hero-calligraphy { display: none; }
  .lead { font-size: 1.06rem; }
  .section { padding: 66px 0; }
  .section.compact { padding: 50px 0; }
  .signal-grid, .card-grid, .card-grid.four-grid, .program-grid, .teacher-grid, .pathway, .rhythm-grid, .faq-grid, .form-grid, .footer-grid, .outcome-grid { grid-template-columns: 1fr; }
  .signal-item { border-inline-end: 0; border-bottom: 1px solid rgba(23, 33, 48, 0.08); }
  .signal-item:last-child { border-bottom: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: auto; }
  .gallery-item.tall { grid-row: auto; min-height: 310px; }
  .image-frame img { height: 360px; }
  .arch-note { position: static; margin-top: 14px; max-width: none; }
  .image-frame::after { left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .brand img { width: 196px; max-height: 60px; }
  .header-panel { left: 14px; right: 14px; }
  .header-actions { display: grid; grid-template-columns: 1fr; }
  .header-cta { width: 100%; }
  .button-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-mini span { width: 100%; text-align: center; }
  .page-hero { min-height: 330px; padding: 58px 0; }
  .image-frame img { height: 300px; }
  .contact-card, .form-card, .program-card, .teacher-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Final Al-Madinah brand polish */
body {
  background-color: var(--warm-ivory);
  background-image:
    linear-gradient(rgba(18, 58, 99, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 58, 99, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--warm-ivory), var(--paper) 45%, var(--soft-sand));
}
body::before {
  background-image: repeating-linear-gradient(135deg, rgba(212, 160, 23, 0.055) 0 1px, transparent 1px 22px);
}
:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.52);
  outline-offset: 3px;
}
.site-header {
  background: rgba(251, 246, 238, 0.93);
  border-bottom-color: rgba(18, 58, 99, 0.12);
}
.main-nav a:hover { color: var(--royal-blue); }
.main-nav a::after { background: linear-gradient(90deg, var(--ceremonial-gold), var(--antique-gold)); }
.btn { letter-spacing: 0; }
.btn-primary {
  color: var(--warm-ivory);
  background: linear-gradient(135deg, var(--main-navy), var(--royal-blue));
  box-shadow: 0 14px 30px rgba(18, 58, 99, 0.22);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--royal-blue), var(--main-navy)); }
.btn-secondary {
  color: var(--main-navy);
  background: rgba(255, 253, 248, 0.88);
  border-color: rgba(18, 58, 99, 0.20);
}
.btn-secondary:hover {
  background: var(--soft-sand);
  border-color: rgba(184, 134, 43, 0.35);
}
.btn-gold {
  color: var(--deep-navy);
  background: linear-gradient(135deg, #F1D47A, var(--ceremonial-gold));
  box-shadow: 0 14px 28px rgba(184, 134, 43, 0.22);
}
.card, .program-card, .teacher-card, .contact-card, .form-card, .path-card, .family-note, .faq-item, .detail-panel, .rhythm-step {
  background: rgba(255, 253, 248, 0.90);
  border-color: rgba(18, 58, 99, 0.11);
  box-shadow: 0 14px 32px rgba(18, 58, 99, 0.08);
}
.card:hover, .program-card:hover, .teacher-card:hover, .path-card:hover {
  box-shadow: 0 22px 48px rgba(18, 58, 99, 0.13);
}
.icon-badge {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.22), rgba(108, 143, 182, 0.16));
  color: var(--main-navy);
}
.check {
  background: var(--main-navy);
  color: var(--warm-ivory);
}
.badges span {
  background: rgba(108, 143, 182, 0.16);
  color: var(--main-navy);
}
.image-frame::after,
.path-card::after {
  background: linear-gradient(90deg, var(--ceremonial-gold), var(--soft-blue), var(--antique-gold));
}
.page-hero::after {
  background-image: repeating-linear-gradient(90deg, rgba(212, 160, 23, 0.10) 0 1px, transparent 1px 28px);
}
.quote-band {
  background: linear-gradient(135deg, var(--main-navy), var(--deep-navy));
}
.contact-methods a, .contact-methods div {
  background: rgba(239, 228, 207, 0.48);
  border: 1px solid rgba(184, 134, 43, 0.18);
}
.contact-methods span { color: var(--antique-gold); }
input, select, textarea {
  background: rgba(255, 253, 248, 0.96);
  border-color: rgba(18, 58, 99, 0.20);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ceremonial-gold);
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.16);
}
.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-color: #B54747;
  box-shadow: 0 0 0 4px rgba(181, 71, 71, 0.10);
}
.form-status {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(18, 58, 99, 0.14);
  background: rgba(215, 223, 232, 0.42);
  color: var(--main-navy);
  font-weight: 800;
}
.form-status.success {
  border-color: rgba(212, 160, 23, 0.38);
  background: rgba(212, 160, 23, 0.12);
  color: #5E4710;
}
.form-status.error {
  border-color: rgba(181, 71, 71, 0.34);
  background: rgba(181, 71, 71, 0.10);
  color: #7C2E2E;
}
.site-footer .small { color: #667287; }
@media (max-width: 1080px) {
  h1, .display-heading { font-size: 3.55rem; }
  h2 { font-size: 2.55rem; }
}
@media (max-width: 840px) {
  h1, .display-heading { font-size: 2.95rem; }
  h2 { font-size: 2.2rem; }
}
@media (max-width: 560px) {
  h1, .display-heading { font-size: 2.55rem; }
  h2 { font-size: 1.95rem; }
}

/* Header/footer premium warmth pass */
.site-header {
  background: rgba(251, 246, 238, 0.92);
  border-bottom: 1px solid rgba(184, 134, 43, 0.20);
  box-shadow: 0 10px 30px rgba(13, 27, 61, 0.06);
}
.header-inner {
  min-height: 94px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: var(--radius);
  background-color: rgba(255, 253, 248, 0.95);
  background-image: linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(251, 246, 238, 0.88));
  border: 1px solid rgba(184, 134, 43, 0.24);
  box-shadow: 0 10px 22px rgba(18, 58, 99, 0.08), inset 0 1px 0 rgba(255, 253, 248, 0.76);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
  background-color: var(--surface-cream);
  background-image: linear-gradient(180deg, var(--surface-cream), var(--warm-ivory));
  border-color: rgba(184, 134, 43, 0.42);
  box-shadow: 0 14px 28px rgba(18, 58, 99, 0.11), 0 0 0 3px rgba(212, 160, 23, 0.10);
}
.brand img {
  width: clamp(238px, 22vw, 286px);
  max-height: 62px;
  object-fit: contain;
}
.header-panel { gap: 10px; }
.header-actions {
  align-items: center;
  gap: 10px;
}
.header-cta { order: 3; }
.btn-secondary,
.signal-strip,
.detail-panel,
.rhythm-step,
.faq-item {
  background: var(--surface-cream);
}
.card,
.program-card,
.teacher-card,
.contact-card,
.form-card,
.path-card,
.family-note,
.faq-item,
.detail-panel,
.rhythm-step {
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(18, 58, 99, 0.11);
}
.feature-list div,
.check-item,
input,
select,
textarea {
  background: rgba(255, 253, 248, 0.94);
}
.hero,
.page-hero,
.quote-band,
.program-card.featured,
.arch-note,
.gallery-caption {
  color: var(--cream-muted);
}
.hero h1,
.page-hero h1,
.quote-band h2,
.quote-band h3,
.program-card.featured h3 {
  color: var(--cream-text);
}
.hero .lead,
.page-hero .lead,
.quote-band .lead,
.program-card.featured p,
.arch-note span {
  color: var(--cream-muted);
}
.hero-mini span {
  color: rgba(251, 246, 238, 0.88);
  background: rgba(251, 246, 238, 0.08);
  border-color: rgba(251, 246, 238, 0.24);
}
.social-links a {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  margin: 0;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.90);
  color: var(--main-navy);
  border: 1px solid rgba(18, 58, 99, 0.16);
  box-shadow: 0 8px 18px rgba(18, 58, 99, 0.08);
}
.social-links a:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #F8E6A8, var(--ceremonial-gold));
  color: var(--deep-navy);
  border-color: rgba(184, 134, 43, 0.52);
  box-shadow: 0 12px 24px rgba(184, 134, 43, 0.18);
}
.social-links svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
  stroke: none;
}
.menu-toggle {
  background: var(--main-navy);
  border: 1px solid rgba(184, 134, 43, 0.32);
  box-shadow: 0 10px 22px rgba(18, 58, 99, 0.12);
}
.menu-toggle span { background: var(--cream-text); }

@media (max-width: 1180px) {
  .brand img { width: clamp(220px, 25vw, 268px); max-height: 58px; }
}

@media (max-width: 840px) {
  .header-inner { min-height: 82px; }
  .brand { padding: 6px 8px; }
  .brand img { width: clamp(190px, 52vw, 218px); max-height: 50px; }
  .header-panel {
    top: 82px;
    background: rgba(251, 246, 238, 0.98);
    border-color: rgba(184, 134, 43, 0.24);
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .header-cta {
    order: 1;
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .header-inner { min-height: 76px; }
  .brand { padding: 5px 7px; }
  .brand img { width: clamp(168px, 52vw, 190px); max-height: 46px; }
  .header-panel { top: 76px; }
  .header-actions { grid-template-columns: 1fr; }
  .header-cta { order: 1; }
}

/* Maintenance systems: forms and posts */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.field-error {
  margin: 7px 0 0;
  color: #8A3434;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}
.field-error[hidden],
.form-status[hidden] { display: none; }
.form-field.is-invalid label { color: #7C2E2E; }
button[aria-busy="true"] { cursor: progress; }

.narrow-content { max-width: 820px; }
.three-grid { grid-template-columns: repeat(3, 1fr); }
.posts-layout { display: grid; gap: 22px; }
.post-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 26px;
}
.post-filter {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(18, 58, 99, 0.16);
  background: rgba(255, 253, 248, 0.90);
  color: var(--main-navy);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.post-filter:hover,
.post-filter[aria-pressed="true"] {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #F8E6A8, var(--ceremonial-gold));
  border-color: rgba(184, 134, 43, 0.48);
  color: var(--deep-navy);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(18, 58, 99, 0.11);
  box-shadow: 0 14px 32px rgba(18, 58, 99, 0.08);
}
.post-card-featured {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  min-height: 320px;
}
.post-card-image {
  display: block;
  min-height: 210px;
  background: var(--soft-sand);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}
.post-card-body { padding: 24px; }
.post-card h2,
.post-card h3 {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}
.post-card h2 a,
.post-card h3 a { color: var(--deep-navy); }
.post-card h2 a:hover,
.post-card h3 a:hover { color: var(--royal-blue); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #637087;
  font-size: 0.9rem;
  font-weight: 800;
}
.post-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.14);
  color: var(--antique-gold);
  border: 1px solid rgba(184, 134, 43, 0.22);
}
.post-excerpt { color: #586679; }
.empty-state {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(18, 58, 99, 0.11);
  box-shadow: 0 14px 32px rgba(18, 58, 99, 0.08);
  text-align: center;
}
.post-detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}
.post-detail,
.related-posts {
  min-width: 0;
}
.post-content {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(18, 58, 99, 0.11);
  box-shadow: 0 14px 32px rgba(18, 58, 99, 0.08);
}
.post-content p,
.post-content li {
  color: #4E5F75;
  font-size: 1.05rem;
}
.post-content p { margin: 18px 0; }
.post-content h2 { margin-top: 30px; }
.post-hero-image {
  margin: 22px 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(18, 58, 99, 0.12);
  box-shadow: var(--shadow-small);
}
.post-hero-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}
.post-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(108, 143, 182, 0.14);
  color: var(--main-navy);
  font-size: 0.9rem;
  font-weight: 900;
}
.related-posts {
  display: grid;
  gap: 16px;
}
.related-posts h2 {
  font-size: 1.55rem;
  margin: 0;
}
.related-posts .post-card-body { padding: 18px; }
.related-posts .post-card-image { min-height: 150px; }
.related-posts .post-card-image img { min-height: 150px; }
.related-posts .post-card h2 {
  font-size: 1.15rem;
}

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-detail-wrap { grid-template-columns: 1fr; }
  .related-posts { grid-template-columns: repeat(2, 1fr); }
  .related-posts > .eyebrow,
  .related-posts > h2 { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .three-grid,
  .post-grid,
  .related-posts,
  .post-card-featured { grid-template-columns: 1fr; }
  .post-content { padding: 24px; }
  .post-filters { justify-content: flex-start; }
}


/* About page founder and family-choice polish */
.founder-intro { max-width: 930px; }
.founder-grid { align-items: start; }
.founder-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.founder-role {
  margin-top: 8px;
  color: var(--antique-gold) !important;
  font-weight: 900;
  font-size: 0.92rem;
  line-height: 1.35;
}
.founder-card p:not(.founder-role) { margin-top: 12px; }
.founder-card .badges { margin-top: 22px; }
.family-choice-grid .card { min-height: 0; }
.family-choice-grid .icon-badge {
  font-family: "Plus Jakarta Sans", Manrope, system-ui, sans-serif;
  font-size: 0.92rem;
}

/* Launch header action simplification */
.header-launch-actions {
  gap: 10px;
  align-items: center;
}
.header-whatsapp,
.header-contact {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}
.header-contact { order: 2; }
.header-whatsapp { order: 1; }

@media (max-width: 840px) {
  .header-launch-actions {
    grid-template-columns: 1fr 1fr;
  }
  .header-contact {
    order: 1;
    width: 100%;
  }
  .header-whatsapp {
    order: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .header-launch-actions {
    grid-template-columns: 1fr;
  }
  .header-contact { order: 1; }
  .header-whatsapp { order: 2; }
}


/* Desktop header structural balance */
@media (min-width: 841px) {
  .site-header .header-inner {
    min-height: 112px;
    padding-block: 10px;
    align-items: center;
  }

  .site-header .header-panel {
    justify-content: center;
    gap: 13px;
  }

  .site-header .header-actions,
  .site-header .header-launch-actions {
    align-items: center;
  }
}


/* Final WhatsApp and scroll-up polish */
.site-header .header-whatsapp,
.site-header .header-whatsapp:visited {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  padding: 0;
  border-radius: 999px;
  color: var(--surface-cream);
  background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
  border: 1px solid rgba(18, 140, 126, 0.58);
  line-height: 1;
  box-shadow: 0 12px 26px rgba(18, 140, 126, 0.20);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header .header-whatsapp:hover,
.site-header .header-whatsapp:focus-visible {
  color: var(--surface-cream);
  background: linear-gradient(135deg, #20BE5E, var(--whatsapp-green-dark));
  border-color: rgba(18, 140, 126, 0.72);
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(18, 140, 126, 0.26);
}
.site-header .header-whatsapp:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.38);
  outline-offset: 3px;
}
.site-header .header-whatsapp svg,
.site-header .header-whatsapp .brand-icon,
.site-header .header-whatsapp .brand-icon-whatsapp,
.site-header .header-whatsapp .header-whatsapp-icon {
  display: block;
  width: 19px;
  min-width: 19px;
  max-width: 19px;
  height: 19px;
  min-height: 19px;
  max-height: 19px;
  flex: 0 0 19px;
  color: currentColor;
  fill: currentColor;
  stroke: none;
}
.site-header .header-whatsapp svg path {
  fill: currentColor;
  stroke: none;
}
.site-footer .social-links a[data-social="whatsapp"],
.site-footer .social-links a[data-social="whatsapp"]:visited {
  color: var(--main-navy);
  background: rgba(255, 253, 248, 0.90);
  border-color: rgba(18, 58, 99, 0.16);
  box-shadow: 0 8px 18px rgba(18, 58, 99, 0.08);
}
.site-footer .social-links a[data-social="whatsapp"]:hover,
.site-footer .social-links a[data-social="whatsapp"]:focus-visible {
  color: var(--deep-navy);
  background: linear-gradient(135deg, #F8E6A8, var(--ceremonial-gold));
  border-color: rgba(184, 134, 43, 0.52);
  box-shadow: 0 12px 24px rgba(184, 134, 43, 0.18);
}
.site-footer .social-links a[data-social="whatsapp"] svg,
.site-footer .social-links a[data-social="whatsapp"] .brand-icon-whatsapp {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}
.contact-methods a[data-social="whatsapp"] {
  color: var(--surface-cream);
  background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
  border-color: rgba(18, 140, 126, 0.56);
  box-shadow: 0 12px 24px rgba(18, 140, 126, 0.18);
}
.contact-methods a[data-social="whatsapp"] span {
  color: rgba(255, 253, 248, 0.82);
}
.contact-methods a[data-social="whatsapp"]:hover,
.contact-methods a[data-social="whatsapp"]:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #20BE5E, var(--whatsapp-green-dark));
  box-shadow: 0 16px 30px rgba(18, 140, 126, 0.24);
}
.site-footer a[data-social="whatsapp"]:not([aria-label]) {
  color: var(--whatsapp-green-dark);
  font-weight: 900;
}
.site-footer a[data-social="whatsapp"]:not([aria-label]):hover,
.site-footer a[data-social="whatsapp"]:not([aria-label]):focus-visible {
  color: var(--whatsapp-green);
}

.scroll-top {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(184, 134, 43, 0.36);
  background: linear-gradient(145deg, var(--main-navy), var(--deep-navy));
  color: var(--gold-soft);
  box-shadow: 0 16px 34px rgba(13, 27, 61, 0.24), 0 0 0 4px rgba(251, 246, 238, 0.52);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-top:hover {
  background: linear-gradient(145deg, var(--royal-blue), var(--main-navy));
  color: var(--surface-cream);
  box-shadow: 0 18px 38px rgba(13, 27, 61, 0.28), 0 0 0 4px rgba(212, 160, 23, 0.13);
}
.scroll-top.is-near-footer {
  bottom: calc(88px + env(safe-area-inset-bottom));
}
.scroll-top:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.52);
  outline-offset: 4px;
}
.scroll-top svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  .scroll-top {
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }
  .scroll-top.is-near-footer {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: none;
  }
}

