/* Brand tokens shared with kriskoivisto.com / ouch.netlify.app */
:root {
  --bg: #09090b;
  --surface: #18181b;
  --border: #27272a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --acid: #ccff00;
  --red: #e03a3e;
  --gap: 10px;
  --display: Anton, Impact, sans-serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 400 16px/1.6 var(--sans);
  background-color: #0a0a0b;
  background-image:
    radial-gradient(#dcdcdc0d 1px, #0000 1.4px),
    radial-gradient(hsla(0, 0%, 78%, .035) 1px, #0000 1.2px),
    radial-gradient(rgba(255, 80, 80, .035) 1px, #0000 1.5px);
  background-position: 0 0, 11px 14px, 7px 33px;
  background-size: 42px 42px, 23px 23px, 180px 180px;
}
.grain::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  mix-blend-mode: overlay; opacity: .18;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.7' numOctaves='2' stitchTiles='stitch' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.58 0 0 0 0 0.58 0 0 0 0 0.58 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.018' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.35 0 0 0 0 0.35 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  background-size: 240px 240px, 500px 500px;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
::selection { background: var(--acid); color: var(--bg); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(16px, 3vw, 40px);
  background: rgba(9, 9, 11, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.mark { display: inline-block; width: 10px; height: 10px; background: var(--red); flex: none; }
.logo { display: block; height: 34px; width: auto; flex: none; }
.logo.sm { height: 16px; }
.word { font: 400 26px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.tag {
  font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .3em; color: var(--muted);
  padding-left: 14px; border-left: 1px solid var(--border);
}
.top nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }
.top nav a {
  display: flex; align-items: baseline; gap: 6px; text-decoration: none;
  font: 400 26px/1 var(--display); text-transform: uppercase; color: var(--muted); transition: color .15s;
  font-size: 18px; letter-spacing: .02em;
}
.top nav a .num { font: 400 10px var(--mono); color: var(--acid); letter-spacing: .1em; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); }
@media (max-width: 900px) { .top .tag { display: none; } }
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 10px; row-gap: 0; padding: 9px 14px 0; }
  .brand { gap: 8px; }
  .logo { height: 26px; }
  .top .cta { margin-left: auto; padding: 8px 9px; font-size: 10px; letter-spacing: .08em; gap: 0; }
  .top .cta .dot { display: none; }
  .top .word { font-size: 19px; }
  .top nav { order: 3; width: 100%; margin: 6px -14px 0; padding: 0 14px; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { font-size: 15px; white-space: nowrap; padding-bottom: 9px; }
  .top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--red); }
  .top nav a .num { display: none; }
}

/* ---------- type ---------- */
main { padding: 0 clamp(16px, 3vw, 40px) 72px; max-width: 1640px; margin: 0 auto; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.intro.home { padding-bottom: 0; }
.intro.home .lede { margin-bottom: 10px; }
.intro, .album-head { padding: clamp(22px, 3.5vw, 44px) 0 4px; max-width: 980px; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .92; margin: 0 0 22px; }
.kicker { margin: 0 0 14px; font: 400 12px var(--mono); color: var(--acid); text-transform: uppercase; letter-spacing: .3em; }
.lede { margin: 0 0 26px; max-width: 760px; color: #d4d4d8; font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; line-height: 1.55; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.meta { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: .3em; color: var(--muted); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin: 32px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.section-head .more { font: 400 11px var(--mono); color: var(--acid); text-transform: uppercase; letter-spacing: .3em; text-decoration: none; white-space: nowrap; }
.section-head .more:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.btn-acid {
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px;
  border: 2px solid var(--acid); background: transparent; color: var(--acid);
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .3em; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 18px rgba(204, 255, 0, .18); transition: background .15s, color .15s, box-shadow .15s;
}
.btn-acid:hover { background: var(--acid); color: var(--bg); box-shadow: 0 0 28px rgba(204, 255, 0, .35); }
.btn-acid .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.cta { padding: 10px 16px; font-size: 11px; }

/* ---------- album cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.card {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-top: 3px solid var(--acid);
  transition: border-color .15s, transform .2s;
}
.card:hover { border-color: #3f3f46; border-top-color: var(--acid); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: 7px 7px 0; background: var(--bg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform .5s ease, filter .3s; }
.card:hover .card-img img { transform: scale(1.04); filter: none; }
.card-body { display: block; padding: 14px 14px 16px; }
.card-title { display: flex; justify-content: space-between; gap: 12px; font: 400 26px/1.05 var(--display); text-transform: uppercase; }
.card-title i { font: 400 14px var(--sans); color: var(--muted); font-style: normal; }
.card:hover .card-title i { color: var(--acid); }
.card-meta { display: block; margin-top: 6px; font: 400 11px var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- album grid ---------- */
.grid { columns: 3 280px; column-gap: var(--gap); }
.ph { display: block; margin: 0 0 var(--gap); break-inside: avoid; overflow: hidden; background: var(--surface); cursor: zoom-in; outline: 1px solid transparent; transition: outline-color .15s; }
.ph:hover { outline-color: var(--acid); }
.ph img { width: 100%; }
.block-text { margin: 52px 0 18px; padding-left: 16px; border-left: 3px solid var(--red); }
.block-text h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1; margin: 0 0 8px; }
.block-sub { margin: 0; font: 400 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .2em; }
.block-video { width: 100%; max-width: 1024px; margin: 0 0 var(--gap); border: 1px solid var(--border); }

/* ---------- contact ---------- */
.contact { max-width: 680px; display: grid; gap: 18px; }
.contact label { display: grid; gap: 8px; font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .25em; }
.contact input, .contact textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 0;
  background: var(--surface); color: var(--text); font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; color-scheme: dark;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .contact .row { grid-template-columns: 1fr; } }
.contact .btn-acid { justify-self: start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px clamp(16px, 3vw, 40px); border-top: 1px solid var(--border);
  font: 400 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .25em;
}
.foot span { display: flex; align-items: center; gap: 12px; }
.foot a { color: var(--acid); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(9, 9, 11, .97); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; user-select: none; }
.lb button { position: absolute; background: none; border: 0; color: var(--text); font: 400 34px/1 var(--sans); padding: 18px; cursor: pointer; opacity: .7; }
.lb button:hover { opacity: 1; color: var(--acid); }
.lb .lb-close { top: 6px; right: 8px; }
.lb .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 400 11px var(--mono); color: var(--muted); letter-spacing: .3em; }
@media (hover: none) { .lb .lb-prev, .lb .lb-next { display: none; } }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--acid); color: var(--bg); padding: 10px 18px;
  font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .25em;
}

