/* ─────────────────────────────────────────────────────────────
   raufbabayev.com — components
   Direction A. Less, but better.
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--base);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color 150ms ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

/* Skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }

/* Focus rings */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Layout */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* WIP banner */
.wip-banner {
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 10px 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wip-banner::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--ink-muted);
}
.wip-banner em { font-style: normal; color: var(--ink-muted); }

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 56px 0;
}
.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(1px);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Footer */
.foot {
  border-top: 1px solid var(--rule-soft);
  margin: 80px 56px 0;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  font-family: var(--sans);
}
.foot-links { display: flex; gap: 20px; }
.foot a:hover { color: var(--ink); }

/* Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.eyebrow-tight {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 6px;
}

/* Display headings */
h1.display-home {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 28px 0;
  color: var(--ink);
  text-wrap: balance;
}
h1.display-project {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
  text-wrap: pretty;
}
h1.display-writing {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1.display-post {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  color: var(--ink);
  text-wrap: pretty;
}

.lede {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 480px;
  margin: 0;
}
.lede-large {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 540px;
  margin: 0 0 40px;
}

/* Home — hero */
.home-grid {
  flex: 1;
  padding: 120px 56px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  width: 100%;
}
.hero-meta {
  margin-top: 64px;
  display: flex;
  gap: 36px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.hero-meta dd { margin: 0; }

/* Section header */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
}
.section-head .index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.section-head .index:hover { color: var(--ink); }

.section-stack { display: flex; flex-direction: column; gap: 56px; }

/* Recent posts list (home) */
.recent-list { display: flex; flex-direction: column; }
.recent-list li {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 20px;
  padding: 14px 0;
  align-items: baseline;
}
.recent-list li + li { border-top: 1px solid var(--rule-soft); }
.recent-list .date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
}
.recent-list .title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.35;
}
.recent-list a:hover .title { color: var(--accent); }
.recent-list .tag-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* Projects list (home) */
.proj-list { display: flex; flex-direction: column; gap: 16px; }
.proj-list li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 14px;
  align-items: baseline;
}
.proj-list .name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.proj-list .slug {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.proj-list .desc {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.4;
}
.proj-list .year {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
}
.proj-list a:hover .name { color: var(--accent); }

/* Status dot */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transform: translateY(2px);
}
.dot.live { background: var(--accent); }
.dot.wip { background: transparent; border: 1px solid var(--ink-muted); }
.dot.archived { background: var(--ink-muted); }

/* Writing index */
.writing-main {
  flex: 1;
  padding: 96px 56px 64px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.writing-header { margin-bottom: 56px; }
.writing-header .eyebrow { margin-bottom: 16px; }

.tag-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  display: inline-block;
}
.tag.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.year-section { margin-bottom: 48px; }
.year-section h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
  font-weight: 400;
}

