/* 2026 visual refresh: self-hosted type, floating navigation, inset rounded
   sections and larger, calmer text. Loaded last so it restyles earlier layers. */
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root { --serif: "Instrument Serif", Georgia, "Times New Roman", serif; --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --r-xl: clamp(22px, 2.6vw, 36px); --edge: clamp(8px, 1vw, 14px); --tile: color-mix(in srgb, var(--page) 55%, #fff); --tile-line: color-mix(in srgb, var(--ink) 12%, transparent); }
:root[data-theme=dark] { --tile: color-mix(in srgb, var(--page) 86%, #fff); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .05; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root h1, :root h2, :root h3 { font-family: var(--serif); letter-spacing: -.02em; line-height: 1; }
:root .screen-card h3 { font-family: var(--sans); letter-spacing: -.01em; line-height: 1.4; font-size: 15px; }
em { font-style: italic; }
.wrap { width: min(1320px, 100%); }

/* ---------- Floating navigation ---------- */
.site-header { top: 10px; width: min(1240px, calc(100% - 2 * var(--edge))); margin: 10px auto 0; border-radius: 999px; border: 1px solid var(--tile-line); background: color-mix(in srgb, var(--page) 68%, transparent); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 10px 40px #0d2d2512; }
.site-header .header-inner { height: 62px; padding-inline: 10px 10px; padding-left: 22px; }
.site-header.is-scrolled .header-inner { height: 56px; }
.brand { font-size: 21px; letter-spacing: -.04em; font-weight: 650; }
.header-inner nav { font-size: 14px; font-weight: 500; gap: 6px; }
.header-inner nav > a:not(.button) { padding: 9px 14px; border-radius: 99px; transition: background .25s; }
.header-inner nav > a:not(.button)::after { display: none; }
.header-inner nav > a:not(.button):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.button { font-size: 14px; font-weight: 550; letter-spacing: -.005em; }
.button.small { font-size: 13.5px; min-height: 42px; padding: 10px 20px; margin-left: 8px; }
.theme-toggle, .menu-toggle { border-color: var(--tile-line); }
@media (max-width: 800px) {
  .site-header .header-inner { height: 58px; padding-left: 16px; padding-right: 8px; }
  .site-header.is-scrolled .header-inner { height: 58px; }
  .menu-toggle { font-size: 13px; border-radius: 99px; }
  .header-inner nav { top: calc(100% + 8px); border: 1px solid var(--tile-line); border-radius: 26px; padding: 14px; background: var(--page); box-shadow: 0 24px 50px #0d2d2526; }
  .header-inner nav.open { flex-direction: column; align-items: stretch; gap: 2px; font-size: 16px; }
  .header-inner nav.open .button { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.valley { margin: 10px var(--edge) 0; border-radius: var(--r-xl); }
.valley h1 { font-size: clamp(50px, 9.6vw, 150px); line-height: .9; letter-spacing: -.03em; }
.valley-copy p { font-size: clamp(15px, 1.35vw, 21px); line-height: 1.5; max-width: 30em; color: #fff9e9e6; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: clamp(14px, 2vw, 26px); padding: 7px 14px 7px 11px; border-radius: 99px; font-size: 13px; font-weight: 500; color: #fff8e6; background: #ffffff1c; border: 1px solid #ffffff38; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: #9be28f; box-shadow: 0 0 0 4px #9be28f33; animation: live-dot 2.4s ease-in-out infinite; }
.ivory-button { font-size: 15px; padding: 15px 26px; font-weight: 600; }
.day-device figcaption { font-size: 13px; padding: 5px 14px; background: #0d2d2599; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #ffffff2e; }
.day-device button { border-radius: 34px; padding: 5px; border-color: #ffffff59; }
.day-device img { border-radius: 29px; }
.hero-phone-next { inset: 5px; width: calc(100% - 10px) !important; height: calc(100% - 10px); }
.day-controls { border: 1px solid #ffffff38; border-radius: 999px; background: #ffffff1a; backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); padding: 7px 7px 7px 26px; margin-top: 22px; gap: 4%; }
.day-controls > span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.day-controls button { font-size: 15px; font-weight: 500; }
.day-controls button[aria-pressed=true] { background: #fff6dc; box-shadow: 0 6px 20px #00000030; }
.day-orb { top: -9px; }
@media (min-width: 801px) {
  .valley-layout { min-height: clamp(560px, calc(100svh - 104px), 900px); grid-template-rows: 1fr auto; padding-block: 36px 22px; }
  .day-device { width: clamp(190px, min(22vw, calc((100svh - 300px) / 2.2)), 330px); }
}
@media (max-width: 800px) {
  .day-controls { border-radius: 26px; padding: 14px 10px 8px; }
  .day-controls > span { padding-left: 8px; font-size: 13px; }
  .day-controls button { font-size: 13px; }
  .day-device button { border-radius: 22px; padding: 3px; }
  .day-device img { border-radius: 19px; }
  .hero-phone-next { inset: 3px; width: calc(100% - 6px) !important; height: calc(100% - 6px); }
  .ivory-button { font-size: 13px; padding: 11px 16px; }
  .hero-badge { font-size: 11px; padding: 5px 10px 5px 8px; }
}

/* ---------- Ribbon ---------- */
.ribbon { overflow: hidden; padding-block: clamp(20px, 3vw, 40px) 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 46s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.ribbon li { display: flex; align-items: center; white-space: nowrap; font: 400 clamp(26px, 3.4vw, 50px)/1.2 var(--serif); color: color-mix(in srgb, var(--ink) 78%, transparent); }
.ribbon li:nth-child(even) { font-style: italic; color: color-mix(in srgb, var(--gold) 90%, transparent); }
.ribbon li::after { content: ""; width: .28em; height: .28em; margin-inline: .7em; border-radius: 50%; background: currentColor; opacity: .45; }
@keyframes ribbon { to { translate: -50% 0; } }

/* ---------- Facts as tiles ---------- */
.facts { border-bottom: 0; }
.facts-inner { gap: clamp(8px, 1.2vw, 16px); padding-block: clamp(22px, 3vw, 40px) 0; }
.facts p { justify-content: space-between; gap: clamp(22px, 4vw, 56px); padding: clamp(16px, 2vw, 28px); border-radius: clamp(18px, 2vw, 28px); background: var(--tile); border: 1px solid var(--tile-line); font-size: 15px; transition: translate .4s var(--ease), box-shadow .4s; }
.facts p:hover { translate: 0 -5px; box-shadow: 0 20px 44px #143e301a; }
.facts b { font-size: clamp(52px, 6.4vw, 104px); letter-spacing: -.03em; line-height: .85; }
.facts p:nth-child(2) { background: var(--forest); border-color: transparent; color: #cfe0d0; }
.facts p:nth-child(2) b { color: #f6e9c4; }
.facts p:nth-child(2) span { color: #cfe0d0; }

/* ---------- Tour ---------- */
.practice h2, .screen-room h2, .tasbeeh h2, .widget-exhibit h2, .mosque-month h2 { font-size: clamp(46px, 6vw, 92px); letter-spacing: -.025em; }
.practice-head p, .room-heading p, .widget-intro, .tasbeeh-copy p, .month-copy p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.story-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; }
.story-kicker b { font-size: 15px; }
.story-step h3 { font-size: clamp(34px, 4.6vw, 72px); }
.story-step p { font-size: clamp(15px, 1.35vw, 20px); }
.story-step a, .tasbeeh-copy a { font-size: 15px; font-weight: 550; }
.story-inline { border-radius: 22px; }
@media (min-width: 900px) { .js .story-stage { border-radius: var(--r-xl); } .story-phone { border-radius: 36px; } }
@media (max-width: 480px) { .story-step h3 { font-size: 30px; } }

/* ---------- Gallery ---------- */
.screen-room { position: relative; overflow: hidden; margin-inline: var(--edge); border-radius: var(--r-xl); background: radial-gradient(900px circle at var(--mx, 70%) var(--my, 0%), #24654f, transparent 62%), #123c32; }
[data-theme=dark] .screen-room { background: radial-gradient(900px circle at var(--mx, 70%) var(--my, 0%), #1f5645, transparent 62%), #0f2f28; }
.filters { gap: 8px; margin-bottom: 26px; }
.filters button { font-size: 15px; padding: 10px 18px; min-height: 44px; border-color: #ffffff2e; background: #ffffff0f; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.filters button[aria-pressed=true] { background: #f3e6bf; border-color: #f3e6bf; box-shadow: 0 8px 24px #00000033; }
.rail-arrows button { width: 50px; height: 50px; border-color: #ffffff38; background: #ffffff0f; }
.screen-card button { border-radius: 22px; }
.screen-expand { right: 10px; bottom: 10px; width: 36px; line-height: 36px; }
#screen-summary { font-size: 14px; }
@media (max-width: 590px) { .filters button { font-size: 14px; padding: 8px 13px; } }

/* ---------- Tasbeeh, widgets, timetable ---------- */
.tasbeeh-card { border-radius: var(--r-xl); border-color: var(--tile-line); }
.tasbeeh-tabs { border-radius: 18px; border-color: var(--tile-line); }
.tasbeeh-tabs button { font-size: 14px; font-weight: 600; }
.widget-exhibit { margin-inline: var(--edge); border-radius: var(--r-xl); }
.widget-pair article { border-radius: clamp(20px, 2.2vw, 30px); border-color: var(--tile-line); }
.widget-label h3 { font-size: clamp(30px, 3vw, 46px); }
.widget-label p { font-size: 16px; }
.month-pair .widget-picture { border-radius: 16px; }
.month-pair figcaption { font-size: 14px; }
.lw-now, .lw-time { font-family: Georgia, "Times New Roman", serif; }

/* ---------- FAQ, support, launch, footer ---------- */
.questions { margin-inline: var(--edge); border-radius: var(--r-xl); }
.faq-layout h2, .support h2 { font-size: clamp(44px, 5.4vw, 84px); }
.faq-list details, .faq-list details:first-child { border: 1px solid var(--tile-line); border-radius: 20px; background: var(--tile); padding: 6px 22px; margin-bottom: 10px; transition: box-shadow .3s, border-color .3s; }
.faq-list details[open], .faq-list details:hover { box-shadow: 0 14px 34px #143e3014; }
.faq-list summary { font-size: 17px; font-weight: 550; min-height: 52px; letter-spacing: -.01em; }
.faq-list summary:hover { padding-left: 0; }
.faq-list summary span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 20px; line-height: 1; }
.faq-list details p { font-size: 16px; line-height: 1.6; margin: 2px 40px 16px 0; }
.support p { font-size: 17px; }
.launch { margin-inline: var(--edge); border-radius: var(--r-xl); padding-block: clamp(80px, 11vw, 150px); background: radial-gradient(70% 90% at 50% -10%, #2c7a5f, transparent 70%), #123c32; }
[data-theme=dark] .launch { background: radial-gradient(70% 90% at 50% -10%, #1d4f5a, transparent 70%), #0a1d24; }
.launch h2 { font-size: clamp(54px, 8vw, 128px); line-height: .92; }
.launch p { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }
.launch-note { font-size: 13px; }
footer { padding-block: 50px 0; overflow: hidden; }
.footer-top p { font-size: 15px; }
.footer-top nav { font-size: 15px; gap: 8px; }
.footer-top nav a { padding: 8px 14px; border-radius: 99px; transition: background .25s; }
.footer-top nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: inherit; }
.footer-bottom { font-size: 13px; border-top-color: var(--tile-line); }
.footer-word { font: 400 clamp(90px, 24.5vw, 420px)/.74 var(--serif); letter-spacing: -.04em; text-align: center; white-space: nowrap; margin: clamp(20px, 4vw, 50px) 0 -.06em; background: linear-gradient(color-mix(in srgb, var(--ink) 30%, transparent), transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
#screen-viewer { border-radius: 28px; }
.viewer-header h2 { font-size: 30px; }
.viewer-footer #viewer-zoom, #viewer-count { font-size: 14px; }
@media (max-width: 800px) { .footer-top nav { max-width: none; gap: 2px; } .faq-list details p { margin-right: 0; } }
@media (max-width: 540px) { .faq-list summary { font-size: 16px; } .faq-list details { padding-inline: 16px; } .support p, .launch p { font-size: 16px; } .button { font-size: 14px; } .footer-bottom { font-size: 12px; } }
@media (max-width: 590px) {
  .hero-badge { font-size: 10.5px; white-space: nowrap; gap: 6px; padding: 4px 9px 4px 7px; }
  .hero-badge i { width: 6px; height: 6px; box-shadow: 0 0 0 3px #9be28f33; }
  .day-controls button { font-size: 12.5px; padding-inline: 0; }
  .day-controls [role=group] { gap: 2px; }
}
.header-inner nav a { white-space: nowrap; }
@media (min-width: 801px) and (max-width: 980px) {
  .header-inner nav .button.small { display: none; }
  .header-inner nav > a:not(.button) { padding-inline: 10px; }
}
