.artx-dev-masthead {
  --dev-nav-paper: #f8f4ee;
  --dev-nav-ink: #211d1b;
  --dev-nav-rule: #c9b8af;
  --dev-nav-panel: #f2dfd6;
  --dev-nav-action-edge: #a74431;
}

@media (prefers-color-scheme: dark) {
  .artx-dev-masthead {
    --dev-nav-paper: #211d1b;
    --dev-nav-ink: #f8f4ee;
    --dev-nav-rule: #695b54;
    --dev-nav-panel: #2d2623;
    --dev-nav-action-edge: #e99882;
  }
}

.artx-dev-masthead {
  min-height: 76px;
  padding-inline: max(clamp(20px, 5.4vw, 84px), var(--safe-inline));
  border-color: var(--dev-nav-rule);
  background: var(--dev-nav-paper);
  color: var(--dev-nav-ink);
}

.artx-dev-masthead .home-brand-logo {
  display: block;
  width: 210px;
  height: auto;
}

.artx-dev-masthead .artx-nav { font-weight: 700; }

.artx-dev-masthead :is(.artx-navlink, .artx-burger, .artx-navpay) {
  color: var(--dev-nav-ink);
  background: transparent;
}

.artx-dev-masthead .artx-burger {
  font-weight: 700;
  letter-spacing: .08em;
}

.artx-dev-masthead .artx-navpay {
  border-color: var(--dev-nav-rule);
  font-weight: 650;
}

.artx-dev-masthead :is(.artx-navlink, .artx-burger):hover {
  text-decoration: underline;
  text-underline-offset: .28em;
}

.artx-dev-masthead .artx-navpay:hover {
  background: var(--dev-nav-panel);
}

.artx-dev-masthead :is(a, button):focus-visible {
  outline-color: var(--dev-nav-ink);
  outline-offset: 4px;
}

@media (min-width: 1025px) and (max-width: 1250px) {
  .artx-dev-masthead { flex-wrap: nowrap; gap: 12px; }
  .artx-dev-masthead .home-brand-logo { width: 172px; }
  .artx-dev-masthead .artx-nav {
    flex-wrap: nowrap;
    gap: clamp(10px, 1.3vw, 16px);
  }
  .artx-dev-masthead .artx-navlink { white-space: nowrap; }
  .artx-dev-masthead .artx-navpay { padding-inline: 12px; }
}

@media (min-width: 860px) and (max-width: 1250px) and (max-height: 780px) {
  .artx-dev-masthead {
    min-height: 74px;
    padding-block: calc(12px + var(--safe-top)) 12px;
  }
}

@media (max-width: 700px) {
  .artx-dev-masthead {
    min-height: 68px;
    column-gap: 12px;
    flex-wrap: nowrap;
  }
  .artx-dev-masthead .home-brand-logo { width: min(170px, 55vw); }
}

.artx-dev-masthead .artx-overlay-cta {
  background: #a74431;
  border: 1px solid var(--dev-nav-action-edge);
  color: #f8f4ee;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.artx-dev-masthead .artx-overlay-cta:hover {
  background: #913b2a;
  color: #f8f4ee;
}

