/* ==========================================================================
   Prakash Home Tuition — design system (theme.css)
   Palette is taken from the logo stamp (assets/images/prakash-logo.png):
   crimson ink #C42B31 on white paper. Everything is prefixed `ph-` so it can
   live next to Bootstrap 5 on pages that still load it.
   Mobile-first: base rules are for phones, min-width queries add layout.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* brand (sampled from logo: rgb(196,43,49)) */
    --ph-red: #C42B31;          /* white text on it: 5.6:1 */
    --ph-red-700: #A11F25;      /* hover / red text on tint: 6.4:1 on #FBE8E5 */
    --ph-red-900: #6E1418;
    --ph-on-red: #FFFFFF;
    --ph-on-red-soft: #FFE3DE;  /* secondary text on red: 4.9:1 */

    /* neutrals (warm) */
    --ph-ink: #1F1714;          /* headings / dark bands */
    --ph-ink-2: #4A3F3A;        /* body text: 9.6:1 on cream */
    --ph-muted: #6B5E57;        /* captions: 5.9:1 on cream */
    --ph-cream: #FBF6EF;        /* page background */
    --ph-paper: #FFFFFF;
    --ph-tint: #FBE8E5;         /* soft red tint */
    --ph-tint-2: #F3D2CC;
    --ph-line: #E8DDD2;
    --ph-on-ink: #FBF6EF;
    --ph-on-ink-soft: #CDBFB6;  /* 9.4:1 on ink */

    /* the one tiny accent: marigold, used only for stars / dots */
    --ph-accent: #E9A23B;

    --ph-whatsapp: #157A3E;     /* WhatsApp green, darkened so white text passes: 5.4:1 */

    /* type */
    --ph-font-display: "Fraunces", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
    --ph-font-body: "Mukta", "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    --ph-fs-xs: 0.8125rem;
    --ph-fs-sm: 0.9375rem;
    --ph-fs-base: 1.0625rem;
    --ph-fs-lg: 1.1875rem;
    --ph-fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --ph-fs-h3: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
    --ph-fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
    --ph-fs-h1: clamp(2.6rem, 1.4rem + 5vw, 5rem);

    /* space */
    --ph-s-1: 0.25rem;
    --ph-s-2: 0.5rem;
    --ph-s-3: 0.75rem;
    --ph-s-4: 1rem;
    --ph-s-5: 1.5rem;
    --ph-s-6: 2rem;
    --ph-s-7: 3rem;
    --ph-s-8: 4rem;
    --ph-section-y: clamp(3.5rem, 2.2rem + 5vw, 7rem);
    --ph-gutter: 16px;
    --ph-max: 1200px;

    /* shape */
    --ph-r-sm: 8px;
    --ph-r-md: 14px;
    --ph-r-lg: 22px;
    --ph-r-xl: 32px;
    --ph-r-pill: 999px;

    --ph-shadow-sm: 0 1px 2px rgba(31, 23, 20, .06), 0 2px 8px rgba(31, 23, 20, .05);
    --ph-shadow-md: 0 10px 30px -12px rgba(31, 23, 20, .22);
    --ph-shadow-lg: 0 30px 60px -24px rgba(110, 20, 24, .35);

    --ph-header-h: 72px;
    --ph-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
    :root { --ph-gutter: 24px; }
}

