/* Prestige Remodel — shared component styles
 * ------------------------------------------------------------------
 * prestige-tokens.css defines the VALUES. This file defines the PARTS
 * built from them. One class, one place to change it, every page.
 *
 * Load order matters: tokens first, then this file.
 *   <link rel="stylesheet" href="prestige-tokens.css" />
 *   <link rel="stylesheet" href="prestige-components.css" />
 *
 * Scope rule: anything that appears on two or more pages belongs here.
 * One-off layout (a specific grid, a section's padding) stays inline on
 * the element — putting it here would make the file a dumping ground.
 * ------------------------------------------------------------------ */

/* ── Page baseline ──────────────────────────────────────────── */
.pr-page *,
.pr-page *::before,
.pr-page *::after { box-sizing: border-box; }

/*
 * The baseline transition.
 *
 * `.pr-cta` is included by NAME as well as by tag: the service tiles render
 * their CTA as a <span> (the whole tile is the link, so the CTA cannot be a
 * nested <a>), and a span matched none of the tag selectors — those CTAs had
 * transition-duration: 0s and snapped on hover while every other CTA faded.
 *
 * -webkit-text-decoration-color is listed alongside the standard property
 * because Safari still exposes the underline colour under the prefix, and
 * animates it only when the prefixed name is in the transition list. Without
 * it the colour change is instant in Safari and smooth everywhere else.
 */
.pr-page a,
.pr-page button,
.pr-page input,
.pr-page select,
.pr-page textarea,
.pr-page .pr-cta,
.pr-page .pr-btn {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease,
              opacity .22s ease, text-decoration-color .22s ease,
              -webkit-text-decoration-color .22s ease,
              box-shadow .3s ease, transform .3s ease;
}

.pr-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pr-on-dark :focus-visible { outline-color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  .pr-page * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Call to action ─────────────────────────────────────────── */
/* The brand's only native button: Quattrocento 700, 1px underline, 7px
 * offset. text-decoration follows currentColor so the light variant needs
 * no second decoration declaration, and a wrapped CTA rules every line. */
.pr-cta {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: var(--cta);
  line-height: 30px;
  color: var(--ink);
  /* The design sets CTAs in caps. That is a TYPOGRAPHIC decision, so it lives
     here — the field stores "Call to action" in normal case and an editor never
     has to type in caps or guess. Changing this rule restyles every CTA at once;
     shouting stored in the database cannot be undone without re-entering it. */
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  text-decoration-color: currentColor;
}
.pr-cta:hover { color: var(--muted); text-decoration-color: var(--accent); }
.pr-cta--block { display: block; width: 100%; max-width: var(--rule-max); }
.pr-cta--light { color: var(--paper); }
.pr-cta--light:hover { color: var(--paper); opacity: .7; text-decoration-color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────── */
/* An extension, not an extraction — the Figma file has no filled buttons.
 * 52px keeps the hit area over the 44px minimum. */
.pr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: var(--cta);
  /* Caps come from CSS, not the stored label — see .pr-cta above. */
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}
.pr-btn:hover { background: var(--muted); border-color: var(--muted); color: var(--paper); }
.pr-btn--lg { min-height: 56px; padding: 0 38px; letter-spacing: .04em; }

.pr-btn--outline { color: var(--ink); background: transparent; }
.pr-btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.pr-on-dark .pr-btn { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.pr-on-dark .pr-btn:hover { background: var(--surface); border-color: var(--surface); color: var(--ink); }
.pr-on-dark .pr-btn--outline { color: var(--paper); background: transparent; border-color: var(--paper); }
.pr-on-dark .pr-btn--outline:hover { background: var(--paper); color: var(--ink); }

.pr-btn[disabled],
.pr-on-dark .pr-btn[disabled] {
  color: var(--muted);
  background: #f2f2f0;
  border-color: var(--surface);
  cursor: not-allowed;
}

/* ── Form controls ──────────────────────────────────────────── */
.pr-field-row { display: flex; flex-direction: column; gap: 9px; }

.pr-label {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.pr-required { color: var(--accent-ink); }

.pr-field {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--muted);
  border-radius: 0;
}
/*
 * A <select> carrying .pr-field — the gallery room filter and the blog category
 * dropdown — gets the same treatment as the Gravity Forms selects.
 *
 * Without appearance: none the browser keeps its NATIVE control, so these were
 * showing a system arrow while the GF selects beside them showed the design's
 * chevron. Turning the native control off means supplying the arrow, so it is
 * the same inline SVG, in --ink (%23000000; change this if that token changes).
 */
select.pr-field {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

select.pr-field[multiple] {
  background-image: none;
  padding-right: 16px;
}

.pr-field:focus { border-color: var(--ink); }
.pr-field[aria-invalid="true"] { border-color: var(--accent); }
.pr-field[disabled] { color: var(--muted); background: #f2f2f0; border-color: var(--surface); }

textarea.pr-field {
  height: auto;
  padding: 14px 16px;
  line-height: var(--leading-body);
  resize: vertical;
}

/* Error text uses --accent-ink, not --accent: the Figma red is a rule
 * colour and only measures 4.19:1 as body copy on its own tint. */
.pr-field-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--accent-ink);
}

.pr-choice {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  cursor: pointer;
  font-size: var(--body);
  line-height: var(--leading-body);
}
.pr-choice--start { align-items: flex-start; font-size: 15px; line-height: 24px; color: var(--muted); }
.pr-choice input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: #000; cursor: pointer; }
.pr-choice--start input { margin-top: 2px; }

/* ── Interior page banner ───────────────────────────────────── */
/* Photo under a 0.62 flat wash. Measured: white text 6.19:1 at that wash
 * over the project photography, so banner copy is --paper, never --surface
 * (which lands at 4.39:1 and fails AA at 18px). */
.pr-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(420px, 31.25vw, 600px);
  background-color: var(--ink);
}
.pr-banner__wash { flex: 1 1 auto; min-height: clamp(30px, 4vw, 70px); }
/* Centred at every width, not only at tablet and below (BugHerd #155, #161). */
.pr-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 0 var(--gutter-page) clamp(44px, 4.4vw, 84px);
}
.pr-banner__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-xl);
  line-height: 1;
  color: var(--paper);
  text-transform: uppercase;
}
.pr-banner__lede {
  max-width: 720px;
  font-size: var(--body);
  line-height: var(--leading-body);
  color: var(--paper);
  text-wrap: pretty;
}

