/* ==========================================================
   Inner pages: careers, contact, security.
   Same tokens, nav, footer and stripe as the landing page.
   Mostly Read mode: left-aligned headings, comfortable measure,
   lists and rules instead of card grids.
   ========================================================== */
.pg { background: var(--bg); }

/* ---------- Page hero: heading left, the brand stripe sweeping in on the right ---------- */
.pg-hero { position: relative; overflow: hidden; padding: 176px 0 64px; }
.pg-hero .ribbon { z-index: 0; }
.pg-hero > .container { position: relative; z-index: 1; }
.pg-hero h1 { max-width: 15ch; font-size: clamp(38px, 4.8vw, 64px); text-wrap: balance; }
.pg-hero .lead { margin-top: 20px; max-width: 52ch; font-size: 18px; text-wrap: pretty; }
.pg-hero .pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- Sections ---------- */
.pg-sec { padding: 56px 0; }
.pg-sec + .pg-sec { padding-top: 24px; }
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.pg-h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.pg-sub { margin: 10px 0 0; color: var(--ink-600); font-size: 15.5px; line-height: 1.55; max-width: 36ch; }

/* a ruled list: term on the left, explanation on the right */
.pg-rules { margin: 0; display: grid; }
.pg-rules > div { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--border-strong); }
.pg-rules > div:last-child { border-bottom: 1px solid var(--border-strong); }
.pg-rules dt { font-weight: 600; color: var(--ink-950); font-size: 16px; }
.pg-rules dd { margin: 0; color: var(--ink-600); font-size: 15.5px; line-height: 1.6; max-width: 62ch; }

/* ---------- Bands: white sections between the page-grey ones ---------- */
.pg-band { padding: 88px 0; background: var(--white); border-block: 1px solid var(--border); }
.pg-band + .pg-sec, .pg-sec + .pg-band { margin-top: 0; }
.pg-link { color: var(--cobalt-600); font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.pg-link:hover { text-decoration-color: currentColor; }

/* ---------- Careers ---------- */
.pg-hero-careers { padding-bottom: 88px; text-align: center; }
.pg-hero-careers .cr-hero-in { display: grid; justify-items: center; }
.pg-hero-careers h1 { max-width: none; font-size: clamp(44px, 6vw, 76px); }
.pg-hero-careers .lead { margin-inline: auto; }
.pg-hero-careers .pg-actions { justify-content: center; }

.cr-roles { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.cr-roles-h p { margin: 14px 0 0; color: var(--ink-600); font-size: 16px; line-height: 1.6; max-width: 44ch; }
.cr-list { border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(16,24,48,.04), 0 16px 40px -28px rgba(16,24,48,.25); padding: 6px; }
.cr-role { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 16px 16px 16px 14px; border-radius: 14px; transition: background-color .15s ease; }
/* divider between roles: a straight hairline inset from the card edges
   (a shadow on a rounded row curled up at both ends) */
.cr-role { position: relative; }
.cr-role + .cr-role::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--border); transition: opacity .15s ease; }
.cr-role:hover::before, .cr-role:hover + .cr-role::before, .cr-role:focus-visible::before, .cr-role:focus-visible + .cr-role::before { opacity: 0; }
.cr-role:hover { background: var(--ink-50); }
.cr-role:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.cr-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--ink-800); background: var(--ink-50); box-shadow: inset 0 0 0 1px var(--ink-150); }
.cr-ic .i { width: 18px; height: 18px; }
.cr-rt b { display: block; font-size: 16.5px; font-weight: 600; color: var(--ink-950); letter-spacing: -0.01em; }
.cr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.cr-tags .pill { height: 22px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.cr-loc { font-size: 14px; color: var(--ink-500); }
.cr-role > .i { color: var(--ink-500); transition: transform .2s ease, color .2s ease; }
.cr-role:hover > .i { transform: translateX(3px); color: var(--ink-950); }
.cr-open { margin: 6px; padding: 28px 24px; border-radius: 14px; background: var(--ink-50); text-align: center; display: grid; justify-items: center; gap: 6px; }
.cr-open b { font-size: 17px; color: var(--ink-950); }
.cr-open p { margin: 0 0 10px; color: var(--ink-600); font-size: 15px; }

.cr-center { display: grid; justify-items: center; text-align: center; }
.cr-center .pg-sub { max-width: 46ch; }
.cr-center-h { text-align: center; margin-bottom: 40px; }
.cr-team { overflow: hidden; padding-bottom: 88px; }
/* tilted portrait strip, like prints laid on a table */
.tm-strip { display: flex; justify-content: center; margin-top: 44px; padding: 10px 24px 30px; }
.tm-ph { position: relative; flex: none; width: 196px; margin: 0 -6px; transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tm-ph img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 5px solid #fff; box-shadow: 0 2px 4px rgba(16,24,48,.06), 0 18px 36px -18px rgba(16,24,48,.35); }
.tm-ph figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--ink-500); line-height: 1.35; }
.tm-ph figcaption b { display: block; font-size: 15px; font-weight: 600; color: var(--ink-950); }
.tm-ph:hover { transform: rotate(0deg) translateY(-6px); z-index: 2; }

