/* Erik Hover — archive portfolio. Built 2026-10-13.
   Palette from Hov's board: #1A1A1A base; Sunset Paradise, Golden Tiger, Sky Blue, Blood Violet, Cold Salmon.
   Type: Anton (display), Archivo (text). */

:root {
  --bg: #1A1A1A;
  --bg2: #222120;
  --ink: #F2EDE4;
  --mute: #8F8A80;
  --line: #34322F;
  --sunset: #F75937;
  --tiger: #F7A517;
  --sky: #68A0C1;
  --violet: #B866DA;
  --salmon: #D299B6;
  --accent: var(--sunset);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1500px;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.5;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tiger); outline-offset: 3px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- sticker (the one reusable device) ---------- */
.sticker {
  display: inline-block;
  font-family: var(--display); letter-spacing: .02em; text-transform: uppercase;
  background: var(--accent); color: #111;
  padding: .18em .55em .14em; line-height: 1;
  transform: rotate(var(--r, -3deg));
  transform-origin: center;
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 14px;
}
.top .mark {
  font-family: var(--display); font-size: 22px; text-decoration: none;
  --accent: var(--ink); --r: -5deg;
}
.top nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { border-color: var(--tiger); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.hero h1 {
  font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(88px, 19vw, 300px); line-height: .84; letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { margin-left: clamp(24px, 9vw, 160px); }
.hero .tag { position: absolute; font-size: clamp(16px, 2vw, 26px); }
.hero .tag.a { top: clamp(10px, 3vw, 40px); right: clamp(0px, 6vw, 120px); --accent: var(--tiger); --r: 6deg; }
.hero .tag.b { position: static; display: inline-block; margin: 10px 0 0 clamp(0px, 2vw, 30px); --accent: var(--sky); --r: -4deg; }
.hero p {
  max-width: 48ch; margin: clamp(16px, 2vw, 28px) 0 0;
  font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45;
}
.hero p b { font-weight: 700; }

/* ---------- tape (rotated marquee, clipped by the viewport) ---------- */
.tape-wrap { overflow: hidden; margin: clamp(16px, 3vw, 40px) calc(-1 * var(--gutter)) 0; padding: 28px 0; }
.tape {
  transform: rotate(-2.4deg) scale(1.04);
  background: var(--sunset); color: #111;
  font-family: var(--display); font-size: clamp(20px, 2.6vw, 34px); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; padding: .35em 0;
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
}
.tape .track { display: inline-block; animation: tape 48s linear infinite; }
.tape .track span { display: inline-block; padding: 0 .6em; }
.tape .track span::after { content: "✦"; margin-left: 1.2em; opacity: .5; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tape .track { animation: none; } }

/* ---------- category index ---------- */
.cats { list-style: none; margin: clamp(24px, 4vw, 56px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.cats li { border-bottom: 1px solid var(--line); }
.cats a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; align-items: center; gap: 24px;
  padding: 18px 0; text-decoration: none; color: var(--ink);
}
.cats .n {
  font-family: var(--display); font-size: clamp(34px, 5vw, 72px); line-height: 1; text-transform: uppercase;
  transition: color .15s;
}
.cats a:hover .n, .cats a:focus-visible .n { color: var(--accent); }
.cats .c { font-family: var(--display); font-size: clamp(20px, 2.4vw, 32px); color: var(--mute); }
.cats .c b { color: var(--accent); font-weight: 400; }
.cats .cov {
  width: 150px; height: 100px; overflow: hidden; background: var(--bg2);
  border: 3px solid var(--accent);
  transform: rotate(var(--r, 2deg));
}
.cats .cov img { width: 100%; height: 100%; object-fit: cover; transform: rotate(calc(-1 * var(--r, 2deg))) scale(1.12); }

.cats .n .hi { font-size: clamp(14px, 1.4vw, 20px); vertical-align: middle; margin-left: 10px; --accent: var(--tiger); }
.cats .grp .cov.grp-cov { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-color: var(--line); transform: rotate(-2deg); }
.cats .grp .cov.grp-cov img, .cats .grp .cov.grp-cov i { width: 100%; height: 100%; object-fit: cover; transform: none; background: var(--bg2); display: block; }
.cats .sub { list-style: none; margin: -6px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.cats .sub li { border: 0; }
.cats .sub a { display: inline-block; padding: 6px 12px 4px; border: 2px solid var(--accent); font-family: var(--display); font-size: 17px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.cats .sub a b { color: var(--accent); font-weight: 400; }
.cats .sub a:hover { background: var(--accent); color: #111; }
.cats .sub a:hover b { color: #111; }

/* ---------- selected strip ---------- */
.sel { margin-top: clamp(40px, 6vw, 80px); }
.sel h2, .about h2, .gal h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 4vw, 56px); line-height: 1; margin: 0 0 16px;
}
.sel .row {
  display: flex; gap: 18px; overflow-x: auto; padding: 16px 0 24px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.sel .row > * { flex: 0 0 auto; scroll-snap-align: start; }

/* ---------- tiles (shared: selected strip + gallery) ---------- */
.tile { margin: 0; break-inside: avoid; position: relative; }
.tile button.open { all: unset; display: block; width: 100%; cursor: pointer; }
.tile .frame { position: relative; overflow: hidden; background: var(--ph, var(--bg2)); }
.tile .frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: rotate(var(--r, 0deg)) scale(1.07);
  transition: transform .25s ease;
}
.tile button.open:hover .frame img { transform: rotate(0deg) scale(1.0); }
.tile .frame .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; background: var(--ink); color: #111;
  display: grid; place-items: center; font-family: var(--display); font-size: 16px;
}
.tile .frame .cmp {
  position: absolute; right: 10px; bottom: 10px; font-size: 13px; --r: 3deg;
}
.tile .cat-tag { position: absolute; top: -8px; left: -6px; font-size: 13px; z-index: 1; --r: -5deg; }
.tile figcaption { padding: 8px 2px 0; font-size: 14px; color: var(--mute); display: flex; gap: 12px; justify-content: space-between; }
.tile figcaption .t { color: var(--ink); font-weight: 600; }
.sel .tile { width: min(320px, 72vw); }
.sel .tile .frame { aspect-ratio: 4 / 5; }

/* ---------- gallery ---------- */
.gal { padding-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 12px 0 24px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.chips a {
  font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; padding: 6px 12px 4px; border: 2px solid var(--line); color: var(--ink);
  transform: rotate(var(--r, 0deg));
}
.chips a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #111; }
.chips a.hi { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.chips a.grp { border-style: dashed; }
.chips a.grp[aria-current="true"] { border-style: solid; }
.chips a.back { border-color: transparent; color: var(--mute); transform: none; }
.chips a.back:hover { color: var(--ink); border-color: var(--line); }
.chips .sub-chips { display: contents; }
.chips .sub-chips a { font-size: 15px; padding: 4px 10px 3px; border-width: 1px; opacity: .9; }
.chips a:hover { border-color: var(--accent); }
.gal .meta { color: var(--mute); margin: 0 0 18px; font-size: 15px; }
.masonry { columns: 3; column-gap: 22px; }
.masonry .tile { margin: 0 0 22px; display: inline-block; width: 100%; }
.masonry .tile .frame { aspect-ratio: var(--ar, 1); }
.empty { padding: 48px 0; color: var(--mute); }

/* ---------- category banner ---------- */
.bn.bn-group .bn-in { background: var(--ink); color: #111; }
.bn.bn-group .bn-k { --accent: var(--sunset); color: #111; }
.bn.bn-group .bn-tags .sticker { --accent: var(--sunset); color: #111; }
.bn { position: relative; margin: 6px calc(-1 * var(--gutter)) 18px; padding: 0 var(--gutter); overflow: hidden; }
.bn:not([hidden]) + .chips { margin-top: 0; }
.bn-in {
  position: relative; background: var(--accent); color: #111;
  padding: clamp(22px, 4vw, 48px) clamp(20px, 3vw, 40px) clamp(26px, 4vw, 52px);
  clip-path: polygon(0 4%, 3% 0, 97% 2%, 100% 0, 100% 95%, 98% 100%, 60% 97%, 2% 100%, 0 96%);
  background-image:
    radial-gradient(rgba(0,0,0,.18) 1.2px, transparent 1.3px);
  background-size: 7px 7px;
  background-position: 0 0;
}
.bn-in::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--accent) 0 48%, rgba(26,26,26,.0) 48%, transparent);
  pointer-events: none;
}
.bn-in > * { position: relative; }
.bn-k { font-size: clamp(13px, 1.4vw, 18px); --accent: #111; color: var(--ink); margin-left: 6px; }
.gal .bn-h, .bn-h {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 12vw, 190px); line-height: .84; letter-spacing: -.01em; margin: 10px 0 0;
}
.bn-h span { display: block; }
.bn-h span + span { margin-left: clamp(18px, 5vw, 90px); transform: rotate(-1.5deg); transform-origin: left bottom; }
.bn-t { max-width: 44ch; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; margin: 16px 0 0; font-weight: 600; }
.bn-tags { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.bn-tags .sticker { font-size: clamp(14px, 1.5vw, 20px); color: var(--bg); }
.bn-tags .sticker[style*="--ink"] { color: #111; }
.bn-n {
  position: absolute; right: clamp(12px, 3vw, 40px); bottom: clamp(8px, 2vw, 24px);
  font-family: var(--display); font-size: clamp(80px, 16vw, 260px); line-height: 1; color: rgba(0,0,0,.16);
  pointer-events: none;
}
.gal-h1 { }
.bn:not([hidden]) ~ * .gal-h1, .bn:not([hidden]) + .chips { }
@media (max-width: 600px) { .bn-n { display: none; } .bn-h span + span { margin-left: 10px; } }

/* video tile without a poster: typographic card */
.tile .frame.vcard {
  background: var(--accent); color: #111; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14px;
  background-image: radial-gradient(rgba(0,0,0,.16) 1.2px, transparent 1.3px); background-size: 7px 7px;
}
.tile .frame.vcard .vc-n { font-family: var(--display); font-size: clamp(64px, 9vw, 140px); line-height: .85; }
.tile .frame.vcard .vc-t { font-weight: 700; font-size: 16px; line-height: 1.25; max-width: 90%; }
.tile .frame.vcard .vc-p { position: absolute; right: 12px; top: 12px; font-size: 13px; }
.tile .frame.vcard .play { background: #111; color: var(--ink); }

/* ---------- lightbox ---------- */
dialog.lb { border: 0; padding: 0; background: #0E0E0E; color: var(--ink); width: min(1400px, 98vw); max-height: 96vh; }
dialog.lb::backdrop { background: rgba(0,0,0,.9); }
.lb-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); min-height: 60vh; }
.lb-media { display: grid; place-items: center; background: #000; position: relative; }
.lb-media img { max-height: 92vh; width: auto; max-width: 100%; object-fit: contain; }
.lb-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.lb-media iframe.vert { width: auto; height: 92vh; aspect-ratio: 9 / 16; max-width: 100%; }
.lb-text { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.lb-text h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; margin: 0; text-transform: uppercase; }
.lb-text .m { color: var(--mute); font-size: 14px; margin: 0; }
.lb-text .m b { color: var(--ink); font-weight: 600; }
.lb-text p { margin: 0; font-size: 15px; }
.lb-nav { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.lb-nav button { background: none; border: 2px solid var(--ink); padding: 8px 14px; cursor: pointer; font-family: var(--display); font-size: 16px; text-transform: uppercase; }
.lb-nav button:hover { background: var(--ink); color: #111; }
.lb-text a.dl { font-size: 13px; color: var(--mute); }

/* live-site link */
.tile .frame.site { aspect-ratio: 4 / 5 !important; }
.tile .frame.site img { object-position: top; }
.lb-media.scroll { display: block; overflow-y: auto; max-height: 92vh; }
.lb-media.scroll img { width: 100%; max-height: none; height: auto; }
.lb-media.scroll .ser { height: auto; }
.lb-media.scroll .ser > img { max-height: none; }
.tile .frame .cmp.live { right: auto; left: 10px; bottom: 10px; --r: -3deg; }
.open-site { display: inline-block; align-self: flex-start; background: var(--tiger); color: #111; text-decoration: none; font-family: var(--display); font-size: 22px; line-height: 1.05; padding: 10px 14px; transform: rotate(-2deg); margin: 6px 0 8px; }
.open-site small { font-family: var(--text); font-size: 12px; font-weight: 600; }
.open-site:hover { background: var(--ink); }

/* multi-page series */
.ser { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 92vh; width: 100%; }
.ser > img { max-height: calc(92vh - 92px); width: auto; max-width: 100%; justify-self: center; align-self: center; object-fit: contain; }
.ser-nav { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; background: #0E0E0E; overflow-x: auto; }
.ser-nav button { background: none; border: 2px solid transparent; padding: 0; cursor: pointer; color: var(--ink); font-family: var(--display); font-size: 28px; line-height: 1; }
.ser-nav [data-pp], .ser-nav [data-pn] { padding: 0 10px; }
.ser-dot { width: 56px; height: 72px; overflow: hidden; opacity: .55; }
.ser-dot img { width: 100%; height: 100%; object-fit: cover; }
.ser-dot.on { opacity: 1; border-color: var(--tiger); }
.ser-dot { position: relative; }
.ser-dot.vid i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 18px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.ser > iframe { border: 0; justify-self: center; align-self: center; width: 100%; aspect-ratio: 16 / 9; max-height: calc(92vh - 92px); }
.ser > iframe.vert { width: auto; height: calc(92vh - 92px); aspect-ratio: 9 / 16; max-width: 100%; }
@media (max-width: 1000px) { .ser { height: auto; } .ser > img { max-height: 60vh; } .ser > iframe.vert { height: 60vh; } }

/* before / after */
.cmp-box { position: relative; width: 100%; max-height: 92vh; display: grid; place-items: center; user-select: none; touch-action: none; cursor: ew-resize; }
.cmp-box img { grid-area: 1 / 1; max-height: 92vh; width: auto; max-width: 100%; }
.cmp-box img.after { clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp-box .bar { position: absolute; top: var(--top, 0); height: var(--hgt, 100%); left: var(--xpx, 50%); width: 3px; margin-left: -1px; background: var(--tiger); pointer-events: none; }
.cmp-box .knob { position: absolute; top: 50%; left: var(--xpx, 50%); transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--tiger); color: #1A1A1A; display: grid; place-items: center; font: 900 18px/1 var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.5); pointer-events: none; }
.cmp-box input[type=range] {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; margin: 0; opacity: 0; pointer-events: none;
}
.cmp-box input[type=range]:focus-visible { opacity: 1; outline: 2px solid var(--tiger); height: 6px; }
.cmp-box .lab { position: absolute; bottom: 10px; font-size: 13px; }
.cmp-box .lab.l { left: 10px; --accent: var(--mute); --r: -3deg; }
.cmp-box .lab.r { right: 10px; --accent: var(--tiger); --r: 3deg; }

/* ---------- about ---------- */
.about { padding: clamp(24px, 4vw, 56px) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); }
.about .lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 52ch; margin: 0 0 20px; }
.about ul { margin: 0; padding: 0; list-style: none; }
.about li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.about li b { display: inline-block; min-width: 110px; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--tiger); }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--ink); margin-top: clamp(40px, 6vw, 80px); padding: 28px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot .mail { font-family: var(--display); font-size: clamp(24px, 3vw, 40px); text-decoration: none; text-transform: uppercase; }
.foot .mail:hover { color: var(--tiger); }
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot .small { flex-basis: 100%; color: var(--mute); font-size: 13px; }

/* ---------- responsive ---------- */
@media (min-width: 1300px) { .masonry { columns: 4; } }
@media (max-width: 1000px) {
  .masonry { columns: 2; }
  .about { grid-template-columns: 1fr; }
  .lb-body { grid-template-columns: 1fr; }
  .lb-media img, .cmp-box img { max-height: 60vh; }
}
@media (max-width: 600px) {
  .masonry { columns: 1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 10px 0 14px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .chips a { white-space: nowrap; transform: none; }
  .cats a { grid-template-columns: minmax(0, 1fr) auto; }
  .cats .cov { display: none; }
  .hero .tag.a { right: 0; }
  .top nav { gap: 14px; }
}