.pr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pr-crumbs a,
.pr-crumbs span { font-size: var(--body); line-height: 26px; color: var(--paper); }
.pr-crumbs a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, .45);
}
.pr-crumbs a:hover { color: var(--paper); text-decoration-color: var(--paper); }

/* ── Section heading lockup ─────────────────────────────────── */
/* Light sans eyebrow tucked against a display word. The negative margin is
 * the Figma metric: 60px centre-to-centre between the two lines. */
.pr-lockup { display: flex; flex-direction: column; align-items: flex-start; }
/*
 * The eyebrow sits directly above a display title, and the two read as one
 * lockup, so the space between them is set here rather than left to whatever
 * container they happen to sit in.
 *
 * margin-bottom alone is not enough: the homepage portfolio copy is a flex
 * column with row-gap: 20px, and FLEX GAP IGNORES MARGINS — the measured gap
 * there moved by 1px when this was the only change. The negative margin handles
 * the non-flex case; the rule below kills the gap for the flex one.
 */
.pr-lockup__eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--subhead);
  line-height: 1;
  color: var(--ink);
  margin-bottom: -0.18em;
}
.pr-lockup__title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  /* No negative top margin. The pull used to live here, in the TITLE's em, so
     it changed with the title size and the gap drifted between sections. The
     eyebrow now owns it — see .pr-lockup__eyebrow above. */
  margin: 0;
}

/* ── Photo card ─────────────────────────────────────────────── */
.pr-photocard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: clamp(22px, 2vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-peek);
}
.pr-photocard__shot {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.pr-photocard__scrim { position: absolute; inset: 0; background: var(--scrim-card); }
.pr-photocard__body { position: relative; display: flex; flex-direction: column; gap: 9px; }
.pr-photocard:hover { box-shadow: var(--shadow-feature); transform: translateY(-5px); }
.pr-photocard:hover .pr-photocard__shot,
.pr-photocard:focus-visible .pr-photocard__shot { transform: scale(1.05); }

/* ── Hover lift ─────────────────────────────────────────────── */
/* For cards that are not photo cards — bordered panels, feature rows. */
.pr-lift:hover { box-shadow: var(--shadow-feature); transform: translateY(-5px); }
.pr-lift:hover [data-shot], .pr-lift:focus-visible [data-shot] { transform: scale(1.05); }
[data-shot] { transition: transform .55s cubic-bezier(.22, .61, .36, 1); }

/* ── Surface card ───────────────────────────────────────────── */
.pr-surface {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: clamp(28px, 3vw, 54px) clamp(24px, 2.6vw, 48px);
}

/* ── Prose / WYSIWYG ────────────────────────────────────────── */
/* The base styling for editor-authored content. Everything inside .pr-prose
 * is styled by TAG, because that is all a WYSIWYG emits — no classes to hook.
 * Vertical rhythm is one rule (> * + *) rather than per-element margins, so
 * any order of blocks the editor produces spaces correctly. Add nothing here
 * that the editor cannot output. */
.pr-prose {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-body);
  color: var(--ink);
}
.pr-prose > * + * { margin-top: clamp(22px, 2vw, 34px); }
.pr-prose > *:first-child { margin-top: 0; }

.pr-prose p { font-size: var(--body); line-height: var(--leading-body); text-wrap: pretty; }

/* Opening paragraph. The one prose element that needs a class — editors
 * expose it as a "Lead" block style.
 *
 * Scoped through .pr-prose so it OUT-SCORES `.pr-prose p` (0-1-1). Written as
 * a bare `.pr-prose__lead` (0-1-0) it lost to that rule and the lead silently
 * rendered at body size — 18px instead of the 24px the style guide documents.
 * Both source pages show the un-applied version. */
.pr-prose p.pr-prose__lead,
.pr-prose .pr-prose__lead,
.pr-prose p.is-style-lead,
.pr-prose .is-style-lead {
  font-family: var(--font-display);
  font-size: var(--quote);
  line-height: var(--leading-quote);
  text-wrap: pretty;
}

.pr-prose h2,
.pr-prose h3,
.pr-prose h4 { font-family: var(--font-display); font-weight: 400; text-wrap: pretty; scroll-margin-top: 24px; }
.pr-prose h2 { font-size: clamp(28px, 2.4vw, 44px); line-height: 1.1; }
.pr-prose h3 { font-size: clamp(23px, 1.8vw, 32px); line-height: 1.14; }
.pr-prose h4 {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: var(--cta);
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Headings open a new idea, so they get more air above than a sibling
 * paragraph does — but never when they lead the article. */
.pr-prose > h2 + *,
.pr-prose > h3 + * { margin-top: clamp(14px, 1.2vw, 20px); }
.pr-prose > * + h2,
.pr-prose > * + h3 { margin-top: clamp(34px, 3.2vw, 56px); }

.pr-prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(0, 0, 0, .35);
}
.pr-prose a:hover { color: inherit; text-decoration-color: var(--accent); }