.post-row {
  display: grid;
  grid-template-columns: 84px 1fr 180px 60px;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.post-row .date { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }
.post-row .title { font-family: var(--serif); font-size: 18px; color: var(--ink); line-height: 1.3; }
.post-row .tags { display: flex; gap: 6px; }
.post-row .tags span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.post-row .reading {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  text-align: right;
}
.post-row a:hover .title { color: var(--accent); }

/* Project page (yusra) — single column, no sidebar */
.project-main {
  flex: 1;
  padding: 96px 56px 64px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

/* Trust chips: privacy claims promoted from caption to visible pills */
.trust-chips {
  list-style: none;
  margin: 18px 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.trust-chips li {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 4px 10px;
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  background: transparent;
}
.platform-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
}
.platform-note .sep { margin: 0 6px; opacity: 0.5; }

.yusra-footer {
  margin-top: 32px;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
}
.yusra-footer a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 2px;
}
.yusra-footer a:hover { border-bottom-color: var(--ink); }
.yusra-footer .sep { color: var(--ink-muted); }
.yusra-footer .status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.yusra-footer .status-line .dot { width: 7px; height: 7px; transform: none; }
@media (max-width: 639px) {
  .yusra-footer .status-line {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* Yusra sub-pages (privacy, support) — back link styling */
.yusra-sub .eyebrow a {
  color: var(--ink-muted);
  border-bottom: none;
}
.yusra-sub .eyebrow a:hover { color: var(--ink); }

.why-approach {
  display: block;
  margin: 80px auto 40px;
  max-width: 60ch;
}
.why-approach > div {
  max-width: 60ch;
}
.why-approach > div + div {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--rule-soft);
}
.why-approach h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 18px;
  position: relative;
  padding-left: 28px;
}
.why-approach h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 18px;
  height: 1px;
  background: var(--yusra-accent, var(--accent));
}
.why-approach p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.why-approach p:last-child { margin-bottom: 0; }
.why-approach .why-lede {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.cta .arrow { color: var(--accent); }
.cta:hover { color: var(--ink); }

/* Post page */
.post-main {
  flex: 1;
  padding: 96px 56px 64px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}
.post-main .eyebrow { margin-bottom: 8px; }
.post-main .post-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-top: 24px;
  display: flex;
  gap: 16px;
}
.post-body {
  margin-top: 56px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.post-body p { margin: 0 0 1.2em; }
.post-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 56px 0 16px;
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 40px 0 12px;
}
.post-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.post-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.post-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper);
  padding: 1px 4px;
}
.post-body pre {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--paper);
  padding: 24px;
  overflow-x: auto;
  line-height: 1.5;
}
.post-body pre code { background: transparent; padding: 0; font-size: inherit; }
.post-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  margin: 32px 0 32px 24px;
  padding: 0;
  border: 0;
}
.post-body blockquote p { margin: 0; }
.post-body .anchor {
  margin-left: 0.5em;
  color: var(--ink-muted);
  opacity: 0;
  transition: opacity 150ms ease;
  font-weight: 300;
}
.post-body h2:hover .anchor,
.post-body h3:hover .anchor { opacity: 1; }

/* 404 */
.notfound-main {
  flex: 1;
  padding: 160px 56px;
  text-align: center;
}
.notfound-main h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.notfound-main p {
  font-family: var(--serif);
  color: var(--ink-soft);
  margin: 0;
}

/* Responsive */
@media (max-width: 1023px) {
  .nav { padding: 24px 32px 0; }
  .wip-banner { padding: 10px 32px; }
  .foot { margin: 60px 32px 0; }
  .home-grid { padding: 64px 32px; grid-template-columns: 1fr; gap: 80px; }
  .writing-main { padding: 64px 32px; }
  .post-main { padding: 64px 32px; }
  h1.display-home { font-size: 56px; }
  h1.display-post { font-size: 44px; }
}
@media (max-width: 899px) {
  .project-main { padding: 64px 32px; }
  .yusra-page .yusra-hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }
  .yusra-page .yusra-hero-shot img { width: 260px; }
  .yusra-page .feature-list li.has-shot,
  .yusra-page .feature-list li.has-shot:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
    padding: 40px 0;
  }
  .yusra-page .feature-list .fs { width: 240px; }
}
@media (max-width: 639px) {
  .nav { padding: 20px; flex-wrap: wrap; gap: 16px; }
  .wip-banner { padding: 10px 20px; font-size: 10px; }
  .foot { margin: 40px 20px 0; flex-direction: column; gap: 12px; }
  .home-grid, .writing-main, .post-main { padding: 48px 20px; }
  .project-main { padding: 48px 20px; }
  h1.display-home { font-size: 44px; }
  h1.display-project { font-size: 40px; }
  h1.display-writing { font-size: 36px; }
  h1.display-post { font-size: 36px; }
  .lede { font-size: 18px; }
  .lede-large { font-size: 19px; }
  .recent-list li { grid-template-columns: 72px 1fr; }
  .recent-list .tag { display: none; }
  .post-row {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }
  .post-row .tags, .post-row .reading {
    grid-column: 2;
    text-align: left;
    margin-top: 4px;
  }
  .hero-meta { flex-wrap: wrap; }
  .yusra-page .yusra-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 0;
  }
  .yusra-page .yusra-hero-shot { order: 2; }
  .yusra-page .yusra-hero-shot img { width: 260px; }
  .yusra-page .hero-cta-row { justify-content: flex-start; }
  .trust-chips { gap: 6px; margin-top: 24px; }
  .trust-chips li { font-size: 10px; padding: 5px 10px; }
  .platform-note { font-size: 10px; }
  .yusra-page .feature-list { margin-top: 40px; }
  .yusra-page .feature-list li.has-shot,
  .yusra-page .feature-list li.has-shot:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .yusra-page .feature-list li.has-shot:nth-child(even) .feature-text { order: 1; }
  .yusra-page .feature-list li.has-shot:nth-child(even) .fs { order: 2; }
  .yusra-page .feature-list .feature-text { max-width: none; }
  .yusra-page .feature-list .fs { width: 240px; justify-self: center; }
  .why-approach > div + div { margin-top: 56px; padding-top: 56px; }
}

