/* Info and client pages (_work/info.mjs): what the base and kit.css don't have. Colours, radii and type are the base's. */

/* spacing between a section heading and what follows */
.inf-after { margin-top: 3rem; }
@media (min-width: 64rem) { .inf-after { margin-top: 4rem; } }

/* round orbs: the base's only colour */
.inf-orb { position: relative; flex: none; aspect-ratio: 1; border-radius: 9999px; overflow: hidden; background: rgb(245 243 241); }
.inf-orb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inf-orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.08); pointer-events: none; }

/* warm cards (home's bento cards: cream, 24px corners, hairline ring) */
.inf-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 40rem) { .inf-cards.c2, .inf-cards.c3, .inf-cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .inf-cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .inf-cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inf-card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100%; padding: 1.75rem 1.5rem 1.875rem; border-radius: 1.5rem; background: rgb(245 243 241); overflow: hidden; transition: background-color 0.2s; }
@media (min-width: 40rem) { .inf-card { padding: 2rem 1.75rem 2.125rem; } }
.inf-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); pointer-events: none; z-index: 3; }
.inf-card.is-link:hover { background: rgb(240 237 234); }
.inf-card-body { margin-top: auto; }
.inf-card-body > p { margin-top: 1rem; }
.inf-card-media { margin-bottom: 2.5rem; }
.inf-card-media .inf-orb { width: 4rem; }
.inf-card-draw { display: flex; justify-content: center; margin: 0.5rem 0 2.5rem; }
.inf-card-draw img { width: 9.5rem; height: auto; }
.inf-card-photo { position: relative; margin: -1.75rem -1.5rem 1.75rem; aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 40rem) { .inf-card-photo { margin: -2rem -1.75rem 2rem; } }
.inf-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.inf-card.is-link:hover .inf-card-photo img { transform: scale(1.03); }
.inf-card-link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; outline: none; }
.inf-card-link:focus-visible { outline: 1.5px solid #000; outline-offset: 2px; }
.inf-card-more { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1.25rem; font-size: 0.875rem; color: #000; }
.inf-card-more svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.inf-card.is-link:hover .inf-card-more svg { transform: translateX(2px); }

/* feature rows: text beside a photo, split by the base's hairline (home's commission rows) */
.inf-row { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .inf-row { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); } .inf-row.flip .inf-row-text { order: 3; } .inf-row.flip .inf-row-rule { order: 2; } .inf-row.flip .inf-row-media { order: 1; } }
.inf-row-text { display: flex; flex-direction: column; padding: 3rem 1rem 2.5rem; }
@media (min-width: 48rem) { .inf-row-text { padding: 4rem 3rem 3.5rem; } }
.inf-row-rule { display: none; background: rgb(0 0 0 / 0.05); }
@media (min-width: 64rem) { .inf-row-rule { display: block; } }
.inf-row-media { display: flex; padding: 0 1rem 1rem; }
@media (min-width: 64rem) { .inf-row-media { padding: 1rem; } }
.inf-row-text .inf-lede { margin-top: 1.5rem; max-width: 34rem; }
.inf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: 2.75rem; max-width: 34rem; }
.inf-facts dd { margin-top: 0.75rem; }
.inf-row-text .inf-actions { margin-top: 2.5rem; }
.inf-photo { position: relative; width: 100%; min-height: 20rem; overflow: hidden; border-radius: 1.25rem; background: #fff; box-shadow: 0 0 1px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(0 0 0 / 0.04); }
@media (min-width: 64rem) { .inf-photo { min-height: 30rem; } }
.inf-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inf-photo.is-contain > img { object-fit: contain; padding: 8%; }
.inf-photo.is-cream { background: rgb(245 243 241); box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }

/* quiet testimonial line under a perk */
.inf-quote { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgb(0 0 0 / 0.06); max-width: 34rem; }
.inf-quote-mark { flex: none; display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; color: #fff; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; }
.inf-quote figcaption { margin-top: 0.5rem; }

/* stats band: big numbers between the base's hairlines */
.inf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .inf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inf-stat { padding: 2.5rem 1rem 2.75rem; }
@media (min-width: 48rem) { .inf-stat { padding: 3.5rem 3rem 3.75rem; } }
.inf-stat + .inf-stat { border-left: 1px solid rgb(0 0 0 / 0.05); }
@media (max-width: 63.99rem) { .inf-stat:nth-child(3) { border-left: 0; } .inf-stat:nth-child(n+3) { border-top: 1px solid rgb(0 0 0 / 0.05); } }
.inf-stat p:last-child { margin-top: 1.25rem; max-width: 15rem; }
.inf-stats.c3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .inf-stats.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 47.99rem) { .inf-stats.c3 .inf-stat { border-left: 0; } .inf-stats.c3 .inf-stat + .inf-stat { border-top: 1px solid rgb(0 0 0 / 0.05); } }
@media (min-width: 48rem) and (max-width: 63.99rem) { .inf-stats.c3 .inf-stat:nth-child(3) { border-left: 1px solid rgb(0 0 0 / 0.05); border-top: 0; } }

/* label and value list with hairlines (policy facts, the never-sell list) */
.inf-list { border-top: 1px solid rgb(0 0 0 / 0.07); }
.inf-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid rgb(0 0 0 / 0.07); }
@media (min-width: 40rem) { .inf-list > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.inf-list a { text-decoration: underline; text-decoration-color: rgb(0 0 0 / 0.2); text-underline-offset: 0.2em; transition: text-decoration-color 0.15s; }
.inf-list a:hover { text-decoration-color: currentColor; }

/* two columns: heading and text beside a list, a form or cards */
.inf-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 64rem) { .inf-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; } .inf-split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .inf-split.sticky > :first-child { position: sticky; top: 7rem; align-self: start; } }
.inf-split .kit-form { max-width: none; }

