:root {
  --pd-ink: #101415;
  --pd-ink-soft: #22292a;
  --pd-paper: #f4f1e8;
  --pd-white: #fff;
  --pd-lime: #c7ff4a;
  --pd-coral: #ff6b57;
  --pd-muted: #667070;
  --pd-line: rgba(16, 20, 21, .16);
  --pd-radius: 1.25rem;
  --pd-shadow: 0 18px 60px rgba(16, 20, 21, .08);
  --pd-wrap: min(1240px, calc(100% - 40px));
  --pd-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pd-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--pd-ink); background: var(--pd-paper); font-family: var(--pd-font); font-size: 1rem; line-height: 1.65; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .75em; font-weight: 650; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(3.6rem, 8.2vw, 8.6rem); }
h2 { font-size: clamp(2.5rem, 5.5vw, 5.7rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
p { margin: 0 0 1.35em; }
.wrap { width: var(--pd-wrap); margin-inline: auto; }
.content-shell { padding-block: clamp(4rem, 9vw, 8rem); }
.content-narrow { max-width: 900px; }
.section { padding-block: clamp(5rem, 10vw, 10rem); }
.section-heading { display: grid; grid-template-columns: minmax(140px, .42fr) 1.58fr; gap: 2rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-heading h2 { max-width: 1000px; }
.eyebrow { font-family: var(--pd-mono); font-size: .75rem; font-weight: 700; letter-spacing: .12em; line-height: 1.3; text-transform: uppercase; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; padding: .75rem 1rem; clip: auto; color: var(--pd-ink); background: var(--pd-lime); }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid transparent; background: rgba(244, 241, 232, .9); backdrop-filter: blur(16px); transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--pd-line); box-shadow: 0 8px 26px rgba(16, 20, 21, .05); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { font-size: 1.55rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.wordmark span { color: #619400; }
.wordmark-light span { color: var(--pd-lime); }
.custom-logo { width: auto; max-height: 52px; }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul, .site-footer ul { display: flex; align-items: center; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.primary-nav a { font-size: .92rem; font-weight: 650; text-decoration: none; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 1px solid var(--pd-line); border-radius: 999px; background: transparent; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; margin-block: 5px; background: var(--pd-ink); }

.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: .85rem 1.4rem; border: 1px solid var(--pd-ink); border-radius: 999px; color: var(--pd-paper); background: var(--pd-ink); font-size: .9rem; font-weight: 750; text-decoration: none; transition: transform .2s, background-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); color: var(--pd-ink); background: var(--pd-lime); }
.button-small { min-height: 44px; padding: .6rem 1rem; }
.button-ghost { color: var(--pd-ink); background: transparent; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { display: inline-flex; gap: .35rem; font-size: .9rem; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero { position: relative; min-height: calc(100svh - 82px); overflow: hidden; border-bottom: 1px solid var(--pd-line); }
.hero::before { position: absolute; inset: auto -10% -40% 35%; height: 85%; border-radius: 50%; background: radial-gradient(circle, rgba(199,255,74,.48), rgba(199,255,74,0) 67%); content: ""; pointer-events: none; }
.hero-grid { display: grid; min-height: calc(100svh - 82px); grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; padding-block: 4rem; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 960px; margin-block: .2em .28em; }
.hero-copy h1 em { display: block; color: transparent; font-style: normal; -webkit-text-stroke: 2px var(--pd-ink); }
.hero-copy > p { max-width: 700px; color: #3a4243; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.build-trail { position: relative; width: min(100%, 620px); justify-self: end; }
.build-trail svg { width: 100%; overflow: visible; }
.trail-path { fill: none; stroke: var(--pd-ink); stroke-width: 3; stroke-dasharray: 10 8; animation: trail-move 22s linear infinite; }
.trail-node rect, .trail-node circle { fill: var(--pd-paper); stroke: var(--pd-ink); stroke-width: 3; }
.trail-node path { fill: none; stroke: var(--pd-ink); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.node-check circle { fill: var(--pd-lime); }
.trail-label { position: absolute; padding: .45rem .7rem; border: 1px solid var(--pd-ink); border-radius: 999px; background: var(--pd-paper); font-family: var(--pd-mono); font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.label-one { top: 7%; left: 4%; }.label-two { top: 31%; right: 3%; }.label-three { bottom: 19%; left: 24%; }.label-four { right: 0; bottom: 7%; }
@keyframes trail-move { to { stroke-dashoffset: -360; } }

.proof-strip { color: var(--pd-paper); background: var(--pd-ink); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { display: flex; min-height: 140px; flex-direction: column; justify-content: center; padding: 2rem; border-inline-end: 1px solid rgba(255,255,255,.14); }
.proof-grid div:first-child { border-inline-start: 1px solid rgba(255,255,255,.14); }
.proof-grid strong { color: var(--pd-lime); font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.06em; line-height: 1; }
.proof-grid span { margin-top: .5rem; color: rgba(255,255,255,.65); font-size: .8rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--pd-line); border-left: 1px solid var(--pd-line); }
.service-card { position: relative; min-height: 330px; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); transition: color .25s, background-color .25s; }
.service-card:hover { color: var(--pd-paper); background: var(--pd-ink); }
.service-index { display: block; margin-bottom: 4rem; font-family: var(--pd-mono); font-size: .72rem; }
.service-card h3 a { text-decoration: none; }
.service-card p { color: var(--pd-muted); }
.service-card:hover p { color: rgba(255,255,255,.65); }

.section-dark { color: var(--pd-paper); background: var(--pd-ink); }
.section-dark .eyebrow { color: var(--pd-lime); }
.work-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
.work-card:first-child { grid-row: span 2; }
.work-card a { display: block; height: 100%; overflow: hidden; border-radius: var(--pd-radius); color: var(--pd-ink); background: var(--pd-paper); text-decoration: none; }
.work-media { min-height: 280px; overflow: hidden; background: linear-gradient(145deg, #3a4445, #202627); }
.work-card:first-child .work-media { min-height: 520px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.work-card:hover img { transform: scale(1.025); }
.work-content { padding: 1.5rem; }
.work-content h3 { margin-bottom: .4rem; }
.work-content p { margin: 0; color: var(--pd-muted); }
.empty-state { padding: 4rem; border: 1px solid rgba(255,255,255,.18); border-radius: var(--pd-radius); }

.process-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; border-top: 1px solid var(--pd-line); border-left: 1px solid var(--pd-line); list-style: none; }
.process-list li { min-height: 230px; padding: 2rem; border-right: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.process-list li > span { display: block; margin-bottom: 3.5rem; font-family: var(--pd-mono); font-size: .7rem; }
.process-list strong { display: block; font-size: 1.35rem; }
.process-list p { margin: .5rem 0 0; color: var(--pd-muted); }
.reviews-section { background: #e8e4d9; }
.final-cta { padding-block: clamp(6rem, 13vw, 13rem); color: var(--pd-paper); background: var(--pd-coral); text-align: center; }
.final-cta h2 { max-width: 950px; margin: .2em auto .5em; }

.breadcrumbs { display: flex; gap: .6rem; padding-top: 1.5rem; color: var(--pd-muted); font-size: .8rem; }
.archive-header { max-width: 900px; margin-bottom: 4rem; }
.archive-header h1, .entry-header h1 { font-size: clamp(2.8rem, 6vw, 6rem); }
.archive-description, .entry-meta { color: var(--pd-muted); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.content-card { overflow: hidden; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: rgba(255,255,255,.25); }
.card-media { display: block; min-height: 270px; overflow: hidden; background: #d9d4c8; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { display: block; min-height: 270px; background: linear-gradient(135deg, var(--pd-lime), var(--pd-coral)); }
.card-body { padding: 1.7rem; }
.card-body h2 { margin-block: .6rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.card-body h2 a { text-decoration: none; }
.entry-header { margin-bottom: 3rem; }
.entry-hero { margin: 0 0 3rem; }
.entry-hero img { border-radius: var(--pd-radius); }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1240px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.3em; font-size: clamp(2rem, 4vw, 3.6rem); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { font-weight: 650; }
.entry-content ul, .entry-content ol { max-width: 760px; margin: 0 auto 1.5rem; padding-left: 1.3rem; }
.entry-content li { margin-bottom: .55rem; }
.entry-content .pendevs-lede { color: var(--pd-muted); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.entry-content .wp-element-button { display: inline-flex; min-height: 50px; align-items: center; padding: .75rem 1.2rem; border-radius: 999px; color: var(--pd-paper); background: var(--pd-ink); text-decoration: none; }
.entry-content .wp-element-button:hover { color: var(--pd-ink); background: var(--pd-lime); }
.detail-hero { padding-block:clamp(5rem,10vw,10rem); border-bottom:1px solid var(--pd-line); }
.detail-hero .wrap > p { max-width:760px; color:var(--pd-muted); font-size:clamp(1.05rem,1.7vw,1.35rem); }
.detail-hero h1 { max-width:1100px; margin-block:.25em; }
.detail-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:clamp(2rem,7vw,8rem); padding-block:clamp(4rem,9vw,9rem); }
.detail-layout aside { display:flex; align-self:start; flex-direction:column; gap:1.4rem; position:sticky; top:120px; }
.detail-layout aside span { display:block; color:var(--pd-muted); font-family:var(--pd-mono); font-size:.67rem; text-transform:uppercase; }
.case-result,.package-price { display:inline-block; margin-top:1rem; padding:.6rem .85rem; border:1px solid var(--pd-ink); border-radius:999px; font-family:var(--pd-mono); font-weight:700; }
.case-image { margin-top:-3rem; position:relative; }
.case-image img { width:100%; max-height:780px; border-radius:var(--pd-radius); object-fit:cover; }
.package-price { display:block; width:max-content; margin-bottom:1.5rem; font-size:1.4rem; }
.package-price small { font-size:.75rem; }
.error-page { min-height: 70svh; padding-block: 10vh; text-align: center; }
.error-page h1 { max-width: 900px; margin: .2em auto; }

.site-footer { padding-top: 5rem; color: rgba(255,255,255,.72); background: var(--pd-ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 3rem; padding-bottom: 5rem; }
.site-footer .wordmark { display: inline-block; margin-bottom: 1rem; color: var(--pd-paper); }
.site-footer ul { align-items: flex-start; flex-direction: column; gap: .55rem; }
.site-footer a { color: var(--pd-paper); text-decoration: none; }
.footer-cta a { display: inline-block; font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 650; letter-spacing: -.04em; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); font-family: var(--pd-mono); font-size: .68rem; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .header-inner { min-height: 70px; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 70px 0 0; display: none; align-items: stretch; flex-direction: column; padding: 2rem 20px; background: var(--pd-paper); }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { align-items: flex-start; flex-direction: column; font-size: 1.5rem; }
  .primary-nav .button { width: 100%; margin-top: auto; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 5rem 2rem; }
  .build-trail { max-width: 560px; justify-self: center; }
  .service-grid, .process-list { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:first-child { grid-row: auto; }
  .work-card:first-child .work-media { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns:1fr; }
  .detail-layout aside { position:static; }
}

@media (max-width: 640px) {
  :root { --pd-wrap: min(100% - 28px, 1240px); }
  h1 { font-size: clamp(3.25rem, 15vw, 5.3rem); }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .build-trail { margin-top: -1.5rem; }
  .proof-grid, .service-grid, .process-list, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof-grid div { min-height: 115px; border-inline-start: 1px solid rgba(255,255,255,.14); }
  .service-card { min-height: 260px; }
  .service-index { margin-bottom: 2.5rem; }
  .button-row .button { width: 100%; }
  .work-card:first-child .work-media, .work-media { min-height: 260px; }
  .footer-cta { grid-column: auto; }
  .footer-bottom { gap: 1rem; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