.pr-prose strong { font-weight: 600; }
.pr-prose em { font-style: italic; }

.pr-prose ul,
/* The browser's default 1em block margin on lists is reset here; the reference
 * pages did it in their own helmet (`ol,ul{margin:0}`), so without this a list
 * carries an extra 18px below it and the `> * + *` rhythm double-counts. */
.pr-prose ul,
.pr-prose ol { margin-right: 0; margin-bottom: 0; margin-left: 0; }
.pr-prose ol { padding-left: 1.45em; }
.pr-prose ul { list-style: disc; }
.pr-prose ol { list-style: decimal; }
.pr-prose li { font-size: var(--body); line-height: var(--leading-body); text-wrap: pretty; }
.pr-prose li + li { margin-top: 14px; }
.pr-prose li::marker { color: var(--muted); }
.pr-prose li > ul,
.pr-prose li > ol { margin-top: 14px; }

.pr-prose blockquote {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  border-left: 3px solid var(--ink);
  padding: 6px 0 6px clamp(20px, 2vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 30px);
  line-height: 1.34;
  text-wrap: pretty;
}
/* A WYSIWYG always wraps blockquote text in <p>; the reference writes it bare.
 * Without this the inner paragraph picks up `.pr-prose p` and the quote renders
 * at body size instead of the display treatment above. */
.pr-prose blockquote > p {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
.pr-prose blockquote > p + p { margin-top: 14px; }

.pr-prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font-cta);
  font-weight: 700;
  font-style: normal;
  font-size: 15px;
  /* Not inherited from the blockquote's 1.34 display leading — at 15px that
     gives a 30px line where the reference sets ~20px. */
  line-height: 1.34;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pr-prose figure { margin-right: 0; margin-bottom: 0; margin-left: 0; }
/* Figure media is cropped to 16/9, the reference's ratio for in-article
 * images. Without it a portrait or square upload renders at its own
 * proportions and towers over the column — the reference's 695px-tall figure
 * came out 1232px tall from a square source image.
 *
 * object-fit does the cropping, so the subject stays centred rather than
 * squashed. An editor who needs the whole frame can add the "Full height"
 * block style below. */
.pr-prose figure > img,
.pr-prose figure > [role="img"],
.pr-prose figure > a > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
}

/* An image outside a <figure> keeps its own proportions: it is usually a
 * logo, diagram or screenshot, where cropping would destroy the content. */
.pr-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Opt out of the crop for a figure whose whole frame matters. */
.pr-prose figure.is-style-full-height > img,
.pr-prose figure.is-style-full-height > [role="img"] {
  aspect-ratio: auto;
  object-fit: contain;
}
.pr-prose figcaption {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
}

.pr-prose hr {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, .14);
  margin-top: clamp(34px, 3.2vw, 56px);
}
.pr-prose > hr + * { margin-top: clamp(34px, 3.2vw, 56px); }

.pr-prose figure:first-child,
.pr-prose blockquote:first-child { margin-top: 0; }

/*
 * Tables scroll rather than push the page wide.
 *
 * `width: 100%` does not stop a table growing: the cells cannot shrink below
 * their content, so a few columns of real text force the table past the
 * viewport — measured at 700px inside a 375px screen. Whatever clips it then
 * decides whether the PAGE scrolls sideways, which is not something a prose
 * table should get to decide.
 *
 * display: block + overflow-x makes the table its own scroll area, so a wide
 * one scrolls inside the column and the page does not.
 */
.pr-prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--body);
  /* Momentum scrolling on touch, and a hint that the area is scrollable. */
  -webkit-overflow-scrolling: touch;
}
.pr-prose th,
.pr-prose td { padding: 13px 16px 13px 0; border-bottom: 1px solid rgba(0, 0, 0, .12); text-align: left; vertical-align: top; }
.pr-prose th {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pr-prose code,
.pr-prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.pr-prose code { padding: 2px 6px; background: var(--surface); }
.pr-prose pre { padding: clamp(16px, 1.6vw, 26px); background: var(--surface); overflow-x: auto; }
.pr-prose pre code { padding: 0; background: none; }

/* On dark grounds the editor output inverts wholesale. */
.pr-on-dark .pr-prose { color: var(--paper); }
.pr-on-dark .pr-prose blockquote { border-left-color: var(--paper); }
.pr-on-dark .pr-prose figcaption,
.pr-on-dark .pr-prose li::marker { color: var(--surface); }
.pr-on-dark .pr-prose a { text-decoration-color: rgba(255, 255, 255, .45); }
.pr-on-dark .pr-prose th,
.pr-on-dark .pr-prose td { border-bottom-color: var(--hairline); }
.pr-on-dark .pr-prose hr { background: var(--hairline); }
.pr-on-dark .pr-prose code,
.pr-on-dark .pr-prose pre { background: rgba(255, 255, 255, .1); }

/* The announcement bar's message.
 *
 * A one-line variant of the prose contract, not a second one: the bar is an
 * editor WYSIWYG like any other region, so it must keep tag-based styling. It
 * only compresses the rhythm — a bar is one sentence, and the default 22-34px
 * paragraph gap would open it to the height of a section.
 *
 * Type is set a step down from --body, and the floor of the clamp is the
 * smallest size still comfortable on a phone. Chrome, not copy. */
.pr-prose--announce {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.45;
}
.pr-prose--announce > * + * { margin-top: 6px; }
.pr-prose--announce p { font-size: inherit; line-height: inherit; }

/* Link colour and the underline on a dark ground come from .pr-on-dark, which
   the bar carries — not redeclared here. Only the underline offset is tightened
   to suit the smaller type. */
.pr-prose--announce a { text-underline-offset: 4px; }

/* Prose furniture that cannot fit a single-line bar. An editor pasting a
   heading or a list should get a sentence, not a broken bar. */
.pr-prose--announce h2,
.pr-prose--announce h3,
.pr-prose--announce h4 {
  font-family: var(--font-body);
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
}

/* ── Text primitives ────────────────────────────────────────── */
/* Body copy, section titles and the eyebrow+display heading pair appear on
 * every page. They were inline on the homepage until the primitives moved
 * here; nothing outside this block should declare the values again. */
.pr-body {
  font-size: var(--body);
  line-height: var(--leading-body);
  color: var(--ink);
  text-wrap: pretty;
}
.pr-body--muted { color: var(--muted); }
.pr-on-dark .pr-body { color: var(--paper); }

/* Section title — the 64px display cut used for SERVICE AREA, GET IN TOUCH,
 * TESTIMONIALS and every interior section head. */
.pr-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-md);
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
}
.pr-on-dark .pr-title { color: var(--paper); }

