/* ==========================================================================
   Story-led ads portfolio (homepage only, body.noor-pf)
   Dark, cinematic, one accent. Mobile first.
   ========================================================================== */

body.noor-pf {
  --pf-bg: #0b0b0c;
  --pf-bg-2: #111113;
  --pf-surface: #161618;
  --pf-surface-2: #1d1d20;
  --pf-line: rgba(243, 238, 230, 0.12);
  --pf-line-strong: rgba(243, 238, 230, 0.22);
  --pf-text: #f3eee6;
  --pf-muted: #b2aba1;
  --pf-faint: #8f887e;
  --pf-accent: #ff6a1a;
  --pf-accent-hover: #ff8340;
  --pf-accent-ink: #0b0b0c;
  --pf-accent-soft: rgba(255, 106, 26, 0.14);
  --pf-radius: 14px;
  --pf-radius-lg: 22px;
  --pf-wrap: 1240px;
  --pf-gutter: clamp(1rem, 4vw, 2.5rem);
  --pf-section: clamp(4.5rem, 10vw, 8.5rem);
  --pf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Re-point the base theme tokens so shared parts (header, footer) go dark too. */
  --noor-bg: var(--pf-bg);
  --noor-bg-alt: var(--pf-bg-2);
  --noor-surface: var(--pf-surface);
  --noor-border: var(--pf-line);
  --noor-text: var(--pf-text);
  --noor-text-muted: var(--pf-muted);
  --noor-text-faint: var(--pf-faint);
  --noor-accent: var(--pf-accent);
  --noor-accent-hover: var(--pf-accent-hover);
  --noor-accent-contrast: var(--pf-accent-ink);
  --noor-accent-gradient: var(--pf-accent);

  background: var(--pf-bg);
  color: var(--pf-text);
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.noor-pf ::selection { background: var(--pf-accent); color: var(--pf-accent-ink); }

.noor-pf a { color: var(--pf-text); text-underline-offset: 0.2em; }
.noor-pf a:hover { color: var(--pf-accent-hover); }

.noor-pf :focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.noor-pf h1, .noor-pf h2, .noor-pf h3 { color: var(--pf-text); }

html:has(body.noor-pf) { scroll-behavior: smooth; scroll-padding-top: 84px; background: #0b0b0c; }
@media (prefers-reduced-motion: reduce) { html:has(body.noor-pf) { scroll-behavior: auto; } }

/* ---------- Header + footer on the dark page ---------- */

.noor-pf .noor-header {
  background: rgba(11, 11, 12, 0.78);
  border-bottom-color: var(--pf-line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.noor-pf .noor-logo__mark { background: var(--pf-accent); color: var(--pf-accent-ink); }
.noor-pf .noor-logo__tagline { color: var(--pf-accent); }
.noor-pf .noor-nav a { color: var(--pf-muted); font-weight: 500; }
.noor-pf .noor-nav a:hover { color: var(--pf-text); }
.noor-pf .noor-nav-toggle { background: transparent; border-color: var(--pf-line-strong); color: var(--pf-text); }
.noor-pf .btn-noor-primary { background: var(--pf-accent); color: var(--pf-accent-ink); border-color: var(--pf-accent); }
.noor-pf .btn-noor-primary:hover { background: var(--pf-accent-hover); color: var(--pf-accent-ink); }
@media (max-width: 991.98px) {
  .noor-pf .noor-nav { background: var(--pf-bg-2); border-bottom-color: var(--pf-line); }
  .noor-pf .noor-nav a { display: block; padding: 0.85rem 0.25rem; font-size: 1.1rem; }
}

.noor-pf .noor-footer { background: var(--pf-bg); border-top-color: var(--pf-line); }
.noor-pf .noor-footer h3 { color: var(--pf-text); }
.noor-pf .noor-footer a { color: var(--pf-muted); }
.noor-pf .noor-footer a:hover { color: var(--pf-accent-hover); }
.noor-pf .noor-social-list a { background: transparent; border-color: var(--pf-line-strong); }
.noor-pf .noor-footer__bottom { border-top-color: var(--pf-line); color: var(--pf-faint); }

/* ---------- Layout primitives ---------- */

.pf-wrap {
  width: 100%;
  max-width: var(--pf-wrap);
  margin-inline: auto;
  padding-inline: var(--pf-gutter);
}

.pf-section { padding-block: var(--pf-section); position: relative; }
.pf-section--line { border-top: 1px solid var(--pf-line); }

.pf-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }

.pf-eyebrow {
  font-family: var(--noor-font-base);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin: 0 0 1.1rem;
}

.pf-display,
.pf-h2 {
  font-family: var(--noor-font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

.pf-display {
  font-size: clamp(2.7rem, 9.5vw, 6rem);
  line-height: 0.98;
}
.pf-display em,
.pf-h2 em { font-style: italic; color: var(--pf-accent); }

.pf-h2 {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  line-height: 1.04;
}

.pf-lead {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--pf-muted);
  max-width: 38rem;
  margin: 1.5rem 0 0;
  text-wrap: pretty;
}

.pf-sub { color: var(--pf-muted); margin: 1rem 0 0; font-size: 1.05rem; }

.pf-fineprint {
  color: var(--pf-faint);
  font-size: 0.92rem;
  margin: 2rem 0 0;
  max-width: 40rem;
}

/* ---------- Buttons ---------- */

.pf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 2.25rem; }

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--noor-font-base);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--pf-ease), color 0.2s var(--pf-ease), border-color 0.2s var(--pf-ease), transform 0.2s var(--pf-ease);
}
.pf-btn:active { transform: translateY(1px); }