/* ─────────────────────────────────────────────────────────────
   /yusra — page-scoped overlay matching the Yusra app palette.
   Deep muted teal accent + butter highlight, drawn from
   iosApp/Yusra/Theme.swift. Scoped to .yusra-page so the rest
   of the blog keeps its house style.
   ───────────────────────────────────────────────────────────── */
.yusra-page {
  --yusra-accent: #2F6B5E;
  --yusra-accent-soft: #D9E5E0;
  --yusra-warm: #C97A4A;
  --yusra-highlight: #F5D88B;
}
.project-main.yusra-page { max-width: 920px; }

.yusra-page .dot.live { background: var(--yusra-accent); }
.yusra-page .dot.wip { border-color: var(--yusra-accent); }

.yusra-page .coming {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 13px;
}

/* Two-up hero: text-left, phone-right on desktop; stacks on mobile.
   align-items: start keeps the headline pinned near the top of the visual
   frame instead of being vertically centered against the much taller phone
   shot — the layout pattern Apple/Linear/Things use on their landing pages. */
.yusra-page .yusra-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
  align-items: start;
  margin: 8px 0 12px;
}
.yusra-page .yusra-hero-text .eyebrow { margin: 0 0 8px; }
.yusra-page .yusra-hero-text h1.display-project { margin: 0 0 12px; }
.yusra-page .yusra-hero-text .lede-large { margin: 0 0 20px; }
.yusra-page .hero-thesis {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 36ch;
}
.yusra-page .hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 0 0 4px;
}
.yusra-page .yusra-hero-shot {
  display: flex;
  justify-content: center;
}
.yusra-page .yusra-hero-shot img {
  display: block;
  width: 340px;
  max-width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow:
    0 2px 4px rgba(34, 28, 20, 0.05),
    0 18px 48px rgba(34, 28, 20, 0.12);
}

/* Reveal motion — single staged page-load, restrained. */
@keyframes yusra-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes yusra-rise-shot {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.yusra-page .yusra-hero-text > * {
  animation: yusra-rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.yusra-page .yusra-hero-text .eyebrow         { animation-delay: 40ms; }
.yusra-page .yusra-hero-text h1.display-project{ animation-delay: 100ms; }
.yusra-page .yusra-hero-text .lede-large       { animation-delay: 180ms; }
.yusra-page .yusra-hero-text .hero-thesis      { animation-delay: 240ms; }
.yusra-page .yusra-hero-text .hero-cta-row     { animation-delay: 320ms; }
.yusra-page .yusra-hero-text .trust-chips      { animation-delay: 400ms; }
.yusra-page .yusra-hero-text .platform-note    { animation-delay: 460ms; }
.yusra-page .yusra-hero-shot img {
  animation: yusra-rise-shot 760ms cubic-bezier(0.2, 0.7, 0.2, 1) 60ms both;
}
@media (prefers-reduced-motion: reduce) {
  .yusra-page .yusra-hero-text > *,
  .yusra-page .yusra-hero-shot img { animation: none; }
}

/* Feature list: each row is a 2-up vignette. Image alternates side on desktop. */
.yusra-page .feature-list {
  list-style: none;
  padding: 0;
  margin: 56px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.yusra-page .feature-list li.has-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--rule-soft);
}
.yusra-page .feature-list li.has-shot:last-child { padding-bottom: 32px; }
.yusra-page .feature-list li.has-shot:last-child .fs { width: 280px; }
.yusra-page .feature-list li.has-shot:last-child { border-bottom: 1px solid var(--rule-soft); }
.yusra-page .feature-list li.has-shot:nth-child(even) {
  grid-template-columns: 320px minmax(0, 1fr);
}
.yusra-page .feature-list li.has-shot:nth-child(even) .feature-text { order: 2; }
.yusra-page .feature-list li.has-shot:nth-child(even) .fs { order: 1; }

.yusra-page .feature-list .feature-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 36ch;
}
.yusra-page .feature-list .fh {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  position: relative;
  padding-left: 28px;
}
.yusra-page .feature-list .fh::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 18px;
  height: 1px;
  background: var(--yusra-accent, var(--accent));
}
.yusra-page .feature-list .fd {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.yusra-page .feature-list .fs {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  justify-self: center;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 14px 32px rgba(0,0,0,0.08);
}

.yusra-page .coda-block {
  margin: 48px 0 0;
  padding: 56px 24px 64px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(217,229,224,0) 0%, rgba(217,229,224,0.45) 100%);
  text-align: center;
}
.yusra-page .coda-cta {
  margin: 32px 0 0;
  text-align: center;
}