.cr-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cr-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(16,24,48,.04); }
.cr-step::before { content: ""; position: absolute; left: 0; top: -22px; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cr-sh { display: flex; align-items: center; gap: 9px; }
.cr-sh .i { width: 18px; height: 18px; color: var(--c); }
.cr-sh b { font-size: 16.5px; color: var(--ink-950); }
.cr-n { margin-left: auto; font-family: "Geist Mono", monospace; font-size: 12px; color: var(--ink-500); }
.cr-step p { margin: 0; color: var(--ink-600); font-size: 15px; line-height: 1.55; }
.cr-step .pill { margin-top: auto; align-self: flex-start; height: 24px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }

.cr-culture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cr-culture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: 0 2px 4px rgba(16,24,48,.06), 0 24px 50px -30px rgba(16,24,48,.4); }
.cr-culture dl { margin: 0; display: grid; }
.cr-culture dl > div { padding: 22px 0; border-top: 1px solid var(--border-strong); }
.cr-culture dl > div:first-child { border-top: 0; padding-top: 0; }
.cr-culture dt { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-950); }
.cr-culture dd { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-600); }

.cr-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cr-perks-h { padding: 4px 12px 0 0; }
.cr-perk, .ct-why-c { padding: 22px; border-radius: var(--r-lg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.cr-pt { display: flex; align-items: center; gap: 10px; }
.cr-pt .i { width: 19px; height: 19px; color: var(--primary); }
.cr-pt b { font-size: 16px; color: var(--ink-950); }
.cr-perk p, .ct-why-c p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-600); }

.cr-faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.cr-qs { border-top: 1px solid var(--border-strong); }
.cr-q { border-bottom: 1px solid var(--border-strong); }
.cr-q summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ink-950); }
.cr-q summary::-webkit-details-marker { display: none; }
.cr-q summary span { position: relative; width: 16px; height: 16px; flex: none; }
.cr-q summary span::before, .cr-q summary span::after { content: ""; position: absolute; left: 1px; right: 1px; top: 7px; height: 2px; border-radius: 2px; background: var(--ink-500); transition: transform .25s ease; }
.cr-q summary span::after { transform: rotate(90deg); }
.cr-q[open] summary span::after { transform: rotate(0deg); }
.cr-q summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.cr-q p { margin: -6px 0 20px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--ink-600); }
.pg-cta { padding-top: 40px; }

/* ---------- Contact ---------- */
.pg-hero-contact { padding-bottom: 72px; }
.ct-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; }
.ct-left h1 { max-width: 12ch; }
.ct-pre { margin: 28px 0 10px; font-size: 14px; color: var(--ink-500); }
.ct-acts { margin-top: 0 !important; }

.ct-quotes { position: relative; margin-top: 32px; padding: 26px 26px 18px; border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(16,24,48,.04), 0 16px 40px -28px rgba(16,24,48,.25); max-width: 480px; }
.ct-q { margin: 0; display: none; }
.ct-q.on { display: block; animation: ctIn .4s ease both; }
@keyframes ctIn { from { transform: translateY(6px); } }   /* visible from frame one: never depends on the animation running */
.ct-q blockquote { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-950); text-wrap: pretty; }
.ct-q figcaption { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.ct-q .av { --s: 38px; box-shadow: none; }
.ct-q b { display: block; font-size: 14.5px; color: var(--ink-950); }
.ct-q small { display: block; font-size: 13px; color: var(--ink-500); }
.ct-mark { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--c); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.ct-mark svg { width: 18px; height: 18px; color: #fff; }
.ct-qnav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.ct-dots { display: flex; gap: 5px; }
.ct-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-200); transition: width .25s ease, background-color .25s ease; }
.ct-dots i.on { width: 18px; background: var(--ink-950); }
.ct-arrows { display: flex; gap: 8px; }
.ct-arrows .tr-btn { width: 36px; height: 36px; border-radius: 10px; }
.ct-arrows .tr-btn svg { width: 16px; height: 16px; }