.noor-pf .pf-btn--primary { background: var(--pf-accent); color: var(--pf-accent-ink); }
.noor-pf .pf-btn--primary:hover { background: var(--pf-accent-hover); color: var(--pf-accent-ink); }

.noor-pf .pf-btn--ghost { color: var(--pf-text); border-color: var(--pf-line-strong); background: transparent; }
.noor-pf .pf-btn--ghost:hover { border-color: var(--pf-text); color: var(--pf-text); }

.pf-btn--block { width: 100%; }

.pf-link-btn {
  background: none;
  border: 0;
  padding: 0.35rem 0;
  color: var(--pf-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.pf-link-btn:hover { color: var(--pf-accent-hover); }

/* ---------- 9:16 frames ---------- */

.pf-frame {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  border-radius: var(--pf-radius);
  background: var(--pf-surface);
  isolation: isolate;
}
.pf-frame img,
.pf-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-chip {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  max-width: calc(100% - 1.2rem);
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--pf-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  border: 1px solid var(--pf-line);
}
.pf-chip--todo {
  bottom: auto;
  top: 0.6rem;
  color: var(--pf-accent);
  border: 1px dashed var(--pf-accent);
}

/* Placeholder content the owner still needs to confirm */
.pf-todo {
  display: inline;
  padding: 0.05rem 0.35rem;
  border: 1px dashed var(--pf-accent);
  border-radius: 4px;
  color: var(--pf-accent);
  font-family: var(--noor-font-mono);
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

/* ---------- Hero ---------- */

.pf-hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.pf-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(90vw, 760px);
  aspect-ratio: 1;
  right: -18%;
  top: 8%;
  background: radial-gradient(closest-side, rgba(255, 106, 26, 0.18), rgba(255, 106, 26, 0) 70%);
  pointer-events: none;
}

.pf-hero__grid {
  display: grid;
  gap: clamp(2.75rem, 7vw, 4rem);
  align-items: center;
}

.pf-hero__note { color: var(--pf-faint); font-size: 0.95rem; margin: 1.5rem 0 0; }

.pf-hero__reel { margin: 0; width: min(100%, 340px); justify-self: center; }
.pf-frame--hero {
  border-radius: var(--pf-radius-lg);
  box-shadow: 0 0 0 1px var(--pf-line), 0 40px 90px -30px rgba(255, 106, 26, 0.35), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.pf-hero__toggle {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--pf-line-strong);
  background: rgba(11, 11, 12, 0.6);
  color: var(--pf-text);
  cursor: pointer;
}
.pf-hero__toggle svg { width: 16px; height: 16px; }
.pf-hero__toggle .pf-i-play { display: none; }
.pf-hero__toggle[aria-pressed="true"] .pf-i-play { display: block; }
.pf-hero__toggle[aria-pressed="true"] .pf-i-pause { display: none; }
.pf-frame--hero .pf-chip--todo { left: 0.6rem; right: auto; }

.pf-hero__caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--pf-muted);
}
.pf-hero__caption strong { color: var(--pf-text); font-weight: 600; }

