/* Mohamed Fawzy — site styles, version 1.24
   Layout: dark glowing hero with device mockups, light tabbed work showcase,
   dark glass packages, light reviews strip, gradient contact block. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains";
  src: url("/assets/fonts/jetbrains.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("/assets/fonts/instrument.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* palette */
  /* drawn from his own sites: science navy and teal, Islamic Studies green, gold and cream */
  --ink: #0d1b24;
  --ink-2: #13282f;
  --green: #14473b;
  --violet: #2f8f8c;
  --pink: #d9785e;
  --amber: #d4ae5f;
  --cyan: #5fb3ae;
  --paper: #f6f1e6;
  --white: #ffffff;
  --text: #16282a;
  --muted: #5b6a67;
  --line: #e7dfcc;
  --grad: linear-gradient(110deg, #e9cf8e 0%, #d4ae5f 45%, #8fbfae 100%);
  --gold-btn: linear-gradient(135deg, #ead08f 0%, #d4ae5f 55%, #c19a48 100%);

  /* names the admin page also uses */
  --night: #16282a;
  --cobalt: #1d5a4a;
  --cobalt-deep: #13282f;
  --teal: #2f8f8c;
  --tomato: #c8573f;
  --sun: #d4ae5f;

  --display: "Bricolage", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Instrument", "Helvetica Neue", Arial, sans-serif;
  --code: "JetBrains", "SF Mono", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.6rem, 1.5rem + 4.6vw, 5rem);

  --gutter: 16px;
  --max: 1200px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(13, 27, 36, 0.95);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
span.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--gold-btn); color: var(--ink);
}
span.brand-mark svg { width: 24px; height: 24px; transition: transform 0.6s ease; }
.brand:hover span.brand-mark svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { span.brand-mark svg { transition: none; } }
svg.brand-mark { width: 26px; height: 26px; color: var(--amber); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: rgba(255, 255, 255, 0.86); }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav .nav-cta { background: var(--white); color: var(--ink); font-weight: 700; margin-left: 6px; }
.nav .nav-cta:hover { background: #ead08f; color: var(--ink); }
.nav a[aria-current="page"]:not(.nav-cta) { color: #ead08f; background: rgba(234, 208, 143, 0.1); }
.nav .nav-cta[aria-current="page"] { background: var(--gold-btn); }
.nav-toggle {
  display: none; font: inherit; font-weight: 600; color: var(--white);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px var(--gutter) 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav ul.open { display: flex; }
  .nav a { display: block; padding: 12px 8px; border-radius: 10px; }
  .nav .nav-cta { text-align: center; margin: 8px 0 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  padding: 14px 26px; border-radius: 999px; border: 0;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-grad { background: var(--gold-btn); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(212, 174, 95, 0.6); }
.btn-grad:hover { box-shadow: 0 14px 36px -10px rgba(212, 174, 95, 0.75); }
.btn-glass { background: rgba(255, 255, 255, 0.08); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--green); box-shadow: 0 10px 24px -10px rgba(13, 27, 36, 0.6); }
/* used by the admin page */
.btn-sun { background: var(--amber); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.5); }

/* ---------- glows ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: 0.75; }
.g1 { width: 520px; height: 520px; background: #1f6b6f; top: -160px; left: -140px; animation: drift 18s ease-in-out infinite alternate; }
.g2 { width: 460px; height: 460px; background: #1d5a4a; top: 120px; right: -120px; opacity: 0.7; animation: drift 22s ease-in-out infinite alternate-reverse; }
.g3 { width: 380px; height: 380px; background: #8a6c2c; bottom: -200px; left: 35%; opacity: 0.35; animation: drift 20s ease-in-out infinite alternate; }
.g4 { width: 520px; height: 520px; background: #1f6b6f; top: -200px; right: -160px; opacity: 0.45; }
.g5 { width: 480px; height: 480px; background: #b8923f; bottom: -220px; left: -120px; opacity: 0.3; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.hero { background: linear-gradient(165deg, #0d1b24 0%, #0f2a2a 60%, #11332d 100%); }
/* falling 0s and 1s behind the hero (drawn by app.js) */
.binary {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.7;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.25) 38%, #000 62%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.25) 38%, #000 62%);
}
@media (max-width: 979px) {
  .binary {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 50%, #000 78%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.2) 50%, #000 78%);
  }
}
.hero .glow { z-index: -1; }
.hero-in { display: grid; gap: 48px; align-items: center; padding-block: 64px 80px; }
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.02fr 0.98fr; gap: 40px; padding-block: 96px 120px; } }

