/* Layout: one 1400px column of "sections" that can be inspected like page-builder containers; indigo ink on dyed paper, saffron for the one highlight */
:root {
  --paper: #EEF0F7;
  --surface: #FFFFFF;
  --ink: #161A3A;
  --muted: #565C80;
  --line: #CDD2E6;
  --indigo: #2E3BA0;
  --indigo-soft: #DCE0F6;
  --saffron: #C98A06;
  --saffron-soft: #FBEFD2;
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1126; --surface: #181B38; --ink: #E9EBF7; --muted: #A3A8CB;
    --line: #2C3160; --indigo: #8F9BFF; --indigo-soft: #232A63;
    --saffron: #F2B935; --saffron-soft: #3A2E10; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1126; --surface: #181B38; --ink: #E9EBF7; --muted: #A3A8CB;
  --line: #2C3160; --indigo: #8F9BFF; --indigo-soft: #232A63;
  --saffron: #F2B935; --saffron-soft: #3A2E10; color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
/* WordPress admin bar sits above the sticky nav when logged in */
.admin-bar nav { top: 32px; }
@media (max-width: 782px) { .admin-bar nav { top: 46px; } }
/* Below 600px WordPress lets the admin bar scroll away, so the menu sticks to the very top */
@media (max-width: 600px) { .admin-bar nav { top: 0; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--font-body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
a { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1400px; margin: 0 auto; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h2 { font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--font-display); letter-spacing: -0.01em; }
.eyebrow { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.btn {
  font: 600 0.9rem/1 var(--font-body); padding: 0.75rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); }

/* Nav */
nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
nav .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 0.75rem; flex-wrap: wrap; }
.logo { font: 700 0.95rem/1 var(--font-display); text-decoration: none; color: var(--ink); margin-right: auto; }
.logo span { color: var(--saffron); }
.navlinks { display: flex; gap: 1.1rem; font-size: 0.9rem; }
.navlinks a { color: var(--muted); text-decoration: none; }
.navlinks a:hover { color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.75rem var(--font-mono); color: var(--muted); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: left .2s; }
.switch input:checked { background: var(--indigo); }
.switch input:checked::after { left: 17px; }

/* Inspect mode: outlines every builder block, like an Elementor canvas */
[data-block] { position: relative; }
body.inspect [data-block] { outline: 1px dashed var(--indigo); outline-offset: 6px; }
body.inspect [data-block]::before {
  content: attr(data-block); position: absolute; top: -18px; left: -6px; z-index: 2;
  font: 500 10px/1 var(--font-mono); padding: 3px 6px; border-radius: 3px 3px 0 0;
  background: var(--indigo); color: var(--surface); letter-spacing: 0.04em;
}

section { padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero > * { min-width: 0; }
.hero h1 { font: 700 clamp(2.2rem, 6.5vw, 4.4rem)/1.02 var(--font-display); letter-spacing: -0.03em; margin: 1rem 0 1.25rem; }
.hero h1 em { font-style: normal; color: var(--indigo); }
.hero p.lede { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin: 0 0 1.75rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font: 500 0.78rem var(--font-mono); color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #2DA160; box-shadow: 0 0 0 4px color-mix(in srgb, #2DA160 25%, transparent); }

/* Device preview */
.preview { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.seg button { font: 500 0.75rem var(--font-mono); border: 0; background: transparent; color: var(--muted); padding: 0.4rem 0.75rem; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.px { font: 400 0.72rem var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.stage { height: 290px; display: flex; justify-content: center; align-items: flex-start; background: repeating-linear-gradient(45deg, transparent 0 8px, color-mix(in srgb, var(--line) 35%, transparent) 8px 9px); border-radius: 8px; padding: 12px; overflow: hidden; }
.mini { width: 100%; max-width: 100%; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; container-type: inline-size; transition: width .45s cubic-bezier(.6,.0,.2,1); }
.mini-top { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mini-top b { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mini-top span { margin-left: 6px; font: 400 9px var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body { padding: 12px; display: grid; gap: 10px; }
.mini-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; align-items: center; }
.mini-hero .t1 { height: 12px; width: 90%; background: var(--ink); border-radius: 3px; margin-bottom: 6px; }
.mini-hero .t2 { height: 12px; width: 60%; background: var(--indigo); border-radius: 3px; margin-bottom: 10px; }
.mini-hero .t3 { height: 6px; width: 85%; background: var(--line); border-radius: 3px; margin-bottom: 4px; }
.mini-hero .cta { height: 14px; width: 50px; background: var(--saffron); border-radius: 99px; margin-top: 8px; }
.mini-hero .img { aspect-ratio: 4/3; background: var(--indigo-soft); border-radius: 5px; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-cards div { height: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
@container (max-width: 420px) { .mini-cards { grid-template-columns: 1fr 1fr; } }
@container (max-width: 260px) { .mini-hero { grid-template-columns: 1fr; } .mini-hero .img { order: -1; } .mini-cards { grid-template-columns: 1fr; } }
.preview-note { font-size: 0.8rem; color: var(--muted); margin: 0.75rem 0 0; }

/* Impact */
.impact { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.impact > * { min-width: 0; }
.big { font: 700 clamp(4rem, 13vw, 8rem)/0.9 var(--font-display); color: var(--saffron); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.bar { display: grid; grid-template-columns: 7.5rem 1fr 3.5rem; gap: 0.75rem; align-items: center; font: 400 0.8rem var(--font-mono); color: var(--muted); }
.bar .track { height: 14px; background: var(--indigo-soft); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; background: var(--muted); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.bar.after .fill { background: var(--saffron); }
.bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.impact p { color: var(--muted); max-width: 36rem; margin: 0; }

/* Selected work */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s, opacity .25s;
}
.project:hover { transform: translateY(-3px); border-color: var(--indigo); box-shadow: 0 14px 30px -20px var(--indigo); }
.project.dim { opacity: 0.25; }
/* Homepage project count per screen size (Elementor's breakpoints) */
@media (min-width: 1025px) { .project.hide-desktop { display: none; } }
@media (min-width: 768px) and (max-width: 1024px) { .project.hide-tablet { display: none; } }
@media (max-width: 767px) { .project.hide-mobile { display: none; } }
.project-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.project-bar b { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.project-bar span { margin-left: 6px; font: 400 0.7rem var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shot { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--indigo-soft); display: grid; place-items: center; }
.shot { position: relative; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 1; font: 500 0.68rem/1 var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.4rem 0.6rem; border-radius: 4px; background: var(--saffron); color: #161A3A; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project:hover .shot img { transform: scale(1.04); }
.shot.blank { background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--line) 45%, transparent) 10px 11px), var(--paper); }
.shot.blank span { font: 700 clamp(1.6rem, 4vw, 2.2rem)/1 var(--font-display); color: var(--indigo); opacity: 0.55; letter-spacing: -0.02em; }
.project-body { padding: 1.1rem 1.2rem 1.25rem; display: grid; gap: 0.55rem; flex: 1; grid-template-rows: auto 1fr auto; }
.project-top { display: flex; align-items: center; gap: 0.75rem; }
.mono { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; font: 700 0.8rem var(--font-display); background: var(--indigo-soft); color: var(--indigo); }
.project h3 { font: 600 1.02rem/1.3 var(--font-body); }
.project .loc { font: 400 0.72rem var(--font-mono); color: var(--muted); }
.project p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.project-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding-top: 0.5rem; border-top: 1px dashed var(--line); }
.tag { font: 500 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.55rem; border-radius: 4px; background: var(--saffron-soft); color: var(--ink); }
.visit { font: 500 0.78rem var(--font-mono); color: var(--indigo); }

.more-work { display: flex; justify-content: center; margin-top: 2rem; }
.page-head { padding-block: clamp(3rem, 7vw, 5rem) 1.5rem; border-bottom: 0; }
.page-head h1 { font: 700 clamp(2rem, 5.5vw, 3.6rem)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0.9rem 0 1rem; max-width: 20ch; }
.page-head p { color: var(--muted); font-size: 1.08rem; max-width: 40rem; margin: 0; }
.navlinks a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Experience */
.exp { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.exp > * { min-width: 0; }
.roles { display: flex; flex-direction: column; gap: 0.5rem; }
.role-btn {
  text-align: left; padding: 1rem 1.1rem; border-radius: var(--radius); cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink); font: inherit;
  display: grid; gap: 0.2rem;
}
.role-btn small { font: 400 0.72rem var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.role-btn strong { font-weight: 600; }
.role-btn[aria-selected="true"] { background: var(--surface); border-color: var(--indigo); box-shadow: 0 6px 24px -14px var(--indigo); }
.role-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); }
.role-panel h3 { font: 700 1.25rem/1.25 var(--font-display); margin-bottom: 0.35rem; }
.role-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font: 400 0.8rem var(--font-mono); color: var(--muted); margin-bottom: 1.25rem; }
.role-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.role-panel li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.5rem; }
.role-panel li::before { content: "→"; color: var(--indigo); font-family: var(--font-mono); }
.role-panel li mark { background: var(--saffron-soft); color: inherit; padding: 0 3px; border-radius: 3px; }
@media (max-width: 760px) { .exp { grid-template-columns: 1fr; } .roles { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .role-btn { flex: 0 0 auto; } }

/* Skills */
.chips-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chips-filter button { font: 500 0.78rem var(--font-mono); padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chips-filter button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; gap: 0.25rem; transition: opacity .25s, transform .25s; }
.skill b { font-weight: 600; }
.skill small { font: 400 0.7rem var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.skill.dim { opacity: 0.28; transform: scale(0.98); }

/* Education + certs */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.two > * { min-width: 0; }
@media (max-width: 760px) { .two, .hero, .impact { grid-template-columns: 1fr; } }
.list { display: grid; gap: 0; }
.item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.item:last-child { border-bottom: 1px solid var(--line); }
.item time { font: 400 0.8rem/1.7 var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.item b { display: block; font-weight: 600; }
.item span { color: var(--muted); font-size: 0.92rem; }
h3.sub { font: 700 1rem var(--font-display); margin-bottom: 1rem; }

/* Contact */
.contact { display: grid; gap: 1.5rem; }
.contact h2 { font-size: clamp(1.8rem, 5vw, 3rem); max-width: 18ch; }
.contact-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.email { font: 500 clamp(0.95rem, 2.4vw, 1.2rem) var(--font-mono); background: var(--surface); border: 1px solid var(--line); padding: 0.7rem 1rem; border-radius: 999px; user-select: all; overflow-wrap: anywhere; }
.toast { font: 500 0.8rem var(--font-mono); color: var(--indigo); }
footer { padding-block: 2rem 3rem; font: 400 0.75rem var(--font-mono); color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* Menu: a row on wide screens, a drop-down panel behind the hamburger on phones */
.nav-menu { display: flex; align-items: center; gap: 1.25rem; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .bars { display: grid; gap: 5px; }
.nav-toggle .bars span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
nav.is-open .nav-toggle .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.is-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
nav.is-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; }
  .nav-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 0.75rem; }
  nav.is-open .nav-menu { display: flex; }
  .navlinks { flex-direction: column; gap: 0; font-size: 1.05rem; }
  .navlinks a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-menu .switch { padding-top: 1rem; }
}

/* Skills marquee: two identical groups slide left by one group's width, then loop */
section.mp-marquee { padding-block: 1.75rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: munirpf-marquee var(--marquee-speed, 40s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 0.75rem; padding: 0 0.75rem 0 0; margin: 0; list-style: none; }
.marquee-item { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.15rem 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; font-weight: 500; }
.marquee-item svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--indigo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes munirpf-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-group { flex-wrap: wrap; padding-right: 0; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* Contact page */
.contact-link { margin-left: 0.25rem; }
.contact-page { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-page > * { min-width: 0; }
.contact-info { display: grid; gap: 1.5rem; }
.contact-info h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.contact-info > p { color: var(--muted); margin: 0; }
.contact-details { display: grid; gap: 0; margin: 0; }
.contact-details div { display: grid; gap: 0.2rem; padding-block: 0.9rem; border-top: 1px solid var(--line); }
.contact-details div:last-child { border-bottom: 1px solid var(--line); }
.contact-details dt { font: 500 0.72rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-details a { color: var(--ink); }
.form { display: grid; gap: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.6); padding: clamp(1.25rem, 3vw, 2rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font: 500 0.72rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field label i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 0.9rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--indigo); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--indigo); background: var(--indigo-soft); margin: 0; }
.notice.error { border-color: var(--saffron); background: var(--saffron-soft); }
@media (max-width: 760px) { .contact-page, .form-row { grid-template-columns: 1fr; } }

/* ---- WordPress / Elementor ---- */
[hidden] { display: none !important; }
.role-panels { min-width: 0; }
/* Bars grow on load from 60% of their length; PHP sets --to on each bar */
.bar .fill { transition: none; width: var(--to, 100%); animation: munirpf-grow 1.4s cubic-bezier(.2,.7,.2,1) .3s backwards; }
@keyframes munirpf-grow { from { width: calc(var(--to, 100%) * .6); } }
/* Inside Elementor every section sits in its own wrapper, so "last of type" no longer means last on the page */
.elementor section.mp-section:last-of-type { border-bottom: 1px solid var(--line); }
.elementor section.mp-section.mp-contact,
.elementor section.mp-section.page-head,
section.mp-contact { border-bottom: 0; }
/* Let the Inspect layout labels show above Elementor widget wrappers */
.elementor-widget-container { overflow: visible; }
/* Elementor containers otherwise size a widget's height from its narrowest layout,
   e.g. the skills grid as one column, leaving empty space below it on phones */
.e-con > .elementor-widget[class*="elementor-widget-munirpf-"] { width: 100%; }
