/* Home page entrance: the museum wall.
   One painting hangs alone on the Tyrian wall, whole, in a gold Florentine frame, with a museum
   label under it. Beside it the painter's name, what he is, and one line of standing.
   There is no button and no link in the entrance: the menu above carries the ways in.
   Nothing is cropped. The painting is the largest thing on the wall and the name stays modest,
   as the jewellery houses set a small title beside a large picture. On a phone the name comes
   first, then the painting.

   The wall is lit quietly, a little brighter where the painting hangs. The frame is a rendering
   (four corner pieces over four edge strips, drawn in the picture's border, never over the
   painting). */

/* The wall. The site's shared stylesheet paints this section from its ink
   token, so the wall colour is set by re-pointing that token here. */
.index-page .hero-section.home-loggia {
  --hl-wall-rgb: 86, 10, 54; --hl-lit-rgb: 104, 16, 66; --hl-edge-rgb: 63, 7, 39; --hl-deep-rgb: 34, 3, 21; --hui-ink: rgb(var(--hl-wall-rgb)); --hui-ink-rgb: var(--hl-wall-rgb);
  --hl-gold: #DCB870; --hl-gold-rgb: 220, 184, 112; --hl-top: clamp(18px, 3.4vh, 40px); --hl-m: clamp(5px, .6vw, 10px); --hl-floor: clamp(36px, 6.4vh, 66px);
  background: radial-gradient(90% 105% at 72% 48%, rgb(var(--hl-lit-rgb)) 0%, rgb(var(--hl-wall-rgb)) 52%, rgb(var(--hl-edge-rgb)) 118%); min-height: 100svh; display: block; padding: var(--header-height) 0 0; overflow: hidden;
}
/* A fine grain over the lit wall, so it is not a flat fill. */
.index-page .hero-section.home-loggia::before {
  background-image: none; inset: 0; transform: none; z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.index-page .hero-section.home-loggia::after { content: none; display: none; }
.home-loggia .hero-content { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 6vw, 112px); width: 100%; max-width: none; min-height: max(600px, calc(100svh - var(--header-height))); padding: clamp(20px, 3vh, 40px) var(--gutter) clamp(36px, 6vh, 72px); }