.ct-card { padding: 30px 32px 28px; border-radius: var(--r-xl); background: var(--white); box-shadow: 0 0 0 1px var(--border), 0 1px 2px rgba(16,24,48,.04), 0 24px 56px -32px rgba(16,24,48,.3); }
.ct-step-l { margin: 0 0 10px; font-family: "Geist Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); }
.ct-prog { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 24px; }
.ct-prog i { height: 3px; border-radius: 3px; background: var(--ink-150); transition: background-color .3s ease; }
.ct-prog i:first-child, .ct-card[data-at="2"] .ct-prog i:last-child, .ct-card[data-at="3"] .ct-prog i { background: var(--primary); }
.ct-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.ct-step[hidden] { display: none; }
.ct-h { padding: 0; margin: 0 0 2px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-950); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-next { width: 100%; --h: 46px; }
.ct-next .i { width: 16px; height: 16px; }
.ct-btns { display: flex; gap: 10px; }
.ct-btns .ct-submit { flex: 1; }
.ct-submit[aria-busy="true"] { pointer-events: none; opacity: .8; }
.ct-fine { margin: -4px 0 0; font-size: 13px; color: var(--ink-500); }
.ct-done { display: grid; gap: 12px; }
.ct-done[hidden] { display: none; }
.ct-done p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-600); }
.topics input[type="checkbox"]:checked + span { background: var(--ink-950); color: #fff; box-shadow: 0 0 0 1px var(--ink-950); }

/* logo strip: the agency marks, ink on white cells */
.ct-logos { padding: 8px 0 32px; }
.ct-logos p { margin: 0 0 14px; text-align: center; font-size: 14px; color: var(--ink-500); }
.ct-logos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.ct-logos li { display: flex; align-items: center; justify-content: center; gap: 10px; height: 76px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--ink-900); }
.ct-logos li + li { box-shadow: -1px 0 0 var(--border); }
.ct-logos i { width: 24px; height: 24px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }   /* the image comes inline, so its path resolves from the page */