@media (min-width: 1024px) {
    :root { --ph-gutter: 32px; --ph-header-h: 84px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--ph-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body.ph-body {
    margin: 0;
    font-family: var(--ph-font-body);
    font-size: var(--ph-fs-base);
    line-height: 1.65;
    color: var(--ph-ink-2);
    background: var(--ph-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.ph-body img, .ph-body svg, .ph-body video { max-width: 100%; height: auto; display: block; }
.ph-body a { color: inherit; text-decoration: none; }
.ph-body p { margin: 0 0 1em; }
.ph-body h1, .ph-body h2, .ph-body h3, .ph-body h4 {
    font-family: var(--ph-font-display);
    color: var(--ph-ink);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
    font-variation-settings: "SOFT" 30, "WONK" 0;
}
.ph-body ul { margin: 0; padding: 0; list-style: none; }
.ph-body button { font: inherit; }

.ph-body :focus-visible {
    outline: 3px solid var(--ph-red);
    outline-offset: 3px;
}
.ph-on-dark :focus-visible,
.ph-section--red :focus-visible,
.ph-section--ink :focus-visible { outline-color: var(--ph-on-red); }

.ph-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.ph-skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--ph-ink);
    color: var(--ph-on-ink) !important;
    border-radius: var(--ph-r-sm);
    font-weight: 600;
}
.ph-skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.ph-container {
    width: 100%;
    max-width: calc(var(--ph-max) + var(--ph-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--ph-gutter);
}

.ph-section { padding-block: var(--ph-section-y); position: relative; }
.ph-section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.ph-section--paper { background: var(--ph-paper); }
.ph-section--tint { background: var(--ph-tint); }
.ph-section--ink { background: var(--ph-ink); color: var(--ph-on-ink-soft); }
.ph-section--red { background: var(--ph-red); color: var(--ph-on-red-soft); }
.ph-section--ink h2, .ph-section--ink h3, .ph-section--ink h4,
.ph-section--red h2, .ph-section--red h3, .ph-section--red h4 { color: var(--ph-on-ink); }

.ph-split { display: grid; gap: var(--ph-s-6); align-items: center; }
@media (min-width: 992px) {
    .ph-split { grid-template-columns: 1fr 1fr; gap: var(--ph-s-8); }
    .ph-split--wide-left { grid-template-columns: 1.15fr .85fr; }
    .ph-split--wide-right { grid-template-columns: .85fr 1.15fr; }
    .ph-split--top { align-items: start; }
}

/* enquiry layout: intro, then the form, then supporting content on phones;
   intro + aside on the left and the form on the right on desktop */
.ph-enquiry { display: grid; gap: var(--ph-s-6); grid-template-areas: "intro" "form" "aside"; }
.ph-enquiry__intro { grid-area: intro; }
.ph-enquiry__form { grid-area: form; }
.ph-enquiry__aside { grid-area: aside; display: grid; gap: var(--ph-s-5); }
@media (min-width: 992px) {
    .ph-enquiry {
        grid-template-columns: .85fr 1.15fr;
        grid-template-areas: "intro form" "aside form";
        grid-template-rows: auto 1fr;
        column-gap: var(--ph-s-8);
        row-gap: var(--ph-s-5);
        align-items: start;
    }
}

.ph-grid { display: grid; gap: var(--ph-s-5); }
/* small feature cards: two per row even on phones */
.ph-grid--mini { grid-template-columns: repeat(2, 1fr); gap: var(--ph-s-3); }
@media (max-width: 639.98px) {
    .ph-grid--mini .ph-card { padding: var(--ph-s-4); border-radius: var(--ph-r-md); }
    .ph-grid--mini .ph-card__title { font-size: 1.1rem; }
    .ph-grid--mini .ph-card p { font-size: var(--ph-fs-sm); line-height: 1.5; }
    .ph-grid--mini .ph-icon-badge { width: 40px; height: 40px; font-size: 1rem; }
}
@media (min-width: 640px) { .ph-grid--2, .ph-grid--3, .ph-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .ph-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .ph-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 4. Type patterns ---------- */
.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7em;
    margin-bottom: var(--ph-s-4);
    font-family: var(--ph-font-body);
    font-size: var(--ph-fs-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ph-red-700);
}
/* double rule = the two lines under "PHT" in the logo */
.ph-eyebrow::before {
    content: "";
    width: 28px; height: 6px;
    border-top: 3px solid currentColor;
    border-bottom: 1px solid currentColor;
    flex: none;
}
.ph-section--ink .ph-eyebrow,
.ph-section--red .ph-eyebrow,
.ph-on-dark .ph-eyebrow { color: var(--ph-on-red-soft); }

.ph-h2 { font-size: var(--ph-fs-h2); max-width: 20ch; text-wrap: balance; }
.ph-h2 em, .ph-display em {
    font-style: italic;
    font-weight: 600;
    color: var(--ph-red);
}
.ph-section--red .ph-h2 em, .ph-section--ink .ph-h2 em { color: var(--ph-on-red-soft); }
.ph-section--ink .ph-h2 em { color: #F08A84; } /* 6.1:1 on ink */
.ph-h3 { font-size: var(--ph-fs-h3); }
.ph-lead { font-size: var(--ph-fs-lg); line-height: 1.6; max-width: 58ch; color: var(--ph-ink-2); }
.ph-section--ink .ph-lead { color: var(--ph-on-ink-soft); }
.ph-section--red .ph-lead { color: var(--ph-on-red-soft); }
.ph-muted { color: var(--ph-muted); }
.ph-nowrap { white-space: nowrap; }

.ph-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.ph-head--center { text-align: center; }
.ph-head--center .ph-h2, .ph-head--center .ph-lead { margin-inline: auto; }
.ph-head--row { display: grid; gap: var(--ph-s-4); }
@media (min-width: 992px) {
    .ph-head--row { grid-template-columns: 1fr auto; align-items: end; }
    .ph-head--row .ph-lead { margin-bottom: 0; }
}

.ph-rule {
    height: 7px;
    border-top: 3px solid var(--ph-red);
    border-bottom: 1px solid var(--ph-red);
    margin: 0;
}

/* ---------- 5. Buttons ---------- */
.ph-btn {
    --_bg: var(--ph-red);
    --_fg: var(--ph-on-red);
    --_bd: var(--ph-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-height: 52px;
    padding: .7em 1.5em;
    border: 2px solid var(--_bd);
    border-radius: var(--ph-r-pill);
    background: var(--_bg);
    color: var(--_fg) !important;
    font-family: var(--ph-font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    transition: transform .2s var(--ph-ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
}
.ph-btn:hover { transform: translateY(-2px); box-shadow: var(--ph-shadow-md); }
.ph-btn:active { transform: translateY(0); }
.ph-btn i { font-size: .95em; transition: transform .2s var(--ph-ease); }
.ph-btn:hover .fa-arrow-right { transform: translateX(3px); }

.ph-btn--primary:hover { --_bg: var(--ph-red-700); --_bd: var(--ph-red-700); }
.ph-btn--ink { --_bg: var(--ph-ink); --_bd: var(--ph-ink); --_fg: var(--ph-on-ink); }
.ph-btn--ink:hover { --_bg: #000; --_bd: #000; }
.ph-btn--ghost { --_bg: transparent; --_fg: var(--ph-ink); --_bd: var(--ph-ink); }
.ph-btn--ghost:hover { --_bg: var(--ph-ink); --_fg: var(--ph-on-ink); }
.ph-btn--light { --_bg: var(--ph-paper); --_fg: var(--ph-red-700); --_bd: var(--ph-paper); }
.ph-btn--light:hover { --_bg: var(--ph-cream); --_bd: var(--ph-cream); }
.ph-btn--outline-light { --_bg: transparent; --_fg: var(--ph-on-red); --_bd: rgba(255,255,255,.7); }
.ph-btn--outline-light:hover { --_bg: rgba(255,255,255,.12); --_bd: #fff; }
.ph-btn--whatsapp { --_bg: var(--ph-whatsapp); --_bd: var(--ph-whatsapp); --_fg: #fff; }
.ph-btn--whatsapp:hover { --_bg: #10652F; --_bd: #10652F; }
.ph-btn--sm { min-height: 44px; padding: .55em 1.1em; font-size: .975rem; }
.ph-btn--block { width: 100%; }

.ph-btn-row { display: flex; flex-wrap: wrap; gap: var(--ph-s-3); }
@media (max-width: 479.98px) { .ph-btn-row > .ph-btn { flex: 1 1 100%; } }

.ph-link {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 44px;
    font-weight: 700;
    color: var(--ph-red-700) !important;
    border-bottom: 2px solid transparent;
}
.ph-link:hover { border-bottom-color: currentColor; }
.ph-link i { transition: transform .2s var(--ph-ease); }
.ph-link:hover i { transform: translateX(3px); }
.ph-on-dark .ph-link,
.ph-section--ink .ph-link, .ph-section--red .ph-link,
.ph-card--ink .ph-link, .ph-card--red .ph-link { color: #fff !important; }

/* ---------- 6. Header / nav ---------- */
.ph-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 246, 239, .92);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.ph-header.is-scrolled { border-bottom-color: var(--ph-line); box-shadow: 0 6px 24px -14px rgba(31,23,20,.35); }

.ph-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-s-4);
    min-height: var(--ph-header-h);
    transition: min-height .25s var(--ph-ease);
}
.ph-header.is-scrolled .ph-header__bar { min-height: 64px; }

.ph-brand { display: inline-flex; align-items: center; flex: none; }
.ph-brand img {
    width: auto;
    height: 50px;
    transition: height .25s var(--ph-ease);
    mix-blend-mode: multiply; /* logo has a white box; let the cream show through */
}
.ph-header.is-scrolled .ph-brand img { height: 44px; }
@media (min-width: 1024px) { .ph-brand img { height: 58px; } }

.ph-nav { display: none; }
.ph-nav__list { display: flex; align-items: center; gap: 2px; }
.ph-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 .8rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ph-ink) !important;
    border-radius: var(--ph-r-pill);
    transition: background-color .2s, color .2s;
}
.ph-nav__link:hover { background: var(--ph-tint); color: var(--ph-red-700) !important; }
.ph-nav__link[aria-current="page"] { color: var(--ph-red-700) !important; }
.ph-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: .8rem; right: .8rem; bottom: 6px;
    height: 5px;
    border-top: 2px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.ph-header__actions { display: flex; align-items: center; gap: var(--ph-s-2); }
.ph-header__phone {
    display: none;
    align-items: center;
    gap: .5em;
    min-height: 44px;
    padding: 0 .4rem;
    font-weight: 700;
    color: var(--ph-ink) !important;
}
.ph-header__phone i { color: var(--ph-red); }
.ph-header__cta { display: none; }

.ph-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: var(--ph-r-pill);
    background: var(--ph-red);
    color: var(--ph-on-red);
    cursor: pointer;
}
.ph-menu-toggle__bars { position: relative; width: 20px; height: 14px; }
.ph-menu-toggle__bars span {
    position: absolute; left: 0;
    width: 100%; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s var(--ph-ease), opacity .2s;
}
.ph-menu-toggle__bars span:nth-child(1) { top: 0; }
.ph-menu-toggle__bars span:nth-child(2) { top: 6px; }
.ph-menu-toggle__bars span:nth-child(3) { top: 12px; }
.ph-menu-toggle[aria-expanded="true"] .ph-menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ph-menu-toggle[aria-expanded="true"] .ph-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.ph-menu-toggle[aria-expanded="true"] .ph-menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.ph-mobile-menu {
    border-top: 1px solid var(--ph-line);
    background: var(--ph-cream);
    max-height: calc(100vh - var(--ph-header-h));
    max-height: calc(100dvh - var(--ph-header-h));
    overflow-y: auto;
}
.ph-mobile-menu[hidden] { display: none; }
.ph-mobile-menu__list { padding-block: var(--ph-s-3); }
.ph-mobile-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    border-bottom: 1px solid var(--ph-line);
    font-family: var(--ph-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ph-ink) !important;
}
.ph-mobile-menu__list a[aria-current="page"] { color: var(--ph-red-700) !important; }
.ph-mobile-menu__list a i { font-size: .9rem; color: var(--ph-red); }
.ph-mobile-menu__cta { display: grid; gap: var(--ph-s-3); padding-block: var(--ph-s-4) var(--ph-s-6); }

@media (min-width: 1100px) {
    .ph-nav { display: block; }
    .ph-menu-toggle, .ph-mobile-menu { display: none !important; }
    .ph-header__cta { display: inline-flex; }
}
@media (min-width: 1280px) {
    .ph-header__phone { display: inline-flex; }
}

/* ---------- 7. Hero (homepage) ---------- */
.ph-hero {
    position: relative;
    overflow: hidden;
    background: var(--ph-red);
    color: var(--ph-on-red-soft);
    padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.25rem) clamp(3rem, 2rem + 3vw, 4.75rem);
    isolation: isolate;
}
.ph-hero__rays {
    position: absolute;
    z-index: -1;
    right: -12%;
    top: -20%;
    width: min(900px, 120vw);
    opacity: .07;
    color: #fff;
    pointer-events: none;
}
.ph-hero__grid { display: grid; gap: var(--ph-s-7); align-items: center; }
@media (min-width: 992px) { .ph-hero__grid { grid-template-columns: 1.1fr .9fr; gap: var(--ph-s-7); } }

.ph-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .45em 1em;
    margin-bottom: var(--ph-s-5);
    border: 1.5px solid rgba(255,255,255,.55);
    border-radius: var(--ph-r-pill);
    font-size: var(--ph-fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}
.ph-hero__eyebrow .ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ph-accent); flex: none; }

.ph-display {
    font-size: var(--ph-fs-h1);
    line-height: .98;
    letter-spacing: -0.03em;
    color: #fff !important;
    margin-bottom: var(--ph-s-5) !important;
    font-variation-settings: "SOFT" 50, "WONK" 1 !important;
}
.ph-display em {
    color: #fff;
    position: relative;
    white-space: nowrap;
    font-weight: 500;
}
.ph-display em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.05em;
    height: .14em;
    border-top: .06em solid currentColor;
    border-bottom: .025em solid currentColor;
    opacity: .9;
}
.ph-hero__lead { font-size: var(--ph-fs-xl); line-height: 1.5; max-width: 40ch; color: var(--ph-on-red-soft); margin-bottom: var(--ph-s-6) !important; }
.ph-hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: var(--ph-s-5) !important; font-weight: 600; color: #fff; }
.ph-hero__points li { display: inline-flex; align-items: center; gap: .45em; }
.ph-hero__points i { color: var(--ph-on-red-soft); }
.ph-hero__call { margin: var(--ph-s-4) 0 0 !important; font-size: var(--ph-fs-sm); color: var(--ph-on-red-soft); }
.ph-hero__call a {
    display: inline-block;
    padding-block: 12px; /* 44px tap height */
    color: #fff !important;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.5);
    text-underline-offset: 4px;
}

.ph-hero__visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.ph-hero__arch {
    position: relative;
    aspect-ratio: 4 / 4.4;
    border-radius: 999px 999px var(--ph-r-lg) var(--ph-r-lg);
    overflow: hidden;
    background: #fff;
    border: 10px solid var(--ph-cream);
    box-shadow: var(--ph-shadow-lg);
}
.ph-hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.ph-hero__card {
    position: absolute;
    right: -6px;
    bottom: 12%;
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 290px;
    padding: .8rem 1.1rem .8rem .8rem;
    background: var(--ph-paper);
    color: var(--ph-ink);
    border-radius: var(--ph-r-md);
    box-shadow: var(--ph-shadow-md);
    font-size: var(--ph-fs-sm);
    line-height: 1.3;
}
.ph-hero__card strong { display: block; font-size: 1rem; }
.ph-hero__card span { color: var(--ph-muted); }
.ph-hero__card .ph-icon-badge { flex: none; }
@media (min-width: 1200px) { .ph-hero__card { right: -28px; } }

/* rubber-stamp roundel */
.ph-stamp {
    position: absolute;
    left: -10px;
    top: 4%;
    width: clamp(110px, 26vw, 150px);
    aspect-ratio: 1;
    color: var(--ph-red);
    background: var(--ph-cream);
    border-radius: 50%;
    box-shadow: var(--ph-shadow-md);
}
.ph-stamp svg { width: 100%; height: 100%; }
.ph-stamp__ring { transform-origin: 50% 50%; animation: ph-spin 40s linear infinite; }
.ph-stamp__center { font-family: var(--ph-font-display); font-weight: 700; }
@media (min-width: 1200px) { .ph-stamp { left: -48px; } }
@keyframes ph-spin { to { transform: rotate(360deg); } }

/* ---------- 8. Trust strip ---------- */
.ph-trust {
    background: var(--ph-ink);
    color: var(--ph-on-ink);
    padding-block: var(--ph-s-5);
}
.ph-trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ph-s-4) var(--ph-s-4); }
.ph-trust__item { display: flex; align-items: center; gap: .75rem; font-weight: 600; line-height: 1.25; font-size: var(--ph-fs-sm); }
.ph-trust__item i { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: #F08A84; font-size: 1rem; }
.ph-trust__item small { display: block; font-weight: 400; color: var(--ph-on-ink-soft); font-size: var(--ph-fs-xs); }
@media (min-width: 992px) {
    .ph-trust__list { grid-template-columns: repeat(4, 1fr); }
    .ph-trust__item { font-size: 1rem; }
    .ph-trust__item + .ph-trust__item { border-left: 1px solid rgba(255,255,255,.12); padding-left: var(--ph-s-5); }
}

/* ---------- 9. Cards, chips, icon badges, checklist ---------- */
.ph-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-lg);
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
    overflow: hidden;
    transition: transform .3s var(--ph-ease), box-shadow .3s var(--ph-ease), border-color .3s;
}
.ph-card--hover:hover { transform: translateY(-4px); box-shadow: var(--ph-shadow-md); border-color: var(--ph-tint-2); }
.ph-card--tint { background: var(--ph-tint); border-color: var(--ph-tint-2); }
.ph-card--red { background: var(--ph-red); border-color: var(--ph-red); color: var(--ph-on-red-soft); }
.ph-card--ink { background: var(--ph-ink); border-color: var(--ph-ink); color: var(--ph-on-ink-soft); }
.ph-card--red h3, .ph-card--ink h3, .ph-card--red h4, .ph-card--ink h4 { color: #fff; }
.ph-card__media {
    margin: calc(-1 * clamp(1.25rem, 1rem + 1vw, 2rem));
    margin-bottom: var(--ph-s-5);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ph-tint);
}
.ph-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ph-ease); }
.ph-card--hover:hover .ph-card__media img { transform: scale(1.04); }
.ph-card__kicker {
    font-size: var(--ph-fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ph-red-700);
    margin-bottom: .4rem;
}
.ph-card--red .ph-card__kicker, .ph-card--ink .ph-card__kicker { color: var(--ph-on-red-soft); }
.ph-card--ink .ph-card__kicker { color: #F08A84; }
.ph-card__title { font-size: var(--ph-fs-h3); margin-bottom: .4em !important; }
.ph-card__foot { margin-top: auto; padding-top: var(--ph-s-4); }
.ph-card p:last-of-type { margin-bottom: 0; }

.ph-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: var(--ph-s-4) 0 !important; }
.ph-chip {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .3em .85em;
    border-radius: var(--ph-r-pill);
    background: var(--ph-tint);
    color: var(--ph-red-900);
    font-size: var(--ph-fs-sm);
    font-weight: 600;
    line-height: 1.4;
}
.ph-card--tint .ph-chip { background: var(--ph-paper); }
.ph-card--ink .ph-chip, .ph-section--ink .ph-chip { background: rgba(255,255,255,.08); color: var(--ph-on-ink); }
.ph-card--red .ph-chip, .ph-section--red .ph-chip { background: rgba(255,255,255,.14); color: #fff; }
a.ph-chip { min-height: 44px; padding-inline: 1.1em; border: 1px solid var(--ph-tint-2); background: var(--ph-paper); transition: background-color .2s, color .2s, border-color .2s; }
a.ph-chip:hover { background: var(--ph-red); border-color: var(--ph-red); color: #fff; }
a.ph-chip i { color: var(--ph-red); transition: color .2s; }
a.ph-chip:hover i { color: #fff; }

.ph-icon-badge {
    display: inline-grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--ph-tint);
    color: var(--ph-red);
    font-size: 1.15rem;
    flex: none;
}
.ph-card--red .ph-icon-badge { background: rgba(255,255,255,.16); color: #fff; }
.ph-card--ink .ph-icon-badge { background: rgba(255,255,255,.08); color: #F08A84; }

.ph-checklist { display: grid; gap: .7rem; }
.ph-checklist li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.45; }
.ph-checklist li::before {
    content: "";
    flex: none;
    width: 22px; height: 22px;
    margin-top: .1em;
    border-radius: 50%;
    background: var(--ph-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ph-section--ink .ph-checklist li::before, .ph-card--ink .ph-checklist li::before,
.ph-card--red .ph-checklist li::before { background-color: rgba(255,255,255,.16); }
.ph-checklist--sm li { font-size: var(--ph-fs-sm); }

/* ---------- 10. Bento grid ---------- */
.ph-bento { display: grid; gap: var(--ph-s-4); }
@media (min-width: 700px) {
    .ph-bento { grid-template-columns: repeat(2, 1fr); }
    .ph-bento__item--full { grid-column: 1 / -1; }
}
@media (min-width: 700px) and (max-width: 1023.98px) {
    .ph-bento__item--md-full { grid-column: 1 / -1; }
    .ph-bento__item--md-full > .ph-card__media { aspect-ratio: 21 / 8; }
}
@media (min-width: 1024px) {
    .ph-bento { grid-template-columns: repeat(6, 1fr); gap: var(--ph-s-5); }
    .ph-bento__item { grid-column: span 2; }
    .ph-bento__item--w3 { grid-column: span 3; }
    .ph-bento__item--w4 { grid-column: span 4; }
    .ph-bento__item--tall { grid-row: span 2; }
    .ph-bento__item--full { grid-column: 1 / -1; }
}
.ph-bento__split { display: grid; gap: var(--ph-s-4); }
@media (min-width: 560px) {
    .ph-bento__split { grid-template-columns: 2fr 3fr; align-items: center; }
    .ph-bento__split .ph-card__media { margin: 0; border-radius: var(--ph-r-md); aspect-ratio: 4 / 3.4; }
}
.ph-exam {
    padding: var(--ph-s-4);
    border-radius: var(--ph-r-md);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}
.ph-exam h4 { font-size: 1.5rem; margin-bottom: .2rem !important; }
.ph-exam p { font-size: var(--ph-fs-sm); margin: 0; }
.ph-exam__subjects { font-weight: 700; color: var(--ph-on-ink) !important; margin: 0 0 .25rem !important; }
.ph-exam-pair { display: grid; gap: var(--ph-s-3); margin-block: var(--ph-s-5); }
@media (min-width: 480px) and (max-width: 699.98px), (min-width: 700px) and (max-width: 1023.98px) {
    .ph-exam-pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- 11. Stats ---------- */
.ph-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--ph-s-4); }
.ph-stat { padding: var(--ph-s-5) 0; border-top: 1px solid rgba(255,255,255,.14); }
.ph-stat__num {
    display: block;
    font-family: var(--ph-font-display);
    font-size: clamp(2.6rem, 1.8rem + 3.5vw, 4.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.ph-stat__label { display: block; margin-top: .5rem; font-size: var(--ph-fs-sm); font-weight: 600; color: var(--ph-on-ink-soft); }
@media (min-width: 992px) {
    .ph-stats { grid-template-columns: repeat(4, 1fr); }
    .ph-stat:first-child { padding-left: 0; }
    .ph-stat + .ph-stat { border-left: 1px solid rgba(255,255,255,.14); padding-left: var(--ph-s-5); }
}
.ph-section--red .ph-stat__label { color: var(--ph-on-red-soft); }

/* ---------- 12. Steps / timeline ---------- */
.ph-steps { display: grid; gap: var(--ph-s-5); counter-reset: ph-step; position: relative; }
.ph-step { position: relative; padding-left: 72px; }
.ph-step__num {
    position: absolute;
    left: 0; top: 0;
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ph-red);
    color: #fff;
    font-family: var(--ph-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 0 0 6px var(--ph-cream);
    z-index: 1;
}
.ph-steps::before {
    content: "";
    position: absolute;
    left: 26px; top: 20px; bottom: 20px;
    border-left: 2px dashed var(--ph-tint-2);
}
.ph-step h3 { font-size: var(--ph-fs-h3); margin-bottom: .3em !important; }
.ph-step p { margin: 0; }
@media (min-width: 900px) {
    .ph-steps { grid-template-columns: repeat(3, 1fr); gap: var(--ph-s-6); }
    .ph-steps::before { left: 27px; right: calc((100% - 2 * var(--ph-s-6)) / 3 - 27px); /* ends at the centre of the last circle */ top: 27px; bottom: auto; border-left: 0; border-top: 2px dashed var(--ph-tint-2); }
    .ph-step { padding-left: 0; padding-top: 80px; }
}
.ph-section--paper .ph-step__num { box-shadow: 0 0 0 6px var(--ph-paper); }

/* ---------- 13. Testimonials ---------- */
.ph-quotes { columns: 1; column-gap: var(--ph-s-5); }
@media (min-width: 720px) { .ph-quotes { columns: 2; } }
@media (min-width: 1100px) { .ph-quotes { columns: 3; } }
.ph-quote {
    break-inside: avoid;
    margin: 0 0 var(--ph-s-5);
    padding: var(--ph-s-5);
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-lg);
    position: relative;
}
.ph-quote::before {
    content: "\201C";
    position: absolute;
    right: 18px; top: -8px;
    font-family: var(--ph-font-display);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--ph-tint-2);
}
@media (max-width: 719.98px) {
    .ph-quote { padding: var(--ph-s-4) var(--ph-s-4) var(--ph-s-4); margin-bottom: var(--ph-s-3); }
    .ph-quote__text { font-size: .98rem; line-height: 1.55; }
    .ph-quote--feature .ph-quote__text { font-size: 1.15rem; }
}
.ph-quote--feature { background: var(--ph-red); border-color: var(--ph-red); color: #fff; }
.ph-quote--feature::before { color: rgba(255,255,255,.25); }
.ph-quote--feature .ph-quote__text { color: #fff; font-family: var(--ph-font-display); font-size: 1.3rem; line-height: 1.45; }
.ph-quote--feature .ph-quote__role { color: var(--ph-on-red-soft); }
.ph-quote--feature .ph-quote__avatar { background: #fff; color: var(--ph-red); }
.ph-quote--feature .ph-quote__name { color: #fff; }
.ph-stars { display: flex; gap: 2px; color: var(--ph-accent); font-size: .85rem; margin-bottom: var(--ph-s-3); }
.ph-quote__text { position: relative; margin: 0 0 var(--ph-s-4) !important; padding: 0; color: var(--ph-ink-2); }
.ph-quote__text p { margin: 0; }
.ph-quote__who { display: flex; align-items: center; gap: .75rem; margin: 0; }
.ph-quote__avatar {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--ph-tint);
    color: var(--ph-red-700);
    font-weight: 700;
    flex: none;
}
.ph-quote__name { display: block; font-weight: 700; color: var(--ph-ink); line-height: 1.2; font-style: normal; }
.ph-quote__role { display: block; font-size: var(--ph-fs-xs); color: var(--ph-muted); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- 14. FAQ accordion (native <details>) ---------- */
.ph-faq { display: grid; gap: var(--ph-s-3); }
.ph-faq__item {
    background: var(--ph-paper);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-r-md);
    transition: border-color .2s, box-shadow .2s;
}
.ph-faq__item[open] { border-color: var(--ph-tint-2); box-shadow: var(--ph-shadow-sm); }
.ph-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-s-4);
    min-height: 60px;
    padding: var(--ph-s-4) var(--ph-s-5);
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--ph-ink);
    line-height: 1.35;
}
.ph-faq__q::-webkit-details-marker { display: none; }
.ph-faq__q::after {
    content: "";
    flex: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ph-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A11F25' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform .25s var(--ph-ease), background-color .2s;
}
.ph-faq__item[open] .ph-faq__q::after { transform: rotate(45deg); }
.ph-faq__q:hover { color: var(--ph-red-700); }
.ph-faq__a { padding: 0 var(--ph-s-5) var(--ph-s-5); }
.ph-faq__a p { margin: 0; }
.ph-faq__a a { color: var(--ph-red-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. Forms ---------- */
.ph-form-card {
    background: var(--ph-paper);
    border-radius: var(--ph-r-xl);
    padding: clamp(1.25rem, .9rem + 1.6vw, 2.5rem);
    box-shadow: var(--ph-shadow-lg);
    border: 1px solid var(--ph-line);
    color: var(--ph-ink-2);
}
.ph-form-card__head { margin-bottom: var(--ph-s-5); }
.ph-form-card__head h2, .ph-form-card__head h3 { font-size: var(--ph-fs-h3); margin-bottom: .25em !important; color: var(--ph-ink) !important; }
.ph-form-card__head p { margin: 0; color: var(--ph-muted); }

.ph-form__grid { display: grid; gap: var(--ph-s-4); }
@media (min-width: 560px) {
    .ph-form__grid { grid-template-columns: 1fr 1fr; }
    .ph-field--full { grid-column: 1 / -1; }
}
.ph-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ph-field label { font-size: var(--ph-fs-sm); font-weight: 700; color: var(--ph-ink); margin: 0; }
.ph-field label .ph-req { color: var(--ph-red-700); }
.ph-input-wrap { position: relative; }
.ph-input-wrap > i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--ph-muted);
    pointer-events: none;
    font-size: .95rem;
}
.ph-input {
    width: 100%;
    min-height: 52px;
    padding: .7rem 1rem;
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-r-md);
    background: var(--ph-cream);
    color: var(--ph-ink);
    font-family: var(--ph-font-body);
    font-size: 1rem; /* >=16px stops iOS zoom */
    line-height: 1.3;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}
.ph-input-wrap .ph-input { padding-left: 42px; }
.ph-input::placeholder { color: #8C7F78; opacity: 1; }
.ph-input:hover { border-color: var(--ph-tint-2); }
.ph-input:focus { outline: none; border-color: var(--ph-red); background: #fff; box-shadow: 0 0 0 4px rgba(196,43,49,.14); }
.ph-input[aria-invalid="true"] { border-color: var(--ph-red-700); background: #fff; }
.ph-field__error, .ph-field .error-message { min-height: 0; font-size: var(--ph-fs-xs); font-weight: 600; color: var(--ph-red-700); }
.ph-field__error:empty, .ph-field .error-message:empty { display: none; }
.ph-form__note {
    display: flex; align-items: center; gap: .5em;
    margin: var(--ph-s-3) 0 0 !important;
    font-size: var(--ph-fs-xs);
    color: var(--ph-muted);
}
.ph-form__terms { display: flex; align-items: flex-start; gap: .6em; margin-block: var(--ph-s-4); font-size: var(--ph-fs-sm); color: var(--ph-muted); }
.ph-form__terms input { margin-top: .3em; accent-color: var(--ph-red); width: 16px; height: 16px; flex: none; }
.ph-form__terms a { color: var(--ph-red-700); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 16. Areas strip ---------- */
.ph-areas { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- 17. CTA band ---------- */
.ph-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--ph-r-xl);
    background: var(--ph-red);
    color: var(--ph-on-red-soft);
    padding: clamp(2rem, 1.2rem + 4vw, 4.5rem);
    isolation: isolate;
}
.ph-cta h2 { color: #fff !important; font-size: var(--ph-fs-h2); max-width: 18ch; }
.ph-cta p:not(.ph-eyebrow) { max-width: 52ch; font-size: var(--ph-fs-lg); }
.ph-cta .ph-hero__rays { right: -20%; top: -40%; width: 700px; opacity: .07; }
.ph-cta .ph-eyebrow { color: var(--ph-on-red-soft); }

/* ---------- 18. Footer ---------- */
.ph-footer { background: var(--ph-ink); color: var(--ph-on-ink-soft); padding-top: clamp(3rem, 2rem + 4vw, 5rem); font-size: var(--ph-fs-sm); }
.ph-footer__grid { display: grid; gap: var(--ph-s-6); }
@media (min-width: 768px) { .ph-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.ph-footer__logo {
    display: inline-block;
    background: #fff;
    padding: 8px 12px;
    border-radius: var(--ph-r-md);
    margin-bottom: var(--ph-s-4);
}
.ph-footer__logo img { height: 56px; width: auto; }
.ph-footer__about { max-width: 38ch; line-height: 1.7; }
.ph-footer h2 {
    font-family: var(--ph-font-body) !important;
    font-size: var(--ph-fs-xs) !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ph-on-ink) !important;
    margin-bottom: var(--ph-s-4) !important;
}
.ph-footer__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--ph-s-5); }
.ph-footer__links a, .ph-footer__contact a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ph-on-ink-soft) !important;
    transition: color .2s;
}
.ph-footer__links a:hover, .ph-footer__contact a:hover { color: #fff !important; }
.ph-footer__contact li { display: flex; gap: .75rem; align-items: center; min-height: 40px; overflow-wrap: anywhere; }
.ph-footer__contact i { width: 18px; color: #F08A84; text-align: center; flex: none; }
.ph-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-s-3) var(--ph-s-5);
    margin-top: var(--ph-s-7);
    padding-block: var(--ph-s-5);
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: var(--ph-fs-xs);
}
.ph-footer__bottom a { color: var(--ph-on-ink-soft) !important; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.ph-footer__bottom a:hover { color: #fff !important; }
.ph-footer__legal { display: flex; gap: var(--ph-s-4); flex-wrap: wrap; }
.ph-footer__copy p { margin: 0; font-size: var(--ph-fs-sm); color: var(--ph-on-ink); }
.ph-footer__copy strong { font-weight: 800; }
.ph-footer__social { display: flex; gap: var(--ph-s-3); list-style: none; margin: 0; padding: 0; }
.ph-footer__bottom .ph-footer__social a {
    width: 44px; height: 44px; min-height: 44px;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--ph-red) !important;
    text-decoration: none;
    font-size: 1.05rem;
    transition: transform .2s var(--ph-ease), background .2s;
}
.ph-footer__bottom .ph-footer__social a:hover { background: var(--ph-red-tint, #FBE8E5); color: var(--ph-red-dark, #A11F25) !important; transform: translateY(-2px); }
/* second row: dotted divider + centred credit, as on PTF Education */
.ph-footer__credit {
    display: flex;
    width: 100%;
    margin: 0;
    justify-content: center;
    text-align: center;
    padding-block: var(--ph-s-4) calc(var(--ph-s-5) + 76px); /* room for the mobile dock */
    border-top: 1px dashed rgba(255,255,255,.18);
    font-size: var(--ph-fs-sm);
    color: var(--ph-on-ink-soft);
}
@media (min-width: 992px) { .ph-footer__credit { padding-bottom: var(--ph-s-5); } }
.ph-credit { display: inline-flex; align-items: center; gap: .4em; flex-wrap: wrap; }
.ph-credit a { text-decoration: none !important; gap: .35em; font-weight: 700; color: #fff !important; display: inline-flex; align-items: center; min-height: 44px; }
.ph-credit img { width: 22px; height: 22px; }
.ph-credit .fa-heart { color: #F08A84; }

/* ---------- 19. Floating contact (desktop) + dock (mobile) ---------- */
.ph-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: none;
    flex-direction: column;
    gap: 12px;
}
.ph-fab a {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #fff !important;
    font-size: 1.5rem;
    box-shadow: var(--ph-shadow-md);
    transition: transform .2s var(--ph-ease);
}
.ph-fab a:hover { transform: scale(1.08); }
.ph-fab__wa { background: var(--ph-whatsapp); }
.ph-fab__call { background: var(--ph-ink); font-size: 1.2rem !important; border: 2px solid rgba(255,255,255,.85); }

.ph-dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--ph-paper);
    border-top: 1px solid var(--ph-line);
    box-shadow: 0 -8px 24px -12px rgba(31,23,20,.25);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.ph-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 62px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ph-ink) !important;
    line-height: 1.1;
    text-align: center;
}
.ph-dock a i { font-size: 1.2rem; color: var(--ph-red); }
.ph-dock a.ph-dock__wa i { color: var(--ph-whatsapp); }
.ph-dock a.ph-dock__primary { background: var(--ph-red); color: #fff !important; }
.ph-dock a.ph-dock__primary i { color: #fff; }
@media (min-width: 992px) {
    .ph-dock { display: none; }
    .ph-fab { display: flex; }
}

/* ---------- 20. Inner page hero (stage 2) ---------- */
.ph-pagehero { background: var(--ph-red); color: var(--ph-on-red-soft); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); position: relative; overflow: hidden; isolation: isolate; }
.ph-pagehero h1 { color: #fff !important; font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); max-width: 18ch; }
.ph-pagehero p { font-size: var(--ph-fs-lg); max-width: 56ch; }

/* ---------- 21. Media frames ---------- */
.ph-frame {
    position: relative;
    border-radius: var(--ph-r-xl);
    overflow: hidden;
    background: var(--ph-tint);
}
.ph-frame img { width: 100%; height: 100%; object-fit: cover; }
.ph-frame--arch { border-radius: 999px 999px var(--ph-r-xl) var(--ph-r-xl); }
.ph-frame__tag {
    position: absolute;
    left: 16px; bottom: 16px;
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .65rem 1rem;
    background: var(--ph-paper);
    border-radius: var(--ph-r-md);
    box-shadow: var(--ph-shadow-md);
    color: var(--ph-ink);
    font-size: var(--ph-fs-sm);
    line-height: 1.25;
}
.ph-frame__tag strong { display: block; }

/* ---------- 22. Bootstrap-modal fallback (pages that load bootstrap.js but not bootstrap.css) ---------- */
.ph-body .modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; padding: 16px; }
.ph-body .modal.show { display: block; }
.ph-body .modal-dialog { position: relative; max-width: 480px; margin: 8vh auto; pointer-events: none; }
.ph-body .modal.fade .modal-dialog { transform: translateY(-24px); transition: transform .3s var(--ph-ease); }
.ph-body .modal.show .modal-dialog { transform: none; }
.ph-body .modal.fade { opacity: 0; transition: opacity .2s linear; }
.ph-body .modal.fade.show { opacity: 1; }
.ph-body .modal-content { pointer-events: auto; background: var(--ph-paper); border-radius: var(--ph-r-lg); box-shadow: var(--ph-shadow-lg); }
.ph-body .modal-header { display: flex; justify-content: flex-end; padding: 12px 12px 0; }
.ph-body .modal-body { padding: 8px 24px 24px; }
.ph-body .modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: rgba(31,23,20,.6); }
.ph-body .modal-backdrop.fade { opacity: 0; } .ph-body .modal-backdrop.show { opacity: 1; }
.ph-body .btn-close {
    width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--ph-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A11F25' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px no-repeat;
}
body.modal-open { overflow: hidden; }

/* ---------- 23. Reveal on scroll ---------- */
.ph-js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ph-ease), transform .7s var(--ph-ease);
    transition-delay: var(--ph-delay, 0s);
}
.ph-js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ph-js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .ph-stamp__ring { animation: none; }
    .ph-body *, .ph-body *::before, .ph-body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- 24. Print ---------- */
@media print {
    .ph-header, .ph-fab, .ph-dock, .ph-mobile-menu { display: none !important; }
    .ph-js [data-reveal] { opacity: 1; transform: none; }
}