/* Child-page headings in title case (BugHerd #100): the home service tiles'
 * treatment — Unna at 48, no capitals — for section titles below the banner.
 * The words are title-cased by prestige_title_case() in the template, so this
 * only has to switch the capitals off and set the size. Intro titles take the
 * 64 cut, headings inside a card the card-title cut. The extra `body` keeps it
 * above each page's own heading rule, which it replaces. */
body.pr-page .pr-tc {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-sm);
  line-height: 1.1;
  text-transform: none;
  letter-spacing: normal;
  text-wrap: balance; /* no one-word last line (BugHerd #103) */
}
body.pr-page .pr-tc.pr-tc--lead { font-size: var(--display-md); line-height: 1.05; }
body.pr-page .pr-tc.pr-tc--card { font-size: var(--card-title); line-height: 1.15; }
/* The eyebrow over one of these headings shrinks with it, back to the home
 * page's eyebrow-to-title ratio (BugHerd #121): at --subhead it was nearly the
 * size of a 48 title. */
body.pr-page .pr-lockup__eyebrow:has(+ .pr-tc) { font-size: var(--eyebrow-sm); margin-bottom: 0.2em; }

/* Heading pair: light sans word beside a display word, centred on it.
 * FEATURED SERVICES, IN THE NEWS. */
/* The small word sits on the middle of the display word's height, not its
 * baseline (BugHerd #87). */
.pr-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.pr-duo__light {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--eyebrow);
  line-height: 1.1;
  color: var(--ink);
  text-transform: uppercase;
}
.pr-duo__display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--display-lg);
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}

/* Date / category line above a card or post title. */
.pr-meta {
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pr-on-dark .pr-meta { color: var(--surface); }

/* Left-aligned section head: eyebrow tight above a display line. */
.pr-sectionhead { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

/* ── Filter chip ────────────────────────────────────────────── */
/* Blog archive and gallery both filter with the same control. aria-pressed
 * carries the state, so no active class is needed. */
.pr-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--surface);
  border-radius: 0;
  cursor: pointer;
}
.pr-chip:hover { color: var(--ink); border-color: var(--ink); }
.pr-chip[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.pr-chip[aria-pressed="true"]:hover { color: var(--paper); }

/* ── Scroll reveal ──────────────────────────────────────────── */
/* site.js adds .is-revealed to [data-reveal] as it enters the viewport.
 * Hidden only where scripting runs and motion is welcome, so the content is
 * never invisible with JS off or under prefers-reduced-motion. Stagger a row
 * with --pr-reveal-delay (a step count, 110ms each), set from the ROW INDEX.
 * Moved here from service.css when the About page started using it. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .pr-page [data-reveal] {
    transition:
      opacity .8s ease,
      transform .8s cubic-bezier(.22, .61, .36, 1);
    transition-delay: calc(var(--pr-reveal-delay, 0) * 110ms);
  }
  .pr-page [data-reveal]:not(.is-revealed) {
    opacity: 0;
    transform: translateY(28px);
  }
}

/* ── Accent rule ────────────────────────────────────────────── */
/* The design's red is a RULE colour — used here as one, never for words.
 * Sits under a lockup (Service intro, About intro). */
.pr-rule {
  display: block;
  width: clamp(56px, 4.2vw, 80px);
  height: 2px;
  margin-top: clamp(24px, 2.2vw, 42px);
  background: var(--accent);
}
@media (max-width: 991px) {
  .pr-rule { margin-left: auto; margin-right: auto; }
}

/* ── Numbered photo tiles ───────────────────────────────────── */
/* The home Featured Services tiles (wash, scrim, zoom, 1px grid) with an
 * outlined numeral, as on the Service mosaic. The page sets the
 * column count on .pr-tiles; the numeral is the ROW INDEX, never a field.
 * The tile is an <a> when it links and a <div> when it does not — hover
 * zoom and the label underline work for both. */
.pr-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 1px 0 0;
  background: var(--hairline);
}
.pr-tiles > li { background: var(--ink); }

.pr-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  padding: clamp(22px, 1.88vw, 36px);
  color: var(--paper);
  text-decoration: none;
}
.pr-tile__photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}
.pr-tile__wash {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, var(--wash-tile));
  background-image: var(--scrim-tile);
  transition: background-color .45s ease;
}
.pr-tile__num,
.pr-tile__foot { position: relative; z-index: 1; }