.ct-why { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ct-why-c { background: var(--white); }

/* ---------- Security: sticky contents + a readable article ---------- */
.sec-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.sec-toc { position: sticky; top: 112px; display: grid; gap: 2px; }
.sec-toc p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-950); }
.sec-toc a { padding: 6px 10px; margin-left: -10px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--ink-600); transition: background-color .15s, color .15s; }
.sec-toc a:hover { color: var(--ink-950); background: var(--white); }
.sec-toc a.on { color: var(--ink-950); font-weight: 500; background: var(--white); box-shadow: 0 0 0 1px var(--border); }
.sec-toc a:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }
.sec-art { max-width: 70ch; }
.sec-art section { scroll-margin-top: 110px; padding: 8px 0 36px; }
.sec-art section + section { border-top: 1px solid var(--border-strong); padding-top: 36px; }
.sec-art h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.sec-art p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink-700, var(--ink-600)); }
.sec-art ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.sec-art li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-700, var(--ink-600)); }
.sec-art li .i { margin-top: 4px; color: var(--primary); }
.sec-art strong { color: var(--ink-950); font-weight: 600; }
.sec-art code { font-family: "Geist Mono", ui-monospace, monospace; font-size: .9em; padding: 1px 6px; border-radius: 5px; background: var(--ink-100); color: var(--ink-900); }
.sec-art a { color: var(--cobalt-600); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.glance { margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--r-lg); background: var(--white); box-shadow: 0 0 0 1px var(--border), var(--shadow-xs); }
.glance > div { padding: 18px 20px; }
.glance > div + div { border-left: 1px solid var(--border); }
.glance dt { font-size: 13px; color: var(--ink-500); }
.glance dd { margin: 4px 0 0; font-size: 15.5px; font-weight: 600; color: var(--ink-950); }
.sec-report { margin-top: 8px; padding: 24px; border-radius: var(--r-lg); background: var(--ink-950); color: #E9ECF5; }
.sec-report h2 { color: #fff; }
.sec-report p { color: #C9CEDB !important; }
.sec-report a { color: #fff !important; }
.sec-report code { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .pg-split, .sec-layout, .cr-roles, .cr-faq, .ct-top, .cr-culture { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sec-toc { position: static; grid-auto-flow: column; overflow-x: auto; justify-content: start; padding-bottom: 4px; scrollbar-width: none; }
  .sec-toc p { display: none; }
  .sec-toc a { white-space: nowrap; margin-left: 0; }
  .cr-steps, .cr-perks, .ct-why { grid-template-columns: 1fr 1fr; }
  .cr-perks-h { grid-column: 1 / -1; }
  .tm-strip { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-inline: 32px; }
  .ct-logos ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-logos li:nth-child(n+4) { display: none; }
}
@media (max-width: 767px) {
  .pg-hero { padding: 132px 0 40px; }
  .pg-hero .lead { font-size: 16px; }
  .pg-sec { padding: 40px 0; }
  .pg-band { padding: 56px 0; }
  .pg-rules > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cr-steps, .cr-perks, .ct-why, .ct-row { grid-template-columns: minmax(0, 1fr); }
  .tm-ph { width: 150px; }
  .ct-card { padding: 24px 20px; }
  .ct-quotes { padding: 22px 20px 16px; }
  .ct-q blockquote { font-size: 17px; }
  .ct-logos li { font-size: 15px; height: 64px; }
  .ct-logos li span { display: none; }
  .glance { grid-template-columns: 1fr; }
  .glance > div + div { border-left: 0; border-top: 1px solid var(--border); }
}

/* vulnerability card: same inner rhythm as the home page's cards
   (32px sides, 32px top, 28px bottom) and no section rule above it */
.sec-art .sec-report { padding: 32px 36px 28px; border-top: 0; margin-top: 12px; border-radius: var(--r-xl); }
.sec-art .sec-report h2 { margin-bottom: 14px; }
.sec-art .sec-report p:last-child { margin-bottom: 0; }
@media (max-width: 767px) { .sec-art .sec-report { padding: 24px 22px 22px; } }

/* ---------- Form fields (contact) ---------- */
.fld { display: grid; gap: 7px; min-width: 0; }
.fld > label, .fld > legend { font-size: 14px; font-weight: 500; color: var(--ink-900); padding: 0; margin-bottom: 0; }
fieldset.fld { border: 0; margin: 0; padding: 0; }
.fld .opt { font-weight: 400; color: var(--ink-500); }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 0; border-radius: var(--r-md); background-color: var(--white);
  font: inherit; font-size: 15px; color: var(--ink-950);
  box-shadow: 0 0 0 1px var(--ink-200); transition: box-shadow .15s ease;
}
.fld input, .fld select { height: 44px; padding: 0 14px; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%235E667B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.fld textarea { min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-500); }
.fld :is(input, select, textarea):hover { box-shadow: 0 0 0 1px var(--ink-300); }
.fld :is(input, select, textarea):focus { outline: none; box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px var(--cobalt-100); }
.fld [aria-invalid="true"] { box-shadow: 0 0 0 1px #D93042, 0 0 0 4px #FFE4E7; }
.fld .err { margin: 0; font-size: 13px; color: #B4232F; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-700, var(--ink-600)); background: var(--white); box-shadow: 0 0 0 1px var(--ink-200); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.topics span:hover { box-shadow: 0 0 0 1px var(--ink-300); }
.topics input:checked + span { background: var(--ink-950); color: #fff; box-shadow: 0 0 0 1px var(--ink-950); }
.topics input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Phone refinements from the design review ---------- */
@media (max-width: 767px) {
  /* contact: the form comes before the testimonial, so the action isn't buried */
  .ct-left { display: contents; }
  .ct-top > * { order: 2; }
  .ct-left > h1, .ct-left > .lead, .ct-pre, .ct-acts { order: 1; }
  .ct-left > h1 + .lead { margin-top: -16px; }
  .ct-pre { margin: 0 0 -20px; }
  .ct-card { order: 2; }
  .ct-quotes { order: 3; margin-top: 0; max-width: none; }
  /* careers: portraits snap one by one and their captions never overlap */
  .tm-strip { scroll-snap-type: x mandatory; gap: 14px; padding-inline: 16px; }
  .tm-ph { margin: 0; scroll-snap-align: center; }
  .tm-ph:hover { transform: rotate(var(--r)); }
}

.ct-err { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: #FFF1F2; box-shadow: inset 0 0 0 1px #FFD6DB; font-size: 14px; line-height: 1.5; color: #9F1D2A; }
.ct-err[hidden] { display: none; }

/* hero stripe: a fixed-height layer pinned to the top of the hero, so it
   never rescales or shifts when the content under it changes height
   (e.g. a longer testimonial on the contact page) */
.pg-hero .ribbon { inset: 0 0 auto 0; height: 640px; }
@media (max-width: 767px) { .pg-hero .ribbon { height: 520px; } }

/* testimonial card: every quote sits in the same grid cell, so the card
   is always as tall as the longest one and nothing below it jumps */
.ct-quotes { display: grid; grid-template-areas: "q" "nav"; }
.ct-q { grid-area: q; display: block; visibility: hidden; }
.ct-q.on { visibility: visible; }
.ct-qnav { grid-area: nav; }