@media (min-width: 900px) {
  .pf-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .pf-hero__reel { width: 100%; justify-self: end; }
  .pf-hero::before { right: -6%; top: 0; }
}

/* ---------- Work grid ---------- */

.pf-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 2.5rem) clamp(0.85rem, 2.5vw, 1.75rem);
}
@media (min-width: 992px) {
  .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pf-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.noor-pf .pf-card__link:hover { color: inherit; }
.pf-card__link:focus-visible { outline-offset: 6px; border-radius: var(--pf-radius); }

.pf-card .pf-frame {
  box-shadow: 0 0 0 1px var(--pf-line);
  transition: box-shadow 0.35s var(--pf-ease), transform 0.5s var(--pf-ease);
}
.pf-card .pf-frame img { transition: opacity 0.35s var(--pf-ease), transform 0.8s var(--pf-ease); z-index: 1; }
.pf-card__video { z-index: 0; }
.pf-card.is-playing .pf-frame img { opacity: 0; }

.pf-play {
  position: absolute;
  z-index: 2;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pf-accent);
  color: var(--pf-accent-ink);
  transition: transform 0.3s var(--pf-ease), opacity 0.3s var(--pf-ease);
}
.pf-play svg { width: 16px; height: 16px; margin-left: 2px; }
.pf-card .pf-chip { top: 0.6rem; bottom: auto; right: auto; }
.pf-card .pf-chip--todo { top: auto; bottom: 0.6rem; max-width: calc(100% - 4rem); }

@media (hover: hover) {
  .pf-card__link:hover .pf-frame { box-shadow: 0 0 0 1px var(--pf-accent), 0 30px 60px -30px rgba(255, 106, 26, 0.5); }
  .pf-card__link:hover .pf-frame img { transform: scale(1.03); }
  .pf-card__link:hover .pf-play { transform: scale(1.08); }
}

.pf-card__meta { display: block; padding-top: 1rem; }
.pf-card__kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-faint);
}
.pf-card__title {
  font-family: var(--noor-font-serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0.45rem;
}
.pf-card__premise {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--pf-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .pf-card .pf-chip { font-size: 0.64rem; left: 0.45rem; top: 0.45rem; max-width: calc(100% - 0.9rem); padding: 0.28rem 0.5rem; }
  .pf-card .pf-chip--todo { top: auto; bottom: 0.45rem; max-width: calc(100% - 3.4rem); }
  .pf-hero__note { display: none; }
  .pf-play { width: 32px; height: 32px; right: 0.45rem; bottom: 0.45rem; }
  .pf-card__premise { font-size: 0.9rem; }
}

/* ---------- Steps ---------- */

.pf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}
.pf-step {
  padding: 1.75rem 0;
  border-top: 1px solid var(--pf-line);
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  column-gap: 1rem;
}
.pf-step:last-child { border-bottom: 1px solid var(--pf-line); }
.pf-step__num {
  grid-row: span 2;
  font-family: var(--noor-font-serif);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--pf-accent);
}
.pf-step__title {
  font-family: var(--noor-font-base);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.2rem 0 0.5rem;
  letter-spacing: -0.005em;
}
.pf-step p { margin: 0; color: var(--pf-muted); line-height: 1.6; }

@media (min-width: 992px) {
  .pf-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .pf-step { grid-template-columns: 1fr; padding: 2rem 0 0; border-bottom: 0 !important; }
  .pf-step { align-content: start; }
  .pf-step__num { grid-row: auto; font-size: 3rem; height: 3rem; margin-bottom: 1.25rem; }
}

