/* "Don't Hire Us!" page. Lines and tints follow the text colour, so the page works in dark and light mode. */
.ca-dhu { --ca-red: var(--clb-color-primary, #d90a2c); --ca-line: color-mix(in srgb, currentColor 14%, transparent); --ca-tint: color-mix(in srgb, currentColor 5%, transparent); --ca-ease: cubic-bezier(.2, .7, .2, 1); position: relative; overflow-x: clip; }
.ca-dhu-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ca-red); }
.ca-dhu-title { margin: 0; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.1; }

/* Shown as each part comes into view; without the script (or with reduced motion) everything is simply there. */
.ca-dhu.-ca-ready [data-ca-reveal]:not(.ca-mark) { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ca-ease) var(--ca-delay, 0ms), transform .8s var(--ca-ease) var(--ca-delay, 0ms); }
.ca-dhu.-ca-ready [data-ca-reveal].is-in:not(.ca-mark) { opacity: 1; transform: none; }

/* 1. Banner: the crest on dark wood, full screen, with the page fading in below. */
.ca-dhu-hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: max(100svh, 640px); padding: 0 16px clamp(120px, 16vh, 180px); overflow: hidden; color: #fff; isolation: isolate; }
.ca-dhu-hero-bg { position: absolute; inset: -6% 0; z-index: -1; background: #1b1512 var(--ca-banner) center 45% / cover no-repeat; will-change: transform; }
.ca-dhu-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; z-index: -1; background: linear-gradient(to bottom, transparent, var(--ca-page-bg, #111013)); pointer-events: none; }
@media (max-aspect-ratio: 4/5) { .ca-dhu-hero-bg { background-image: var(--ca-banner-tall); background-position: center 42%; } }

.ca-dhu-ribbon { position: relative; margin: 0 0 28px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.ca-dhu-ribbon span { position: relative; display: block; padding: 14px 40px; background: var(--ca-red); font-size: clamp(15px, 1.5vw, 20px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; }
/* Ribbon tails, folded behind. */
.ca-dhu-ribbon::before, .ca-dhu-ribbon::after { content: ""; position: absolute; top: 12px; bottom: -12px; width: 44px; z-index: -1; background: color-mix(in srgb, var(--ca-red) 70%, #000); }
.ca-dhu-ribbon::before { left: -30px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 30% 50%); }
.ca-dhu-ribbon::after { right: -30px; clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%); }
@media (max-width: 600px) { .ca-dhu-ribbon span { padding: 12px 22px; white-space: normal; text-align: center; letter-spacing: .1em; } }

/* The site's link underline is a background fill; it would paint this button white. */
.ca-dhu a.ca-dhu-cue { background-image: none !important; }
.ca-dhu-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .8; transition: opacity .2s; }
.ca-dhu-cue:hover { opacity: 1; }
.ca-dhu-cue svg { animation: ca-dhu-nudge 1.8s ease-in-out infinite; }
@keyframes ca-dhu-nudge { 50% { transform: translateY(6px); } }

/* 2. Counter tiles over the banner's bottom edge. */
.ca-dhu-counters { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: calc(clamp(64px, 9vh, 100px) * -1); }
.ca-dhu-counter { display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 40px); background: #1a191d; color: #fff; }
.ca-dhu-counter:first-child { border-radius: var(--clb-border-radius, 8px) 0 0 var(--clb-border-radius, 8px); }
.ca-dhu-counter:last-child { border-radius: 0 var(--clb-border-radius, 8px) var(--clb-border-radius, 8px) 0; }
.ca-dhu-counter.-accent { background: var(--ca-red); }
.ca-dhu-counter-num { font-size: clamp(34px, 3.6vw, 56px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ca-dhu-counter-label { font-size: 14px; opacity: .8; }
@media (max-width: 900px) {
	.ca-dhu-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ca-dhu-counter:first-child { border-radius: var(--clb-border-radius, 8px) 0 0 0; }
	.ca-dhu-counter:nth-child(2) { border-radius: 0 var(--clb-border-radius, 8px) 0 0; }
	.ca-dhu-counter:nth-child(3) { border-radius: 0 0 0 var(--clb-border-radius, 8px); }
}

/* 3. Intro, with a red marker stroke drawn under the key phrases. */
.ca-dhu-intro { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.ca-dhu-intro-head { position: sticky; top: 140px; align-self: start; }
.ca-dhu-intro-body p { margin: 0 0 18px; font-size: 17px; line-height: 1.65; opacity: .82; }
.ca-dhu-intro-body .ca-dhu-lead { font-size: clamp(22px, 2vw, 30px); line-height: 1.35; font-weight: 600; opacity: 1; margin-bottom: 28px; }
.ca-dhu-intro-body .ca-dhu-punch { margin: 32px 0 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; opacity: 1; }
.ca-mark { color: inherit; background: linear-gradient(color-mix(in srgb, var(--ca-red) 55%, transparent), color-mix(in srgb, var(--ca-red) 55%, transparent)) 0 88% / 0% 34% no-repeat; padding: 0 2px; transition: background-size 1s var(--ca-ease) .2s; }
.ca-mark.is-in, .ca-dhu:not(.-ca-ready) .ca-mark { background-size: 100% 34%; }
@media (max-width: 900px) { .ca-dhu-intro { grid-template-columns: minmax(0, 1fr); } .ca-dhu-intro-head { position: static; } }

/* 4. The rules: cards that turn over to show what we do instead. */
.ca-dhu-rules { padding-bottom: clamp(80px, 12vh, 140px); }
.ca-dhu-rules-head { max-width: 760px; margin-bottom: clamp(32px, 5vh, 56px); }
.ca-dhu-hint { margin: 14px 0 0; opacity: .65; }
.ca-dhu-rule-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.ca-dhu-rule-list > li { margin: 0; padding: 0; list-style: none; }
.ca-dhu-rule-list > li::before { content: none; }
.ca-dhu-rule { position: relative; display: grid; width: 100%; height: 100%; min-height: 240px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; perspective: 1400px; }
.ca-dhu-rule-face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--ca-line); border-radius: var(--clb-border-radius, 8px); background: var(--ca-tint); backface-visibility: hidden; transition: transform .7s var(--ca-ease), border-color .3s, background .3s; }
.ca-dhu-rule-face.-back { transform: rotateY(180deg); background: var(--ca-red); border-color: var(--ca-red); color: #fff; }
.ca-dhu-rule.is-turned .-front { transform: rotateY(-180deg); }
.ca-dhu-rule.is-turned .-back { transform: rotateY(0); }
@media (hover: hover) {
	.ca-dhu-rule:hover .-front { transform: rotateY(-180deg); }
	.ca-dhu-rule:hover .-back { transform: rotateY(0); }
}
.ca-dhu-rule:focus-visible { outline: 2px solid var(--ca-red); outline-offset: 4px; border-radius: var(--clb-border-radius, 8px); }
.ca-dhu-rule-num { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ca-red); }
.ca-dhu-rule-face.-back .ca-dhu-rule-num { color: #fff; opacity: .8; }
.ca-dhu-rule-text { font-size: 17px; line-height: 1.5; }
.ca-dhu-rule-face.-back .ca-dhu-rule-text { font-size: 19px; font-weight: 600; line-height: 1.4; }
.ca-dhu-rule-turn { margin-top: auto; font-size: 13px; opacity: .55; }
@media (max-width: 1024px) { .ca-dhu-rule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ca-dhu-rule-list { grid-template-columns: minmax(0, 1fr); gap: 14px; } .ca-dhu-rule { min-height: 0; } .ca-dhu-rule-face { padding: 22px; } }

/* 5. "Still here? Good. You passed." */
.ca-dhu-passed { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 80px); padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); border-top: 1px solid var(--ca-line); }
.ca-dhu-stamp { width: clamp(150px, 16vw, 220px); height: auto; color: var(--ca-red); }
/* Only the ring of words turns; the tick stays upright. */
.ca-dhu-stamp-ring { transform-origin: 100px 100px; animation: ca-dhu-turn 40s linear infinite; }
.ca-dhu-stamp text { font-size: 15px; font-weight: 700; letter-spacing: .08em; fill: currentColor; }
@keyframes ca-dhu-turn { to { transform: rotate(360deg); } }
.ca-dhu-giant { margin: 0; font-size: clamp(48px, 8.5vw, 140px); line-height: .95; letter-spacing: -.02em; }
.ca-dhu-passed-sub { margin: 20px 0 0; font-size: clamp(17px, 1.4vw, 20px); opacity: .75; }
@media (max-width: 700px) { .ca-dhu-passed { grid-template-columns: minmax(0, 1fr); } .ca-dhu-stamp { width: 140px; } }


/* Ohio turns page containers into flex rows on phones; these sections keep their own grids. */
.ca-dhu :is(.ca-dhu-counters, .ca-dhu-intro, .ca-dhu-passed).page-container { display: grid; }
@media (max-width: 600px) {
	.ca-dhu-counter { padding: 20px; }
	.ca-dhu-counter-num { font-size: 30px; }
	.ca-dhu-counter-label { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.ca-dhu-cue svg, .ca-dhu-stamp-ring { animation: none; }
	.ca-dhu-rule-face { transition: none; }
}
