/* Rune Nissen – Om Rune (/rune, rune/index.html): a page of its own about Rune on the light creme. His name, then who
   he is: a print from the shoot that looks where the mouse is, the story, the roles and how he works; the numbers and
   the brands. The burger and menu are the front page's (css/menu.css), the footer is the subpages' own
   (css/footer.css). */
body.om { background: var(--creme); color: var(--petrol-900); }
.om h1, .om h2, .om h3, .om p { margin: 0; }
.om .logo { color: var(--petrol-900); }
.om-main { --pad: clamp(20px, 3.9vw, 56px); }
.om-sm { font-family: 'Smooch Sans', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: .88; }
.om-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: rgba(13,26,28,.58); }

/* ---------- Name ---------- */
.om-top { display: grid; grid-template-columns: 1fr minmax(260px, 420px); align-items: end; gap: 24px 64px; padding: 150px var(--pad) 64px; }
.om-top h1 { margin-top: 14px; font-size: clamp(64px, 11.7vw, 168px); line-height: .8; }
.om-top .om-lede { font-size: 18px; line-height: 1.55; color: rgba(13,26,28,.76); }

/* ---------- Who he is ---------- */
.om-who { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 56px 80px; align-items: center; padding: 110px var(--pad) 100px; background: #EBE6D9; }
/* A print from the shoot with lime behind it; the photo of the direction he looks in lies on top */
.om-print { position: relative; aspect-ratio: 4 / 5; margin: 0 22px 22px 0; overflow: hidden; border-radius: 16px; background: #D9D4C7; box-shadow: 22px 22px 0 var(--lime); }
.om-print img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.om-print img.is-on { opacity: 1; }
.om-who h2 { margin-top: 14px; font-size: clamp(56px, 6.7vw, 96px); }
.om-story p { margin-top: 18px; max-width: 600px; font-size: 18px; line-height: 1.55; color: rgba(13,26,28,.78); }
.om-story p:first-child { margin-top: 30px; }
.om-nw { white-space: nowrap; } /* one-man-army in one piece, not broken at a hyphen on phones */
.om-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.om-roles li { padding: 7px 14px; border: 1px solid rgba(13,26,28,.25); border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.om-roles li:first-child { border-color: var(--petrol-900); background: var(--petrol-900); color: var(--creme); }
/* A small collage from his shoots: five prints in a row, white edged, each a little askew and lying over the one
   before it, as if laid on the table; the mouse straightens and lifts the one under it. Three over two on phones. */
.om-collage { display: flex; max-width: 800px; margin-top: 52px; padding: 6px 0 10px; }
.om-collage img { position: relative; flex: 1 1 0; min-width: 0; width: 100%; height: auto; margin-left: -3.5%; aspect-ratio: 4 / 5; object-fit: cover; border: 5px solid #FBF8F1; border-radius: 6px; background: #D9D4C7; box-shadow: 0 12px 28px rgba(13,26,28,.18); transform: translateY(var(--y)) rotate(var(--r)); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.om-collage img:first-child { margin-left: 0; }
.om-collage img:nth-child(1) { --r: -3deg; --y: 4px; }
.om-collage img:nth-child(2) { --r: 2deg; --y: -6px; }
.om-collage img:nth-child(3) { --r: -1.5deg; --y: 8px; }
.om-collage img:nth-child(4) { --r: 2.5deg; --y: -2px; }
.om-collage img:nth-child(5) { --r: -2deg; --y: 6px; }
@media (hover: hover) {
  .om-collage img:hover { z-index: 2; transform: translateY(-8px) rotate(0deg) scale(1.06); box-shadow: 0 20px 38px rgba(13,26,28,.24); }
}

/* ---------- The numbers and the brands ---------- */
.om-nums { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 90px var(--pad); list-style: none; }
.om-nums li + li { padding-left: 40px; border-left: 1px solid rgba(13,26,28,.15); }
.om-nums b { display: block; font-family: 'Smooch Sans', sans-serif; font-weight: 900; font-size: clamp(80px, 8.3vw, 120px); line-height: .85; }
.om-nums small { margin-left: .06em; font-size: .4em; font-weight: 800; }
.om-nums span { display: block; margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(13,26,28,.62); }
/* The brands: the front page's ticker (css/sections.css, run by the same js/brands.js) between two hairlines, in the
   ink the front page's strip has once the light is up */
.om-brands { padding: 56px 0 60px; border-top: 1px solid rgba(13,26,28,.12); border-bottom: 1px solid rgba(13,26,28,.12); }
.om .brands-label { margin-bottom: 26px; padding: 0 16px; text-align: center; }
/* (room over and under the logos, so the tallest still fits when it lifts under the mouse; the layout is the same) */
.brands-view { padding: 6px 0; margin: -6px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.brands-track { display: flex; width: max-content; animation: brands 88s linear infinite; }
.brands:not(.is-live) .brands-view:hover .brands-track { animation-play-state: paused; }
.brands-track ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.brands-track li { padding-right: clamp(48px, 6vw, 88px); font-size: clamp(28px, 3vw, 40px); line-height: 1; white-space: nowrap; color: rgba(13,26,28,.56); transition: color .25s ease; }
/* Run by js/brands.js (.is-live): under the mouse the logo there darkens and lifts a little, the others dim a touch;
   towards either end an arrow comes up (--edge-l, --edge-r: 0 away from the strip, .35 over it, 1 at the very end) */
.brands-roll { position: relative; }
.brands.is-live .brands-track { animation: none; will-change: transform; }
.brands.is-over .brands-track li { color: rgba(13,26,28,.4); }
.brands.is-over .brands-track li.is-lit { color: var(--petrol-900); }
.brands-track .brand-logo { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.brands-track li.is-lit .brand-logo { transform: scale(1.08); }
.brands-edge { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border: 1px solid rgba(13,26,28,.16); border-radius: 50%; background: rgba(243,239,228,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--petrol-900); font-size: 16px; line-height: 1; pointer-events: none; transition: opacity .2s ease; }
.brands-edge.is-left { left: clamp(12px, 2.5vw, 40px); opacity: var(--edge-l, 0); transform: scale(calc(.9 + var(--edge-l, 0) * .1)); }
.brands-edge.is-right { right: clamp(12px, 2.5vw, 40px); opacity: var(--edge-r, 0); transform: scale(calc(.9 + var(--edge-r, 0) * .1)); }
@media (hover: none) { .brands-edge { display: none; } }
@keyframes brands { to { transform: translateX(-50%); } }
/* A logo: its silhouette (the mask image on each, in the page) filled with the strip's ink */
.brand-logo { display: block; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

@media (max-width: 1000px) {
  .om-who { grid-template-columns: 1fr; }
  .om-print { max-width: 440px; }
}
@media (max-width: 600px) {
  .om-top { grid-template-columns: 1fr; padding: 118px 20px 40px; }
  .om-top .om-lede { font-size: 16px; }
  .om-who { gap: 30px; padding: 72px 20px 80px; }
  .om-print { margin: 0 14px 14px 0; box-shadow: 14px 14px 0 var(--lime); }
  .om-collage { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 10px; margin-top: 36px; }
  .om-collage img { grid-column: span 2; margin-left: 0; border-width: 4px; }
  .om-collage img:nth-child(4) { grid-column: 2 / span 2; margin-top: -10px; }
  .om-collage img:nth-child(5) { grid-column: 4 / span 2; margin-top: -10px; }
  .om-nums { grid-template-columns: 1fr; gap: 26px; padding: 64px 20px; }
  .om-nums li + li { padding: 26px 0 0; border-left: 0; border-top: 1px solid rgba(13,26,28,.15); }
  .om-brands { padding: 48px 0 52px; }
  .om .brands-label { margin-bottom: 20px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
  .brands-track li, .brands-track .brand-logo, .brands-edge, .om-collage img { transition: none; }
}