/* ---------- What you get ---------- */

.pf-gets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .pf-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pf-gets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pf-get {
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-lg);
  padding: 1.75rem 1.5rem 1.85rem;
}
.pf-get svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--pf-accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.5rem;
}
.pf-get h3 { font-family: var(--noor-font-base); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem; }
.pf-get p { margin: 0; color: var(--pf-muted); line-height: 1.55; }

/* ---------- Offer ---------- */

.pf-offer {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: calc(var(--pf-radius-lg) + 6px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 106, 26, 0.16), rgba(255, 106, 26, 0) 55%),
    var(--pf-surface);
  border: 1px solid rgba(255, 106, 26, 0.35);
  overflow: hidden;
}
.pf-offer .pf-lead { margin-bottom: 2rem; }
.pf-offer__facts { margin: 0; display: grid; gap: 0; align-content: start; }
.pf-offer__facts > div { padding: 1.1rem 0; border-top: 1px solid var(--pf-line); }
.pf-offer__facts > div:last-child { border-bottom: 1px solid var(--pf-line); }
.pf-offer__facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pf-faint);
  margin-bottom: 0.35rem;
}
.pf-offer__facts dd { margin: 0; font-size: 1.05rem; color: var(--pf-text); }

@media (min-width: 992px) {
  .pf-offer { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 4rem; }
}

/* ---------- FAQ ---------- */

.pf-faq { display: grid; gap: 1rem; }
@media (min-width: 992px) {
  .pf-faq { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
  .pf-faq .pf-head { position: sticky; top: 110px; }
}

.pf-faq__list details { border-top: 1px solid var(--pf-line); }
.pf-faq__list details:last-child { border-bottom: 1px solid var(--pf-line); }
.pf-faq__list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 2.5rem 1.35rem 0;
  position: relative;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
}
.pf-faq__list summary::-webkit-details-marker { display: none; }
.pf-faq__list summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.6px solid var(--pf-accent);
  border-bottom: 1.6px solid var(--pf-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--pf-ease);
}
.pf-faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.pf-faq__list summary:hover { color: var(--pf-accent-hover); }
.pf-faq__list details p { margin: 0 0 1.5rem; color: var(--pf-muted); line-height: 1.65; max-width: 40rem; }

/* ---------- About ---------- */

.pf-about { display: grid; gap: 2.5rem; align-items: center; }
.pf-about__photo { width: min(100%, 360px); }
.pf-about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--pf-radius-lg); display: block; }
.pf-photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: var(--pf-radius-lg);
  border: 1px dashed var(--pf-line-strong);
  background: var(--pf-surface);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}
.pf-photo-slot__mark { font-family: var(--noor-font-serif); font-size: 4rem; color: var(--pf-accent); }
.pf-about__points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; max-width: 38rem; }
.pf-about__points li { color: var(--pf-muted); line-height: 1.6; padding-left: 1.25rem; position: relative; }
.pf-about__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-accent);
}
.pf-about__points strong { color: var(--pf-text); font-weight: 600; }
.pf-about__points a { color: var(--pf-accent); font-weight: 600; white-space: nowrap; }

@media (min-width: 900px) {
  .pf-about { grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); }
}

/* ---------- Contact ---------- */

.pf-section--contact {
  border-top: 1px solid var(--pf-line);
  background: radial-gradient(80% 60% at 0% 0%, rgba(255, 106, 26, 0.08), rgba(255, 106, 26, 0) 70%), var(--pf-bg);
}
.pf-contact { display: grid; gap: 3rem; }
@media (min-width: 992px) {
  .pf-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 5rem; align-items: start; }
}

.pf-direct { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; }
.pf-direct li { display: grid; gap: 0.25rem; padding: 1rem 0; border-top: 1px solid var(--pf-line); }
.pf-direct li:last-child { border-bottom: 1px solid var(--pf-line); }
.pf-direct__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-faint); }
.pf-direct a { font-size: 1.15rem; font-weight: 600; text-decoration: none; word-break: break-word; }