/* Isolated concept. Colours follow Artifexa's paper, ink, coral and Growth tokens. */
@layer page {
  .artx-home--clear {
    --home-paper: #f4f1ec;
    --home-ink: #101010;
    --home-meta: #55544f;
    --home-line: #cbc8c2;
    --home-hero-paper: #f4f1ec;
    --home-hero-ink: #101010;
    --home-hero-line: #101010;
    --home-hero-meta: #c1c7ca;
  }
  .artx-home--clear .artx-masthead { border-bottom-color: var(--home-line); }
  .artx-home--clear .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
    gap: clamp(40px, 6vw, 90px);
    padding-block: clamp(44px, 5.1vw, 78px);
    align-items: center;
  }
  .artx-home--clear .hero-copy { min-width: 0; }
  .artx-home--clear .hero-audience { margin-bottom: 24px; }
  .artx-home--clear .hero .eyebrow { font-size: 15px; font-weight: 600; }
  .artx-home--clear .hero .eyebrow::after { display: none; }
  .artx-home--clear .hero h1 {
    font-size: clamp(42px, 4.7vw, 72px);
    line-height: 1.035;
    letter-spacing: -.055em;
    text-wrap: initial;
  }
  .artx-home--clear .hero .hero-lead {
    max-width: 43ch;
    margin-top: 27px;
    font-size: clamp(19px, 1.58vw, 24px);
    line-height: 1.42;
  }
  .artx-home--clear .hero .clear-service-detail {
    max-width: 49ch;
    margin-top: 16px;
    font-size: 17px;
    color: var(--home-meta);
    line-height: 1.5;
  }
  .artx-home--clear .hero-action { margin-top: 30px; }
  .artx-home--clear .hero-action .button { gap: 24px; padding: 16px 22px; }
  .artx-home--clear .hero-action .button span { font-size: 22px; line-height: 1; }
  .artx-home--clear .hero-action p { margin-top: 12px; font-size: 14px; }
  .artx-home--clear .hero-review {
    --review-icon-size: 28px;
    background: var(--coral);
    border: 0;
    padding: clamp(26px, 3vw, 44px);
    color: var(--home-ink);
  }
  .artx-home--clear .home-content .hero-review h2 {
    font-size: clamp(30px, 2.55vw, 39px);
    line-height: 1.04;
    letter-spacing: -.045em;
    font-weight: 650;
  }
  .artx-home--clear .hero-review ul { margin-top: 26px; }
  .artx-home--clear .hero-review ul::before { display: none; }
  .artx-home--clear .hero-review li {
    align-items: start;
    border-top: 1px solid color-mix(in srgb, var(--home-ink) 28%, transparent);
    padding-block: 17px;
    gap: 15px;
    animation: none;
  }
  .artx-home--clear .hero-review li svg { border: 0; padding: 0; background: transparent; margin-top: 2px; }
  .artx-home--clear .hero-review li h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
  .artx-home--clear .hero-review li p { margin-top: 5px; font-size: 15px; line-height: 1.45; font-weight: 400; }
  .artx-home--clear .hero-review .clear-review-foot {
    border-top: 1px solid color-mix(in srgb, var(--home-ink) 28%, transparent);
    padding-top: 18px;
    font-size: 13px;
    line-height: 1.45;
  }
  .artx-home--clear .home-explore { background: color-mix(in srgb, var(--coral) 10%, var(--home-paper)); border-block-color: transparent; }
  .artx-home--clear :is(.clear-price-main, .clear-price-cadence, .clear-plan-days, .clear-plan-term) { display: block; }
  .artx-home--clear .clear-price-main { color: #b63d25; white-space: nowrap; }
  .artx-home--clear .clear-price-amount { font-size: clamp(20px, 2.1vw, 30px); }
  .artx-home--clear :is(.clear-price-cadence, .clear-plan-term) { color: var(--home-meta); font-size: var(--type-note); font-weight: 400; }
  .artx-home--clear .clear-plan-days { margin-bottom: 4px; color: var(--home-ink); font-weight: 650; }
  .artx-home--clear .clear-plan-term { margin-top: 4px; }
  .artx-home--clear .home-content .home-capture {
    --paper: var(--home-paper);
    --ink: var(--home-ink);
    --meta: var(--home-meta);
    --rule: var(--home-meta);
    --focus: var(--home-ink);
    background: var(--home-paper);
    color: var(--home-ink);
    border-color: var(--home-line);
  }
  .artx-home--clear .home-capture .artx-d-body-lg { color: var(--home-meta); }
  .artx-home--clear .home-capture .artx-d-input { background: var(--home-paper); color: var(--home-ink); }
  .artx-home--clear .home-capture .artx-d-text-link { color: var(--home-ink); }
  @media (max-width: 1180px) {
    .artx-home--clear .hero { gap: 36px; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
    .artx-home--clear .hero h1 { font-size: clamp(38px, 4.8vw, 52px); }
    .artx-home--clear .hero-review { padding: 26px; }
    .artx-home--clear .hero .hero-lead { font-size: 19px; }
  }
  @media (max-width: 860px) {
    .artx-home--clear .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 35px 40px; }
    .artx-home--clear .hero h1 { font-size: clamp(40px, 7.2vw, 58px); max-width: 17ch; }
    .artx-home--clear .clear-desktop-break { display: none; }
    .artx-home--clear .hero .hero-lead { margin-top: 23px; }
    .artx-home--clear .hero-audience { margin-bottom: 20px; }
    .artx-home--clear .hero-review { padding: 26px; }
    .artx-home--clear .hero-review ul { margin-top: 18px; }
    .artx-home--clear .hero-review li { padding-block: 12px; }
    .artx-home--clear .home-content .hero-review h2 { font-size: 32px; }
  }
  @media (max-width: 450px) {
    .artx-home--clear .hero h1 { font-size: 38px; }
    .artx-home--clear .hero .eyebrow { font-size: 14px; }
    .artx-home--clear .hero-action .button { gap: 14px; padding-inline: 16px; font-size: 15px; }
    .artx-home--clear .hero-review { padding: 23px; }
    .artx-home--clear .home-content .hero-review h2 { font-size: 30px; }
  }
}

