/*
 * Additions to rd.css, loaded on the home page (rd-home.php) and the inner pages
 * (rd-shell.php): service icons, the short dark page hero, the /work/ filter chips.
 */
.rd-phero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(64px, 7vw, 104px) 0 clamp(56px, 6vw, 84px); background: var(--rd-ink); color: #fff; }
.rd-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(560px 380px at 85% 0, rgba(220, 38, 38, .26), transparent 70%),
	linear-gradient(var(--rd-line-d) 1px, transparent 1px) 0 0 / 56px 56px,
	linear-gradient(90deg, var(--rd-line-d) 1px, transparent 1px) 0 0 / 56px 56px;
	-webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.rd-phero h1 { max-width: 18ch; margin-top: 20px; font-size: clamp(38px, 5vw, 68px); color: #fff; }
.rd-phero .rd-lead { max-width: 40em; }

.rd-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.rd-filter { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid var(--rd-line); border-radius: 99px; background: #fff; color: var(--rd-text); font: 600 14px/1 var(--rd-body); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.rd-filter span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--rd-paper2); font-size: 12px; }
.rd-filter:hover { border-color: var(--rd-text); }
.rd-filter.is-on { background: var(--rd-ink); border-color: var(--rd-ink); color: #fff; }
.rd-filter.is-on span { background: var(--rd-red); color: #fff; }
.rd-filter:focus-visible { outline: 2px solid var(--rd-red); outline-offset: 2px; }
.rd-work article[hidden] { display: none; }
.rd-work__t { font: 700 19px/1.2 var(--rd-head); letter-spacing: -.01em; }

/* new-hero.css sets overflow-x: hidden on both html and body. With both set,
   body becomes the scroll container, so the sticky top bar never sticks, and
   for a logged-in user (html pushed down 32px by the admin bar) the bar sits a
   further 32px lower, leaving a white band under the admin bar. clip stops the
   sideways scroll the same way without making body a scroll container.
   Browsers without clip ignore it and keep hidden. */
html:has(.nh-page), .nh-page { overflow-x: clip; }

/* Service card icons on the home page. */
.rd-svc__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--rd-red-t); color: var(--rd-red); transition: background .3s, color .3s; }
.rd-svc__ic svg { width: 26px; height: 26px; }
.rd-svc a:hover .rd-svc__ic { background: var(--rd-red); color: #fff; }
/* With the icon on top, the title follows it instead of sinking to the bottom
   (rd.css: min-height 230px + margin-top auto), which left a blank band. */
.rd-svc a { min-height: 0; }
.rd-svc h3 { margin-top: 22px; }

/* Logo on dark grounds: rhythm.css and rd.css lift it with brightness(1.65),
   which turns the grey white but washes the red out to coral. Contrast pushes
   the grey to white and keeps the red a full red; the saturate step brings it
   back to the site red (#DC2626). */
.nh-page .nh-logo img,
.rdf__logo img { filter: contrast(3.7) saturate(.8); }

/* /about/ (rd-about.php). */
.rd-about { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.rd-about__text h2 { margin: 14px 0 26px; max-width: 16ch; font-size: clamp(32px, 3.8vw, 54px); }
.rd-about__text p:not(.rd-eyebrow) { max-width: 38em; margin-bottom: 18px !important; color: var(--rd-mute); font-size: 17px; line-height: 1.7; }
.rd-founder { position: sticky; top: 100px; padding: 32px; border-radius: 22px; background: var(--rd-ink); color: #fff; box-shadow: 0 30px 60px -30px rgba(10, 10, 11, .55); }
.rd-founder__av { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--rd-red); font: 800 26px/1 var(--rd-head); letter-spacing: -.02em; }
.rd-founder h3 { margin-top: 22px; font: 700 26px/1.1 var(--rd-head); letter-spacing: -.02em; color: #fff; }
.rd-founder__role { margin-top: 6px !important; color: var(--rd-mute-d); font-size: 14.5px; }
.rd-founder .rd-ticks { margin: 22px 0 26px !important; padding: 20px 0 0 !important; border-top: 1px solid var(--rd-line-d); }
.rd-founder .rd-ticks li { font-size: 15px; }

.rd-work--own { grid-template-columns: repeat(4, 1fr); }
.rd-steps--yr li::before { content: attr(data-y); counter-increment: none; font-size: 40px; }

.rd-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rd-vals > div { padding: 28px; border: 1px solid var(--rd-line); border-radius: 18px; background: #fff; transition: border-color .3s; }
.rd-vals > div:hover { border-color: var(--rd-red); }
.rd-vals--4 { grid-template-columns: repeat(4, 1fr); }
.rd-vals h3 { margin-top: 22px; font: 700 20px/1.2 var(--rd-head); letter-spacing: -.01em; }
.rd-vals p { margin-top: 8px; color: var(--rd-mute); font-size: 15px; line-height: 1.55; }

.rd-ind:has(.rd-chips) { grid-template-columns: repeat(4, 1fr); }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px !important; }
.rd-chips li { padding: 6px 12px; border-radius: 99px; background: var(--rd-paper2); color: var(--rd-text); font-size: 13.5px; font-weight: 500; }

.rd-visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.rd-visit h2 { margin: 14px 0 18px; font-size: clamp(32px, 3.8vw, 54px); }
.rd-visit > div > p:not(.rd-eyebrow) { max-width: 32em; margin-bottom: 26px !important; color: var(--rd-mute); font-size: 17px; line-height: 1.65; }
.rd-visit .rd-rating { display: inline-flex; }
.rd-visit__card { display: grid; gap: 0; padding: 12px 28px 28px; border: 1px solid var(--rd-line); border-radius: 22px; background: #fff; font-style: normal; }
.rd-visit__card > a:not(.rd-btn), .rd-visit__card > p { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rd-line); }
.rd-visit__card span { color: var(--rd-mute); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rd-visit__card b { font: 600 17px/1.4 var(--rd-body); color: var(--rd-text); overflow-wrap: anywhere; }
.rd-visit__card > a:hover b { color: var(--rd-red); }
.rd-visit__card .rd-btn { justify-self: start; margin-top: 22px; }

@media (max-width: 1100px) {
	.rd-work--own, .rd-vals--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
	.rd-about, .rd-visit { grid-template-columns: 1fr; }
	.rd-founder { position: static; }
	.rd-vals, .rd-ind:has(.rd-chips) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
	.rd-vals, .rd-vals--4, .rd-ind:has(.rd-chips), .rd-work--own { grid-template-columns: 1fr; }
	.rd-founder, .rd-vals > div { padding: 24px; }
	.rd-visit__card { padding: 6px 20px 22px; }
}

/* /contact/ (rd-contact.php). The form is the LDT Contact plugin's markup
   (.contact__form, .field, .ldt-contact-submit); the old theme stylesheet that
   styled it is not loaded in this frame, so it is styled here, honeypot included. */
.rd-contact { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.rd-form { padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--rd-line); border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -36px rgba(20, 20, 30, .3); }
.rd-form h2 { font-size: clamp(28px, 3vw, 40px); }
.rd-form__lead { margin: 10px 0 26px !important; color: var(--rd-mute); }
.rd-form .ldt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rd-form .contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.rd-form .field { display: grid; gap: 8px; }
.rd-form .field:has(select), .rd-form .field:has(textarea), .rd-form .ldt-contact-alert, .rd-form .form-alert, .rd-form .ldt-contact-submit, .rd-form .contact__note { grid-column: 1 / -1; }
.rd-form label { font: 600 14px/1.2 var(--rd-body); color: var(--rd-text); }
.rd-form .req { color: var(--rd-red); }
.rd-form input, .rd-form select, .rd-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--rd-line); border-radius: 12px; background: var(--rd-paper2); color: var(--rd-text); font: 400 16px/1.4 var(--rd-body); transition: border-color .2s, background .2s, box-shadow .2s; }
.rd-form textarea { min-height: 140px; resize: vertical; }
.rd-form input:focus, .rd-form select:focus, .rd-form textarea:focus { outline: none; border-color: var(--rd-red); background: #fff; box-shadow: 0 0 0 4px var(--rd-red-t); }
.rd-form .ldt-contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border: 0; border-radius: 99px; background: var(--rd-red); color: #fff; font: 600 16px/1 var(--rd-body); cursor: pointer; box-shadow: 0 12px 30px -12px rgba(220, 38, 38, .7); transition: background .25s, transform .25s; }
.rd-form .ldt-contact-submit:hover { background: var(--rd-red-d); transform: translateY(-1px); }
.rd-form .ldt-contact-submit:disabled { opacity: .7; cursor: wait; }
.rd-form .ldt-contact-submit svg { width: 18px; height: 18px; }
.rd-form .contact__note { margin: 0 !important; color: var(--rd-mute); font-size: 13.5px; text-align: center; }
.rd-form .form-alert { padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
.rd-form .form-alert--success { background: #ECFDF3; color: #166534; }
.rd-form .form-alert--error { background: var(--rd-red-t); color: var(--rd-red-d); }

.rd-reach { position: sticky; top: 100px; padding: clamp(24px, 3vw, 34px); border-radius: 22px; background: var(--rd-ink); color: #fff; }
.rd-reach h2 { font: 700 22px/1.2 var(--rd-head); letter-spacing: -.01em; color: #fff; }
.rd-reach > ul:first-of-type { list-style: none; margin-top: 18px !important; }
.rd-reach > ul:first-of-type li + li { border-top: 1px solid var(--rd-line-d); }
.rd-reach > ul:first-of-type a { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.rd-reach__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; transition: background .25s; }
.rd-reach__ic svg { width: 21px; height: 21px; }
.rd-reach a:hover .rd-reach__ic { background: var(--rd-red); }
.rd-reach small { display: block; color: var(--rd-mute-d); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rd-reach b { display: block; margin-top: 3px; font: 600 16px/1.35 var(--rd-body); overflow-wrap: anywhere; }
.rd-reach em { display: block; margin-top: 2px; color: var(--rd-mute-d); font-size: 13px; font-style: normal; }
.rd-reach .rd-ticks { margin: 20px 0 0 !important; padding-top: 20px !important; border-top: 1px solid var(--rd-line-d); }
.rd-reach .rd-ticks li { font-size: 14.5px; }
.rd-reach__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 16px; border: 1px solid var(--rd-line-d); border-radius: 14px; font-size: 13px; color: var(--rd-mute-d); }
.rd-reach__rating b { font: 800 22px/1 var(--rd-head); color: #fff; }
.rd-reach__rating:hover { border-color: var(--rd-red); }

.rd-steps--3 { grid-template-columns: repeat(3, 1fr); }

.rd-cfaq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.rd-cfaq h2 { margin: 14px 0 26px; font-size: clamp(32px, 3.8vw, 54px); }
.rd-faq details { border-bottom: 1px solid var(--rd-line); }
.rd-faq summary { position: relative; padding: 22px 44px 22px 0; font: 700 19px/1.3 var(--rd-head); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rd-red-t); color: var(--rd-red); font: 500 20px/1 var(--rd-body); transition: transform .25s; }
.rd-faq details[open] summary::after { content: "\2212"; }
.rd-faq summary:hover { color: var(--rd-red); }
.rd-faq details p { padding: 0 44px 22px 0; color: var(--rd-mute); font-size: 16px; line-height: 1.65; }

@media (max-width: 980px) {
	.rd-contact, .rd-cfaq { grid-template-columns: 1fr; }
	.rd-reach { position: static; }
	.rd-steps--3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
	.rd-form .contact__form { grid-template-columns: 1fr; }
	.rd-faq summary { font-size: 17px; }
}

/* /services/ (rd-services.php). */
.rd-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.rd-jump a { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border: 1px solid var(--rd-line-d); border-radius: 99px; background: rgba(255, 255, 255, .04); color: #fff; font: 500 14.5px/1 var(--rd-body); transition: border-color .2s, background .2s; }
.rd-jump svg { width: 18px; height: 18px; color: var(--rd-red); }
.rd-jump a:hover { border-color: var(--rd-red); background: rgba(220, 38, 38, .14); }
.rd-sec[id] { scroll-margin-top: 84px; }

.rd-srow { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.rd-srow > * { min-width: 0; }
.rd-srow--flip .rd-srow__text { order: 2; }
.rd-srow h2 { margin-top: 20px; font-size: clamp(32px, 3.6vw, 50px); }
.rd-srow__p { margin-top: 14px !important; max-width: 34em; color: var(--rd-mute); font-size: 17px; line-height: 1.65; }
.rd-ticks--light { grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.rd-ticks--light li { color: var(--rd-text); font-size: 15px; }
.rd-srow .rd-acts { align-items: center; gap: 22px; }
.rd-srow__side { display: grid; gap: 22px; }
.rd-srow__proof figcaption { margin-top: 12px; color: var(--rd-mute); font-size: 14px; line-height: 1.5; }
.rd-srow__proof figcaption a { margin-left: 4px; color: var(--rd-text); font-weight: 600; border-bottom: 1.5px solid currentColor; }
.rd-srow__proof figcaption a:hover { color: var(--rd-red); }
.rd-srow__subs { padding: 24px; border: 1px solid var(--rd-line); border-radius: 18px; background: #fff; }
.rd-srow__subs h3 { font: 600 12.5px/1 var(--rd-body); letter-spacing: .12em; text-transform: uppercase; color: var(--rd-mute); }
.rd-chips li:has(a) { padding: 0; }
.rd-chips a { display: block; padding: 7px 13px; border-radius: 99px; transition: background .2s, color .2s; }
.rd-chips a:hover { background: var(--rd-red-t); color: var(--rd-red); }

.rd-sec--dark { background: var(--rd-ink); color: #fff; }
.rd-sec--dark .rd-head h2 { color: #fff; }
.rd-sec--dark .rd-head > p { color: var(--rd-mute-d); }
.rd-sec--dark .rd-steps li { background: var(--rd-ink2); border-color: var(--rd-line-d); }
.rd-sec--dark .rd-steps h3 { color: #fff; }
.rd-sec--dark .rd-steps p { color: var(--rd-mute-d); }

.rd-vals > a { display: block; padding: 28px; border: 1px solid var(--rd-line); border-radius: 18px; background: #fff; color: var(--rd-text); transition: border-color .3s, transform .3s; }
.rd-vals > a:hover { border-color: var(--rd-red); transform: translateY(-3px); }
.rd-vals > a:hover .rd-svc__ic { background: var(--rd-red); color: #fff; }

@media (max-width: 980px) {
	.rd-srow { grid-template-columns: 1fr; }
	.rd-srow--flip .rd-srow__text { order: 0; }
}
@media (max-width: 620px) {
	.rd-ticks--light { grid-template-columns: 1fr; }
	.rd-vals > a { padding: 24px; }
	.rd-jump a { height: 40px; padding: 0 14px; font-size: 13.5px; }
}