.pf-form {
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.15rem;
}
.pf-form__title { font-family: var(--noor-font-serif); font-weight: 400; font-size: 1.7rem; margin: 0 0 0.25rem; letter-spacing: -0.015em; }
.pf-field { display: grid; gap: 0.45rem; }
.pf-field label { font-weight: 600; font-size: 0.95rem; color: var(--pf-text); }
.pf-opt { color: var(--pf-faint); font-weight: 400; }
.pf-field input,
.pf-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS zooming on focus */
  color: var(--pf-text);
  background: var(--pf-bg-2);
  border: 1px solid var(--pf-line-strong);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  min-height: 52px;
  transition: border-color 0.2s var(--pf-ease), box-shadow 0.2s var(--pf-ease);
}
.pf-field textarea { resize: vertical; min-height: 120px; }
.pf-field input::placeholder,
.pf-field textarea::placeholder { color: var(--pf-faint); opacity: 1; }
.pf-field input:focus,
.pf-field textarea:focus { outline: none; border-color: var(--pf-accent); box-shadow: 0 0 0 3px var(--pf-accent-soft); }
.pf-field.is-invalid input { border-color: #ff6b6b; }
.pf-field__error { color: #ff8a8a; font-size: 0.88rem; }
.pf-form__status { margin: 0; min-height: 1.5em; font-weight: 600; color: var(--pf-text); }
.pf-form__status.is-error { color: #ff8a8a; }
.pf-form__status.is-ok { color: #7ee0a6; }
.pf-form__fine { margin: 0; font-size: 0.85rem; color: var(--pf-faint); }
.pf-form__fine a { color: var(--pf-muted); }
.pf-form.is-sending button[type="submit"] { opacity: 0.7; pointer-events: none; }
.pf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mobile sticky CTA ---------- */

.pf-sticky {
  position: fixed;
  z-index: 1020;
  left: 1rem;
  right: 1rem;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pf-accent);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8);
  transform: translateY(160%);
  transition: transform 0.35s var(--pf-ease);
}
.noor-pf a.pf-sticky,
.noor-pf a.pf-sticky:hover { color: var(--pf-accent-ink); }
.pf-sticky.is-visible { transform: translateY(0); }
@media (min-width: 992px) { .pf-sticky { display: none; } }

/* ---------- Case study modal ---------- */

.pf-modal {
  padding: 0;
  margin: auto;
  border: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--pf-bg);
  color: var(--pf-text);
  overscroll-behavior: contain;
}
.pf-modal::backdrop { background: rgba(5, 5, 6, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pf-modal[open] { animation: pf-modal-in 0.35s var(--pf-ease); }
@keyframes pf-modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pf-modal__inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
}
.pf-modal__close {
  position: fixed;
  z-index: 5;
  top: 0.75rem;
  right: 0.75rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--pf-line-strong);
  background: rgba(11, 11, 12, 0.75);
  color: var(--pf-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pf-modal__close svg { width: 22px; height: 22px; }
.pf-modal__close:hover { border-color: var(--pf-accent); color: var(--pf-accent); }

.pf-modal__media { background: #000; display: flex; justify-content: center; padding: 0; }
.pf-frame--modal {
  width: auto;
  height: min(78vh, 78svh);
  max-width: 100%;
  border-radius: 0;
  background: #000;
}
.pf-frame--modal video { object-fit: contain; }
.pf-frame--modal .pf-chip { bottom: auto; top: 0.75rem; left: 0.75rem; }

.pf-modal__body { padding: 2rem var(--pf-gutter) 3rem; max-width: 40rem; }
.pf-modal__title { font-size: clamp(2rem, 6vw, 3rem); }
.pf-modal__premise { font-size: 1.2rem; line-height: 1.55; color: var(--pf-text); margin: 1rem 0 2rem; }
.pf-modal__h3 {
  font-family: var(--noor-font-base);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin: 1.75rem 0 0.6rem;
}
.pf-modal__body p { color: var(--pf-muted); line-height: 1.65; margin: 0; }
.pf-modal__body .pf-modal__premise { color: var(--pf-text); }
.pf-modal__why { margin: 0; padding-left: 1.1rem; color: var(--pf-muted); display: grid; gap: 0.5rem; line-height: 1.55; }
.pf-modal__why li::marker { color: var(--pf-accent); }
.pf-modal__body .pf-modal__endcard { margin-top: 1.5rem; font-size: 0.92rem; color: var(--pf-faint); }
.pf-modal__text { margin: 1.5rem 0 2rem; border-top: 1px solid var(--pf-line); border-bottom: 1px solid var(--pf-line); }
.pf-modal__text summary { cursor: pointer; padding: 0.9rem 0; font-weight: 600; color: var(--pf-text); }
.pf-modal__text p { padding-bottom: 1rem; }
.pf-modal__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }

@media (min-width: 900px) {
  .pf-modal {
    width: min(1100px, calc(100% - 4rem));
    height: min(860px, calc(100% - 4rem));
    border-radius: var(--pf-radius-lg);
    box-shadow: 0 0 0 1px var(--pf-line), 0 40px 120px rgba(0, 0, 0, 0.7);
  }
  .pf-modal__inner { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 100%; align-content: stretch; overflow: hidden; }
  .pf-modal__media { height: 100%; align-items: center; }
  .pf-frame--modal { height: 100%; max-height: 100%; }
  .pf-modal__body { overflow-y: auto; height: 100%; padding: 3.5rem 3rem 3rem; max-width: none; }
  .pf-modal__close { position: absolute; top: 1rem; right: 1rem; }
}

body.pf-modal-open { overflow: hidden; }

/* ---------- Reveal motion (subtle) ---------- */

.pf-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--pf-ease), transform 0.8s var(--pf-ease);
}
.pf-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .pf-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pf-modal[open] { animation: none; }
  .pf-card .pf-frame img, .pf-sticky { transition: none; }
}