/* Outlined numerals in the display face. */
.pr-tile__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 5vw, 96px);
  line-height: 0.9;
  color: var(--paper);
  opacity: 0.9;
}
@supports (-webkit-text-stroke: 1px black) {
  .pr-tile__num {
    color: transparent;
    -webkit-text-stroke: 1px var(--paper);
  }
}
.pr-tile__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  /* Pinned to the foot whether or not a numeral sits above it. */
  margin-top: auto;
}
/* The label's red underline draws in on hover — the CTA hover colour. */
.pr-tile__label {
  font-family: var(--font-display);
  font-size: var(--card-title);
  line-height: 1.1;
  color: var(--paper);
  text-wrap: balance;
  padding-bottom: 6px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px;
  transition: background-size .5s cubic-bezier(.22, .61, .36, 1);
}
.pr-tile:hover .pr-tile__photo,
.pr-tile:focus-visible .pr-tile__photo { transform: scale(1.06); }
.pr-tile:hover .pr-tile__wash,
.pr-tile:focus-visible .pr-tile__wash { background-color: rgba(0, 0, 0, var(--wash-tile-hover)); }
.pr-tile:hover .pr-tile__label,
.pr-tile:focus-visible .pr-tile__label { background-size: 100% 2px; }

/* ── Responsive rules shared by every page ──────────────────── */
/* Titles and copy centre at tablet and below — the project's standing rule. */
@media (max-width: 991px) {
  .pr-centre-md { text-align: center !important; align-items: center !important; }
  .pr-centre-md .pr-cta--block { margin-left: auto; margin-right: auto; }
  .pr-crumbs { justify-content: center; }
  .pr-lockup { align-items: center; text-align: center; }
  .pr-sectionhead { align-items: center; text-align: center; }
}

/* ==========================================================================
   Gravity Forms.

   SCOPE: .gform_wrapper — Gravity Forms' own wrapper, so a form is styled
   wherever it is embedded. This block used to be scoped to a [data-c-gf]
   attribute that only page-templates/contact.php set, which meant a form
   placed on any other page rendered completely unstyled.

   WHAT THIS FILE DOES AND DOES NOT DO

   It styles FIELDS. It does not lay them out.

   Gravity Forms ships its own layout system: the .gform_wrapper.gravity-theme
   stylesheet builds the column grid from each field's own span setting, which
   an editor controls per field in the form editor. This block used to replace
   all of it with its own 12-column grid, its own flex rows for the composite
   fields and its own width spans. Two layout systems on the same markup is
   why the alignment came out wrong in places, and it also meant the spans an
   editor chose in the form editor did nothing.

   So: colour, type, border, spacing INSIDE a control — ours. Grid, columns,
   field order, the sub-input rows in Name/Address/Time — GF's. If a field is
   in the wrong place, fix it in the form editor, not here.

   Values come from prestige-tokens.css.
   ========================================================================== */

/* Labels take the design's label treatment. */
.gform_wrapper.gravity-theme .gfield_label,
.gform_wrapper.gravity-theme legend.gfield_label {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* The required marker is decorative — GF already marks the input with
 * aria-required. GF ships it italic in its own orange; the design has one red
 * that is safe to set words in and no italics in form furniture.
 * The doubled .gravity-theme out-scores GF's identical selector, which loads
 * after this file and otherwise wins with its orange. */
.gform_wrapper.gravity-theme.gravity-theme .gfield_required,
.gform_wrapper.gravity-theme.gravity-theme .gfield_required .gfield_required_text,
.gform_wrapper.gravity-theme.gravity-theme .gfield_required .gfield_required_custom,
.gform_wrapper.gravity-theme.gravity-theme .gfield_required .gfield_required_asterisk {
  color: var(--accent-ink);
  /* GF sets these italic at three classes deep; match it or it stays italic. */
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
}

/* GF wraps a label's text in its own span, which inherits nothing from the
   label when GF sets a family on it. */
.gform_wrapper.gravity-theme .gfield_label .gform-field-label__text {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

/*
 * Controls. These deliberately mirror `.pr-field` in this same file, which is
 * the design's own form control and what the .dc.html source uses — same
 * border, same radius, same 52px floor. Gravity Forms emits its own markup and
 * cannot carry that class, so the values are restated here rather than shared;
 * if .pr-field changes, change these to match.
 *
 * The border was var(--hairline) — rgba(255,255,255,.18). That token is for
 * DARK surfaces (everywhere else it is used sits under .pr-on-dark), so on a
 * white page it painted a white border on a white field: every control was
 * styled correctly and completely invisible, with nothing obviously wrong.
 * --muted is what .pr-field uses.
 */
.gform_wrapper.gravity-theme input[type="text"],
.gform_wrapper.gravity-theme input[type="email"],
.gform_wrapper.gravity-theme input[type="tel"],
.gform_wrapper.gravity-theme input[type="url"],
.gform_wrapper.gravity-theme input[type="number"],
.gform_wrapper.gravity-theme input[type="password"],
.gform_wrapper.gravity-theme input[type="date"],
.gform_wrapper.gravity-theme input[type="time"],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--muted);
  /* .pr-field is square; --radius-sm here made GF fields the only rounded
     controls on the site. */
  border-radius: 0;
  transition: border-color .2s ease, background-color .2s ease;
}

.gform_wrapper.gravity-theme textarea {
  min-height: 150px;
  resize: vertical;
}