.yusra-page .feature-coda {
  margin: 0 auto;
  max-width: 28ch;
  font-family: var(--serif);
  font-style: normal;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.yusra-page .feature-coda em {
  font-style: italic;
  color: var(--yusra-accent);
}
.yusra-page .coda-sub {
  margin: 14px auto 0;
  max-width: 44ch;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.yusra-page .prose {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 16px;
}
.yusra-page .prose strong { color: var(--ink); font-weight: 500; }
.yusra-page .prose .code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper);
  padding: 1px 4px;
  color: var(--ink);
}
.yusra-page .prose-list {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 24px;
  padding-left: 0;
}
.yusra-page .prose-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.yusra-page .prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--yusra-accent);
}

.yusra-page .meta-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 24px 0 0;
}
.yusra-page .meta-line a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}
.yusra-page .meta-line a:hover { color: var(--yusra-accent); border-bottom-color: var(--yusra-accent); }

.yusra-page .contact-block { margin: 8px 0 24px; }
.yusra-page .contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  background: var(--yusra-accent);
  padding: 13px 22px;
  border-radius: 999px;
  letter-spacing: -0.005em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 1px 1px rgba(34, 28, 20, 0.06),
    0 6px 18px rgba(47, 107, 94, 0.22);
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 180ms ease,
              background 180ms ease;
}
.yusra-page .contact-cta .contact-cta-glyph {
  margin-top: -1px;
  flex-shrink: 0;
  opacity: 0.95;
}
.yusra-page .contact-cta .contact-cta-arrow {
  display: inline-block;
  transition: transform 180ms cubic-bezier(0.2, 0.7, 0.2, 1);
  margin-left: -2px;
  font-weight: 400;
}
.yusra-page .contact-cta:hover {
  background: #275a4f;
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 2px 2px rgba(34, 28, 20, 0.06),
    0 10px 28px rgba(47, 107, 94, 0.28);
}
.yusra-page .contact-cta:hover .contact-cta-arrow { transform: translateX(3px); }
.yusra-page .contact-cta:active { transform: translateY(0); }

/* Sticky mobile CTA — persistent conversion affordance, dismissible by scroll. */
.yusra-sticky-cta {
  display: none;
}
@media (max-width: 639px) {
  .yusra-sticky-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    margin: 0 auto;
    max-width: 420px;
    justify-content: center;
    padding: 14px 22px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--paper);
    background: var(--yusra-accent, #2F6B5E);
    border-radius: 999px;
    letter-spacing: -0.005em;
    z-index: 50;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.16) inset,
      0 2px 4px rgba(34, 28, 20, 0.10),
      0 18px 36px rgba(34, 28, 20, 0.18);
    backdrop-filter: saturate(140%);
  }
  .yusra-sticky-cta[data-visible="1"] {
    opacity: 1;
    transform: translateY(0);
  }
  .yusra-sticky-cta .sticky-arrow { margin-left: -2px; }
  .yusra-sticky-cta svg { flex-shrink: 0; opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .yusra-sticky-cta { transition: none; }
}