@layer page {
  .artx-palette-preview {
    --warm-ivory: #f8f4ee;
    --warm-ink: #211d1b;
    --dark-panel: #2d2623;
    --dark-muted: #c8bbb2;
    --dark-accent: #e99882;
    --action-bg: #a74431;
    --action-hover: #913b2a;
    --action-edge: var(--action-bg);
    --action-ivory: var(--warm-ivory);
    --coral: #fd664c;
    --coral-on-ink: var(--coral);

    color-scheme: light;
    --paper: var(--warm-ivory);
    --ink: var(--warm-ink);
    --panel: #f2dfd6;
    --meta: #5d514a;
    --rule: #c9b8af;
    --coral-text: #9d422f;
    --coral-text-wash: var(--coral-text);
    --focus: var(--coral-text);

    --chrome-bg: var(--warm-ink);
    --slab-bg: var(--warm-ink);
    --slab-fg: var(--warm-ivory);
    --slab-body: var(--dark-muted);
    --slab-mute: var(--dark-muted);
    --slab-faint: var(--dark-muted);
    --slab-rule: #695b54;
  }

  @media (prefers-color-scheme: dark) {
    .artx-palette-preview {
      color-scheme: dark;
      --paper: var(--warm-ink);
      --ink: var(--warm-ivory);
      --panel: var(--dark-panel);
      --meta: var(--dark-muted);
      --rule: #695b54;
      --coral-text: var(--dark-accent);
      --action-edge: var(--dark-accent);
      --slab-bg: var(--dark-panel);
    }
  }

  .artx-palette-preview .artx-home--clear {
    --home-paper: var(--paper);
    --home-ink: var(--ink);
    --home-meta: var(--meta);
    --home-line: var(--rule);
    --home-hero-paper: var(--paper);
    --home-hero-ink: var(--ink);
    --home-hero-line: var(--rule);
    --home-hero-meta: var(--meta);
    --home-coral-hover: var(--panel);
  }

  .artx-palette-preview .artx-home--clear .hero-review {
    background: var(--panel);
    border-top: 3px solid var(--coral);
  }

  .artx-palette-preview .artx-home--clear :is(.hero .eyebrow, .hero-review li svg, .clear-price-main, .how-number) {
    color: var(--coral-text);
  }

  .artx-palette-preview .artx-home--clear .home-explore {
    background: var(--paper);
    border-block-color: var(--rule);
  }

  .artx-palette-preview .artx-home--clear .how-section {
    background: var(--panel);
    color: var(--ink);
  }

  .artx-palette-preview .artx-home--clear .proof-section {
    --home-line: var(--slab-rule);
    --home-meta: var(--slab-body);
    background: var(--slab-bg);
    color: var(--slab-fg);
  }

  .artx-palette-preview .artx-home--clear .proof-section a:focus-visible {
    outline-color: var(--slab-fg);
  }

  .artx-palette-preview .artx-home--clear .package-identity img {
    background: var(--warm-ivory);
  }

  .artx-palette-preview .artx-home--clear .home-content .home-capture {
    --paper: var(--home-paper);
    --ink: var(--home-ink);
    --meta: var(--home-meta);
    background: var(--panel);
  }

  .artx-palette-preview .artx-home--clear .home-capture .artx-d-input {
    background: var(--home-paper);
  }

  .artx-palette-preview .artx-home--clear .home-content .button,
  .artx-palette-preview .artx-home--clear .home-capture .artx-d-submit,
  .artx-palette-preview .artx-overlay-cta {
    background: var(--action-bg);
    border: 1px solid var(--action-edge);
    color: var(--action-ivory);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
  }

  .artx-palette-preview .artx-home--clear .home-content .button:hover,
  .artx-palette-preview .artx-home--clear .home-capture .artx-d-submit:not(:disabled):hover,
  .artx-palette-preview .artx-overlay-cta:hover {
    background: var(--action-hover);
    color: var(--action-ivory);
  }

  .artx-palette-preview .artx-site-footer {
    --slab-bg: var(--dark-panel);
    --slab-fg: var(--warm-ivory);
    --slab-body: var(--dark-muted);
    --slab-faint: var(--dark-muted);
    --slab-rule: #695b54;
  }
}