/* ---------- home showcases ---------- */
.jump {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px;
}
.jump a {
  font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; text-decoration: none;
  color: var(--muted); border: 1px solid var(--border); padding: 7px 11px; transition: color .15s, border-color .15s;
}
.jump a:hover { color: var(--acid); border-color: var(--acid); }
.jump img { display: none; }
.jump a i { font-style: normal; display: inline-block; transition: transform .2s; margin-left: 2px; }
.jump a[aria-expanded="true"] i { transform: rotate(180deg); }
.jump a[aria-expanded="true"] { color: var(--acid); border-color: var(--acid); }
.jump-sub { display: none; }
.jump-sub.open { display: contents; }
.jump-sub a { border-style: dashed; }
.jump-sub a.all { border-style: solid; color: var(--acid); }
/* folded sections on the home page */
.fold { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.fold summary { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; padding: 20px 0; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; margin-left: auto; font: 400 28px/1 var(--display); color: var(--acid); }
.fold[open] summary::after { content: "–"; }
.fold summary h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; }
.fold summary:hover h2 { color: var(--acid); }
.fold-num { font: 400 12px var(--mono); color: var(--acid); letter-spacing: .1em; text-transform: uppercase; }
.fold-hint { color: var(--muted); font-size: 15px; font-weight: 300; }
.fold summary .more { font: 400 11px var(--mono); color: var(--acid); text-transform: uppercase; letter-spacing: .3em; text-decoration: none; white-space: nowrap; }
.fold .show:first-of-type { margin-top: 8px; }
.show { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 90px; }
.show-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--border);
}
.show-num { font: 400 12px var(--mono); color: var(--acid); letter-spacing: .1em; }
.show-head h2 { margin: 0; font-size: clamp(34px, 4.6vw, 64px); line-height: .95; }
.show-head h2 a { color: inherit; text-decoration: none; }
.show-head h2 a:hover { color: var(--acid); }
.show-desc { margin: 0; color: var(--muted); font-size: 15px; font-weight: 300; flex: 1 1 260px; }
.show-all {
  margin-left: auto; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .2em;
  color: var(--acid); text-decoration: none; white-space: nowrap;
}
.show-all i { font-style: normal; display: inline-block; transition: transform .15s; }
.show-all:hover i { transform: translateX(4px); }
.show-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-flow: dense; gap: 6px; }
.show-grid a { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.show-grid a.big { grid-column: 1 / span 2; grid-row: 1 / span 2; aspect-ratio: auto; }
.show-grid.flip a.big { grid-column: 4 / span 2; }
.show-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .3s; filter: saturate(.94); }
.show-grid a:hover img { transform: scale(1.035); filter: none; }
@media (max-width: 900px) {
  .show-grid { grid-template-columns: repeat(3, 1fr); }
  .show-grid.flip a.big { grid-column: 2 / span 2; }
  .show-grid a:nth-child(7) { display: none; }
}
@media (max-width: 640px) {
  /* phones: the jump bar is a grid of every album cover, so the whole portfolio is on the first screen */
  .intro, .album-head { padding-top: 14px; }
  .intro.home .lede { font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
  .intro.home .meta { font-size: 11px; letter-spacing: .12em; }
  .jump { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 0; }
  .jump a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; background: var(--surface); }
  .jump a.wide { grid-column: span 2; aspect-ratio: auto; }
  .jump img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
  .jump span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 5px 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .88)); font: 400 10px/1.05 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px #000; }
  .jump a.wide span { font-size: 12px; padding-left: 7px; }
  .jump a.sec span { color: var(--acid); }
  .jump a[aria-expanded="true"] { outline: 2px solid var(--acid); outline-offset: -2px; }
  .jump-sub.open { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .jump-sub a { border: 0; }
  .jump-sub a.all { display: flex; align-items: center; justify-content: center; text-align: center; background: #1d1d21; }
  .jump-sub a.all span { position: static; background: none; padding: 6px; color: var(--acid); }
  .fold summary { padding: 14px 0; }
  .fold summary::after { font-size: 24px; }
  .fold-hint { display: none; }
  .show { margin-top: 28px; }
  .show-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .show-grid a.big, .show-grid.flip a.big { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .show-grid a:nth-child(n+6) { display: none; }
  .show-all { margin-left: 0; }
  .show-num { flex-basis: 100%; margin-bottom: -6px; }
}

/* ---------- Work / Photos switch: the site you're on is filled and sits on the left ---------- */
.kk-switch { display: inline-flex; flex: none; border: 1px solid #3f3f46; padding: 3px; gap: 3px; }
.kk-switch a {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px; text-decoration: none;
  font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); transition: color .15s, background .15s;
}
.kk-switch img { width: 30px; height: 30px; display: block; opacity: .55; transition: opacity .15s; }
.kk-switch a:hover { color: var(--text); background: #27272a; }
.kk-switch a:hover img { opacity: 1; }
.kk-switch a[aria-current] { background: #F3F1EC; color: #1E1D1D; pointer-events: none; }
.kk-switch a[aria-current] img { opacity: 1; }
@media (max-width: 640px) {
  .kk-switch { margin-left: auto; }
  .kk-switch a { padding: 2px; }
  .kk-switch a span { display: none; }
  .kk-switch img { width: 28px; height: 28px; }
  .top .cta { margin-left: 0; }
}

/* ---------- origin story (home) ---------- */
.origin { margin-top: clamp(48px, 6vw, 80px); padding: clamp(28px, 4vw, 48px) 0 0; border-top: 1px solid var(--border); max-width: 760px; }
.origin h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: .95; margin: 0 0 16px; }
.origin h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; background: var(--acid); }
.origin p { margin: 0; color: #d4d4d8; font-size: clamp(16px, 1.4vw, 19px); font-weight: 300; line-height: 1.6; }
.origin .origin-link { margin-top: 18px; }
.origin .origin-link a { font: 500 12px var(--mono); color: var(--acid); text-transform: uppercase; letter-spacing: .25em; text-decoration: none; }
.origin .origin-link a:hover { text-decoration: underline; }

/* splash home: tagline + one mixed wall of full-frame photos */
.splash-head { padding: clamp(18px, 3vw, 40px) 0 clamp(14px, 2vw, 24px); }
.splash-head h1 { margin: 0; font-size: clamp(40px, 7vw, 104px); line-height: .9; }
.wall { columns: 4 260px; column-gap: 10px; }
.wall a { display: block; margin: 0 0 10px; break-inside: avoid; overflow: hidden; background: #111; }
.wall a img { display: block; width: 100%; height: auto; transition: transform .4s ease, opacity .2s; }
.wall a:hover img { transform: scale(1.03); }
.wall-more { margin: 28px 0 10px; text-align: center; }
@media (max-width: 640px) {
  .splash-head { padding: 12px 0 14px; }
  .splash-head h1 { font-size: 40px; }
  .wall { columns: 2; column-gap: 6px; }
  .wall a { margin-bottom: 6px; }
}
.wall.laid { columns: auto; display: flex; gap: 10px; align-items: flex-start; }
.wall.laid .wcol { flex: 1; min-width: 0; }
@media (max-width: 640px) { .wall.laid { gap: 6px; } }

/* album pages: keep going (next album in the section + back home) */
.next-up { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: clamp(40px, 6vw, 72px) 0 10px;
  padding-top: 26px; border-top: 1px solid var(--border); }
.next-card { display: flex; align-items: center; gap: 18px; flex: 1 1 420px; max-width: 640px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--acid); padding: 8px; transition: transform .2s, border-color .2s; }
.next-card:hover { transform: translateY(-2px); border-color: #3f3f46; border-top-color: var(--acid); }
.next-img { flex: 0 0 44%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.next-card:hover .next-img img { transform: scale(1.04); }
.next-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 8px; }
.next-body .kicker { margin: 0; }
.next-title { font: 400 clamp(28px, 3.4vw, 44px)/1 var(--display); text-transform: uppercase; }
.next-title i { font-style: normal; color: var(--acid); }
@media (max-width: 640px) {
  .next-up { flex-direction: column; align-items: stretch; gap: 14px; }
  .next-card { flex-basis: auto; }
  .next-up .btn-acid { justify-content: center; }
}

/* thick/thin: Antonio (Anton's light companion) against Anton */
.thin { font-family: Antonio, var(--display); font-weight: 200; letter-spacing: 0; }
.splash-head h1 b { font-weight: 400; }
.origin h2 .thin { font-weight: 200; }

/* splash headline, kriskoivisto.com hero style: Anton, tight; hairline "what do I shoot?" stacked beside a huge EVERYTHING. */
.splash-head { padding: clamp(24px, 3.5vw, 52px) 0 clamp(18px, 2.5vw, 34px); }
.splash-head h1 { display: flex; align-items: flex-end; gap: .14em; margin: 0; font-size: 17.4vw; line-height: .8; letter-spacing: .01em; white-space: nowrap; }
.splash-head h1 .thin { font-weight: 100; font-size: .25em; line-height: .9; letter-spacing: .01em; padding-bottom: .02em; }
.splash-head h1 b { font-weight: 400; }
@media (min-width: 1600px) { .splash-head h1 { font-size: 278px; } }
.splash-head h1 .thin span { display: block; }
@media (max-width: 640px) {
  .splash-head { padding: 14px 0 16px; }
  .splash-head h1 { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 19vw; }
  .splash-head h1 .thin { font-size: .3em; }
  .splash-head h1 .thin span { display: inline; }
}