/*
 * Selects, made to look the same in every browser.
 *
 * Without `appearance: none` Safari keeps its NATIVE control: rounded corners,
 * its own inset shading and its own arrow, ignoring the border and radius set
 * above. Chrome honours more of the author styling, so the two browsers drew
 * visibly different fields from identical CSS.
 *
 * Turning the native control off means supplying the arrow, so it is drawn as
 * an inline SVG background — the chevron from the blog pagination, in --ink,
 * with the glyph colour baked into the data URI because background-image
 * cannot read currentColor.
 *
 * padding-right clears the arrow so a long option label cannot run under it.
 */
.gform_wrapper.gravity-theme select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

/* A multiple-select is a list box, not a dropdown: no arrow, and the native
   scrolling behaviour is the right one. */
.gform_wrapper.gravity-theme select[multiple] {
  background-image: none;
  padding-right: 16px;
}

/* Narrow sub-inputs — the hour/minute boxes and the date parts — are sized by
 * GF to fit two or four characters. Our 16px side padding is tuned for a
 * full-width control and eats that space, clipping the "HH" placeholder. Give
 * them back the room rather than setting a width, which would be layout. */
.gform_wrapper.gravity-theme .gfield_time_hour input,
.gform_wrapper.gravity-theme .gfield_time_minute input,
.gform_wrapper.gravity-theme .ginput_container_date input[maxlength="2"],
.gform_wrapper.gravity-theme .ginput_container_date input[maxlength="4"] {
  padding-right: 8px;
  padding-left: 8px;
  text-align: center;
}

/* The AM/PM and Month / Day / Year selects are sized the same way, and a
   select also has to leave room for its own dropdown arrow. */
.gform_wrapper.gravity-theme .gfield_time_ampm select,
.gform_wrapper.gravity-theme .ginput_container_date select {
  padding-right: 4px;
  padding-left: 8px;
}

/* A multi-select sizes to its rows, so 52px is a MINIMUM here and not a
   height — setting height would clip the options. */
.gform_wrapper.gravity-theme select[multiple] {
  height: auto;
  padding: 8px;
}

/*
 * The arrow's clearance, restated AFTER the rules above.
 *
 * `select[multiple] { padding: 8px }` and the date/time overrides are padding
 * SHORTHANDS, so each one resets padding-right — including the 44px the custom
 * arrow needs. Declared earlier, that clearance measured 8px on the live page
 * and a long option label would have run under the chevron. :not([multiple])
 * keeps the list box out of it, since it has no arrow.
 */
.gform_wrapper.gravity-theme select:not([multiple]) {
  padding-right: 44px;
}

/*
 * The button row.
 *
 * GF leaves the footer as display: block with the buttons inline, so they sit
 * on the text BASELINE — and "Save and Continue Later" carries an icon, which
 * shifts its baseline against "Next". Measured 3px out. A flex row with
 * align-items: center lines them up regardless of what is inside them.
 *
 * The 8px bottom margin GF gives each button becomes the row gap instead, so
 * buttons that wrap onto a second line are spaced the same as ones beside
 * each other.
 */
.gform_wrapper.gravity-theme .gform_footer,
.gform_wrapper.gravity-theme .gform_page_footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gform_wrapper.gravity-theme .gform_footer > *,
.gform_wrapper.gravity-theme .gform_page_footer > * {
  margin-bottom: 0;
}

/*
 * Once the form is one column, centre everything.
 *
 * 641px, not 576: GF drops its own grid to a single column at 640px, so
 * centring below that matches the width where the two-column layout actually
 * stops rather than a breakpoint of our own that would disagree with it.
 */
@media (max-width: 640px) {
  .gform_wrapper.gravity-theme .gfield_label,
  .gform_wrapper.gravity-theme .gform_footer,
  .gform_wrapper.gravity-theme .gform_page_footer {
    text-align: center;
    justify-content: center;
  }

  .gform_wrapper.gravity-theme .gfield {
    text-align: center;
  }

  /* The controls themselves stay left-aligned INSIDE their box — centred text
     in a text input is hard to read and looks broken while typing. It is the
     fields' placement in the column that is being centred, not their content. */
  .gform_wrapper.gravity-theme input,
  .gform_wrapper.gravity-theme select,
  .gform_wrapper.gravity-theme textarea {
    text-align: left;
  }

}

/*
 * Choice groups are NEVER centred, at any width.
 *
 * A centred choice row puts each box at a different x — the boxes stagger with
 * the label lengths ("First Choice" against "Second Choice") instead of forming
 * a column. Measured at 808px: 170, 158, 167.
 *
 * Outside a media query because the centring reaching them is not the form's
 * own: [data-i="page"] centres its whole subtree below 991px (theme.css), and
 * that cascades through the wrapper into the fields. Scoping this to the form's
 * breakpoint would leave the 641–991px band wrong, which is exactly the range
 * the report came from.
 *
 * text-align alone is enough here: the groups are full-width block boxes, so
 * left-aligning their text puts every box on the same left edge. They do not
 * need display: inline-block, which an earlier version had and which made the
 * group shrink-wrap and re-centre as a unit.
 */
.gform_wrapper.gravity-theme .gfield_checkbox,
.gform_wrapper.gravity-theme .gfield_radio,
.gform_wrapper.gravity-theme .gchoice,
.gform_wrapper.gravity-theme .ginput_container_consent {
  text-align: left;
}

.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme select:focus,
.gform_wrapper.gravity-theme textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.gform_wrapper.gravity-theme input[disabled],
.gform_wrapper.gravity-theme select[disabled],
.gform_wrapper.gravity-theme textarea[disabled] {
  color: var(--muted);
  background: #f2f2f0;
  border-color: var(--surface);
}

/* Placeholders must be visibly lighter than a real value, or an empty field
   reads as filled. --muted is the lightest text that still passes. */