@font-face {
  font-family: "Foundation Titles Hand";
  src: url("/foundation-empire/foundation-titles-hand-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.artx-dev-page-theme {
  --coral-on-ink: var(--dark-accent);
  --coral-wash: var(--panel);
  --drip: var(--coral-text);
  --drip-wash: var(--panel);
  background: var(--paper);
  color: var(--ink);
}

.artx-dev-page-theme :is(main h1, main h2, main h3) {
  font-family: "Foundation Titles Hand", "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: normal;
}

.artx-dev-page-theme .review-hero {
  background: var(--paper);
  color: var(--ink);
}

.artx-dev-page-theme .review-hero-copy :is(.artx-d-eyebrow, p:not(.review-lead):not(.review-hero-note)) {
  color: var(--meta);
}

.artx-dev-page-theme .review-actions .artx-d-btn-2 {
  border-color: var(--rule);
  color: var(--ink);
}

.artx-dev-page-theme .review-actions .artx-d-btn-2:hover {
  background: var(--panel);
  color: var(--ink);
}

.artx-dev-page-theme .review-hero a:focus-visible {
  outline-color: var(--focus);
}

.artx-dev-page-theme .review-sheet {
  background: var(--panel);
  color: var(--ink);
}

.artx-dev-page-theme .review-sheet :is(figcaption, .review-finding-label, .review-sheet-caption) {
  color: var(--meta);
}

.artx-dev-page-theme .review-findings > div {
  border-color: var(--rule);
}

.artx-dev-page-theme :is(main .artx-d-btn, main .artx-d-submit) {
  background: var(--action-bg);
  border: 1px solid var(--action-edge);
  color: var(--action-ivory);
  font-size: 16px;
  font-weight: 700;
}

.artx-dev-page-theme :is(main .artx-d-btn, main .artx-d-submit):not(:disabled):hover {
  background: var(--action-hover);
  color: var(--action-ivory);
}

.artx-dev-page-theme main :is(h1, h2, h3) {
  overflow-wrap: anywhere;
}

.artx-dev-page-theme main h1 .review-heading-phrase {
  white-space: normal;
}

.artx-dev-page-theme :is(.review-hero, .engagements-hero, .partners-hero) {
  --chrome-bg: var(--paper);
  --slab-bg: var(--paper);
  --slab-fg: var(--ink);
  --slab-body: var(--ink);
  --slab-mute: var(--meta);
  --slab-rule: var(--rule);
  --coral-on-ink: var(--coral-text);
  --drip-on-ink: var(--coral-text);
}

.artx-dev-page-theme .artx-d-slab {
  --drip: var(--dark-accent);
  --drip-on-ink: var(--dark-accent);
  --drip-wash: color-mix(in srgb, var(--dark-accent) 14%, transparent);
}

.artx-dev-page-theme :is(.review-hero, .engagements-hero, .partners-hero) .artx-d-text-link {
  color: var(--ink);
}

.artx-dev-page-theme .partners-growth-band {
  background: var(--panel);
  color: var(--ink);
}

.artx-dev-page-theme .sprint-steps .sprint-when {
  color: var(--meta);
}

#outreach-next { scroll-margin-block-start: var(--space-hero-foot); }

.artx-palette-preview {
  --interaction-focus: var(--coral-text);
  --interaction-accent: var(--coral-text);
  --interaction-wash: var(--panel);
  --interaction-duration: 160ms;
  --score-transition-duration: 180ms;
}

.artx-palette-preview :is(.artx-d-slab, .proof-section, .artx-overlay, .about-service, .engagements-partner) {
  --interaction-focus: var(--dark-accent);
  --interaction-accent: var(--dark-accent);
}

.artx-palette-preview :is(.artx-masthead, .artx-overlay, main) :is(a, button, summary):focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-offset: 4px;
}

