/* Page CSS: only what sits inside a visual and the kit lacks (references/sections.md). */

/* hero: the real Edmundz capture in a window, cut by the frame's right and bottom edges */
.hero__art > .shot { display: flex; flex-direction: column; height: calc(100% - var(--s-8)); background: #1f1f1f; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgb(0 0 0 / .12), 0 30px 70px -30px rgb(0 0 0 / .55); }
.shot__bar { display: flex; align-items: center; gap: 10px; flex: none; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / .08); font: 400 13px/1 var(--font-text); color: #b9b9b9; }
.shot__dots { display: flex; gap: 6px; }
.shot__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3f3f3f; }
.shot__img { flex: 1 1 0; min-height: 0; width: 100%; max-width: none; object-fit: cover; object-position: 0 0; }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.d-card { background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 14px 32px -18px rgb(0 0 0 / .35); }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.d-card h5 { margin: 0; font: 500 14px/1.3 var(--font-text); color: #16181a; }
.d-chip { padding: 2px 8px; border-radius: 999px; background: #e9efe6; color: #3d4d36; font: 500 12px/1.4 var(--font-text); }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #e9efe6; color: #3d4d36; font-style: normal; font-size: 13px; font-weight: 700; }
.d-note__line b { font-weight: 500; color: #16181a; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* projects: the capture fills the frame and the frame cuts it under a fade */
.app.ui { position: relative; display: block; margin-top: var(--s-7); overflow: hidden; background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane > img { display: block; width: 100%; max-width: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }

/* photos: the six albums beside the lead photograph; a phone shows the date alone so each row stays one line */
.album-rows .rows__name { display: flex; align-items: center; min-height: 44px; }
.album-rows .rows__value { color: var(--muted); }
@media (max-width: 639px) { .album-count { display: none; } .album-rows > li { padding-block: 0; align-items: center; } }

/* infrastructure: one panel height for the group */
#infrastructure .panel { --p-h: 440px; }
/* a tablet stacks the two cards, each with its words on columns 1 to 6 and its panel on 7 to 12 */
@media (min-width: 640px) and (max-width: 1023px) {
  #infrastructure .card { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: min-content; column-gap: var(--gutter); align-content: start; }
  #infrastructure .card > :not(.panel) { grid-column: 1 / span 6; }
  #infrastructure .card > .panel { grid-column: 7 / span 6; grid-row: 1 / span 3; --p-h: clamp(250px, 30.5vh, 400px); }
  .footer .grid > .span-6 { grid-column: 1 / -1; }
  .footer .footer__col { grid-column: auto / span 6; }
  .footer__legal > span:nth-of-type(2) { margin-left: auto; text-align: right; }
}
/* a phone keeps each card's title and picture; the grey half of the h2, the card lines and the footer line wait for a wider screen */
@media (max-width: 639px) { #infrastructure .panel { --p-h: 170px; } #infra-h .muted, #infrastructure .card p, .footer__lede, .close__book, .footer__col li:nth-child(3) { display: none; } }

/* gallery pages: flow layout (the kit's fixed-height sections would clip a 58-photo album) */
.gallery { padding-block: var(--padt) var(--s-10); }
.gallery__head { display: grid; gap: var(--s-3); max-width: 900px; margin-bottom: var(--s-8); }
.gallery__head h1 { margin: 0; font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.gallery .link { justify-self: start; }
.gallery .tile { --animate-duration: 600ms; }
.gallery .tile__head h2 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.mosaic-wrap { container-type: inline-size; --mgap: 8px; }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--mgap); grid-auto-rows: calc((100cqw - var(--mgap)) / 2); }
.mosaic li { position: relative; overflow: clip; border-radius: var(--r-md); background: var(--surface); --animate-duration: 500ms; }
.mosaic button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.mosaic button::after { content: ""; position: absolute; inset: 0; background: rgb(20 19 18 / .18); opacity: 0; transition: opacity 300ms var(--ease); pointer-events: none; }
.mosaic__open { position: absolute; right: var(--s-3); bottom: var(--s-3); z-index: 1; width: 20px; height: 20px; color: #fff; opacity: 0; transform: translateY(4px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .mosaic button:hover img { transform: scale(1.03); }
  .mosaic button:hover::after { opacity: 1; }
  .mosaic button:hover .mosaic__open { opacity: 1; transform: none; }
}
.mosaic button:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
/* from 1024 the album is three columns with a tall lead tile that spans two rows */
@media (min-width: 1024px) {
  .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 2 * var(--mgap)) / 3); }
  .mosaic__lead { grid-row: span 2; }
  .mosaic__lead.is-right { grid-column: 3; }
}
.album-more { display: flex; justify-content: center; margin-top: var(--s-7); }
.album-nav { display: flex; justify-content: space-between; gap: var(--s-5); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); }
@media (max-width: 639px) { .album-nav { flex-direction: column; } }
.yarl__root { --yarl__color_backdrop: rgb(24 23 22 / .96); --yarl__thumbnails_thumbnail_border_color: transparent; --yarl__thumbnails_thumbnail_active_border_color: var(--p-inv-ink); }

/* close-word: the dealt size is for a short name; "Jayden Rasmussen" is 16 letters, so it is hand-set to fit the .wrap at every width */
.close__word { font-size: clamp(36px, 11vw, 168px); line-height: 1.05; overflow: visible; }

/* music page: square cover art with the album's two listening links under it */
.music__artist { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: 0; }
.release { display: grid; gap: var(--s-4); align-content: start; --animate-duration: 600ms; }
.release__art { overflow: clip; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--surface); }
.release__art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.release .tile__head h2 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.release .tile__facts { margin: calc(-1 * var(--s-3)) 0 0; color: var(--muted); font-size: var(--t-small); }
.release__links { display: grid; gap: var(--s-1); margin: 0; justify-items: start; }
@media (min-width: 640px) and (max-width: 1279px) { .release.span-4 { grid-column: auto / span 6; } }