/* ---------- Brief form: polish (shared by homepage + Contact page) ---------- */

.pf-form { gap: 1.25rem; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.pf-form__head { display: grid; gap: 0.35rem; margin-bottom: 0.25rem; }
.pf-form__head .pf-form__title { margin: 0; }
.pf-form__sub { margin: 0; color: var(--pf-faint); font-size: 0.92rem; }
.pf-form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .pf-form__row { grid-template-columns: 1fr 1fr; align-items: start; } }
.pf-field { align-content: start; }

.pf-req { color: var(--pf-accent); font-weight: 700; }
.pf-opt { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; color: var(--pf-faint); margin-left: 0.25rem; }
.pf-hint { font-size: 0.82rem; color: var(--pf-faint); }

.pf-field input:hover,
.pf-field textarea:hover { border-color: rgba(243, 238, 230, 0.32); }
.pf-field.is-invalid input,
.pf-field.is-invalid textarea { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14); }

/* Placement chips (checkboxes styled as pills) */
.pf-chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.pf-chips legend { font-weight: 600; font-size: 0.95rem; color: var(--pf-text); padding: 0; margin-bottom: 0.6rem; float: none; width: auto; }
.pf-chips__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf-chip-input { position: relative; cursor: pointer; margin: 0; }
.pf-chip-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pf-chip-input span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--pf-line-strong);
  background: var(--pf-bg-2);
  color: var(--pf-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s var(--pf-ease), background-color 0.2s var(--pf-ease), color 0.2s var(--pf-ease);
}
.pf-chip-input:hover span { border-color: rgba(243, 238, 230, 0.4); color: var(--pf-text); }
.pf-chip-input input:checked + span { border-color: var(--pf-accent); background: var(--pf-accent-soft); color: var(--pf-text); }
.pf-chip-input input:checked + span::before {
  content: "";
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--pf-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}
.pf-chip-input input:focus-visible + span { outline: 2px solid var(--pf-accent); outline-offset: 2px; }