/* Review and plan actions share the same keyboard and pointer cues. */
.artx-palette-preview :is(main, .artx-overlay) :is(.button, .artx-d-btn, .artx-d-btn-2, .artx-overlay-cta) {
  transition: background-color var(--interaction-duration) ease-out, color var(--interaction-duration) ease-out;
}

.artx-palette-preview .engagements-plan--growth {
  --interaction-accent: var(--on-coral);
}

/* Keep disclosure cues next to the control and preserve native details behaviour. */
.artx-palette-preview :is(.artx-d-faq-item, .scope-details, .artx-leak-notes, .engagements-disclosure, .engagements-inclusions)[open] > summary {
  color: var(--interaction-accent);
}

.artx-palette-preview :is(.artx-d-faq-item, .scope-details, .artx-leak-notes, .engagements-disclosure, .engagements-inclusions) > summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: .22em;
}

/* Case-study links retain a visible underline before any interaction. */
.artx-palette-preview main a[href^="/case-studies/"]:is(.text-link, .light-link, .artx-d-text-link),
.artx-palette-preview :is(.home-explore-links, .proof-strip-item) a[href^="/case-studies/"] {
  text-decoration-line: underline;
  text-underline-offset: .23em;
  text-decoration-thickness: .075em;
  transition: text-decoration-thickness var(--interaction-duration) ease-out;
}

.artx-palette-preview main a[href^="/case-studies/"]:is(.text-link, .light-link, .artx-d-text-link):focus-visible,
.artx-palette-preview :is(.home-explore-links, .proof-strip-item) a[href^="/case-studies/"]:focus-visible {
  text-decoration-thickness: .16em;
}

@media (hover: hover) {
  .artx-palette-preview main a[href^="/case-studies/"]:is(.text-link, .light-link, .artx-d-text-link):hover,
  .artx-palette-preview :is(.home-explore-links, .proof-strip-item) a[href^="/case-studies/"]:hover {
    text-decoration-thickness: .16em;
  }
}

.artx-palette-preview .engagements-plan:has(:focus-visible),
.artx-palette-preview .home-package:has(:focus-visible) {
  outline: 2px solid var(--interaction-focus);
  outline-offset: 2px;
}

/* Native inputs keep their normal behaviour. Colour and an edge mark selection. */
.artx-review-questionnaire .artx-leak-option:has(input:checked) {
  background: var(--interaction-wash);
  box-shadow: inset 3px 0 0 var(--interaction-accent);
}

.artx-review-questionnaire .artx-leak-option:has(input:focus-visible) {
  outline: 2px solid var(--interaction-focus);
  outline-offset: -2px;
}

@media (hover: hover) {
  .artx-review-questionnaire .artx-leak-option:hover:not(:has(input:checked)) {
    background: color-mix(in srgb, var(--interaction-wash) 55%, var(--paper));
  }
}

/* The score is immediate. Only the visual fill eases into its new width. */
.artx-review-questionnaire .artx-leak-bar span {
  transition: width var(--score-transition-duration) ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .artx-palette-preview {
    --interaction-duration: 0ms;
    --score-transition-duration: 0ms;
  }
}

/* A small case-study image reveal keeps the screenshot fully visible at rest. */
.artx-palette-preview .proof-visual {
  overflow: hidden;
}

.artx-palette-preview .proof-visual img {
  transition: transform var(--interaction-duration) ease-out;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .artx-palette-preview .proof-visual:hover img {
    transform: scale(1.025);
  }
}

/* The review preview gets a warmer accent when someone reaches its link. */
.artx-palette-preview .hero-review {
  transition: box-shadow var(--interaction-duration) ease-out;
}

.artx-palette-preview .hero-review:has(:focus-visible) {
  box-shadow: inset 0 2px 0 var(--coral-text);
}

