/* ARTDACI Home V1 refinements
   - Atlas moved to a secondary guide
   - 3D Models promoted as a primary experience
   - paintings presented without decorative frames
   - artist portraits presented without card frames
*/

.home-v2 .hv2-guide-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
  padding: 18px 2px 0;
  border-top: 1px solid rgba(230, 204, 158, 0.12);
}

.home-v2 .hv2-guide-note > div {
  display: grid;
  gap: 5px;
}

.home-v2 .hv2-guide-label {
  color: #8f8173;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-v2 .hv2-guide-note strong {
  color: #d9cbbb;
  font: 500 17px/1.35 Georgia, "Times New Roman", serif;
}

.home-v2 .hv2-guide-note a {
  flex: 0 0 auto;
  color: var(--hv2-gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.home-v2 .hv2-guide-note a:hover,
.home-v2 .hv2-guide-note a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Paintings: intentionally unframed.
   We keep only light separation/shadow needed for readability. */
.home-v2 .hv2-art-card {
  border: 0;
  background: transparent;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.home-v2 .hv2-work {
  border: 0;
  background: transparent;
}

.home-v2 .painting-index .artwork-card {
  border-color: rgba(61, 45, 35, 0.15);
}

.home-v2 .painting-index .artwork-image {
  border: 0;
  background: #ded2bf;
}

.home-v2 .painting-index .artwork-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  object-fit: contain;
  background: #ded2bf;
}

/* Artist portraits: editorial presentation without frames/cards. */
.home-v2 .hv2-master-grid {
  gap: clamp(24px, 3vw, 44px);
}

.home-v2 .hv2-master-card {
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.home-v2 .hv2-master-card::after {
  display: none;
}

.home-v2 .hv2-master-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: saturate(0.82) contrast(1.02);
}

.home-v2 .hv2-master-copy {
  position: static;
  padding-top: 18px;
}

.home-v2 .hv2-master-copy span {
  color: #9b8977;
}

.home-v2 .hv2-master-copy strong {
  color: #fff4e5;
}

.home-v2 .hv2-master-card:hover img,
.home-v2 .hv2-master-card:focus-visible img {
  transform: translateY(-4px);
  filter: saturate(1) contrast(1.02);
}

/* Make the 3D continuum step visibly actionable, without over-emphasizing it. */
.home-v2 .hv2-continuum-link {
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease;
}

.home-v2 .hv2-continuum-link:hover,
.home-v2 .hv2-continuum-link:focus-visible {
  background: rgba(106, 45, 50, 0.07);
}

.home-v2 .hv2-continuum-link strong::after {
  content: " ↗";
  color: #8b745d;
  font-size: 0.58em;
  vertical-align: top;
}

/* Atlas/guide is intentionally less visually prominent than experiences. */
.home-v2 .hv2-nav-guide {
  color: #a99a8a;
  font-weight: 560;
}

@media (max-width: 780px) {
  .home-v2 .hv2-guide-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-v2 .hv2-master-grid {
    gap: 34px 18px;
  }

  .home-v2 .hv2-master-card,
  .home-v2 .hv2-master-card img {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .home-v2 .hv2-master-grid {
    gap: 42px;
  }

  .home-v2 .hv2-master-card img {
    aspect-ratio: 4 / 5;
  }
}


/* Eight primary experiences: balanced 4 × 2 layout on wide screens. */
.home-v2 .hv2-experience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Header ergonomics:
   keep navigation centered independently from the logo/language controls,
   and preserve language access at normal browser zoom. */
.home-v2 .hv2-header {
  grid-template-columns: 132px minmax(0, 1fr) 132px;
  gap: 16px;
}

.home-v2 .hv2-nav {
  justify-content: center;
  gap: clamp(10px, 1.35vw, 20px);
  min-width: 0;
}

.home-v2 .hv2-nav a {
  white-space: nowrap;
  font-size: 12px;
}

.home-v2 .hv2-language {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.home-v2 .hv2-language a {
  font-size: 12px;
}

/* At narrower desktop widths, use a centered second navigation row
   instead of hiding the language controls. */
@media (max-width: 1180px) {
  .home-v2 .hv2-header {
    grid-template-columns: 132px minmax(0, 1fr) 132px;
    grid-template-areas:
      "brand spacer language"
      "nav nav nav";
    gap: 2px 16px;
    min-height: 104px;
    padding: 7px 0 9px;
  }

  .home-v2 .hv2-brand {
    grid-area: brand;
  }

  .home-v2 .hv2-nav {
    grid-area: nav;
    justify-content: center;
    gap: clamp(14px, 2.1vw, 24px);
  }

  .home-v2 .hv2-language {
    grid-area: language;
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 1100px) {
  .home-v2 .hv2-experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .home-v2 .hv2-header {
    width: min(100% - 24px, 1440px);
    grid-template-columns: 105px minmax(0, 1fr) auto;
    grid-template-areas:
      "brand spacer language"
      "nav nav nav";
    min-height: 100px;
  }

  .home-v2 .hv2-brand img {
    width: 92px;
  }

  .home-v2 .hv2-language {
    display: flex;
  }

  .home-v2 .hv2-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .home-v2 .hv2-nav::-webkit-scrollbar {
    display: none;
  }

  .home-v2 .hv2-nav a:nth-child(n) {
    display: inline-flex;
    flex: 0 0 auto;
  }
}

@media (max-width: 700px) {
  .home-v2 .hv2-experience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-v2 .hv2-nav a:nth-child(n) {
    display: inline-flex;
  }

  .home-v2 .hv2-language {
    gap: 8px;
  }

  .home-v2 .hv2-language a {
    font-size: 11px;
  }
}

/* Hero: the ARTDACI book becomes the visual icon of the project. */
.home-v2 .hv2-book-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(222, 188, 119, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(217, 178, 97, 0.14), transparent 30%),
    radial-gradient(circle at 50% 55%, rgba(79, 47, 88, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(39, 29, 24, 0.6), rgba(12, 10, 10, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 214, 0.055),
    0 24px 64px rgba(0, 0, 0, 0.27);
}

.home-v2 .hv2-book-hero::before,
.home-v2 .hv2-book-hero::after {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: min(78%, 520px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  transform: translate(-50%, -53%);
  pointer-events: none;
}

.home-v2 .hv2-book-hero::before {
  border: 1px solid rgba(226, 190, 116, 0.25);
  box-shadow:
    0 0 0 22px rgba(226, 190, 116, 0.025),
    0 0 92px rgba(221, 177, 89, 0.18);
}

.home-v2 .hv2-book-hero::after {
  width: min(62%, 410px);
  background: radial-gradient(circle, rgba(241, 209, 143, 0.11), transparent 68%);
  filter: blur(10px);
}

.home-v2 .hv2-book-aura {
  position: absolute;
  right: 14%;
  bottom: 12%;
  left: 14%;
  height: 17%;
  border-radius: 50%;
  background: rgba(214, 173, 89, 0.14);
  filter: blur(34px);
  pointer-events: none;
}

.home-v2 .hv2-book-model {
  width: 100%;
  height: 470px;
  background: transparent;
  --poster-color: transparent;
  touch-action: pan-y;
}

@media (min-width: 1081px) {
  .home-v2 .hv2-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
    align-items: start;
  }

  .home-v2 .hv2-hero-copy {
    padding-top: clamp(22px, 3vw, 46px);
  }

  .home-v2 .hv2-book-hero {
    width: min(100%, 500px);
    justify-self: end;
    margin-top: 0;
  }
}

.home-v2 .hv2-book-model:focus-visible {
  outline: 1px solid var(--hv2-gold);
  outline-offset: -8px;
}

.home-v2 .hv2-book-signature {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  margin: 0;
  color: rgba(242, 224, 190, 0.78);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

/* Featured paintings: keep their ORIGINAL proportions rather than cropping
   every work into a circle. Three are portraits; Monet's work is landscape. */
.home-v2 .hv2-featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 34px);
}
.home-v2 .hv2-work:nth-child(n) {
  grid-column: auto;
  min-height: 0;
}
.home-v2 .hv2-work {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  overflow: visible;
  padding: clamp(22px, 2.5vw, 34px) 16px 26px;
  border: 1px solid rgba(224, 194, 137, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 37%, rgba(216, 176, 96, 0.1), transparent 41%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 246, 225, 0.035);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}
.home-v2 .hv2-work::after { display: none; }

/* A common presentation zone keeps the four cards balanced. The picture itself
   retains its natural width/height ratio, so neither head nor hands are cut. */
.home-v2 .hv2-work-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(190px, 21vw, 290px);
  min-width: 0;
  flex: 0 0 auto;
}
.home-v2 .hv2-work .hv2-work-visual img,
.home-v2 .hv2-work:nth-child(4) .hv2-work-visual img {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border: 1px solid rgba(238, 210, 153, 0.48);
  border-radius: 6px;
  outline: none;
  background: transparent;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.38);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms ease, filter 320ms ease;
}
.home-v2 .hv2-work:hover,
.home-v2 .hv2-work:focus-visible {
  border-color: rgba(224, 194, 137, 0.27);
  background:
    radial-gradient(circle at 50% 37%, rgba(216, 176, 96, 0.15), transparent 43%),
    rgba(255, 255, 255, 0.026);
  transform: translateY(-4px);
}
.home-v2 .hv2-work:hover .hv2-work-visual img,
.home-v2 .hv2-work:focus-visible .hv2-work-visual img {
  transform: scale(1.015);
  filter: saturate(1.04) contrast(1.025);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.44);
}
.home-v2 .hv2-work-copy {
  position: static;
  width: 100%;
  margin-top: auto;
  padding: 0 3px;
  text-align: center;
}
.home-v2 .hv2-work-copy strong {
  font-size: clamp(22px, 2vw, 31px);
}

/* Masters: compact luminous portraits inspired by the Masters Hub portals. */
.home-v2 .hv2-master-grid {
  gap: clamp(16px, 2vw, 28px);
}

.home-v2 .hv2-master-card {
  min-height: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  padding: 28px 18px 24px;
  border: 1px solid rgba(217, 184, 118, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 35%, rgba(207, 162, 78, 0.13), transparent 34%),
    linear-gradient(160deg, rgba(35, 27, 24, 0.76), rgba(17, 14, 14, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 210, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.22);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.home-v2 .hv2-master-card::before {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 72%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(229, 195, 126, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 180, 93, 0.1), transparent 68%);
  box-shadow: 0 0 45px rgba(214, 166, 72, 0.1);
  transform: translateX(-50%);
  pointer-events: none;
}

.home-v2 .hv2-master-card img {
  position: relative;
  z-index: 1;
  width: min(72%, 205px);
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(235, 205, 146, 0.38);
  border-radius: 50% 50% 38% 38% / 42% 42% 24% 24%;
  object-fit: cover;
  object-position: center top;
  box-shadow:
    0 0 34px rgba(213, 168, 82, 0.15),
    0 18px 38px rgba(0, 0, 0, 0.36);
}

.home-v2 .hv2-master-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 20px;
  text-align: center;
}

.home-v2 .hv2-master-copy strong {
  font-size: clamp(22px, 2vw, 30px);
}

.home-v2 .hv2-master-card:hover,
.home-v2 .hv2-master-card:focus-visible {
  border-color: rgba(225, 193, 128, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 210, 0.08),
    0 25px 58px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.home-v2 .hv2-master-card:hover img,
.home-v2 .hv2-master-card:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.02);
}

@media (max-width: 1080px) {
  .home-v2 .hv2-book-hero {
    width: min(100%, 780px);
    min-height: 500px;
    margin: 0 auto;
  }

  .home-v2 .hv2-book-model {
    height: 470px;
  }

  .home-v2 .hv2-featured-grid,
  .home-v2 .hv2-master-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-v2 .hv2-book-hero {
    min-height: 370px;
    border-radius: 24px;
  }

  .home-v2 .hv2-book-model {
    height: 340px;
  }

  .home-v2 .hv2-book-signature {
    right: 14px;
    bottom: 14px;
    left: 14px;
    font-size: 9px;
  }

  .home-v2 .hv2-featured-grid,
  .home-v2 .hv2-master-grid {
    grid-template-columns: 1fr;
  }

  .home-v2 .hv2-work-visual {
    height: clamp(215px, 62vw, 325px);
  }

  .home-v2 .hv2-master-card img {
    width: min(58vw, 210px);
  }
}


/* Arabic / RTL polish for the redesigned homepage. */
html[lang="ar"] .home-v2 {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

html[lang="ar"] .home-v2 .hv2-hero h1,
html[lang="ar"] .home-v2 .hv2-section h2,
html[lang="ar"] .home-v2 .hv2-master-copy strong,
html[lang="ar"] .home-v2 .hv2-work-copy strong,
html[lang="ar"] .home-v2 .hv2-place-primary h3,
html[lang="ar"] .home-v2 .hv2-place-secondary h3,
html[lang="ar"] .home-v2 .hv2-tribute-copy h2,
html[lang="ar"] .home-v2 .hv2-book-bridge h2,
html[lang="ar"] .home-v2 .hv2-continuum h2,
html[lang="ar"] .home-v2 .hv2-continuum-step strong,
html[lang="ar"] .home-v2 .hv2-experience-card h3 {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .home-v2 .hv2-hero h1 {
  line-height: 1.02;
}

html[lang="ar"] .home-v2 .hv2-hero-lead,
html[lang="ar"] .home-v2 .hv2-continuum-lead,
html[lang="ar"] .home-v2 .hv2-tribute-quote,
html[lang="ar"] .home-v2 .hv2-guide-note strong {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

html[lang="ar"] .home-v2 .hv2-arrow {
  right: auto;
  left: 30px;
}

html[lang="ar"] .home-v2 .hv2-place-cta {
  right: auto;
  left: 30px;
}

html[lang="ar"] .home-v2 .hv2-continuum-step {
  border-right: 0;
  border-left: 1px solid rgba(71, 50, 36, 0.2);
}

html[lang="ar"] .home-v2 .hv2-continuum-step:last-child {
  border-left: 0;
}

html[lang="ar"] .home-v2 .hv2-continuum-step::after {
  right: auto;
  left: -9px;
  content: "←";
}

@media (max-width: 780px) {
  html[lang="ar"] .home-v2 .hv2-continuum-step,
  html[lang="ar"] .home-v2 .hv2-continuum-step:nth-child(n) {
    border-left: 0;
  }

  html[lang="ar"] .home-v2 .hv2-continuum-step::after,
  html[lang="ar"] .home-v2 .hv2-continuum-step:nth-child(4)::after {
    right: auto;
    left: 16px;
    content: "←";
  }
}

/* Blue editorial theme and a quieter 3D hero.
   This layer intentionally keeps the existing layout and content architecture. */
.home-v2 {
  --hv2-bg: #06192b;
  --hv2-bg-soft: #0b2742;
  --hv2-panel: #103552;
  --hv2-paper: #edf7fc;
  --hv2-paper-soft: #dceef7;
  --hv2-ink: #09243b;
  --hv2-text: #f4faff;
  --hv2-muted: #abc5d8;
  --hv2-gold: #70c5ef;
  --hv2-gold-soft: #3d94c8;
  --hv2-wine: #176da7;
  --hv2-line: rgba(125, 202, 239, 0.22);
  --hv2-shadow: 0 28px 72px rgba(2, 20, 35, 0.38);
  background:
    radial-gradient(circle at 76% -8%, rgba(42, 145, 205, 0.3), transparent 34rem),
    radial-gradient(circle at 12% 28%, rgba(23, 92, 143, 0.2), transparent 28rem),
    linear-gradient(180deg, #071b2e 0%, #0a2741 52%, #06192b 100%);
}

.home-v2 .hv2-header {
  border-color: rgba(125, 202, 239, 0.2);
  background: rgba(5, 24, 42, 0.82);
  box-shadow: 0 12px 34px rgba(2, 20, 35, 0.2);
}

.home-v2 .hv2-nav a,
.home-v2 .hv2-language a,
.home-v2 .hv2-hero-lead {
  color: #dbeaf4;
}

.home-v2 .hv2-nav-guide,
.home-v2 .hv2-tech-line,
.home-v2 .hv2-guide-label,
.home-v2 .hv2-experience-type,
.home-v2 .hv2-footer {
  color: #86a9c0;
}

.home-v2 .hv2-hero::before {
  left: 62%;
  width: 27rem;
  height: 27rem;
  background: radial-gradient(circle, rgba(87, 183, 230, 0.18), transparent 68%);
}

.home-v2 .hv2-hero h1,
.home-v2 .hv2-section h2,
.home-v2 .hv2-tribute-copy h2,
.home-v2 .hv2-book-bridge h2 {
  color: #f5fbff;
}

.home-v2 .hv2-button {
  border-color: rgba(112, 197, 239, 0.52);
  color: #edf8ff;
  background: rgba(112, 197, 239, 0.04);
}

.home-v2 .hv2-button:hover,
.home-v2 .hv2-button:focus-visible {
  background: rgba(112, 197, 239, 0.12);
}

.home-v2 .hv2-button-primary {
  color: #06233a;
  background: #70c5ef;
}

.home-v2 .hv2-button-primary:hover,
.home-v2 .hv2-button-primary:focus-visible {
  color: #041a2c;
  background: #9bdcff;
}

.home-v2 .hv2-guide-note {
  border-color: rgba(125, 202, 239, 0.14);
}

.home-v2 .hv2-guide-note strong,
.home-v2 .hv2-master-copy strong,
.home-v2 .hv2-experience-card h3,
.home-v2 .hv2-work-copy strong,
.home-v2 .hv2-place-primary h3,
.home-v2 .hv2-place-secondary h3,
.home-v2 .hv2-footer strong {
  color: #f1f8fd;
}

.home-v2 .hv2-experience-card,
.home-v2 .hv2-book-bridge {
  background:
    radial-gradient(circle at 100% 0%, rgba(83, 178, 225, 0.13), transparent 43%),
    rgba(17, 57, 87, 0.34);
}

.home-v2 .hv2-experience-card:hover,
.home-v2 .hv2-experience-card:focus-visible {
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 193, 238, 0.24), transparent 43%),
    rgba(22, 71, 106, 0.46);
}

.home-v2 .hv2-master-card {
  border-color: rgba(125, 202, 239, 0.17);
  background:
    radial-gradient(circle at 50% 35%, rgba(83, 178, 225, 0.16), transparent 35%),
    linear-gradient(160deg, rgba(15, 57, 89, 0.86), rgba(6, 29, 50, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(214, 241, 255, 0.06),
    0 20px 48px rgba(2, 20, 35, 0.25);
}

.home-v2 .hv2-master-card::before {
  border-color: rgba(139, 211, 244, 0.23);
  background: radial-gradient(circle, rgba(95, 190, 234, 0.13), transparent 68%);
  box-shadow: 0 0 45px rgba(60, 159, 207, 0.13);
}

.home-v2 .hv2-work {
  border-color: rgba(125, 202, 239, 0.14);
  background:
    radial-gradient(circle at 50% 37%, rgba(83, 178, 225, 0.13), transparent 42%),
    rgba(13, 48, 75, 0.42);
}

.home-v2 .hv2-place-primary {
  background:
    radial-gradient(circle at 88% 18%, rgba(123, 207, 245, 0.23), transparent 34%),
    linear-gradient(135deg, #0b3152, #135f93 63%, #08263f);
}

.home-v2 .hv2-place-secondary {
  background:
    linear-gradient(rgba(7, 32, 53, 0.7), rgba(7, 32, 53, 0.7)),
    radial-gradient(circle at 20% 20%, rgba(112, 197, 239, 0.22), transparent 34%),
    #0d3553;
}

.home-v2 .hv2-place-primary p,
.home-v2 .hv2-place-secondary p,
.home-v2 .hv2-work-copy small,
.home-v2 .hv2-qr-pair figcaption {
  color: #c8dce8;
}

.home-v2 .hv2-continuum-wrap,
.home-v2 .painting-index,
.home-v2 .painting-index .section-heading {
  color: var(--hv2-ink);
  background:
    radial-gradient(circle at 18% 30%, rgba(92, 176, 216, 0.2), transparent 30rem),
    #e7f3f9;
}

.home-v2 .hv2-continuum h2,
.home-v2 .painting-index .section-heading h2 {
  color: #09243b;
}

.home-v2 .hv2-continuum-lead,
.home-v2 .painting-index .section-dek {
  color: #47677d;
}

.home-v2 .hv2-continuum-track,
.home-v2 .hv2-continuum-step {
  border-color: rgba(25, 91, 132, 0.24);
}

/* The book remains an invitation, not the dominant content block. */
.home-v2 .hv2-book-hero {
  width: min(100%, 410px);
  min-height: 360px;
  border-color: rgba(125, 202, 239, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(103, 198, 240, 0.17), transparent 31%),
    radial-gradient(circle at 50% 55%, rgba(24, 104, 154, 0.2), transparent 58%),
    linear-gradient(145deg, rgba(15, 56, 86, 0.78), rgba(5, 27, 46, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(218, 242, 255, 0.07),
    0 20px 52px rgba(2, 20, 35, 0.28);
}

.home-v2 .hv2-book-hero::before {
  width: min(72%, 330px);
  border-color: rgba(133, 211, 246, 0.27);
  box-shadow:
    0 0 0 18px rgba(92, 186, 230, 0.035),
    0 0 70px rgba(68, 173, 222, 0.2);
}

.home-v2 .hv2-book-hero::after {
  width: min(56%, 270px);
  background: radial-gradient(circle, rgba(139, 215, 248, 0.13), transparent 68%);
}

.home-v2 .hv2-book-aura {
  background: rgba(85, 185, 231, 0.15);
}

.home-v2 .hv2-book-model {
  height: 330px;
}

.home-v2 .hv2-book-signature {
  color: rgba(210, 237, 251, 0.78);
}

@media (min-width: 1081px) {
  .home-v2 .hv2-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.68fr);
  }

  .home-v2 .hv2-book-hero {
    width: min(100%, 410px);
  }
}

@media (max-width: 1080px) {
  .home-v2 .hv2-book-hero {
    width: min(100%, 440px);
    min-height: 350px;
  }

  .home-v2 .hv2-book-model {
    height: 320px;
  }
}

@media (max-width: 780px) {
  .home-v2 {
    overflow-x: hidden;
  }

  .home-v2 .hv2-header,
  .home-v2 .hv2-hero,
  .home-v2 .hv2-section,
  .home-v2 .hv2-continuum,
  .home-v2 .painting-index,
  .home-v2 .hv2-footer {
    width: calc(100% - 24px);
    max-width: 1440px;
  }

  .home-v2 .hv2-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-top: 36px;
  }

  .home-v2 .hv2-hero-copy {
    min-width: 0;
    max-width: 100%;
  }

  .home-v2 .hv2-hero h1 {
    font-size: clamp(42px, 14vw, 70px);
    line-height: 0.92;
  }

  .home-v2 .hv2-hero-lead {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-v2 .hv2-book-hero {
    width: min(100%, 350px);
    min-height: 285px;
    justify-self: center;
  }

  .home-v2 .hv2-book-model {
    height: 260px;
  }
}

@media (max-width: 420px) {
  .home-v2 .hv2-hero h1 {
    font-size: clamp(36px, 11.6vw, 48px);
    letter-spacing: -0.05em;
  }

  .home-v2 .hv2-book-hero {
    width: min(100%, 310px);
    min-height: 255px;
  }

  .home-v2 .hv2-book-model {
    height: 232px;
  }
}

/* Homepage refinement: prevent the Book AR CTA from colliding with its caption.
   Keep the caption first and the scan action clearly BELOW it at every width. */
.home-v2 .hv2-book-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 425px;
  padding: 14px 15px 19px;
}
.home-v2 .hv2-book-hero .hv2-book-model {
  display: block;
  flex: 0 0 290px;
  width: 100%;
  height: 290px;
}
.home-v2 .hv2-book-hero .hv2-book-signature {
  position: static;
  inset: auto;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-wrap: balance;
}
.home-v2 .hv2-book-hero .hv2-book-scan {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 3px auto 0;
  max-width: calc(100% - 12px);
  text-align: center;
}

/* User-selected painter portraits, already optimized and pre-cropped to 4:5.
   Keep the entire face and bust visible; do not crop twice by applying another scale. */
.home-v2 .hv2-master-card::before { display: none; }
.home-v2 .hv2-master-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 238px);
  aspect-ratio: 4 / 5;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #173850;
}
.home-v2 .hv2-master-card .hv2-master-photo img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  filter: saturate(.98) contrast(1.025);
  transition: filter 220ms ease;
}
.home-v2 .hv2-master-card:hover .hv2-master-photo img,
.home-v2 .hv2-master-card:focus-visible .hv2-master-photo img {
  transform: none;
  filter: saturate(1.05) contrast(1.04);
}

@media (max-width: 1080px) {
  .home-v2 .hv2-book-hero {min-height: 403px}
  .home-v2 .hv2-book-hero .hv2-book-model {height: 274px; flex-basis: 274px}
}
@media (max-width: 780px) {
  .home-v2 .hv2-book-hero {min-height: 369px; padding: 10px 12px 16px}
  .home-v2 .hv2-book-hero .hv2-book-model {height: 235px; flex-basis: 235px}
}
@media (max-width: 420px) {
  .home-v2 .hv2-book-hero {min-height: 335px; padding: 8px 10px 15px;gap: 9px}
  .home-v2 .hv2-book-hero .hv2-book-model {height: 200px; flex-basis: 200px}
  .home-v2 .hv2-master-photo {width: min(100%, 235px)}
}
@media (prefers-reduced-motion: reduce) {
  .home-v2 .hv2-master-card .hv2-master-photo img {transition: none}
}