.gform_wrapper.gravity-theme ::placeholder { color: var(--muted); opacity: 1; }

/* The file input's own button is a separate control inside the field. */
.gform_wrapper.gravity-theme input[type="file"] {
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--ink);
}
.gform_wrapper.gravity-theme input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 18px;
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}
.gform_wrapper.gravity-theme input[type="file"]::file-selector-button:hover {
  background: var(--muted);
  border-color: var(--muted);
}

/* Checkboxes and radios: the .pr-choice treatment. GF places these; we only
   size the box and set the label type. */
.gform_wrapper.gravity-theme .gfield_checkbox input,
.gform_wrapper.gravity-theme .gfield_radio input,
.gform_wrapper.gravity-theme .gchoice input,
.gform_wrapper.gravity-theme .ginput_container_consent input {
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
}

/* The consent box beside its sentence, the sentence wrapping as its own block:
   a grid gives the label a box of its own so text-wrap can balance it, and no
   single word drops to the last line (BugHerd #135). The hidden inputs GF puts
   after the label take no cell. */
.gform_wrapper.gravity-theme .ginput_container_consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.gform_wrapper.gravity-theme .ginput_container_consent input[type="hidden"] { display: none; }
/* Centre the box on the label's FIRST LINE.
   align-items: start aligns the two boxes' TOP edges, which reads as the box
   sitting high, because the text's cap height starts below its line box. The
   fix is a nudge of half the difference between the line box and the control:
   (line-height - box height) / 2. The old flat 4px was measured against one
   wording and left it 5.4px low (BugHerd #150); deriving it means it holds if
   the copy or the type changes. GF sets the consent label to 16px/1.2. */
.gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"] {
  --pr-consent-line: calc(16px * 1.2);
  margin: calc((var(--pr-consent-line) - 22px) / 2) 0 0;
}
.gform_wrapper.gravity-theme label.gfield_consent_label { display: block !important; text-wrap: balance; }
/* Phones: the consent copy centred, each sentence starting its own line, and
 * the box inline at the start of the first line, so it sits right beside
 * "I agree" however the copy wraps (BugHerd #143; spans from inc/forms.php).
 * A grid or flex box would leave the box at the column's edge, away from
 * shorter centred lines. */
@media (max-width: 767px) {
  .gform_wrapper.gravity-theme .ginput_container_consent {
    display: block;
    text-align: center;
    text-wrap: pretty;
  }
  /* The label's body size and leading on the shared line: Gravity Forms' own
     sheet sets smaller ones with a longer selector, so this is longer still. */
  body .gform_wrapper.gravity-theme .ginput_container_consent,
  body .gform_wrapper.gravity-theme .ginput_container_consent label.gfield_consent_label,
  body .gform_wrapper.gravity-theme .ginput_container_consent .pr-gf-sentence {
    font-size: var(--body);
    line-height: var(--leading-body);
  }
  .gform_wrapper.gravity-theme .ginput_container_consent input[type="checkbox"] {
    display: inline-block;
    vertical-align: -3px;
    margin: 0 10px 0 0;
  }
  .gform_wrapper.gravity-theme label.gfield_consent_label { display: inline !important; }
  .gform_wrapper.gravity-theme .pr-gf-sentence + .pr-gf-sentence::before {
    content: "\A";
    white-space: pre;
  }
}
}

/* A choice label and a sub-label are body copy, not the field's own label —
   left on the .gfield_label rules they would shout a second time inside
   every composite field.

   .gchoice label is written alongside the BEM-ish class because GF styles
   these with .gform_wrapper .gform-field-label (0-2-0) in its own sheet; a
   single class here ties and loses on load order. */
.gform_wrapper.gravity-theme .gchoice label.gform-field-label,
.gform_wrapper.gravity-theme .gfield_checkbox label,
.gform_wrapper.gravity-theme .gfield_radio label,
.gform_wrapper.gravity-theme .gchoice label,
.gform_wrapper.gravity-theme label.gfield_consent_label,
.gform_wrapper.gravity-theme label.gform-field-label--type-inline,
.gform_wrapper.gravity-theme label.gform-field-label--type-sub,
.gform_wrapper.gravity-theme .ginput_complex label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body);
  line-height: var(--leading-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/*
 * Choice labels stay INLINE.
 *
 * Gravity Forms sets .gform-field-label--type-inline to inline-block in its own
 * sheet, which gives each label a block box: a long choice then wraps as a
 * column beside the control instead of flowing under it, and the row's height
 * follows the box rather than the text.
 *
 * !important because GF's rule is .gform_wrapper .gform-field-label--type-inline
 * (0-2-0) in a stylesheet that loads AFTER this one — a selector of equal
 * specificity here ties and loses on order, and out-specifying it would mean a
 * longer selector that the next GF update could still beat.
 */
.gform_wrapper.gravity-theme .gfield_checkbox label,
.gform_wrapper.gravity-theme .gfield_radio label,
.gform_wrapper.gravity-theme .gchoice label {
  display: inline !important;
}

/* Sub-labels under a composite field's inputs are guidance, so they take the
   description colour and size rather than body colour. */
.gform_wrapper.gravity-theme label.gform-field-label--type-sub,
.gform_wrapper.gravity-theme .ginput_complex label {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* The "Other" write-in beside a radio choice is still a control. */
.gform_wrapper.gravity-theme .gchoice_other_control {
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--muted);
  border-radius: 0;
}

/* Section and HTML fields carry no control, so they must not inherit the
   field treatment. A Section is a heading and a rule. */
.gform_wrapper.gravity-theme .gsection {
  border-bottom: 1px solid var(--surface);
}
.gform_wrapper.gravity-theme .gsection .gsection_title,
.gform_wrapper.gravity-theme .gsection .gfield_label {
  font-family: var(--font-display);
  font-size: var(--subhead);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.gform_wrapper.gravity-theme .gsection_description,
.gform_wrapper.gravity-theme .gfield_html {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-body);
  color: var(--ink);
}
.gform_wrapper.gravity-theme .gsection_description { color: var(--muted); }

/* A description is guidance, not an error — it must not read as --accent-ink.
   Scoped so it cannot beat the validation rule that follows it. */
.gform_wrapper.gravity-theme .gfield_description {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}

/* Submit and the page-break buttons — the design's filled button. */
.gform_wrapper.gravity-theme .gform_button,
.gform_wrapper.gravity-theme .gform_next_button,
.gform_wrapper.gravity-theme .gform_previous_button,
.gform_wrapper.gravity-theme input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 38px;
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease;
}