@media (hover: hover) and (pointer: fine) {
  .artx-palette-preview .hero-review:hover {
    box-shadow: inset 0 2px 0 var(--coral-text);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .artx-palette-preview :is(.scope-details, .artx-d-faq-item, .artx-leak-notes, .engagements-inclusions)[open] > :not(summary) {
    animation: artx-disclosure-enter 150ms ease-out;
  }

  @keyframes artx-disclosure-enter {
    from { opacity: .72; }
    to { opacity: 1; }
  }
}

/* Matte surfaces on the two review entry points. */
.artx-palette-preview {
  --dev-matte-grain: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAABdUlEQVR4nEWUQRLDMAgDOXDgwP+/S0Erp8l0UscIhJATkxN711T03nWrfe6beM/dmdaq9jmlRS4wI++poAs1dN+WoloRyh3Tu3mw0HUgAVX/0uy+YxZ3xQtiKp+qGZdm14S3VgdWYfIcrEQoIXlpokk0t6saYnalLzvQo3lprvr0t77kTXbl+di3gB20foCk6tWkFdEBceKqSqsr7lYEAqkgfWSQDd4tQgmUN/qncg0NaVLOxqBKMyiJrHThoYna1xpyN9vO/HbmGeINsJmMB5aoD9SXO2hbo5BajScNI7GCC6nko890VzH/HghADK+fvWQOjz9sNMQoQ5C8wi6R0m7XZC4U9qpPVU3rxg/zmLRrrZdopTvCzWMUgbbG38P1TC/+2m/7hErto2LLR/2tPpzCoT07BSrR/ungMhVpKQHeNElUcpRnK5chsODh2VPuwcqz9bb1D4uCIv42+FPwfTfimcZHqZRmGA6tvyOJVUzK02iI/QBXSixGDIHSkQAAAABJRU5ErkJggg==");
  --dev-fine-edge: color-mix(in srgb, var(--coral-text) 30%, transparent);
}

.artx-palette-preview .hero-review,
.artx-palette-preview .artx-d-capture:is(.artx-d-paper, .artx-d-slab),
.artx-palette-preview .engagements-sprint-cta {
  background-image: var(--dev-matte-grain);
}


.artx-palette-preview :is(main, .artx-overlay) :is(.button, .artx-d-btn, .artx-overlay-cta) {
  box-shadow: inset 0 1px rgb(255 255 255 / .17);
}

.artx-palette-preview :is(main, .artx-overlay) :is(.button, .artx-d-btn, .artx-overlay-cta):active {
  box-shadow: inset 0 2px 3px rgb(33 29 27 / .28);
}

.artx-palette-preview :is(.artx-navlink, .artx-sticky-link, .artx-d-text-link) {
  text-underline-offset: .23em;
  text-decoration-thickness: .075em;
  transition: text-decoration-thickness var(--interaction-duration) ease-out;
}

.artx-palette-preview :is(.artx-navlink, .artx-sticky-link, .artx-d-text-link):not([aria-current="page"]):is(:hover, :focus-visible) {
  text-decoration-line: underline;
  text-decoration-thickness: .15em;
}

.artx-palette-preview .artx-dev-masthead .artx-navlink[aria-current="page"] {
  text-decoration-line: none;
}

.artx-palette-preview :is(.proof-visual, .artx-shot a .artx-shot-frame) {
  box-shadow: 0 0 0 1px var(--dev-fine-edge), 0 .65rem 1.5rem rgb(33 29 27 / .24);
  transition: box-shadow var(--interaction-duration) ease-out;
}

.artx-palette-preview :is(.proof-visual, .artx-shot a .artx-shot-frame):hover,
.artx-palette-preview .proof-visual:focus-visible,
.artx-palette-preview .artx-shot a:focus-visible .artx-shot-frame {
  box-shadow: 0 0 0 1px var(--coral-text), 0 .75rem 1.75rem rgb(33 29 27 / .32);
}

.artx-palette-preview .artx-shot figcaption {
  margin-block-start: .85rem;
  text-wrap: pretty;
}

.artx-palette-preview .engagements-compare-plan-group {
  border-block-start: 1px solid var(--rule, var(--dev-fine-edge));
}

.artx-palette-preview :is(.artx-d-hero-copy, .engagements-plan-fit, .artx-leak-prompt) {
  text-wrap: pretty;
}

.artx-palette-preview .artx-leak-notes > summary {
  text-underline-offset: .22em;
}

.artx-palette-preview .artx-leak-notes[open] > summary {
  text-decoration: underline;
}

/* Give the completed reading room for a score display and a separate request. */
.artx-palette-preview #reading .artx-leak-results-card {
  --reading-rule: color-mix(in srgb, var(--dark-accent) 32%, var(--slab-rule));
  --reading-padding: clamp(1.25rem, 3.3vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  margin-block: clamp(1.5rem, 3vw, 2.75rem);
  padding: var(--reading-padding);
  border: 1px solid var(--reading-rule);
  background: var(--slab, #211d1b);
  align-items: stretch;
}

.artx-palette-preview #reading .artx-leak-meter--card {
  min-width: 0;
  align-content: start;
  gap: clamp(.75rem, 1.4vw, 1.15rem);
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--reading-rule);
  border-block-start: 2px solid var(--dark-accent);
  background:
    radial-gradient(ellipse at top left, rgb(233 152 130 / .17), transparent 72%),
    color-mix(in srgb, #fff 4%, var(--slab, #211d1b));
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-d-figure {
  color: var(--slab-fg, #f8f4ee);
  font-size: clamp(3.6rem, 8vw, 7rem);
  text-shadow: 0 0 1.5rem rgb(233 152 130 / .18);
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-d-figure span {
  font-size: .4em;
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar {
  position: relative;
  height: .9rem;
  margin-block: .5rem .25rem;
  background: rgb(255 255 255 / .10);
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar span {
  background: linear-gradient(90deg, #b95a47, var(--dark-accent));
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgb(33 29 27 / .65) calc(10% - 1px) 10%);
  pointer-events: none;
  content: "";
}

.artx-palette-preview #reading .artx-leak-inline-review {
  min-width: 0;
  align-content: center;
  gap: clamp(1rem, 2vw, 1.55rem);
}

.artx-palette-preview #reading .artx-leak-inline-review .artx-d-form {
  grid-template-columns: minmax(0, 1fr);
  gap: .85rem 1rem;
}

.artx-palette-preview #reading .artx-leak-inline-review .artx-d-field {
  min-width: 0;
}

.artx-palette-preview #reading .artx-leak-inline-review .artx-d-submit {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  white-space: normal;
}

@media (min-width: 701px) {
  .artx-palette-preview #reading .artx-leak-inline-review .artx-d-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artx-palette-preview #reading .artx-leak-inline-review .artx-d-submit {
    justify-self: start;
    width: auto;
  }
}

@media (min-width: 1025px) {
  .artx-palette-preview #reading .artx-leak-results-card {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  }
}

/* Water blue links the homepage illustration and the measured reading. */
.artx-palette-preview {
  --water-high: #a6d7e6;
  --water-mid: #579eb9;
  --water-deep: #2f7089;
  --water-glass: #303337;
}

.artx-palette-preview #start-project.home-drip {
  background: radial-gradient(ellipse at 77% 45%, #33323a, #211d1b 58%);
  color: #f8f4ee;
  border-block: 1px solid #594a44;
}

.artx-palette-preview .home-drip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
}