/* Submit with loading spinner */
.pf-submit { position: relative; margin-top: 0.25rem; }
.pf-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(11, 11, 12, 0.25);
  border-top-color: var(--pf-accent-ink);
  animation: pf-spin 0.7s linear infinite;
}
.pf-form.is-sending .pf-spinner { display: inline-block; }
.pf-form.is-sending .pf-submit { opacity: 0.85; pointer-events: none; }
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* Success panel */
.pf-done {
  background: var(--pf-surface);
  border: 1px solid rgba(255, 106, 26, 0.4);
  border-radius: var(--pf-radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  animation: pf-modal-in 0.4s var(--pf-ease);
}
.pf-done:focus { outline: none; }
.pf-done__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pf-accent);
  color: var(--pf-accent-ink);
  margin-bottom: 0.5rem;
}
.pf-done__icon svg { width: 26px; height: 26px; }
.pf-done p { margin: 0; color: var(--pf-muted); line-height: 1.6; }
.pf-done a { color: var(--pf-accent); font-weight: 600; }

/* "What happens next" steps (Contact page) */
.pf-next { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 1rem; max-width: 34rem; }
.pf-next li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.9rem; align-items: start; color: var(--pf-muted); line-height: 1.55; }
.pf-next strong { color: var(--pf-text); font-weight: 600; }
.pf-next__n {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 106, 26, 0.5);
  color: var(--pf-accent);
  display: grid;
  place-items: center;
  font-family: var(--noor-font-serif);
  font-style: italic;
  font-size: 1rem;
}

/* Contact page: the section is the whole page */
.pf-contact-page { border-top: 0; padding-top: clamp(2.5rem, 7vw, 5.5rem); min-height: 70vh; }
.pf-contact-page h1.pf-h2 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); }

@media (prefers-reduced-motion: reduce) {
  .pf-done { animation: none; }
  .pf-spinner { animation-duration: 2s; }
}

/* ---------- Inner pages (Services, About) ---------- */

.pf-page-hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem); }
.pf-display--page { font-size: clamp(2.5rem, 7vw, 4.75rem); max-width: 19ch; }
.pf-page-hero .pf-about { align-items: end; }
.pf-page-hero .pf-about__photo { width: min(100%, 320px); }

.pf-services { display: grid; gap: 1rem; }
@media (min-width: 992px) { .pf-services { grid-template-columns: 1.25fr 1fr 1fr; align-items: stretch; } }
.pf-service {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--pf-surface);
  border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.25rem);
}
.pf-service--main {
  border-color: rgba(255, 106, 26, 0.45);
  background: radial-gradient(120% 120% at 100% 0%, rgba(255, 106, 26, 0.12), rgba(255, 106, 26, 0) 55%), var(--pf-surface);
}
.pf-service p { margin: 0; color: var(--pf-muted); line-height: 1.6; }
.pf-service__tag { font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pf-accent) !important; }
.pf-service__title { font-family: var(--noor-font-serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
.pf-service .pf-btn { margin-top: auto; }
.pf-service .pf-service__price { color: var(--pf-text); font-weight: 600; padding-top: 0.9rem; border-top: 1px solid var(--pf-line); margin-top: auto; }
.pf-service__price + .pf-btn { margin-top: 0.25rem; }

.pf-ticks { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.pf-ticks li { position: relative; padding-left: 1.6rem; color: var(--pf-muted); line-height: 1.5; }
.pf-ticks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.3em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--pf-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pf-offer--cta { grid-template-columns: 1fr !important; text-align: left; }
.pf-offer--cta .pf-h2 { max-width: 18ch; }

.pf-prose-grid { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .pf-prose-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 4rem; align-items: start; } }
.pf-prose { max-width: 40rem; }
.pf-prose p { color: var(--pf-muted); font-size: 1.1rem; line-height: 1.75; margin: 0 0 1.25rem; }
.pf-prose a { color: var(--pf-accent); font-weight: 600; white-space: nowrap; }

.pf-skills { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pf-skills li { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--pf-line-strong); color: var(--pf-muted); font-size: 0.9rem; }