/* page heroes with a large photo (clients) */
.inf-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 64rem) { .inf-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; } }
.inf-hero-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 1.5rem; overflow: hidden; background: rgb(245 243 241); }
@media (min-width: 64rem) { .inf-hero-photo { aspect-ratio: 5 / 6; } }
.inf-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inf-hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.08); }

/* perk index: one warm tile per perk, an orb each (stacked on phones, orb beside the words from tablets) */
.inf-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 48rem) { .inf-index { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
/* a short last row stretches to the full width */
.inf-index > .inf-tile:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 48rem) {
  .inf-index { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .inf-index > .inf-tile, .inf-index > .inf-tile:last-child:nth-child(odd) { grid-column: span 2; }
  .inf-index > .inf-tile:nth-child(3n+1):nth-last-child(2), .inf-index > .inf-tile:nth-child(3n+1):nth-last-child(2) + .inf-tile { grid-column: span 3; }
}
.inf-tile { position: relative; display: flex; flex-direction: column; padding: 1.25rem 1.25rem 1.5rem; border-radius: 1.5rem; background: rgb(245 243 241); transition: background-color 0.2s; }
@media (min-width: 48rem) { .inf-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1.25rem; padding: 1.25rem 1.5rem 1.25rem 1.25rem; } .inf-tile .inf-orb { grid-row: span 2; } .inf-tile .inf-tile-name { margin-top: 0; align-self: end; } .inf-tile .inf-tile-sub { align-self: start; margin-top: 0.5rem; } }
.inf-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); pointer-events: none; }
.inf-tile:hover { background: rgb(240 237 234); }
.inf-tile:focus-visible { outline: 1.5px solid #000; outline-offset: 2px; }
.inf-tile .inf-orb { width: 4.5rem; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@media (min-width: 64rem) { .inf-tile .inf-orb { width: 5.5rem; } }
.inf-tile:hover .inf-orb { transform: scale(1.06); }
.inf-tile-name { margin-top: 2.25rem; }
.inf-tile-sub { margin-top: 0.75rem; }

/* full-width photo band with words over it (house calls) */
.inf-band { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 30rem; border-radius: 1.5rem; overflow: hidden; background: #1c1a17; }
@media (min-width: 64rem) { .inf-band { min-height: 40rem; } }
.inf-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.inf-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(0 0 0 / 0.66) 0%, rgb(0 0 0 / 0.42) 38%, rgb(0 0 0 / 0) 72%); }
.inf-band-text { padding: 2rem 1.5rem; max-width: 42rem; }
@media (min-width: 48rem) { .inf-band-text { padding: 3rem; } }
.inf-band-text .inf-lede { margin-top: 1.25rem; }
.inf-band-text .inf-actions { margin-top: 2rem; }

/* a big statement in a warm card (the Purchase Protection policy line) */
.inf-statement { position: relative; padding: 2.25rem 1.5rem 2.5rem; border-radius: 1.5rem; background: rgb(245 243 241); }
@media (min-width: 48rem) { .inf-statement { padding: 3.5rem 3rem 3.75rem; } }
.inf-statement::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); pointer-events: none; }
.inf-statement blockquote { margin-top: 1.75rem; max-width: 56rem; }
.inf-statement strong { font-weight: inherit; background: linear-gradient(transparent 62%, rgb(225 210 160 / 0.55) 62%); }