.artx-palette-preview .home-drip-copy {
  display: grid;
  gap: clamp(.8rem, 2vw, 1.4rem);
}

.artx-palette-preview .home-drip-copy :is(h2, p, .artx-d-actions) {
  margin: 0;
}

.artx-palette-preview .home-drip-copy h2 {
  color: #f8f4ee;
}

.artx-palette-preview .home-drip-copy .artx-d-body-lg {
  color: #e0d4ca;
  max-width: 42ch;
}

.artx-palette-preview .home-drip-copy .artx-d-eyebrow {
  color: var(--water-high);
}

.artx-palette-preview .home-drip-visual {
  display: grid;
  justify-items: center;
  gap: .85rem;
  padding: 1rem 0;
}

.artx-palette-preview .home-drip-drop {
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 0 70% 70% 70%;
  background: linear-gradient(145deg, var(--water-high), var(--water-deep));
  transform: rotate(45deg);
}

.artx-palette-preview .home-drip-chamber {
  display: grid;
  align-items: end;
  width: clamp(5rem, 14vw, 9rem);
  height: clamp(7.5rem, 19vw, 13rem);
  border-radius: .25rem .25rem 1.5rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--water-high);
  background: repeating-linear-gradient(0deg, transparent 0 calc(20% - 1px), #a6d7e650 calc(20% - 1px) 20%), var(--water-glass);
  box-shadow: inset 0 0 1.25rem #151314, 0 0 3.5rem #579eb92e;
}

.artx-palette-preview .home-drip-chamber > span {
  height: 44%;
  border-top: 2px solid var(--water-high);
  background: linear-gradient(var(--water-mid), var(--water-deep));
  border-radius: 35% 28% 0 0 / .5rem .4rem 0 0;
}