.yusra-page .faq-h {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 32px 0 8px;
}
.yusra-page .faq {
  margin: 0;
  font-family: var(--serif);
  max-width: 60ch;
}
.yusra-page .faq dt {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}
.yusra-page .faq dt:first-of-type { border-top: 0; padding-top: 0; }
.yusra-page .faq dd {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.yusra-page .faq a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.yusra-page .faq a:hover { color: var(--yusra-accent); border-bottom-color: var(--yusra-accent); }

/* Yusra responsive overrides — last in source so they win over the .yusra-page base rules above */
@media (max-width: 1023px) {
  .yusra-page .yusra-hero {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
  }
  .yusra-page .yusra-hero-shot img { width: 320px; }
}
@media (max-width: 899px) {
  .yusra-page .yusra-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }
  .yusra-page .yusra-hero-shot img { width: 280px; }
  .yusra-page .feature-list li.has-shot,
  .yusra-page .feature-list li.has-shot:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
    padding: 40px 0;
  }
  .yusra-page .feature-list .fs { width: 240px; }
  .yusra-page .feature-list .fh { font-size: 26px; }
  .yusra-page .why-approach h2 { font-size: 24px; }
}
@media (max-width: 639px) {
  /* Product-led mobile fold: name, tagline, CTA must appear before the phone
     shot. Flatten .yusra-hero-text with display:contents so its children
     participate in the .yusra-hero flex column alongside .yusra-hero-shot,
     then drive ordering explicitly. Pattern matches Things / Bear / Linear. */
  .yusra-page .yusra-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
  }
  .yusra-page .yusra-hero-text { display: contents; }
  .yusra-page .yusra-hero-text .eyebrow            { order: 1; margin-bottom: 0; }
  .yusra-page .yusra-hero-text h1.display-project  { order: 2; margin: 0; }
  .yusra-page .yusra-hero-text .lede-large         { order: 3; margin: 0; }
  .yusra-page .yusra-hero-text .hero-cta-row       { order: 4; margin: 4px 0 0; justify-content: flex-start; }
  .yusra-page .yusra-hero-shot                     { order: 5; justify-content: center; margin: 8px 0 4px; }
  .yusra-page .yusra-hero-text .hero-thesis        { order: 6; max-width: none; margin: 0; }
  .yusra-page .yusra-hero-text .trust-chips        { order: 7; justify-content: flex-start; margin: 8px 0 0; }
  .yusra-page .yusra-hero-text .platform-note      { order: 8; text-align: left; margin: 0; }
  .yusra-page .yusra-hero-shot img { width: min(62vw, 250px); }
  .yusra-page .feature-list { margin-top: 40px; }
  .yusra-page .feature-list li.has-shot,
  .yusra-page .feature-list li.has-shot:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .yusra-page .feature-list li.has-shot:nth-child(even) .feature-text { order: 1; }
  .yusra-page .feature-list li.has-shot:nth-child(even) .fs { order: 2; }
  .yusra-page .feature-list .feature-text { max-width: none; }
  .yusra-page .feature-list .fs { width: min(72vw, 280px); justify-self: center; }
  .yusra-page .feature-list .fh { font-size: 24px; padding-left: 24px; }
  .yusra-page .feature-list .fh::before { width: 14px; top: 0.7em; }
  .yusra-page .why-approach { margin: 64px auto 24px; }
  .yusra-page .why-approach h2 {
    font-size: 26px;
    padding-left: 24px;
  }
  .yusra-page .why-approach h2::before { width: 16px; }
  .yusra-page .why-approach p { font-size: 17px; line-height: 1.55; }
  .yusra-page .why-approach .why-lede { font-size: 18px; line-height: 1.5; }
  .yusra-page .feature-list .fd { font-size: 17px; line-height: 1.5; }
  .yusra-page .coda-block {
    padding: 40px 20px 44px;
    border-radius: 22px;
  }
  .yusra-page .feature-coda { font-size: 22px; max-width: 18ch; }
  .yusra-page .coda-sub { font-size: 10px; }
  /* Reserve room for the sticky CTA so neither the page footer nor the
     site .foot ever sits behind the floating button on mobile. The
     button is ~52px tall plus 14px bottom + safe-area; budget 88px so
     the coda CTA never reads as crowded by the floating one. */
  body:has(.yusra-sticky-cta) .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body:has(.yusra-sticky-cta) .yusra-page { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}