/* The words. The name is ivory; what he is, and the line of standing, are gold. */
.home-loggia .he-copy { min-width: 0; }
.index-page .home-loggia .hero-content h1 { margin: 0; max-width: none; text-shadow: none; }
.home-loggia .he-name { display: block; white-space: nowrap; font: 400 clamp(44px, 4.4vw, 72px)/.98 var(--hui-font-heading, "Playfair Display", Georgia, serif); letter-spacing: -.02em; color: #FBF9F4; }
.home-loggia .he-role { display: block; margin-top: clamp(14px, 1.7vw, 24px); font: italic 400 clamp(19px, 1.6vw, 26px)/1.2 var(--hui-font-heading, "Playfair Display", Georgia, serif); letter-spacing: 0; color: var(--hl-gold); }
.home-loggia .he-note { width: fit-content; min-width: min(17rem, 100%); margin: clamp(36px, 6.5vh, 76px) 0 0; padding-top: 18px; border-top: 1px solid rgba(var(--hl-gold-rgb), .45); font: 400 14px/1.5 var(--hui-font-body, Jost, Arial, sans-serif); letter-spacing: .03em; color: var(--hl-gold); }

/* The painting, whole, in its frame. --f is the frame's width; the picture's height is the
   largest that fits the screen, and its width follows from its own proportions. */
.home-loggia .he-art { margin: 0; justify-self: center; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
body.index-page .home-loggia .he-painting {
  --f: clamp(26px, 2.5vw, 42px);
  --ph: min(calc(100svh - var(--header-height) - 2 * var(--f) - 150px), 760px, calc((50vw - 2 * var(--f) - var(--gutter)) / .7046));
  display: block; box-sizing: content-box; height: var(--ph); width: auto; max-width: none; aspect-ratio: 1040 / 1476; object-fit: cover;
  border: var(--f) solid transparent; border-radius: max(3px, calc(var(--f) * .16)); /* the frame's outer corners are softened a little; the painting's corners stay square */
  background-color: transparent; background-origin: border-box; background-clip: border-box;
  background-image: url(/assets/images/frames/home-florentine-gold-tl.webp), url(/assets/images/frames/home-florentine-gold-tr.webp), url(/assets/images/frames/home-florentine-gold-bl.webp), url(/assets/images/frames/home-florentine-gold-br.webp), url(/assets/images/frames/home-florentine-gold-t.webp), url(/assets/images/frames/home-florentine-gold-b.webp), url(/assets/images/frames/home-florentine-gold-l.webp), url(/assets/images/frames/home-florentine-gold-r.webp);
  background-position: left top, right top, left bottom, right bottom, left top, left bottom, left top, right top;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, round no-repeat, round no-repeat, no-repeat round, no-repeat round;
  background-size: calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 1.3243) calc(var(--f) * 1.3243), calc(var(--f) * 3.1351) var(--f), calc(var(--f) * 3.1351) var(--f), var(--f) calc(var(--f) * 3.1351), var(--f) calc(var(--f) * 3.1351);
  filter: drop-shadow(0 2px 3px rgba(var(--hl-deep-rgb), .5)) drop-shadow(0 28px 34px rgba(var(--hl-deep-rgb), .6));
}
/* The museum label, under the frame's left edge. */
.home-loggia .he-label { display: flex; flex-direction: column; gap: 2px; margin: clamp(18px, 2.4vh, 26px) 0 0; padding: 0; max-inline-size: none; font: 400 13px/1.55 var(--hui-font-body, Jost, Arial, sans-serif); letter-spacing: .02em; color: rgba(251, 249, 244, .8); }
.home-loggia .he-label-title { margin-bottom: 2px; font: 400 19px/1.3 var(--hui-font-heading, "Playfair Display", Georgia, serif); letter-spacing: -.005em; color: #FBF9F4; }

/* The header above the entrance is the same wall, so there is no seam; on it
   the Inquire button is an outline, and fills again once the header turns ivory. */
.index-page .luxury-header:not(.is-scrolled) { --hui-ink-rgb: 86, 10, 54; }
.index-page .luxury-header:not(.is-scrolled) .nav-links .inquire-navigation > a { background: transparent; border-color: rgba(251, 249, 244, .62); }
.index-page .luxury-header:not(.is-scrolled) .nav-links .inquire-navigation > a:is(:hover, :focus-visible) { background: rgba(251, 249, 244, .12); }

/* Phone and tablet: the name, then the painting, then the line of standing. */
@media (max-width: 899px) {
  .index-page .hero-section.home-loggia { min-height: 0; background: radial-gradient(130% 62% at 50% 46%, rgb(var(--hl-lit-rgb)) 0%, rgb(var(--hl-wall-rgb)) 55%, rgb(var(--hl-edge-rgb)) 120%); }
  .home-loggia .hero-content { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 18px var(--gutter) 48px; }
  .home-loggia .he-copy { display: contents; }
  .index-page .home-loggia .hero-content h1 { order: 0; }
  .home-loggia .he-name { font-size: clamp(34px, 10vw, 44px); }
  .home-loggia .he-role { margin-top: 10px; font-size: clamp(17px, 4.8vw, 21px); }
  .home-loggia .he-art { order: 1; align-self: center; margin-top: clamp(22px, 3.4vh, 34px); }
  body.index-page .home-loggia .he-painting {
    --f: clamp(22px, 6.4vw, 36px);
    --ph: min(calc(100svh - var(--header-height) - 2 * var(--f) - 170px), 600px, calc((100vw - 2 * var(--gutter) - 2 * var(--f)) / .7046));
  }
  .home-loggia .he-note { order: 2; margin-top: 28px; }
}

/* The entrance moves once, as the page opens (home.js adds the classes once the type and the
   painting are ready). The painting fades in where it hangs: it is never moved, scaled or cropped.
   The name rises into place, then what he is, then the line of standing, each a step after the
   last, with the house motion from brand.css. Without the script, with reduced motion, or for a
   visitor who has already moved focus into the entrance, everything simply stands still. */
.home-intro-art .home-loggia .he-art { animation: huiFadeIn 1s var(--hui-motion-ease) both; }
.home-intro-active .home-loggia .he-name { animation: huiRise var(--hui-motion-slow) var(--hui-motion-ease) .1s both; }
.home-intro-active .home-loggia .he-role { animation: huiRise var(--hui-motion-slow) var(--hui-motion-ease) calc(.1s + var(--hui-motion-step)) both; }
.home-intro-active .home-loggia .he-note { animation: huiRise var(--hui-motion-slow) var(--hui-motion-ease) calc(.1s + 2 * var(--hui-motion-step)) both; }
.home-loggia .hero-content:focus-within :is(.he-name, .he-role, .he-note, .he-art) { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .home-loggia :is(.he-name, .he-role, .he-note, .he-art) { animation: none !important; }
}
@media print {
  .home-loggia :is(.he-name, .he-role, .he-note, .he-art) { animation: none !important; }
}