.artx-palette-preview #reading .artx-leak-meter--card {
  grid-template-columns: minmax(0, 1fr) 3.5rem;
  grid-template-rows: auto minmax(5rem, auto) auto auto;
  border-block-start-color: var(--water-high);
  background: radial-gradient(ellipse at top right, #579eb92e, transparent 75%), #2d2623;
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-d-figure {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  text-shadow: 0 0 1.5rem #579eb93b;
}

.artx-palette-preview #reading .artx-leak-meter--card :is(.artx-d-small, .artx-d-body) {
  grid-column: 1 / -1;
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar {
  grid-area: 1 / 2 / 3;
  place-self: center;
  width: 6.5rem;
  height: 2.6rem;
  margin: 0;
  transform: rotate(-90deg);
  border-color: var(--water-high);
  border-radius: .9rem .25rem .25rem .9rem;
  overflow: hidden;
  background: var(--water-glass);
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar span {
  border-inline-end: 2px solid var(--water-high);
  background: linear-gradient(90deg, var(--water-deep), var(--water-mid));
  transition-duration: var(--water-fill-duration, 620ms);
}

.artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar span[style*="width: 0%"] {
  border-inline-end: 0;
}

@media (min-width: 701px) {
  .artx-palette-preview .home-drip-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .artx-palette-preview .home-drip-chamber > span {
    transform-origin: bottom;
    animation: artx-water-rise .85s ease-out both;
  }

  .artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar span {
    transform-origin: left;
    animation: artx-water-rise .7s ease-out both;
  }

  @keyframes artx-water-rise {
    from { scale: var(--water-rise-axis, 1 .12); }
    to { scale: 1; }
  }

  .artx-palette-preview #reading .artx-leak-meter--card .artx-leak-bar { --water-rise-axis: .12 1; }
}

@media (prefers-reduced-motion: reduce) {
  .artx-palette-preview { --water-fill-duration: 0ms; }
}

/* Hide the preview-only notice in the completed reading. The form stays disabled. */
#reading #leak-review form.artx-d-form:has(> button[type="submit"]:disabled) > p.artx-d-note:first-of-type:not(:has(a)) {
  display: none;
}

/* Give the supporting review link the same ruled separation as other site rows. */
#reading #leak-review > .artx-d-mt-rhythm > p.artx-d-small:has(a[href="/visibility-review/"]) {
  margin-block-start: var(--space-row) !important;
  padding-block-start: var(--space-rule-gap-below-sm);
  border-block-start: 1px solid var(--slab-rule);
  text-wrap: pretty;
}

#reading .artx-leak-results-card + #leak-local-summary {
  padding-block-start: var(--space-rule-gap-below-sm);
}

/* The existing question links now arrive with the compact context in view. */
.artx-palette-preview .leak-check-intro {
  padding-block: var(--space-section-tight) var(--space-rule-gap-below-sm);
  border-block-end: 0;
}

.artx-palette-preview .leak-check-intro h1 {
  margin-block: 0 var(--space-rule-gap-below-sm);
}

.artx-palette-preview .leak-check-intro p {
  max-width: 58ch;
  margin-block: 0;
}

.artx-palette-preview main:has(> .leak-check-intro) #checks {
  scroll-margin-block-start: 100vh;
  padding-block-start: var(--space-rule-gap-below-sm);
}

/* Echo the reading's blue waterline without placing motion behind the intro. */
.artx-palette-preview .leak-check-intro {
  --intro-ripple: color-mix(in srgb, var(--water-mid) 27%, transparent);
  background:
    repeating-radial-gradient(
      ellipse 22rem 11rem at 91% 113%,
      transparent 0 1.25rem,
      var(--intro-ripple) 1.25rem calc(1.25rem + 1px),
      transparent calc(1.25rem + 1px) 2.5rem
    ) right bottom / min(52%, 40rem) 100% no-repeat,
    linear-gradient(108deg, var(--paper) 18%, color-mix(in srgb, var(--paper) 72%, var(--water-mid)));
  border-block-end: 1px solid color-mix(in srgb, var(--water-mid) 42%, var(--rule));
}

@media (max-width: 700px) {
  .artx-palette-preview .leak-check-intro {
    --intro-ripple: color-mix(in srgb, var(--water-mid) 17%, transparent);
  }
}