/* stone tiles with the owner's disclosure line (testing) */
.inf-stones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 0.75rem; }
@media (min-width: 64rem) { .inf-stones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.inf-stone { position: relative; }
.inf-stone-tile { position: relative; aspect-ratio: 1; border-radius: 1.25rem; overflow: hidden; background: #fff; }
.inf-stone-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }
.inf-stone:hover .kit-card-img { transform: translate(var(--x, 0%), var(--y, 0%)) scale(calc(var(--z, 1) * 1.04)); }
.inf-stone-text { padding: 0 0.25rem; }
@media (min-width: 40rem) { .inf-stone-text { padding: 0 1rem; } }
.inf-stone-label { margin-top: 1.25rem; }
.inf-stone-line { margin-top: 0.75rem; }
.inf-stone-meta { margin-top: 0.75rem; }
.inf-stone a { outline: none; }
.inf-stone a:focus-visible::after { content: ""; position: absolute; inset: -4px; border-radius: 1.5rem; outline: 1.5px solid #000; }

/* three photos of one stone in different light */
.inf-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; width: 100%; align-self: center; }
.inf-trio figure { margin: 0; }
.inf-trio .inf-trio-img { position: relative; aspect-ratio: 1; border-radius: 1.25rem; overflow: hidden; background: #fff; }
.inf-trio .inf-trio-img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }
.inf-trio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inf-trio figcaption { margin-top: 0.875rem; padding: 0 0.25rem; }

/* a suite of stones as orbs (bundled orders) */
.inf-suite { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-self: center; width: 100%; padding: 2rem 1rem; }
.inf-suite a { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 1rem; outline: none; }
.inf-suite a:focus-visible { outline: 1.5px solid #000; outline-offset: 4px; }
.inf-suite .inf-orb { width: 100%; max-width: 11rem; background: #fff; }
.inf-suite .inf-orb img { transform: translate(var(--x, 0%), var(--y, 0%)) scale(var(--z, 1)); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.inf-suite a:hover .inf-orb img { transform: translate(var(--x, 0%), var(--y, 0%)) scale(calc(var(--z, 1) * 1.05)); }
.inf-suite p:first-of-type { margin-top: 1.25rem; }
.inf-suite p + p { margin-top: 0.375rem; }

/* one listing on interest-free terms (illustration with a real stone) */
.inf-terms { align-self: center; width: 100%; max-width: 24rem; margin: 2rem auto; padding: 1rem; border-radius: 1.25rem; background: #fff; box-shadow: 0 0 1px rgb(0 0 0 / 0.4), 0 1px 1px rgb(0 0 0 / 0.04), 0 2px 4px rgb(0 0 0 / 0.04); }
.inf-terms-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 0.875rem; overflow: hidden; background: #fff; }
.inf-terms-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.875rem 0.25rem 0; }
.inf-terms-row + .inf-terms-row { border-top: 1px solid rgb(0 0 0 / 0.06); margin-top: 0.875rem; }

/* name cells in hairline grid (offices and shows), like about's species grid */
.inf-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgb(0 0 0 / 0.05); }
@media (min-width: 64rem) { .inf-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inf-cells > div { padding: 2.5rem 1rem; text-align: center; border-bottom: 1px solid rgb(0 0 0 / 0.05); }
.inf-cells > div:nth-child(2n) { border-left: 1px solid rgb(0 0 0 / 0.05); }
@media (min-width: 64rem) { .inf-cells > div + div { border-left: 1px solid rgb(0 0 0 / 0.05); } .inf-cells > div { border-bottom: 0; } }
.inf-cells p + p { margin-top: 0.75rem; }

/* offices */
.inf-office address { font-style: normal; margin-top: 1.25rem; }
.inf-office-time { margin-top: 1.75rem; display: flex; align-items: center; gap: 0.5rem; }
.inf-office-time::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: rgb(165 159 151); }

/* plain list of names with dot separators (ring styles, themes) */
.inf-names { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.inf-names li { display: inline-flex; align-items: center; height: 2rem; padding: 0 0.875rem; border-radius: 9999px; background: rgb(245 243 241); font-size: 0.875rem; color: rgb(68 64 59); }
.inf-names a { transition: color 0.15s; }
.inf-names li:has(a):hover { background: rgb(235 232 228); }
.inf-names li:has(a):hover a { color: #000; }
.inf-names-label { margin-top: 2.5rem; }

/* checklist next to the application form */
.inf-checks { margin-top: 2.5rem; border-top: 1px solid rgb(0 0 0 / 0.07); }
.inf-checks li { display: flex; gap: 0.875rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid rgb(0 0 0 / 0.07); }
.inf-checks svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.0625rem; color: #000; }
.inf-checks a { transition: color 0.15s; }
.inf-checks a:hover { color: rgb(89 84 79); }

/* application form: fields that only show for the role picked */
.kit-field[hidden] { display: none; }

/* small print under a block */
.inf-note { margin-top: 1.5rem; }
.inf-note a { text-decoration: underline; text-decoration-color: rgb(0 0 0 / 0.2); text-underline-offset: 0.2em; }
.inf-note a:hover { text-decoration-color: currentColor; }

/* legal: long policy reads at a comfortable width */
.inf-legal .kit-prose h3 { margin-top: 2.5em; }

/* contact: the form first, shortcuts beside it */
@media (min-width: 64rem) { .inf-split.form-first { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.inf-split.form-first > .inf-cards { align-content: start; }

/* inline links and small insets */
.inf-link { text-decoration: underline; text-decoration-color: rgb(0 0 0 / 0.2); text-underline-offset: 0.2em; transition: text-decoration-color 0.15s; }
.inf-link:hover { text-decoration-color: currentColor; }
.inf-inset { margin-left: 0.75rem; margin-right: 0.75rem; }
.inf-card-photo.is-contain { background: #fff; }
.inf-card-photo.is-contain img { object-fit: contain; padding: 4% 6%; }
