@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #ffffff;
  --ink: #141412;
  --line: rgba(20, 20, 18, .22);
  --gap: clamp(9px, 1vw, 14px);
  --card: min(66vw, 65vh, 680px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { overflow: hidden; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { color: inherit; font: inherit; }

.masthead, .footer {
  position: fixed; left: 0; width: 100%; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 17px 20px; font-size: 11px; line-height: 1; letter-spacing: .05em; text-transform: uppercase;
}
.masthead { top: 0; }
.footer { bottom: 0; }
.identity { justify-self: start; text-decoration: none; border-bottom: 1px solid transparent; }
.identity:hover, .identity:focus-visible { border-color: currentColor; }
.instruction { margin: 0; opacity: .55; }
.mobile-copy { display: none; }
.count { justify-self: end; margin: 0; font-variant-numeric: tabular-nums; }
.footer > span { opacity: .55; }
.footer nav { grid-column: 3; justify-self: end; display: flex; gap: 6px; }
.arrow {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .7); cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.arrow:hover, .arrow:focus-visible { color: var(--paper); background: var(--ink); transform: scale(1.06); outline: none; }

main, .carousel { width: 100%; height: 100svh; }
.carousel { position: relative; display: flex; align-items: center; overflow: hidden; touch-action: pan-y; cursor: grab; outline: none; }
.carousel:active { cursor: grabbing; }
.carousel::before, .carousel::after {
  content: ""; position: absolute; z-index: 4; top: 0; bottom: 0; width: clamp(18px, 8vw, 150px); pointer-events: none;
}
.carousel::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.carousel::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.track { display: flex; align-items: center; gap: var(--gap); will-change: transform; transform-style: preserve-3d; }
.card-wrap { flex: 0 0 var(--card); width: var(--card); margin: 0; will-change: transform, opacity; transform-style: preserve-3d; }
.card { display: block; text-decoration: none; outline: none; }
.art {
  position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--tone, #d9d4ca);
  isolation: isolate; transform: translateZ(0); transition: border-radius .45s cubic-bezier(.2,.8,.2,1);
}
.card:hover .art, .card:focus-visible .art { border-radius: 1.8%; }
.art img { position: absolute; inset: -5%; width: 110%; height: 110%; object-fit: cover; transform: translate3d(var(--parallax, 0px), 0, 0) scale(1.03); will-change: transform; }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--tone); overflow: hidden; }
.fallback::before, .fallback::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; }
.fallback::before { transform: translate(-31%, -36%); }
.fallback::after { transform: translate(36%, 32%); }
.fallback span { position: relative; z-index: 1; max-width: 82%; font-size: clamp(44px, 7vw, 112px); line-height: .82; letter-spacing: -.075em; font-weight: 700; text-align: center; color: var(--on-tone, #fff); }
.art.has-image .fallback { display: none; }
.shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 63%, rgba(0,0,0,.24)); pointer-events: none; }
.visit {
  position: absolute; z-index: 2; right: 13px; bottom: 13px; padding: 9px 11px; border-radius: 99px;
  background: rgba(246,245,240,.9); color: #111; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.card:hover .visit, .card:focus-visible .visit { opacity: 1; transform: none; }
.caption { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 8px; align-items: baseline; padding-top: 10px; }
.caption h2 { margin: 0; font-size: clamp(15px, 1.25vw, 20px); letter-spacing: -.025em; line-height: 1; font-weight: 600; }
.number, .kind, .access { font-size: 9px; line-height: 1; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.number, .kind { opacity: .5; }
.access { grid-column: 2; color: #8a3228; margin-top: -2px; }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  :root { --card: min(80vw, 58vh); --gap: 8px; }
  .masthead, .footer { padding: 15px 14px; }
  .masthead { grid-template-columns: 1fr auto; }
  .instruction { display: none; }
  .count { grid-column: 2; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  .footer { grid-template-columns: 1fr auto; }
  .footer nav { grid-column: 2; }
  .arrow { width: 36px; height: 36px; }
  .caption { grid-template-columns: 23px minmax(0,1fr); }
  .kind { display: none; }
  .access { grid-column: 2; }
  .visit { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: auto; }
  .carousel::-webkit-scrollbar { display: none; }
  .track { transform: none !important; padding-inline: calc((100vw - var(--card)) / 2); }
  .card-wrap { scroll-snap-align: center; transform: none !important; opacity: 1 !important; }
  .art img { transform: scale(1.03) !important; }
}

/* Covers are complete square compositions: preserve every edge and label. */
.art img { inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none; will-change: auto; }
.shade { display: none; }
@media (prefers-reduced-motion: reduce) { .art img { transform: none !important; } }

@font-face {
  font-family: 'Exposure';
  src: url('exposure-display.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.identity {
  font-family: 'Exposure', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  font-synthesis: none;
  text-transform: none;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.masthead { grid-template-columns: auto 1fr auto; gap: 24px; }
.instruction { justify-self: center; }
.art, .card:hover .art, .card:focus-visible .art {
  border-radius: 24px;
  box-shadow: 0 12px 26px -12px rgba(29, 25, 18, .3), 0 3px 9px rgba(29, 25, 18, .08);
}
/* A compact horizontal record sleeve carousel on every screen. */
:root { --card: min(42vw, 62vh, 560px); --overlap: calc(var(--card) * .16); }
.track { gap: 0; }
.card-wrap { margin-right: calc(-1 * var(--overlap)); }
.art { aspect-ratio: 8 / 5; }
@media (max-width: 720px) {
  :root { --card: min(64vw, 65svh); --overlap: calc(var(--card) * .18); }
  .masthead { min-height: 76px; grid-template-columns: 1fr auto; gap: 12px; padding: 20px 18px; }
  .identity { font-size: clamp(27px, 7.7vw, 36px); white-space: nowrap; }
  .count { font-size: 10px; white-space: nowrap; }
  .carousel::before, .carousel::after { width: 18px; }
  .art, .card:hover .art, .card:focus-visible .art { border-radius: 16px; }
  .caption { grid-template-columns: minmax(0, 1fr); gap: 5px; padding-top: 10px; }
  .caption .number { display: none; }
  .caption h2 { font-size: 14px; line-height: 1.1; }
  .access { grid-column: 1; font-size: 8px; }
  .visit { display: none; }
  .footer { padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .track { gap: 10px; }
  .card-wrap { margin-right: 0; }
}

/* Project identity lives in the cover corner, never outside the artwork. */
.caption {
  position: absolute; z-index: 3; top: 12px; left: 12px;
  max-width: calc(100% - 24px); display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px; padding: 10px 13px;
  background: rgba(250, 249, 244, .96); color: #141412;
  border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.caption .number { display: none; }
.caption h2 {
  font-family: 'Exposure', Georgia, serif; font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 400; font-synthesis: none; letter-spacing: -.025em; line-height: 1.05; margin: 0;
}
.caption .kind { display: block; font-size: 11px; line-height: 1.15; opacity: .7; letter-spacing: .025em; }
.caption .access { margin: 2px 0 0; font-size: 9px; }
@media (max-width: 720px) {
  :root { --sleeve-height: calc(var(--card) * .625 + 14px); }
  .caption { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 7px 9px; gap: 3px; border-radius: 7px; }
  .caption h2 { font-size: 18px; }
  .caption .kind { font-size: 9px; }
}

/* Unboxed labels occupy their own space above the artwork. */
.caption {
  position: static; max-width: 100%; height: 64px;
  padding: 0 4px 12px; justify-content: flex-end;
  background: transparent; border-radius: 0; box-shadow: none;
}
@media (max-width: 720px) {
  :root { --sleeve-height: calc(var(--card) * .625 + 64px); }
  .caption { height: 56px; padding: 0 2px 10px; }
  .card-wrap { margin-bottom: 0; }
}

/* Tighter rhythm with a protected title area. */
@media (min-width: 721px) {
  :root { --overlap: calc(var(--card) * .18); }
  .caption { max-width: calc(100% - var(--overlap) - 8px); }
  .caption h2 { font-size: clamp(19px, 1.5vw, 24px); }
}
@media (max-width: 720px) {
  :root { --sleeve-height: calc(var(--card) * .625 + 52px); }
  .caption { height: 48px; padding-bottom: 6px; gap: 2px; }
  .card-wrap { margin-bottom: 0; }
}

/* Compact mobile stack: shallow tilt prevents artificial visual gaps. */
@media (max-width: 720px) {
  :root { --sleeve-height: calc(var(--card) * .625 + 38px); }
  .caption { height: 38px; padding: 0 2px 4px; gap: 1px; justify-content: flex-end; }
  .caption h2 { font-size: 17px; line-height: 1; }
  .caption .kind { font-size: 9px; line-height: 1; }
  .card-wrap { margin-bottom: 0; }
}

@font-face {
  font-family: 'Exposure Text';
  src: url('exposure-text.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.caption .kind {
  font-family: 'Exposure Text', Georgia, serif;
  font-weight: 400;
  font-synthesis: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1.1;
}
@media (max-width: 720px) {
  .caption .kind { font-size: 12px; line-height: 1; }
}

/* Diffuse brand-colored aura follows each sleeve without covering its artwork. */
.art, .card:hover .art, .card:focus-visible .art {
  box-shadow:
    0 12px 26px -12px rgba(29, 25, 18, .26),
    0 3px 9px rgba(29, 25, 18, .08),
    0 12px 52px -5px color-mix(in srgb, var(--aura) 62%, transparent),
    0 24px 112px -8px color-mix(in srgb, var(--aura) 48%, transparent);
}
@media (max-width: 720px) {
  .art, .card:hover .art, .card:focus-visible .art {
    box-shadow:
      0 8px 20px -9px rgba(29, 25, 18, .24),
      0 8px 36px -3px color-mix(in srgb, var(--aura) 58%, transparent),
      0 16px 68px -5px color-mix(in srgb, var(--aura) 44%, transparent);
  }
}

/* Black Exposure labels with stronger category weight. */
.caption h2, .caption .kind { color: #141412; }
.caption .kind { font-weight: 600; font-synthesis: weight; opacity: 1; }

/* Instrument Sans portfolio typography. */
.identity, .caption h2, .caption .kind {
  font-family: 'Instrument Sans', Arial, sans-serif;
  font-synthesis: none;
}
.identity { font-weight: 600; letter-spacing: -.04em; }
.caption h2 { font-weight: 600; letter-spacing: -.025em; }
.caption .kind { font-weight: 400; letter-spacing: 0; }

/* Mobile horizontal cover flow, with labels clear of overlapping sleeves. */
@media (max-width: 720px) {
  :root { --card: min(76vw, 62svh, 480px); --overlap: calc(var(--card) * .20); }
  .carousel { touch-action: pan-y; }
  .track { flex-direction: row; }
  .card-wrap { flex: 0 0 var(--card); height: auto; margin-right: calc(-1 * var(--overlap)); margin-bottom: 0; }
  .caption { max-width: calc(100% - var(--overlap) - 8px); height: 58px; padding: 0 2px 8px; gap: 4px; }
  .caption h2 { font-size: 17px; line-height: 1.1; }
  .caption .kind { font-size: 12px; line-height: 1.1; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .carousel { touch-action: pan-x pan-y; }
  .card-wrap { margin-right: 0; }
}

/* Personal pen annotations from the approved mockup. */
.project-note, .work-note { font-family: 'Caveat', cursive; font-weight: 400; color: #141412; letter-spacing: .01em; }
.project-note { position: fixed; z-index: 5; top: 76px; left: 60px; width: 210px; height: min(19svh, 155px); pointer-events: none; }
.project-note span { position: absolute; top: 22px; left: 50px; font-size: 30px; white-space: nowrap; transform: rotate(-4deg); }
.project-note svg { width: 150px; height: 100%; overflow: visible; }
.project-note path, .work-note path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work-note { position: fixed; z-index: 6; left: 50%; top: 80svh; transform: translate(-50%, -50%) rotate(-2deg); display: flex; flex-direction: column; align-items: center; padding: 10px 18px 18px; font-size: 30px; line-height: 1.13; text-decoration: none; white-space: nowrap; }
.work-note-line { position: relative; }
.work-note svg { position: absolute; left: 0; top: 100%; width: 100%; height: 15px; }
.work-note:hover { transform: translate(-50%, -50%) rotate(0deg); }
.work-note:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; border-radius: 6px; }
@media (max-width: 720px) {
  .project-note { top: 78px; left: 15vw; width: 180px; height: min(17svh, 130px); }
  .project-note span { top: 18px; left: 43px; font-size: 27px; }
  .project-note svg { width: 130px; }
  .work-note { font-size: 28px; }
}
@media (max-height: 560px) {
  :root { --card: min(42vw, 48svh, 560px); }
  .project-note { top: 60px; height: 64px; left: 24px; }
  .project-note span { top: 6px; left: 58px; font-size: 23px; }
  .work-note { top: auto; bottom: 48px; transform: translateX(-50%) rotate(-2deg); flex-direction: row; gap: 6px; font-size: 23px; }
  .work-note:hover { transform: translateX(-50%); }
}
