/* =================================================================
   MADRAS DIGITAL FORGE — inner page components (2026 refresh)
   Needs styles.css (tokens, nav, footer) and mdf.css (buttons, heads)
   ================================================================= */

.pg{ background: #fff; }

/* ---------- page hero ---------- */
.pg-hero{
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--mid); color: #fff;
  padding: clamp(150px, 17vh, 190px) 0 clamp(110px, 12vw, 170px);
}
.pg-hero__blob{ position: absolute; z-index: -2; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.pg-hero__blob--a{ width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -18vw; bottom: -38vw; background: radial-gradient(circle, rgba(227,38,47,.75), rgba(255,138,61,.35) 45%, transparent 70%); animation: pgBlobA 18s ease-in-out infinite alternate; }
.pg-hero__blob--b{ width: 55vw; height: 55vw; max-width: 820px; max-height: 820px; left: -20vw; top: -30vw; background: radial-gradient(circle, rgba(28,46,140,.95), rgba(28,46,140,.25) 50%, transparent 70%); animation: pgBlobB 22s ease-in-out infinite alternate; }
@keyframes pgBlobA{ to{ transform: translate(-8vw, -6vw) scale(1.12); } }
@keyframes pgBlobB{ to{ transform: translate(6vw, 5vw) scale(1.08); } }
.pg-hero::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(5,10,36,.6)); pointer-events: none; }