.kicker {
  display: inline-block; font-weight: 600; font-size: var(--step--1); letter-spacing: 0.02em;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 12ch; margin-bottom: 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: var(--step-1); line-height: 1.5; color: rgba(255, 255, 255, 0.78); max-width: 36ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.proof li { display: flex; align-items: center; gap: 10px; }
.proof strong { font-family: var(--display); font-size: 2rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.proof span { font-size: var(--step--1); color: rgba(255, 255, 255, 0.7); max-width: 14ch; line-height: 1.3; }

/* devices */
.hero-devices { position: relative; width: 100%; max-width: 600px; justify-self: center; padding: 10px 0 40px 0; }
.laptop { position: relative; width: 100%; }
.laptop-screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 14px 14px 4px 4px; border: 10px solid #0a141b; border-bottom-width: 14px;
  background: var(--white); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  container-type: inline-size;
}
.laptop-base {
  height: 14px; margin: 0 -7%; border-radius: 0 0 16px 16px;
  background: linear-gradient(#d8d3c6, #8f8a7d); position: relative;
}
.laptop-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: #7d786c; }

.phone {
  position: absolute; width: 30%; left: -6%; bottom: 0;
  aspect-ratio: 9 / 19; border-radius: 26px; padding: 7px;
  background: #0a141b; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: var(--white); container-type: inline-size; }

.chip {
  position: absolute; font-size: var(--step--1); font-weight: 700; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; color: var(--ink); background: var(--white);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}
.chip::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); margin-right: 8px; vertical-align: 1px; }
.chip-a { top: -6px; right: 4%; }
.chip-b { bottom: 6%; right: -2%; }
.chip-b::before { background: var(--pink); }

.float-a { animation: floatY 7s ease-in-out infinite; }
.float-b { animation: floatY 6s ease-in-out infinite reverse; }
@keyframes floatY { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .glow { animation: none; }
}
@media (max-width: 979px) {
  .hero-devices { max-width: 480px; padding-left: 8%; }
  .phone { left: 0; }
}
@media (max-width: 520px) {
  .chip-b { right: 0; bottom: 2%; }
  .chip { font-size: 0.75rem; padding: 6px 11px; }
}

/* ---------- mock pages inside device screens ---------- */
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 2; }
.shot-img.missing { display: none; }
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 3.2cqw; padding: 0 0 4cqw; font-family: var(--body); font-size: 3.2cqw; line-height: 1.2; }
.mk-bar { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 3cqw 4cqw; color: var(--white); font-family: var(--display); }
.mk-bar b { font-size: 4.6cqw; }
.mk-bar span { opacity: 0.85; font-size: 3.4cqw; }
.mk-hero { padding: 0 4cqw; display: grid; gap: 2cqw; }
.mk-hero i { display: block; height: 3.4cqw; width: 70%; border-radius: 99px; background: rgba(255, 255, 255, 0.55); }
.mk-hero i.short { width: 45%; opacity: 0.6; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; padding: 0 4cqw; flex: 1; }
.mk-tiles span {
  display: flex; align-items: flex-end; padding: 2.6cqw; border-radius: 2.4cqw;
  font-weight: 700; color: var(--white); background: rgba(255, 255, 255, 0.14);
}
.mk-tiles span:nth-child(1) { background: #e9b949; color: #2a1d00; }
.mk-tiles span:nth-child(5) { background: rgba(255, 255, 255, 0.28); }
.mock-islamic { background: linear-gradient(160deg, #0d5d51, #083f39); }

.mock-science { background: linear-gradient(160deg, #2440b8, #172a7a); }
.mk-note { margin: 0 4cqw; padding: 3cqw 4cqw; border-radius: 3cqw; background: #ffd65a; color: #2a1d00; font-weight: 700; }
.mk-note small { display: block; font-weight: 600; opacity: 0.7; font-size: 0.8em; }
.mk-list { display: grid; gap: 2.6cqw; padding: 0 4cqw; flex: 1; align-content: start; }
.mk-list span { padding: 3.2cqw 4cqw; border-radius: 2.4cqw; background: rgba(255, 255, 255, 0.14); color: var(--white); font-weight: 600; }
.mk-list span.lab { background: #ff6f61; }
.mock.big .mk-list { grid-template-columns: 1fr 1fr; }

.mock-masjid { background: linear-gradient(160deg, #14473b, #0d2a25); }
.mk-prayers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2cqw; padding: 0 4cqw; }
.mk-prayers span { display: grid; gap: 1cqw; text-align: center; padding: 3cqw 1cqw; border-radius: 2.4cqw; background: rgba(255, 255, 255, 0.1); color: var(--white); font-weight: 700; font-size: 3.4cqw; }
.mk-prayers span:nth-child(2) { background: var(--gold-btn); color: var(--ink); }
.mk-prayers small { font-weight: 500; opacity: 0.8; font-size: 2.6cqw; }
.mock-masjid .mk-list span.lab { background: var(--amber); color: var(--ink); }

/* phone mock gets larger text */
.phone .mock { font-size: 7cqw; gap: 5cqw; }
.phone .mk-bar { padding: 8cqw 6cqw 4cqw; }
.phone .mk-bar b { font-size: 9cqw; }
.phone .mk-note { margin: 0 6cqw; padding: 5cqw 6cqw; border-radius: 6cqw; }
.phone .mk-list { padding: 0 6cqw; gap: 4cqw; }
.phone .mk-list span { padding: 5cqw 6cqw; border-radius: 5cqw; }

/* ---------- updates ---------- */
.updates { background: var(--gold-btn); color: var(--ink); }
.updates-in { display: flex; align-items: flex-start; gap: 16px 24px; padding-block: 18px; flex-wrap: wrap; }
.updates-label { font-family: var(--display); font-weight: 800; font-size: var(--step--1); background: var(--ink); color: #ead08f; padding: 4px 12px; border-radius: 999px; }
.updates-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; min-width: 0; }
.update { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.update strong { font-family: var(--display); font-size: 1.1rem; }
.update span { opacity: 0.92; }
.update time { font-size: var(--step--1); opacity: 0.8; }
.update a { font-weight: 700; }

/* ---------- section heads ---------- */
section { scroll-margin-top: 72px; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: var(--step-3); font-weight: 800; margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; margin: 0; }
.sec-head.light p { color: rgba(255, 255, 255, 0.72); }
.sec-head.row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.sec-head.row h2 { margin: 0; }
.loading { color: var(--muted); }

/* ---------- work ---------- */
.work { background: var(--paper); padding-block: 96px; }
.work-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 32px;
  background: var(--white); border-radius: 999px; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(13, 27, 36, 0.35);
}
.wtab {
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
  padding: 10px 20px; border: 0; border-radius: 999px; background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.wtab:hover { color: var(--text); }
.wtab[aria-selected="true"] { background: var(--green); color: var(--white); }

.proj { display: grid; gap: 28px; align-items: center; }
@media (min-width: 980px) { .proj { grid-template-columns: 1.45fr 1fr; gap: 56px; } }
.proj.enter { animation: projIn 0.45s ease both; }
@keyframes projIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .proj.enter { animation: none; } }

.browser {
  border-radius: 16px; overflow: hidden; background: var(--white);
  box-shadow: 0 40px 70px -40px rgba(13, 27, 36, 0.55), 0 0 0 1px var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #ece5d5; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.browser-bar i:nth-child(2) { background: #ffbd2e; }
.browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar span {
  flex: 1; min-width: 0; margin-left: 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--white); color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-view { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; }

.proj-info h3 { font-size: var(--step-2); margin-bottom: 12px; }
.proj-info p { color: var(--muted); max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.15em + 6px); width: 8px; height: 5px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg);
}
.soon { display: inline-block; font-weight: 700; padding: 10px 20px; border-radius: 999px; border: 2px dashed #b8923f; color: #8a6c2c; }

/* ---------- packages ---------- */
.packages { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #0d1b24, #0f2626); color: var(--white); padding-block: 96px; }
.packages .glow { z-index: -1; }
.pkg-list { display: grid; gap: 20px; }
@media (min-width: 980px) { .pkg-list { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.pkg {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pkg.featured { background: linear-gradient(#12302d, #12302d) padding-box, var(--gold-btn) border-box; border: 2px solid transparent; }
.pkg .badge { position: absolute; top: -13px; left: 24px; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--gold-btn); color: var(--ink); }
.pkg h3 { font-size: var(--step-1); margin-bottom: 14px; }
.pkg .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0 0 4px; }
.pkg .price em { flex-basis: 100%; font-style: normal; font-size: var(--step--1); font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.pkg .price strong { font-family: var(--display); font-size: 3.2rem; line-height: 1; letter-spacing: -0.03em; }
.pkg .price small { font-size: 1rem; color: rgba(255, 255, 255, 0.7); }
.pkg .summary { color: rgba(255, 255, 255, 0.72); margin: 10px 0 18px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.pkg li { position: relative; padding-left: 26px; }
.pkg li::before {
  content: ">"; position: absolute; left: 2px; top: 0; color: var(--cyan);
  font-family: var(--code); font-weight: 700;
}
.pkg.featured li::before { color: var(--amber); }
.pkg .btn { margin-top: auto; align-self: stretch; }
.pkg:not(.featured) .btn { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); }
.pkg:not(.featured) .btn:hover { background: rgba(255, 255, 255, 0.18); }

.steps {
  list-style: none; margin: 56px 0 0; padding: 0; counter-reset: s;
  display: grid; gap: 18px;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.steps li { counter-increment: s; position: relative; display: grid; gap: 4px; padding: 0 18px 0 0; }
.steps li::before {
  content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 10px;
  font-family: var(--display); font-weight: 800; background: var(--white); color: var(--ink);
  position: relative; z-index: 1;
}
@media (min-width: 720px) {
  .steps li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,.08)); }
  .steps li:last-child::after { display: none; }
}
.steps b { font-family: var(--display); font-size: 1.1rem; }
.steps span { color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }

/* ---------- reviews ---------- */
.reviews { padding-block: 96px; background: var(--white); }
.review-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px;
}
.review {
  scroll-snap-align: start; margin: 0; padding: 26px; border-radius: 22px;
  background: var(--paper); display: flex; flex-direction: column; gap: 12px;
}
.review blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.review figcaption .ini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--white); font-family: var(--display); flex: none; }
.review figcaption small { display: block; font-weight: 400; color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1.15rem; }
.stars .off { color: var(--line); }
.empty-reviews {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 28px; border-radius: 22px; background: var(--paper); color: var(--muted);
}
.empty-reviews .big-stars { font-size: 1.8rem; letter-spacing: 4px; background: var(--gold-btn); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty-reviews p { margin: 0; max-width: 46ch; }
.review-list:has(.empty-reviews) { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
.empty { background: var(--white); border: 2px dashed var(--line); border-radius: 16px; padding: 24px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; padding-block: 96px; background: linear-gradient(140deg, #0f3a31 0%, #17503f 45%, #22626a 100%); color: var(--white); }
.contact .glow { z-index: -1; }
.contact-in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .contact-in { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.about-card { padding: 8px 0; }
.about-card h2 { font-size: var(--step-3); font-weight: 800; margin-bottom: 16px; }
.about-card p { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.avatar {
  position: relative; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin-bottom: 24px;
  display: grid; place-items: center; background: var(--gold-btn);
  box-shadow: 0 0 0 5px #0f3a31, 0 0 0 8px var(--amber), 0 24px 48px -18px rgba(0, 0, 0, 0.7);
}
@media (min-width: 980px) { .avatar { width: 180px; height: 180px; } }
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar-img.missing { display: none; }
.avatar-initials { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--ink); }

.quote-form { background: var(--white); color: var(--text); border-radius: 24px; padding: 24px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
@media (min-width: 720px) { .quote-form { padding: 34px; } }
.quote-form h3 { font-size: var(--step-2); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 720px) { .field-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; min-width: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--text);
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; background: var(--white); border-color: var(--violet); box-shadow: 0 0 0 4px rgba(47, 143, 140, 0.18); }
.field .bad,
.field input.bad,
.field textarea.bad { border-color: var(--tomato); }
.form-note { color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-msg.ok { color: #0b8a7d; }
.form-msg.err { color: #c8234a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label {
  width: 36px; height: 36px; cursor: pointer; font-size: 0; display: block; background: var(--line);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { background: var(--amber); }
.stars-input input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ---------- review dialog ---------- */
.review-dialog {
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  border: 0; border-radius: 24px; padding: 26px; color: var(--text); background: var(--white);
  box-shadow: 0 40px 100px -30px rgba(13, 27, 36, 0.7);
}
.review-dialog::backdrop { background: rgba(13, 27, 36, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h3 { font-size: var(--step-2); }
.close { font: inherit; font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--text); cursor: pointer; }
.close:hover { background: var(--line); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: var(--step--1); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 26px; }
.footer p { margin: 0; }
.version { font-weight: 700; color: var(--amber); }

@media (max-width: 600px) {
  .work-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 18px; gap: 4px; }
  .wtab { padding: 10px 6px; font-size: 0.85rem; border-radius: 14px; line-height: 1.2; }
}

/* second window in the hero (replaces the phone) */
.mini {
  position: absolute; width: 56%; left: -10%; bottom: -4%; z-index: 2;
  border-radius: 12px; overflow: hidden; background: #ece5d5;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.mini-bar { display: flex; gap: 5px; padding: 8px 10px; }
.mini-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff6159; }
.mini-bar i:nth-child(2) { background: #ffbd2e; }
.mini-bar i:nth-child(3) { background: #28c941; }
.mini-view { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; background: var(--white); }
.laptop-screen .shot-img, .mini-view .shot-img { object-position: top center; }
@media (max-width: 979px) { .mini { left: 0; width: 58%; } }

/* ---------- coding touches ---------- */
.kicker { font-variant-ligatures: none; font-feature-settings: "calt" 0; font-family: var(--code); font-weight: 500; letter-spacing: 0; color: #b9d6cf; }
.kicker b { color: var(--amber); font-weight: 600; }
.code-card {
  position: absolute; top: -34px; right: -4%; z-index: 3; width: min(58%, 300px);
  border-radius: 12px; overflow: hidden; background: #0a161d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  font-family: var(--code); font-size: 0.74rem; line-height: 1.7; color: #c9d6d2;
  font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0;
}
.code-tab { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #0f1f27; color: #8aa39d; font-size: 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.code-tab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.code-card pre { margin: 0; padding: 10px 14px 12px; white-space: pre; overflow: hidden; font: inherit; }
.code-card .ln { color: #4b625d; user-select: none; display: inline-block; width: 1.6em; }
.code-card .t { color: #7fc8c0; }
.code-card .a { color: var(--amber); }
.code-card .v { color: #e39a82; }
.code-card .c { color: #5f7a74; }
.cursor { display: inline-block; width: 7px; height: 1.05em; vertical-align: -2px; background: var(--amber); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
@media (max-width: 979px) { .code-card { right: 0; top: -40px; } }
@media (max-width: 520px) { .code-card { font-size: 0.62rem; width: 62%; } }

.sec-head .tag { display: inline-block; font-family: var(--code); font-size: var(--step--1); color: var(--violet); margin-bottom: 10px; }
.sec-head.light .tag { color: var(--cyan); }
.contact .tag { display: inline-block; font-family: var(--code); font-size: var(--step--1); color: #ead08f; margin-bottom: 10px; }
.footer .made { font-family: var(--code); }

#about { scroll-margin-top: 90px; }


/* ---------- FAQ (1.11) ---------- */
.faq { background: var(--paper); padding-block: 96px; }
.faq-in { display: grid; gap: 8px 56px; align-items: start; }
@media (min-width: 980px) { .faq-in { grid-template-columns: 0.8fr 1.2fr; } .faq .sec-head { position: sticky; top: 100px; } }
.faq-cta { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow 0.2s, border-color 0.2s; }
.faq-item[open] { border-color: var(--amber); box-shadow: 0 18px 36px -24px rgba(13, 27, 36, 0.45); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--green); font-family: var(--code); font-size: 1.2rem; transition: transform 0.2s, background 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--gold-btn); color: var(--ink); }
.faq-item summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 18px; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--muted); line-height: 1.6; max-width: 62ch; }

/* ---------- email buttons (1.12) ---------- */
.mail-inline {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); color: var(--white); font-weight: 700; text-decoration: none;
}
.mail-inline:hover { background: rgba(255, 255, 255, 0.18); }
.mail-inline svg { color: #ead08f; flex: none; }
.mail-inline b { overflow-wrap: anywhere; }
.mail-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px; background: var(--gold-btn); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.2s, opacity 0.2s;
}
.mail-float:hover { transform: translateY(-2px); }
.mail-float.away { opacity: 0; pointer-events: none; transform: translateY(12px); }
.mail-inline:focus-visible, .mail-float:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (max-width: 600px) { .mail-float { padding: 13px; } .mail-float span { display: none; } }
@media (prefers-reduced-motion: reduce) { .faq-item, .faq-item summary::after, .mail-float { transition: none; } }


/* ================= multi-page layout (1.13) ================= */

/* page headings: a shorter version of the home hero */
.page-head {
  position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  background: linear-gradient(165deg, #0d1b24 0%, #0f2a2a 70%, #11332d 100%);
}
.page-head .glow { z-index: -1; opacity: 0.5; }
.page-head .binary { opacity: 0.5; }
.page-head-in { padding-block: 64px 60px; }
.page-head h1 { max-width: 18ch; }
@media (min-width: 980px) { .page-head-in { padding-block: 88px 80px; } }
.page-head .tag { display: inline-block; font-family: var(--code); font-size: var(--step--1); color: var(--cyan); margin-bottom: 14px; }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); font-weight: 800; margin-bottom: 18px; }
.page-head .lede { margin-bottom: 0; max-width: 44ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-head + .packages { padding-top: 64px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.page-head + .work, .page-head + .reviews, .page-head + .faq { padding-top: 72px; }

/* home: cards that lead to each page */
.paths { background: var(--paper); padding-block: 96px; }
.path-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .path-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .path-grid { grid-template-columns: repeat(4, 1fr); } }
.path-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 22px; text-decoration: none; color: var(--text);
  background: var(--white); border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.path-card:hover { transform: translateY(-4px); border-color: var(--amber); box-shadow: 0 24px 44px -28px rgba(13, 27, 36, 0.55); }
.path-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.path-card .tag { font-family: var(--code); font-size: var(--step--1); color: var(--violet); }
.path-card h3 { font-size: var(--step-1); margin: 0; }
.path-card p { margin: 0; color: var(--muted); flex: 1; }
.path-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); margin-top: 6px; }
.path-go svg { transition: transform 0.2s; }
.path-card:hover .path-go svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .path-card, .path-go svg { transition: none; } .path-card:hover { transform: none; } }

/* home: closing call to action */
.cta-band { position: relative; overflow: hidden; isolation: isolate; color: var(--white); padding-block: 72px; background: linear-gradient(140deg, #0f3a31 0%, #17503f 45%, #22626a 100%); }
.cta-band .glow { z-index: -1; }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-in h2 { font-size: var(--step-3); font-weight: 800; margin-bottom: 10px; max-width: 20ch; }
.cta-in p { margin: 0; color: rgba(255, 255, 255, 0.8); max-width: 48ch; }

/* FAQ page */
.faq-in { gap: 32px 56px; }
@media (min-width: 980px) { .faq-in { grid-template-columns: 1.5fr 0.7fr; } }
.faq-aside { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
@media (min-width: 980px) { .faq-aside { position: sticky; top: 100px; } }
.faq-aside h2 { font-size: var(--step-2); margin-bottom: 10px; }
.faq-aside p { color: var(--muted); margin: 0 0 20px; }

/* about page */
.about { background: var(--paper); padding-block: 80px 96px; }
.about-in { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .about-in { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.about-photo {
  position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; border-radius: 28px; overflow: hidden;
  display: grid; place-items: center; background: var(--gold-btn);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 9px var(--amber), 0 40px 70px -40px rgba(13, 27, 36, 0.7);
}
@media (min-width: 900px) { .about-photo { position: sticky; top: 110px; } }
.about-photo .avatar-initials { font-size: 5rem; }
.about-text p { font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }
.about-text h2 { font-size: var(--step-2); margin: 36px 0 16px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* contact page */
.contact { padding-block: 72px 96px; }
.contact-side h2 { font-size: var(--step-2); margin: 32px 0 16px; }
.contact-me { display: flex; align-items: center; gap: 18px; }
.contact-me p { margin: 0; color: rgba(255, 255, 255, 0.85); max-width: 34ch; }
.contact-me b { color: var(--white); display: block; }
.avatar.small { width: 76px; height: 76px; flex: none; margin: 0; box-shadow: 0 0 0 3px var(--amber); }
.avatar.small .avatar-initials { font-size: 1.6rem; }
.next-steps { list-style: none; counter-reset: n; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: center; }
.next-steps li::before {
  content: counter(n); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(234, 208, 143, 0.6); color: #ead08f; font-family: var(--code); font-weight: 700;
}
.next-steps b { font-family: var(--display); }
.next-steps span { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* footer links */
.footer-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-nav a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #ead08f; }
.mail-float:not([hidden]) ~ .footer .footer-in { padding-bottom: 92px; }

/* back to home link on every inner page (1.14) */
.back-home {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); color: var(--white);
  font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: background 0.2s;
}
.back-home:hover { background: rgba(255, 255, 255, 0.16); }
.back-home svg { transition: transform 0.2s; }
.back-home:hover svg { transform: translateX(-3px); }
.back-home:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.page-head .back-home + .tag { display: block; width: fit-content; }
@media (prefers-reduced-motion: reduce) { .back-home, .back-home svg { transition: none; } }

/* compact inner-page headings (1.15): the page's content starts higher up */
.page-head-in { padding-block: 22px 30px; }
@media (min-width: 980px) { .page-head-in { padding-block: 26px 36px; } }
.page-head-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.page-head-top .back-home { margin: 0; padding: 6px 14px 6px 10px; font-size: 0.88rem; }
.page-head-top .tag { margin: 0; }
.page-head h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem); margin-bottom: 8px; max-width: none; }
.page-head .lede { font-size: 1.05rem; max-width: 60ch; }
.page-actions { margin-top: 18px; }
.page-actions .btn { padding: 11px 22px; }
.page-head + .packages { padding-top: 44px; }
.page-head + .work, .page-head + .reviews, .page-head + .faq { padding-top: 48px; }
.page-head + .about { padding-top: 48px; }
.page-head + .contact { padding-top: 48px; }

/* numbers under the hero buttons: always three side by side (1.17) */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 540px; }
.proof li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 16px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.proof li:first-child { padding-left: 0; border-left: 0; }
.proof span { max-width: none; }
@media (max-width: 420px) { .proof li { padding: 0 10px; } .proof strong { font-size: 1.7rem; } .proof span { font-size: 0.8rem; } }

/* about page: skills (1.18) */
.about { padding-bottom: 72px; }
.about-in { align-items: center; }
@media (min-width: 900px) { .about-photo { position: relative; top: auto; } }
.skills { background: var(--white); padding-block: 88px 96px; }
.skill-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .skill-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1050px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }
.skill { background: var(--paper); border-radius: 22px; padding: 26px; border: 1px solid var(--line); }
.skill-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #ead08f; margin-bottom: 16px; }
.skill h3 { font-size: var(--step-1); margin-bottom: 8px; }
.skill p { margin: 0; color: var(--muted); line-height: 1.6; }

/* longer hero heading now that it names businesses too (1.19) */
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); max-width: 15ch; }

/* menu items never break onto two lines (1.21) */
.nav a { white-space: nowrap; }

/* ================= 1.22: motion ================= */
.type-caret { display: inline-block; width: 0.55em; height: 1.05em; margin-inline-start: 2px; vertical-align: -0.15em; background: var(--amber); animation: blink 1s steps(1) infinite; }
.type-caret.done { animation: none; opacity: 0; transition: opacity 0.8s ease; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes devices-in { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* hero arrives in turn */
.motion .hero .kicker { animation: fade-in 0.5s ease both; }
.motion .hero h1 { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
.motion .hero .lede { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s both; }
.motion .hero .hero-actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both; }
.motion .hero .proof li { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both; }
.motion .hero .proof li:nth-child(2) { animation-delay: 0.7s; }
.motion .hero .proof li:nth-child(3) { animation-delay: 0.8s; }
.motion .hero .proof strong { display: inline-block; animation: pop 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s both; }
.motion .hero .proof li:nth-child(2) strong { animation-delay: 0.85s; }
.motion .hero .proof li:nth-child(3) strong { animation-delay: 0.95s; }
.motion .hero .hero-devices { animation: devices-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }

/* inner page headings settle in */
.motion .page-head-top { animation: fade-in 0.6s ease both; }
.motion .page-head h1 { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both; }
.motion .page-head .lede { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s both; }
.motion .page-head .page-actions { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }

/* scrolling: each part rises when it comes into view */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .pkg-list.in > .pkg { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .pkg-list.in > .pkg:nth-child(2) { animation-delay: 0.1s; }
.motion .pkg-list.in > .pkg:nth-child(3) { animation-delay: 0.2s; }
.motion .steps.in > li { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .steps.in > li:nth-child(2) { animation-delay: 0.1s; }
.motion .steps.in > li:nth-child(3) { animation-delay: 0.2s; }
.motion .steps.in > li:nth-child(4) { animation-delay: 0.3s; }

/* small touches */
.skill .skill-ico { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.skill:hover .skill-ico { transform: translateY(-3px) rotate(-6deg); }

@media (prefers-reduced-motion: reduce) {
  .type-caret { animation: none; }
  .skill .skill-ico { transition: none; }
  .skill:hover .skill-ico { transform: none; }
}
@media print { .motion .reveal { opacity: 1 !important; transform: none !important; } }

/* 1.23: screenshots of the masjid admin page under the masjid demo */
.admin-shots { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); }
.admin-shots h4 { font-family: var(--display); font-size: var(--step-1); margin: 0 0 6px; }
.admin-shots > p { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.shots { display: grid; gap: 18px; }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots figure { margin: 0; }
.shots a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 36px -24px rgba(13, 27, 36, 0.55); transition: transform 0.25s, box-shadow 0.25s; }
.shots a:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -26px rgba(13, 27, 36, 0.65); }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { margin-top: 10px; font-weight: 600; font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .shots a { transition: none; } .shots a:hover { transform: none; } }
