.profiles-page {
  --profile-edge: #baab93;
  --profile-muted: #536469;
  color: #142a34;
  max-width: 1280px;
  padding: clamp(104px, 11vw, 144px) var(--margin) clamp(40px, 6vw, 72px);
}
.profiles-page :focus-visible { outline-color: #1e6866; }
.profiles-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .6rem;
  margin-bottom: 18px;
  color: var(--profile-muted);
  font-size: .8rem;
}
.profiles-crumb svg, .profiles-caption svg, .profiles-songs svg, .profiles-related svg { width: 15px; height: 15px; }
.profiles-crumb a:hover { text-decoration: underline; }
.profiles-page .eyebrow { color: #64502f; }
.profiles-page .eyebrow::before { background: #aa8650; }
.profiles-page h1 {
  margin: 8px 0 10px;
  font-size: clamp(3.1rem, 7vw, 6.1rem);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.cast-intro {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.16fr); align-items: center;
  gap: clamp(20px,4vw,64px); isolation: isolate; position: relative;
  margin-top: 26px; padding: 0 clamp(20px,4vw,62px); color: #fff3db;
}
.cast-intro::before, .person-cover::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 35%,#51615b55,transparent 55%),
    linear-gradient(110deg,#132a36f5,#203c48e8),url('/assets/images/havn-aften.webp') center / cover;
  clip-path: polygon(0 5%,14% 2%,31% 3%,58% 0,76% 2%,99.5% 1%,100% 91%,89% 94%,59% 97%,35% 96%,12% 100%,.4% 96%);
}
#main .cast-intro .eyebrow { color: #edca92; }
.cast-intro > div { padding-block: clamp(24px,4vw,56px); }
@media (min-width: 761px) {
  .cast-intro::before { inset-block: 20px 0; }
  .cast-lineup { margin-block: -15px -6px; }
}
.cast-intro > div > p:last-child { max-width: 49ch; color: #ebe6d8; line-height: 1.55; }
.cast-intro h1 { margin: 10px 0 12px; }
.cast-lineup { display: grid; grid-template-columns: 1.05fr 1.03fr .82fr; gap: 4%; align-items: end; }
.cast-lineup a { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: end; }
.cast-lineup a::before { content: ''; position: absolute; z-index: -1; inset: 0 -12% 12%; background: radial-gradient(ellipse at 50% 75%,#e6bf8040,transparent 68%); opacity: .45; }
.cast-lineup a:hover::before, .cast-lineup a:focus-visible::before { opacity: 1; }
.cast-lineup img { width: 100%; height: auto; filter: drop-shadow(2px 7px 4px #0716218c); }
.cast-lineup a:first-child img { width: 94%; }
.cast-lineup a:last-child img { width: 86%; }
.cast-lineup span {
  display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 36px; padding: 3px 8px;
  background: #eee0bf url('/assets/images/papir.webp') center / 270px; background-blend-mode: multiply;
  color: #302b23; font: 600 clamp(18px,2vw,28px)/1.05 var(--serif); white-space: nowrap;
  box-shadow: 1px 3px 5px #0b172646; transform: rotate(-2deg);
}
.cast-lineup svg { width: 14px; height: 14px; }
.cast-lineup a:hover span { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .cast-lineup img { transition: transform .22s ease; }
  .cast-lineup a:is(:hover,:focus-visible) img { transform: translateY(-5px) rotate(-1deg); }
}
@media (max-width: 760px) {
  .cast-intro { grid-template-columns: 1fr; gap: 0; margin-top: 6px; }
  .cast-intro > div { padding: 23px 0 0; }
  .cast-lineup { width: min(100%,420px); margin: 12px auto 0; }
  .cast-lineup svg { display: none; }
}
.profiles-jump { display: flex; flex-wrap: wrap; gap: 6px 9px; margin-bottom: 24px; }
.profiles-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--profile-edge);
  border-radius: 7px;
  font-size: .82rem;
  background: #f9f3e9;
}
.profiles-jump a:hover { border-color: #8e7350; text-decoration: underline; }
.profiles-group + .profiles-group { margin-top: 28px; }
.profiles-group > h2 { margin-bottom: 11px; font-size: clamp(1.8rem, 3.6vw, 2.65rem); }
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.profiles-card {
  display: block;
  height: 100%;
  padding: 7px;
  border: 1px solid var(--profile-edge);
  border-radius: 12px;
  background: linear-gradient(150deg, #fffaf0, #e8dfcf);
  box-shadow: inset 0 1px #fffdf4, 0 4px 12px #48361d1f;
  transition: box-shadow .2s, border-color .2s;
}
.profiles-card:hover { border-color: #8e7350; box-shadow: inset 0 1px #fffdf4, 0 6px 16px #48361d34; }
.profiles-frame {
  padding: 4px;
  border: 1px solid #72542f;
  border-radius: 8px;
  background: linear-gradient(150deg, #a48350, #203e48 24%, #152c35 77%, #6b4b2c);
  box-shadow: inset 0 0 0 1px #ead9b433;
}
.profiles-frame img { width: 100%; height: auto; border-radius: 4px; }
.profiles-ensemble { grid-column: span 2; }
.profiles-caption { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 9px 8px 5px; }
.profiles-caption h3 { font-size: clamp(1.45rem, 2.9vw, 2.1rem); letter-spacing: -.035em; }
.profiles-caption p { margin-top: 3px; font-size: .75rem; line-height: 1.4; color: var(--profile-muted); }
.profiles-detail { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(25px, 6vw, 84px); align-items: start; }
.profiles-detail > .profiles-frame { padding: 7px; max-width: 460px; box-shadow: 0 13px 30px #41392531; }
.profiles-detail img { aspect-ratio: 1; }
.profiles-bio > p:not(.eyebrow) { max-width: 58ch; margin-bottom: 12px; }
.profiles-bio .profiles-lead { font-size: 1.12rem; }
.profiles-songs { margin-top: 20px; }
.profiles-songs h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.profiles-songs ul { list-style: none; padding: 0; margin: 7px 0 0; border-top: 1px solid var(--profile-edge); }
.profiles-songs li { border-bottom: 1px solid var(--profile-edge); }
.profiles-songs li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; min-height: 44px; }
.profiles-songs a:hover, .profiles-related a:hover { color: #285e5a; text-decoration: underline; }
.profiles-album { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-weight: 600; }
.profiles-related { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 28px; border-top: 1px solid var(--profile-edge); padding-top: 12px; }
.profiles-related > span { color: var(--profile-muted); }
.profiles-related a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--profile-edge); border-radius: 7px; }
@media (max-width: 760px) {
  .profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profiles-detail { grid-template-columns: 1fr; }
  .profiles-detail > .profiles-frame { width: min(100%, 340px); }
}
@media (max-width: 420px) {
  .profiles-caption { padding: 8px 3px 4px; }
  .profiles-caption svg { display: none; }
}

.crew-find:not([hidden]) { display: flex; gap: 10px 20px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.crew-find .search { width: min(100%, 380px); }
.crew-find input { min-width: 0; }
.crew-find span[role] { font-size: 14px; color: var(--profile-muted); }
.profiles-group + .profiles-group { margin-top: clamp(32px, 5vw, 70px); }
.crew-banner, .person-cover { display: grid; align-items: center; color: #fff4df; }
.crew-banner {
  position: relative; isolation: isolate; grid-template-columns: clamp(136px,23%,254px) minmax(0,1fr);
  gap: clamp(18px,3vw,42px); padding: 0 clamp(14px,2.6vw,36px); margin-block: 12px 18px;
}
.crew-banner::before {
  content: ''; position: absolute; z-index: -1; inset: 7px 0; border: 1px solid #465253; border-radius: 4px 14px 4px 3px;
  background: linear-gradient(98deg,#172d3c26,#213e4b88),var(--leather-blue) url('/assets/images/blaat-laeder.webp') center / 520px;
  box-shadow: inset 0 1px #e5d1ac52, 1px 4px 8px #192d3529;
}
.crew-banner img, .person-cover > img { display: block; width: 100%; height: auto; }
.crew-banner img {
  padding: clamp(3px,.42vw,6px); background: #f3ead8; border: 1px solid #bcae94;
  transform: rotate(-2deg); box-shadow: 1px 3px 5px #0e1d26a8; object-fit: contain;
}
.profiles-group:nth-of-type(even) .crew-banner img { transform: rotate(1.6deg); }
.crew-banner > div { padding-block: 22px; }
.person-cover > div { padding: clamp(20px,3.5vw,52px); }
.crew-banner h2 { margin: 0; font-size: clamp(26px,3.2vw,44px); line-height: 1.02; letter-spacing: -.027em; overflow-wrap: anywhere; hyphens: auto; }
.crew-banner p { margin: 6px 0 0; max-width: 64ch; color: #e8e2d4; font-size: .94rem; line-height: 1.43; }
#galleri-walter-og-otto .profiles-grid { max-width: 37rem; margin-inline: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
.person-cover h1 { font-size: clamp(40px,5.8vw,86px); margin: 10px 0 6px; line-height: .99; color: inherit; }
.person-cover a { color: #ead2a4; font-size: 14px; text-underline-offset: 4px; }
.person-cover a:hover { text-decoration: underline; }
.person-cover p { font-size: clamp(17px,1.6vw,23px); line-height: 1.4; }
.person-read { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; }
.person-read svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .crew-banner { grid-template-columns: clamp(79px,24vw,146px) minmax(0,1fr); gap: 12px; padding-inline: 8px 12px; }
  .crew-banner > div { padding-block: 19px; }
  .crew-banner p { font-size: .84rem; }
  .person-cover > div { padding: 16px 20px; }
  .person-read { margin-top: 2px; }
}
.person-columns { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(0,1.6fr); align-items: start; gap: clamp(24px,6vw,78px); margin: 32px 0; }
.person-facts { padding: clamp(14px,2vw,24px); border: 1px solid #bbad97; border-radius: 10px; background: #f7efdf; }
.person-facts img { width: 100%; height: auto; border-radius: 5px; margin-bottom: 15px; }
.person-facts { display: flow-root; }
.person-kind { margin: 0 0 8px; color: var(--profile-muted); font-size: .85rem; }
.person-facts h2 { margin: 0 0 8px; font-size: clamp(1.4rem,2.2vw,2rem); line-height: 1.1; }
.person-story p { max-width: 62ch; margin: 0 0 1em; }
.person-story h2, .person-album h2, .person-interview h2, .person-wallpapers h2 { font-size: clamp(2rem,4vw,3.4rem); margin-bottom: 16px; }
.person-story .profiles-lead { font-size: clamp(1.13rem,2vw,1.38rem); }
.wallpaper-pairs { display: grid; gap: 16px; }
.wallpaper-pairs figure { margin: 0; }
.wallpaper-pairs img { width: 100%; height: auto; object-fit: contain; display: block; border-radius: 6px; }
.person-interview { margin: 36px 0; padding: clamp(20px,4vw,48px); background: #183839; color: #fff8e8; border-radius: 12px; }
.person-interview dl { max-width: 75ch; margin: 0; }
.person-interview dl > div { padding: 12px 0; border-top: 1px solid #ffffff40; }
.person-interview dt { color: #edd8a7; font-weight: 600; }
.person-interview dd { margin: 4px 0 0; }
.person-wallpapers { scroll-margin-top: 100px; }
.wallpaper-pairs { grid-template-columns: repeat(2,minmax(0,1fr)); }
.wallpaper-previews { display: grid; grid-template-columns: minmax(0,256fr) minmax(0,81fr); gap: 8px; align-items: end; }

.wallpaper-pairs h3 { margin: 7px 0 0; }
.wallpaper-pairs a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; text-decoration: underline; }
@media(max-width:650px) {
  .person-columns, .wallpaper-pairs { grid-template-columns: 1fr; }
  .person-facts img { float: right; width: 35%; margin: 0 0 8px 12px; }
}

.person-album {
  position: relative; padding: clamp(14px,2.4vw,32px); border: 1px solid #152a35; border-radius: 6px 16px 16px 7px;
  background: linear-gradient(90deg,#08192580,#233f4d17 1.3%,#10243166 2.3%,transparent 5%),var(--leather-blue) url('/assets/images/blaat-laeder.webp') center / 490px;
  box-shadow: inset 1px 1px 2px #f6e5c468, inset -2px -3px 3px #091c26b0, 2px 7px 13px #352b202e;
}
.person-album::before { content: ''; position: absolute; inset: 6px; border: 1px dashed #c3a47876; border-radius: 3px 10px 10px 4px; pointer-events: none; }
.person-album header, .album-controls:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.person-album header { flex-wrap: wrap; margin: 0 3px clamp(12px,1.7vw,23px); }
.person-album h2 { margin: 0; color: #ead2a7; font-size: clamp(31px,3.5vw,49px); line-height: 1; text-shadow: 0 1px 1px #031521; }
.album-controls { flex: none; margin-left: auto; color: #f5e9ce; }
.album-controls button {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a68a5e; border-radius: 50%;
  color: #302d25; background: linear-gradient(145deg,#f4dfb9,#c6a578 70%,#b49367); box-shadow: inset 0 1px 1px #fff6db, 0 2px 3px #06141c88;
}
.album-controls button:is(:hover,:active) { background: #f0dab5; }
.album-controls button:focus-visible { outline-color: #ffe5b5; outline-offset: 3px; }
.album-controls svg { width: 18px; height: 18px; }
.album-controls [data-step="-1"] svg { transform: rotate(180deg); }
.album-controls span { min-width: 4ch; text-align: center; font: 500 .85rem var(--sans); font-variant-numeric: tabular-nums; }
.album-photos { display: grid; gap: 18px; }
.album-photos figure {
  --crease: linear-gradient(90deg,transparent 51%,#92785526 58%,#77634869 61.45%,#5d493c9c 61.8%,#fef5df99 62.2%,#8a714729 63%,transparent 69%);
  display: grid; grid-template-columns: minmax(0,1.618fr) minmax(0,1fr); align-items: center;
  min-height: clamp(250px,32vw,405px); margin: 0; border: 1px solid #bdaa8b; border-radius: 2px 7px 8px 3px;
  color: #363e3d; background: var(--crease),#f5ecd5 url('/assets/images/papir.webp') center / 520px;
  box-shadow: 0 2px #c7b99e,0 3px #eee5ce,0 5px #ab9a7d,1px 7px 5px #07192285;
}
.album-photos figure[hidden] { display: none; }
.album-photos a {
  position: relative; display: block; justify-self: center; max-width: 87%; margin: 22px 0; padding: clamp(3px,.5vw,7px);
  background: #fffaed; transform: rotate(-1.5deg); box-shadow: 1px 3px 6px #3d322e63;
}
.album-photos a::after {
  content: ''; position: absolute; pointer-events: none; inset: -2px;
  --corner: #5b5143 46%,#aa956e 49%,#665846 52%,transparent 53%;
  background: linear-gradient(135deg,var(--corner)) top left,linear-gradient(225deg,var(--corner)) top right,
    linear-gradient(45deg,var(--corner)) bottom left,linear-gradient(315deg,var(--corner)) bottom right;
  background-size: clamp(12px,1.8vw,24px) clamp(12px,1.8vw,24px); background-repeat: no-repeat;
}
.album-photos a:focus-visible { outline-offset: 5px; }
.album-photos img { display: block; width: auto; max-width: 100%; height: auto; max-height: clamp(210px,26vw,344px); object-fit: contain; }
.album-photos figcaption { width: 76%; justify-self: center; font: italic 500 clamp(21px,2.1vw,32px)/1.25 var(--serif); }
@media (prefers-reduced-motion: no-preference) {
  .album-open .album-photos figure:not([hidden]) { animation: album-leaf .25s ease-out; }
  @keyframes album-leaf { from { opacity: .6; transform: perspective(900px) rotateY(-3deg); } }
}
@media (max-width: 620px) {
  .album-photos figure {
    --crease: linear-gradient(90deg,#7d6a4d55,#faf1d433 3%,#715f4533 4%,transparent 9%);
    grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; min-height: 0; padding: 18px 4% 20px 7%; gap: 9px;
  }
  .album-photos a { max-width: 96%; margin: 4px 0; }
  .album-photos img { max-height: min(60vw,290px); }
  .album-photos figcaption { width: 93%; text-align: center; font-size: 21px; }
  .album-controls:not([hidden]) { gap: 5px; }
}

.person-cover {
  position: relative; isolation: isolate; overflow: visible; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
  grid-template-columns: minmax(0,1.618fr) minmax(0,1fr);
}
.person-cover > img { border-radius: 2px; transform: rotate(-.7deg); box-shadow: 1px 5px 12px #18313338; }
.person-cover.walter-cover > img { transform: none; box-shadow: none; mask: url('/assets/images/walter-contour.svg') center / 100% 100% no-repeat; }
.person-facts { background: linear-gradient(120deg,#ccb38833,transparent 45%),#fcf2df url('/assets/images/papir.webp') center / 540px; background-blend-mode: multiply; border-radius: 2px 5px 9px 3px; box-shadow: 2px 4px 8px #65513320; }
@media (max-width: 760px) {
  .person-cover { grid-template-columns: 1fr; }
  .person-cover > div { padding-bottom: 27px; }
}
.deck-plan { margin-top: 15px; border-block: 1px solid #9b896c; }
.deck-plan summary { min-height: 48px; padding-block: 10px; font: 600 23px/1.25 var(--serif); cursor: pointer; }
.deck-plan > div { display: grid; grid-template-columns: minmax(0,1.618fr) minmax(0,1fr); gap: 16px clamp(20px,3vw,44px); align-items: center; padding: 8px 0 24px; }
.deck-plan img { display: block; width: 100%; height: auto; box-shadow: 1px 3px 9px #233d3b44; }
.deck-plan a { text-decoration: underline; text-underline-offset: 3px; }
.deck-plan a span { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; }
.deck-plan svg { width: 15px; height: 15px; }
.deck-plan dl { margin: 0; }
.deck-plan dt { font-weight: 650; color: #574627; }
.deck-plan dd { margin: 0 0 9px; }
@media (max-width: 700px) { .deck-plan > div { grid-template-columns: 1fr; } }