.pg-hero__grid{ position: relative; }
.pg-hero--split .pg-hero__grid{ display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.pg-hero__copy{ max-width: 860px; }
.pg-crumbs ol{ display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 14px; color: var(--txt-d); }
.pg-crumbs li + li::before{ content: "/"; margin-right: 8px; opacity: .45; }
.pg-crumbs a{ color: var(--txt-d); transition: color .2s; }
.pg-crumbs a:hover{ color: #fff; }
.pg-crumbs [aria-current]{ color: #fff; }
.pg-hero .hx-pill{ margin-bottom: 26px; }
.pg-hero__title{
  margin: 0; font-size: clamp(42px, 6vw, 92px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; text-wrap: balance; color: #fff;
}
.pg-hero--split .pg-hero__title{ font-size: clamp(40px, 5vw, 70px); }
.pg-hero__title .line{ background: linear-gradient(180deg, #fff 35%, #C2CAEC 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-hero__lede{ margin: 26px 0 0; max-width: 620px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--txt-d); }
.pg-hero__ctas{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.pg-hero__visual{ perspective: 1400px; }
.pg-hero__visual .hx-win{ transform: rotateY(-8deg) rotateX(4deg); transform-origin: 30% 50%; box-shadow: 0 60px 120px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.06); }
.pg-hero__aside{ align-self: end; }

/* hero aside: jump list */
.pg-jump{ margin: 0; padding: 22px; list-style: none; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pg-jump__title{ font-size: 13px; color: var(--txt-d); margin: 0 0 10px; padding: 0 6px; }
.pg-jump a{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 16px; font-weight: 500; color: #fff; transition: color .2s, padding .35s var(--ease-x); }
.pg-jump li:first-of-type a{ border-top: 0; }
.pg-jump a:hover{ color: var(--sun); padding-left: 14px; }
.pg-jump a svg{ opacity: .5; transition: opacity .2s, transform .35s var(--ease-x); }
.pg-jump a:hover svg{ opacity: 1; transform: translateX(3px); }

/* windows */
.pg-window{ border-radius: 14px; }
.pg-window img{ display: block; width: 100%; height: auto; }
.pg-window__scroll{ aspect-ratio: 16 / 10.5; background-repeat: no-repeat; background-size: 100% auto; background-position: 50% 0; animation: hxShot 24s ease-in-out infinite alternate; }

/* ---------- sections ---------- */
.pg-sec{ position: relative; padding: clamp(88px, 10vw, 150px) 0; background: #fff; color: #0A1030; }
.pg-sec--paper{ background: var(--paper); }
.pg-sec--dark{ background: var(--mid); color: #fff; }
.pg-sec--lift{ margin-top: -48px; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; z-index: 2; }
.pg-sec--tight{ padding-top: clamp(56px, 6vw, 90px); }

/* intro: statement left, copy right */
.pg-intro{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pg-intro__lead{ margin: 0; font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.18; text-wrap: pretty; }
.pg-intro__body p{ margin: 0 0 18px; font-size: 17.5px; line-height: 1.7; color: var(--gray); }
.pg-intro__body p:last-child{ margin-bottom: 0; }

/* capability cards */
.pg-grid{ display: grid; gap: 16px; }
.pg-grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid--4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-card{
  position: relative; isolation: isolate; overflow: hidden;
  padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line-l);
  transition: translate .5s var(--ease-x), box-shadow .5s var(--ease-x), border-color .3s;
}
.pg-sec--paper .pg-card{ background: #fff; }
.pg-card::before{ content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(255,138,61,.14), transparent 45%); }
.pg-card:hover{ translate: 0 -5px; box-shadow: 0 34px 60px -38px rgba(10,16,48,.35); border-color: var(--line-l-2); }
.pg-card:hover::before{ opacity: 1; }
.pg-card__n{ display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-l); color: var(--red); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.pg-card h3{ margin: 26px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.pg-card p{ margin: 0; font-size: 16px; line-height: 1.6; color: var(--gray); }
.pg-card ul{ margin: 20px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-l); display: grid; gap: 9px; }
.pg-card li{ display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #0A1030; }
.pg-card li::before{ content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--grad); }
.pg-sec--dark .pg-card{ background: rgba(255,255,255,.04); border-color: var(--line-d); color: #fff; }
.pg-sec--dark .pg-card p{ color: var(--txt-d); }
.pg-sec--dark .pg-card li{ color: #DCE1F7; }
.pg-sec--dark .pg-card ul{ border-color: var(--line-d); }
.pg-sec--dark .pg-card__n{ background: rgba(255,255,255,.06); border-color: var(--line-d); color: var(--sun); }
.pg-sec--dark .pg-card:hover{ border-color: rgba(255,255,255,.22); box-shadow: 0 34px 60px -38px rgba(0,0,0,.8); }

/* tools / platform logos */
.pg-logos{ display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.pg-logo{ display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line-l); transition: translate .4s var(--ease-x), box-shadow .4s, border-color .3s; }
.pg-logo img{ max-width: 100%; max-height: 46px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.pg-logo:hover{ translate: 0 -4px; border-color: var(--line-l-2); box-shadow: 0 24px 40px -30px rgba(10,16,48,.35); }
.pg-logo:hover img{ filter: none; opacity: 1; }

/* feature checklist */
.pg-features{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pg-features--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-feature{ display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--paper); font-size: 15.5px; line-height: 1.45; color: #0A1030; }
.pg-sec--paper .pg-feature{ background: #fff; }
.pg-feature__ic{ flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; margin-top: -1px; }
.pg-sec--dark .pg-feature{ background: rgba(255,255,255,.05); color: #fff; }

/* split: media + copy */
.pg-split{ display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pg-split--rev .pg-split__media{ order: 2; }
.pg-split__copy h2{ margin-top: 16px; }
.pg-split__copy p{ font-size: 17.5px; line-height: 1.7; color: var(--gray); margin: 20px 0 0; }
.pg-sec--dark .pg-split__copy p{ color: var(--txt-d); }
.pg-shot{ border-radius: 16px; }

/* quote / highlight */
.pg-quote{
  position: relative; margin: 0; padding: clamp(32px, 4vw, 56px);
  border-radius: 28px; background: var(--mid); color: #fff; overflow: hidden; isolation: isolate;
}
.pg-quote::before{ content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(227,38,47,.55), rgba(255,138,61,.15) 55%, transparent 75%); filter: blur(30px); }
.pg-quote p{ margin: 0; font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; max-width: 34em; }
.pg-quote cite{ display: block; margin-top: 20px; font-style: normal; font-size: 14px; color: var(--txt-d); }

/* module page: sidebar + content */
.pg-side{ display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pg-side__nav{ position: sticky; top: 110px; padding: 18px; border-radius: 22px; background: var(--paper); }
.pg-side__nav p{ margin: 0 0 8px; padding: 0 10px; font-size: 13px; font-weight: 600; color: var(--gray); }
.pg-side__nav ul{ margin: 0; padding: 0; list-style: none; }
.pg-side__nav a{ display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: #0A1030; transition: background .2s, color .2s; }
.pg-side__nav a::before{ content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-l-2); flex: none; transition: background .2s, transform .3s var(--ease-x); }
.pg-side__nav a:hover{ background: #fff; }
.pg-side__nav a:hover::before{ background: var(--sun); }
.pg-side__nav a[aria-current="page"]{ background: #0A1030; color: #fff; }
.pg-side__nav a[aria-current="page"]::before{ background: var(--sun); transform: scale(1.3); }
.pg-side__main > * + *{ margin-top: clamp(48px, 6vw, 80px); }
.pg-side__main h2{ margin: 14px 0 0; font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.pg-side__main .pg-prose p{ margin: 18px 0 0; font-size: 17.5px; line-height: 1.7; color: var(--gray); }

/* module cards (ERP overview) */
.pg-modcard{
  display: flex; flex-direction: column; padding: 28px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line-l); color: #0A1030;
  transition: translate .5s var(--ease-x), box-shadow .5s var(--ease-x), border-color .3s;
}
.pg-modcard:hover{ translate: 0 -5px; box-shadow: 0 34px 60px -38px rgba(10,16,48,.35); border-color: var(--line-l-2); }
.pg-modcard h3{ margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pg-modcard ul{ margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pg-modcard li{ display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--gray-d); }
.pg-modcard li::before{ content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--grad); }
.pg-modcard__more{ margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.pg-modcard__more svg{ transition: transform .35s var(--ease-x); }
.pg-modcard:hover .pg-modcard__more svg{ transform: translateX(4px); }

/* plans (school ERP) */
.pg-plans{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pg-plan{ position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--line-l); }
.pg-plan--pro{ background: var(--mid); color: #fff; border-color: transparent; overflow: hidden; isolation: isolate; }
.pg-plan--pro::before{ content: ""; position: absolute; inset: -30% -30% auto auto; width: 70%; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgba(227,38,47,.55), transparent 75%); filter: blur(30px); }
.pg-plan__badge{ position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; }
.pg-plan h3{ margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pg-plan__price{ margin: 18px 0 6px; font-size: clamp(40px, 4vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.pg-plan__price small{ font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--gray); }
.pg-plan--pro .pg-plan__price small{ color: var(--txt-d); }
.pg-plan__note{ margin: 0; font-size: 14.5px; color: var(--gray); }
.pg-plan--pro .pg-plan__note{ color: var(--txt-d); }
.pg-plan__group{ margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-l); }
.pg-plan--pro .pg-plan__group{ border-color: var(--line-d); }
.pg-plan__group h4{ margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--red); }
.pg-plan--pro .pg-plan__group h4{ color: var(--sun); }
.pg-plan__group ul{ margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pg-plan__group li{ display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.pg-plan__group li .pg-feature__ic{ width: 20px; height: 20px; }
.pg-plan__group li .pg-feature__ic svg{ width: 11px; height: 11px; }
.pg-plan .hx-btn{ margin-top: 32px; align-self: flex-start; }

/* about: values */
.pg-value{ padding: 34px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line-d); }
.pg-value__ic{ width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(227,38,47,.8); }
.pg-value h3{ margin: 28px 0 10px; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.pg-value p{ margin: 0; font-size: 16px; line-height: 1.6; color: var(--txt-d); }

/* about: timeline */
.pg-timeline{ position: relative; display: grid; gap: 20px; padding-left: 72px; }
.pg-timeline__line{ position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line-l); border-radius: 2px; }
.pg-timeline__line i{ display: block; width: 100%; height: 100%; background: var(--grad); transform-origin: top; transform: scaleY(0); border-radius: 2px; }
.pg-tl{ position: relative; padding: 30px 32px; border-radius: 24px; background: var(--paper); }
.pg-tl__dot{ position: absolute; left: -72px; top: 28px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--line-l-2); font-weight: 600; color: #0A1030; transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.pg-tl.is-on .pg-tl__dot{ background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 8px rgba(255,138,61,.14); }
.pg-tl h3{ margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--red); }
.pg-tl h4{ margin: 0 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.pg-tl p{ margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--gray); max-width: 46em; }
.pg-tl ul{ margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pg-tl li{ padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-l); font-size: 13.5px; color: var(--gray-d); }

/* work grid */
.pg-cases{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pg-case{ display: flex; flex-direction: column; border-radius: 28px; background: var(--paper); overflow: hidden; color: #0A1030; transition: translate .5s var(--ease-x), box-shadow .5s var(--ease-x); }
.pg-case:hover{ translate: 0 -6px; box-shadow: 0 40px 70px -40px rgba(10,16,48,.4); }
.pg-case__media{ padding: 28px 28px 0; }
.pg-case__media .hx-win{ border-radius: 14px 14px 0 0; border-bottom: 0; }
.pg-case__shot{ aspect-ratio: 16 / 11; background-repeat: no-repeat; background-size: 100% auto; background-position: 50% 0; transition: background-position 8s cubic-bezier(.25,.1,.25,1); }
.pg-case:hover .pg-case__shot{ background-position: 50% 100%; }
.pg-case__body{ padding: 28px 32px 32px; }
.pg-case__client{ margin: 0; font-size: 14px; font-weight: 600; color: var(--red); }
.pg-case h3{ margin: 10px 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.pg-case p{ margin: 0; font-size: 16px; line-height: 1.6; color: var(--gray); }
.pg-case__foot{ display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-l-2); }
.pg-case__tags{ display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pg-case__tags li{ padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--gray-d); }
.pg-case__link{ display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.pg-case__link:hover{ color: var(--red); }

/* services overview list */
.pg-svc{
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: start;
  padding: 40px 0; border-top: 1px solid var(--line-l-2); color: #0A1030;
}
.pg-svc:last-child{ border-bottom: 1px solid var(--line-l-2); }
.pg-svc__n{ font-size: 15px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; padding-top: 8px; }
.pg-svc h3{ margin: 0; font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; transition: color .3s; }
.pg-svc p{ margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--gray); }
.pg-svc ul{ margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pg-svc li{ padding: 5px 11px; border-radius: 999px; background: var(--paper); font-size: 13px; color: var(--gray-d); }
.pg-svc__go{ display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-l-2); transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease-x); }
.pg-svc:hover h3{ color: var(--red); }
.pg-svc:hover .pg-svc__go{ background: var(--grad); border-color: transparent; color: #fff; transform: rotate(-45deg); }

/* FAQ */
.pg-faq{ display: grid; gap: 10px; }
.pg-faq details{ border-radius: 18px; background: #fff; border: 1px solid var(--line-l); transition: border-color .3s, box-shadow .3s; }
.pg-faq details[open]{ border-color: var(--line-l-2); box-shadow: 0 24px 40px -32px rgba(10,16,48,.35); }
.pg-faq summary{ display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pg-faq summary::-webkit-details-marker{ display: none; }
.pg-faq summary i{ position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background .3s, transform .4s var(--ease-x); }
.pg-faq summary i::before, .pg-faq summary i::after{ content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #0A1030; transition: transform .4s var(--ease-x), background .3s; }
.pg-faq summary i::after{ transform: rotate(90deg); }
.pg-faq details[open] summary i{ background: var(--grad); transform: rotate(180deg); }
.pg-faq details[open] summary i::before, .pg-faq details[open] summary i::after{ background: #fff; }
.pg-faq details[open] summary i::after{ transform: rotate(0deg); }
.pg-faq details p{ margin: 0; padding: 0 24px 24px; font-size: 16.5px; line-height: 1.65; color: var(--gray); max-width: 50em; }

/* contact cards */
.pg-contact-cards{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pg-ccard{ padding: 28px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid var(--line-d); color: #fff; transition: border-color .3s, background .3s; }
.pg-ccard:hover{ border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.pg-ccard i{ font-size: 22px; color: var(--sun); }
.pg-ccard h3{ margin: 18px 0 6px; font-size: 14px; font-weight: 500; color: var(--txt-d); }
.pg-ccard p, .pg-ccard a{ margin: 0; font-size: 18px; font-weight: 500; line-height: 1.45; color: #fff; }
.pg-ccard a:hover{ color: var(--sun); }

/* solutions: partner logos */
.pg-partners{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pg-partners .pg-logo{ aspect-ratio: 2 / 1; }
.pg-partners .pg-logo img{ max-height: 54px; }

/* related links strip */
.pg-related{ display: flex; flex-wrap: wrap; gap: 10px; }
.pg-related a{ display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-l-2); font-size: 15px; font-weight: 500; color: #0A1030; transition: background .25s, color .25s, border-color .25s; }
.pg-related a:hover{ background: #0A1030; border-color: #0A1030; color: #fff; }

/* CTA band before the footer */
.pg-cta-band{ padding-top: clamp(80px, 9vw, 130px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px){
  .pg-logos{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-grid--4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px){
  .pg-hero--split .pg-hero__grid{ grid-template-columns: 1fr; }
  .pg-hero__visual .hx-win{ transform: none; }
  .pg-intro, .pg-split{ grid-template-columns: 1fr; }
  .pg-split--rev .pg-split__media{ order: 0; }
  .pg-grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-side{ grid-template-columns: 1fr; }
  .pg-side__nav{ position: static; }
  .pg-side__nav ul{ display: flex; flex-wrap: wrap; gap: 4px; }
  .pg-features--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-svc{ grid-template-columns: 60px minmax(0, 1fr) auto; }
  .pg-svc > div:nth-child(3){ grid-column: 2 / 3; }
  .pg-partners{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-contact-cards{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .pg-grid--3, .pg-grid--2, .pg-grid--4, .pg-cases, .pg-plans{ grid-template-columns: 1fr; }
  .pg-features, .pg-features--3{ grid-template-columns: 1fr; }
  .pg-logos, .pg-partners{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-svc{ grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .pg-svc > div:nth-child(3){ grid-column: auto; }
  .pg-svc__go{ display: none; }
  .pg-timeline{ padding-left: 0; }
  .pg-timeline__line, .pg-tl__dot{ display: none; }
  .pg-hero__visual .hx-win__url{ display: none; }
}
@media (prefers-reduced-motion: reduce){
  .pg-hero__blob, .pg-window__scroll{ animation: none; }
  .pg-timeline__line i{ transform: scaleY(1); }
}

/* about: studio photo in the hero */
.pg-photo{ position: relative; margin: 0; perspective: 1400px; }
.pg-photo::before{ content: ""; position: absolute; inset: 10% -6% -8% 8%; z-index: -1; border-radius: 28px; background: radial-gradient(closest-side, rgba(255,138,61,.55), rgba(227,38,47,.35) 50%, transparent 78%); filter: blur(40px); }
.pg-photo img{ display: block; width: 100%; max-width: 520px; height: auto; margin-left: auto; border-radius: 24px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 60px 120px -40px rgba(0,0,0,.85); transform: rotateY(-6deg) rotateX(3deg); }

/* contact: stacked cards in the hero */
.pg-contact-cards--stack{ grid-template-columns: 1fr; gap: 12px; }
.pg-contact-cards--stack .pg-ccard{ display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 20px 22px; }
.pg-contact-cards--stack .pg-ccard i{ grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 20px; }
.pg-contact-cards--stack .pg-ccard h3{ margin: 0 0 2px; }
.pg-contact-cards--stack .pg-ccard p{ font-size: 16.5px; }
@media (max-width: 1023px){ .pg-photo img{ transform: none; margin: 0; } }
.pg-sec--paper .pg-case{ background: #fff; }
.pg-sec--paper .pg-case__tags li{ background: var(--paper); }

/* ---------- blog (WordPress) ---------- */
.pg-posts{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pg-post{ display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--paper); transition: translate .5s var(--ease-x), box-shadow .5s var(--ease-x); }
.pg-post:hover{ translate: 0 -5px; box-shadow: 0 34px 60px -38px rgba(10,16,48,.35); }
.pg-post__media{ display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mid); }
.pg-post__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-x); }
.pg-post:hover .pg-post__media img{ transform: scale(1.04); }
.pg-post__ph{ display: block; width: 100%; height: 100%; background: radial-gradient(ellipse 80% 70% at 80% 110%, rgba(227,38,47,.7), transparent 70%), radial-gradient(ellipse 70% 60% at 0% 0%, rgba(28,46,140,.9), transparent 70%), var(--mid); }
.pg-post__body{ display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.pg-post__meta{ margin: 0; font-size: 13.5px; color: var(--gray); }
.pg-post h3{ margin: 10px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; }
.pg-post h3 a:hover{ color: var(--red); }
.pg-post p{ margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--gray); }
.pg-post__more{ margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.pg-pagination ul{ display: flex; justify-content: center; gap: 8px; margin: 56px 0 0; padding: 0; list-style: none; }
.pg-pagination a, .pg-pagination span{ display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-l-2); font-weight: 600; }
.pg-pagination .current{ background: #0A1030; border-color: #0A1030; color: #fff; }
.pg-pagination a:hover{ border-color: #0A1030; }
.pg-empty{ max-width: 640px; }
.pg-empty p{ font-size: 17px; color: var(--gray); }
.pg-search{ display: flex; gap: 10px; margin-top: 18px; }
.pg-search input{ flex: 1; font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line-l-2); background: #fff; color: #0A1030; }
.pg-hero .pg-search input{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }

.pg-article{ max-width: 820px; }
.pg-article__cover{ margin: 0 0 44px; border-radius: 24px; overflow: hidden; }
.pg-article__cover img{ width: 100%; height: auto; display: block; }
.pg-prose-wp{ font-size: 18px; line-height: 1.75; color: #2A3150; }
.pg-prose-wp > * + *{ margin-top: 1.2em; }
.pg-prose-wp h2{ font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; color: #0A1030; margin-top: 1.8em; }
.pg-prose-wp h3{ font-size: 24px; font-weight: 600; letter-spacing: -0.025em; color: #0A1030; margin-top: 1.6em; }
.pg-prose-wp a{ color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.pg-prose-wp img{ max-width: 100%; height: auto; border-radius: 16px; }
.pg-prose-wp blockquote{ margin-left: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sun); font-size: 21px; color: #0A1030; }
.pg-prose-wp ul, .pg-prose-wp ol{ padding-left: 1.3em; }
.pg-prose-wp ul li{ list-style: disc; }
.pg-prose-wp ol li{ list-style: decimal; }
.pg-prose-wp pre{ padding: 20px; border-radius: 14px; background: var(--mid); color: #E6E9F7; overflow-x: auto; font-size: 15px; }
.pg-prose-wp table{ width: 100%; border-collapse: collapse; font-size: 16px; }
.pg-prose-wp th, .pg-prose-wp td{ padding: 12px; border-bottom: 1px solid var(--line-l); text-align: left; }
.pg-prose-wp .alignwide{ margin-left: -60px; margin-right: -60px; }
.pg-postnav{ display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-l); font-weight: 600; }
.pg-postnav a:hover{ color: var(--red); }
@media (max-width: 1023px){ .pg-posts{ grid-template-columns: repeat(2, minmax(0, 1fr)); } .pg-prose-wp .alignwide{ margin: 0; } }
@media (max-width: 720px){ .pg-posts{ grid-template-columns: 1fr; } }
.pg-comments{ margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-l); }
.pg-comments__title{ font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 20px; }
.pg-comments__list{ list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 16px; }
.pg-comments__list .comment-body{ padding: 20px 24px; border-radius: 18px; background: var(--paper); }
.pg-comments textarea, .pg-comments input[type="text"], .pg-comments input[type="email"], .pg-comments input[type="url"]{ width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-l-2); }
.pg-comments label{ display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