.gform_wrapper.gravity-theme .gform_button:hover,
.gform_wrapper.gravity-theme .gform_next_button:hover,
.gform_wrapper.gravity-theme .gform_previous_button:hover,
.gform_wrapper.gravity-theme input[type="submit"]:hover {
  color: var(--ink);
  background: transparent;
}

/* Previous is the quieter of the pair on a multi-page form. */
.gform_wrapper.gravity-theme .gform_previous_button {
  color: var(--ink);
  background: transparent;
}
.gform_wrapper.gravity-theme .gform_previous_button:hover {
  color: var(--paper);
  background: var(--ink);
}

/* GF's secondary buttons — "Select files" in the multi-file dropzone and
 * "Save and Continue Later" — are separate classes from the submit button and
 * were left at the browser default: a grey chrome button on a page with none.
 * They take the design's outline button, the quieter of the pair. */
.gform_wrapper.gravity-theme .gform-theme-button--secondary,
.gform_wrapper.gravity-theme .gform-theme-button--control,
.gform_wrapper.gravity-theme .gform_button_select_files,
.gform_wrapper.gravity-theme .gform_save_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /*
   * The same box as the filled button above: 52px tall, 14px vertical padding,
   * 16px face. These were 44px/10px/14px, so "Save and Continue Later" sat a
   * visible step below "Next" in the same row. Only the COLOURS make it the
   * quieter of the pair; the size has to match or the row looks broken.
   */
  min-height: 52px;
  padding: 14px 22px;
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease;
}

.gform_wrapper.gravity-theme .gform-theme-button--secondary:hover,
.gform_wrapper.gravity-theme .gform-theme-button--control:hover,
.gform_wrapper.gravity-theme .gform_button_select_files:hover,
.gform_wrapper.gravity-theme .gform_save_link:hover {
  color: var(--paper);
  background: var(--ink);
}

/* The dropzone itself is a field, so it takes the field border rather than
   GF's dashed grey. Dashed stays — it reads as "drop here", not "input". */
.gform_wrapper.gravity-theme .gform_drop_area {
  padding: 28px 20px;
  font-family: var(--font-body);
  font-size: var(--body);
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--muted);
  border-radius: 0;
}

/* The List field's add/remove buttons are GF's own icons — keep them to the
   ink colour rather than restyling the control. */
.gform_wrapper.gravity-theme .gfield_list_icons button,
.gform_wrapper.gravity-theme .add_list_item,
.gform_wrapper.gravity-theme .delete_list_item {
  color: var(--ink);
}

/* Multi-page progress. GF builds the bar; this sets its colour.
 *
 * The bar carries a colour class chosen in the form settings —
 * .percentbar_blue, .percentbar_orange and so on — and those are what GF's own
 * stylesheet targets. A rule on .gf_progressbar_percentage alone loses to them,
 * so the bar stayed GF blue on a site with no blue in it. Matching the colour
 * class here means the brand wins whichever one an editor picks. */
.gform_wrapper.gravity-theme .gf_progressbar_percentage,
.gform_wrapper.gravity-theme .gf_progressbar_percentage[class*="percentbar_"],
.gform_wrapper .gf_progressbar_percentage[class*="percentbar_"] {
  background-color: var(--ink);
}
.gform_wrapper.gravity-theme .gf_progressbar_percentage span {
  color: var(--paper);
  font-family: var(--font-cta);
  font-weight: 700;
}
.gform_wrapper.gravity-theme .gf_progressbar {
  background-color: var(--surface);
}
.gform_wrapper.gravity-theme .gf_progressbar_title {
  font-family: var(--font-cta);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Validation. Error text uses --accent-ink: the Figma red only measures
   4.19:1 as body copy and fails the 4.5:1 floor. */
.gform_wrapper.gravity-theme .gfield_description.validation_message,
.gform_wrapper.gravity-theme .validation_message,
.gform_wrapper.gravity-theme .gfield_validation_message,
.gform_wrapper.gravity-theme .gform_validation_errors,
.gform_wrapper.gravity-theme .gform_submission_error {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--accent-ink);
}

.gform_wrapper.gravity-theme .gform_validation_errors {
  border: 1px solid var(--accent-ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gform_wrapper.gravity-theme .gfield_error input,
.gform_wrapper.gravity-theme .gfield_error select,
.gform_wrapper.gravity-theme .gfield_error textarea {
  border-color: var(--accent-ink);
}

/* Confirmation message after a successful send. */
.gform_confirmation_wrapper .gform_confirmation_message,
.gform_confirmation_message {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: var(--leading-body);
  color: var(--ink);
  padding: 24px 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
}
