/* ===========================================================================
   MIKASS — portfolio styles
   Extracted from the original single-file draft so it can be cached and
   iterated on independently. Visual language unchanged: off-white paper,
   near-black ink, 2px rules, tight negative letter-spacing, one accent per
   card (yellow / green / orange).
   =========================================================================== */
:root{
  --bg:#f7f7f5; --fg:#0a0a0a; --muted:#666; --line:#111;
  --yellow:#e9ff4f; --orange:#ff7043; --red:#ff3b30; --green:#74e6a1;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--fg);font-family:Arial,Helvetica,sans-serif;line-height:1.15}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-decoration-thickness:2px}
nav{position:fixed;z-index:10;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:18px 24px;background:rgba(247,247,245,.94);border-bottom:1px solid #ddd}
.logo{font-weight:900;letter-spacing:-.08em;font-size:25px}
.navlinks{display:flex;gap:22px;font-size:12px;text-transform:uppercase;letter-spacing:.08em}
main{padding:82px 24px 0}
/* The hero no longer has a height of its own: with bottom-aligned content, any
   min-height converts directly into blank space above the content. Letting it
   size to its content leaves only the padding as whitespace. */
.hero{display:grid;grid-template-columns:1fr 1fr;align-items:end;border-bottom:2px solid var(--line);padding:3vh 0 45px}
/* Hero portrait: sits above the kicker in the left column, level with the
   intro on the right. The column stacks photo -> kicker -> h1, so the photo is
   genuinely top-left rather than pushed toward the centre by the grid. */
.hero-shot{margin:0 0 clamp(18px,2.4vh,30px);width:min(38%,260px)}
/* 1/1 matches the square crop written by build-media.sh (560x560). The
   width/height attributes in the HTML agree, which reserves the right box
   before CSS loads and stops the page reflowing once the image decodes. */
/* 1/1 matches the square crop written by build-media.sh (560x560). The
   width/height attributes in the HTML agree, which reserves the right box
   before CSS loads and stops the page reflowing once the image decodes. */
.hero-shot img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border:2px solid var(--line)}
.kicker{font-size:13px;text-transform:uppercase;letter-spacing:.12em;margin-bottom:24px}
h1{font-size:clamp(76px,14vw,210px);line-height:.78;letter-spacing:-.09em;margin:0 0 35px;font-weight:900}
.hero-right{align-self:center;max-width:540px;margin-left:auto}
.intro{font-size:clamp(25px,3vw,43px);letter-spacing:-.045em}
.marker{display:inline;padding:2px 8px;background:var(--yellow)}
.section{padding:100px 0;border-bottom:2px solid var(--line)}
.section-head{display:grid;grid-template-columns:1fr 2fr;gap:30px;margin-bottom:70px}
.section-number{font-size:13px;text-transform:uppercase;letter-spacing:.12em}
h2{font-size:clamp(54px,9vw,130px);line-height:.8;letter-spacing:-.08em;margin:0;font-weight:900}
.copy{max-width:800px;font-size:22px;letter-spacing:-.025em}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;background:var(--line);border:2px solid var(--line)}
.card{background:var(--bg);padding:28px;min-height:260px;display:flex;flex-direction:column;justify-content:space-between}
.card:nth-child(2){background:var(--yellow)}
.card:nth-child(3){background:var(--green)}
.card:nth-child(4){background:var(--orange)}
.card h3{font-size:34px;letter-spacing:-.06em;margin:0}
.card p{font-size:17px;max-width:560px}
/* The Barista card is a <button>, so it inherits UA button styling that has to
   be reset before it can match the sibling .card articles. */
.card-btn{font:inherit;color:inherit;text-align:left;border-width:2px;border-style:solid;border-color:var(--line);border-radius:0;cursor:pointer;width:100%}
.card-btn:hover .card-more{text-decoration:underline;text-decoration-thickness:2px}
/* :focus-visible keeps the ring on keyboard focus without showing it on mouse
   clicks. The UA default is a thin auto outline; this is thicker and on-brand. */
.card-btn:focus-visible{outline:3px solid var(--fg);outline-offset:3px}
.card-more{display:inline-block;margin-top:18px;font-size:11px;text-transform:uppercase;letter-spacing:.1em}
.meta{text-transform:uppercase;font-size:11px;letter-spacing:.1em}
.project-list{border-top:2px solid var(--line)}
.project{display:grid;grid-template-columns:25% 1fr auto;gap:20px;padding:22px 0;border-bottom:1px solid #999;align-items:baseline;position:relative}
.project-title{font-size:28px;font-weight:700;letter-spacing:-.04em}
/* Whole row is the hit target, but only the title is the anchor: the ::after is
   positioned against .project (position:relative above) and covers it. Keeps the
   accessible name to "CAT ON MY MIND" instead of the whole row's text, and
   leaves the description selectable. */
.project-link::after{content:"";position:absolute;inset:0}
.project-link:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.project-link:focus-visible{outline:3px solid var(--fg);outline-offset:3px}
/* External-link marker, presentational only. */
.ext{display:inline-block;font-size:.7em;vertical-align:super;margin-left:6px;opacity:0;transition:opacity .2s ease}
.project:hover .ext,.project-link:focus-visible .ext{opacity:1}

/* Inline links inside a row description (the Laika Casting project credits).
   The row-level .project-link::after stretches over the entire row, which would
   otherwise swallow clicks on these. position:relative + a z-index above the
   pseudo-element puts them back on top. The pseudo-element is not a sibling in
   the stacking order here because the inline link establishes its own. */
.project-desc .inline-link{position:relative;z-index:1}
.project-desc .inline-link:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.project-desc .inline-link:focus-visible{outline:3px solid var(--fg);outline-offset:2px}
/* The row-level hover rule would reveal the row's ↗ on any hover inside the
   row; keep it for the title only so the two link types stay distinguishable. */
.project:hover .project-link .ext{opacity:0}
.project:hover .project-link:focus-visible .ext{opacity:1}
.project-desc{font-size:16px}
.project-year{font-size:12px}
.quote{font-size:clamp(34px,6vw,80px);font-weight:800;letter-spacing:-.07em;line-height:.9;max-width:1100px}
.music-box{border:2px solid var(--line);padding:35px;display:grid;grid-template-columns:1fr 1fr;gap:35px}
/* "DJ / Radio / Events" links to the Resident Advisor profile. Only the label
   itself is the anchor — the quote beneath it stays selectable and does not
   navigate, which would be surprising for body copy. */
.music-link:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.music-link:focus-visible{outline:3px solid var(--fg);outline-offset:3px}
/* The .ext marker defaults to hidden for the project rows (which reveal it on
   row hover). Nothing hovers here, so make it permanent. */
.music-link .ext{opacity:1}
.contact{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end}
.contact-big{font-size:clamp(45px,7vw,100px);line-height:.82;letter-spacing:-.08em;font-weight:900}
.contact-details{font-size:18px}
footer{padding:24px 0 60px;font-size:11px;text-transform:uppercase;letter-spacing:.1em;display:flex;justify-content:space-between}

/* --- CV download strip (top of page and above the footer) ---------------- */
.cv-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid #ddd;margin-bottom:0}
/* The bottom copy sits above the footer, so its rule goes on top instead. */
.cv-strip-bottom{border-bottom:0;border-top:1px solid #ddd;padding:22px 0 0;margin:0 0 8px}
.cv-strip-label{font-size:11px;text-transform:uppercase;letter-spacing:.1em;margin-right:6px}
.cv-btn{border:2px solid var(--line);padding:8px 13px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;line-height:1;white-space:nowrap}
.cv-btn:hover{background:var(--yellow);text-decoration:none}
.cv-btn:focus-visible{outline:3px solid var(--fg);outline-offset:3px}
/* Page count is supporting detail, not the label. */
.cv-btn .cv-meta{opacity:.55;margin-left:5px;letter-spacing:.06em}
@media(max-width:760px){
  /* At 390px the label and both buttons can't share a row without cramping, so
     the label takes its own line and the two buttons split the width below it.
     The page count is dropped rather than wrapping it onto a third line. */
  .cv-strip-label{flex-basis:100%;margin:0 0 2px}
  .cv-strip{gap:8px}
  .cv-btn{flex:1 1 0;text-align:center;padding:11px 10px}
  .cv-btn .cv-meta{display:none}
}

/* --- music: tracklist (added) ------------------------------------------- */
.tracklist{border-top:2px solid var(--line)}
.track{display:grid;grid-template-columns:1fr minmax(320px,520px);gap:35px;padding:28px 0;border-bottom:1px solid #999;align-items:start}
.track-title{font-size:24px;font-weight:700;letter-spacing:-.04em;margin:8px 0 6px}
.track-desc{font-size:15px;color:var(--muted);max-width:520px}
.track-embed iframe{display:block;border:0}

/* --- gallery (added) ---------------------------------------------------- */
/* 2px gap over an ink background gives the hairline grid without borders. */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:var(--line);border:2px solid var(--line)}
.gal-item{position:relative;background:var(--bg);padding:0;overflow:hidden;display:block;width:100%;cursor:pointer;border:0}
.gal-item img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;transition:transform .35s ease}
.gal-item:hover img{transform:scale(1.04)}
.gal-item figcaption{position:absolute;left:0;right:0;bottom:0;padding:10px 12px;background:rgba(10,10,10,.82);color:#fff;font-size:10px;text-transform:uppercase;letter-spacing:.1em;opacity:0;transition:opacity .25s ease}
.gal-item:hover figcaption,.gal-item:focus-visible figcaption{opacity:1}
/* Play badge for video tiles. */
/* Inked outline keeps the badge legible on light or busy frames. */
.gal-item .play{position:absolute;top:12px;left:12px;width:38px;height:38px;border-radius:50%;background:var(--yellow);color:var(--fg);display:grid;place-items:center;font-size:13px;padding-left:3px;pointer-events:none;box-shadow:0 0 0 2px rgba(10,10,10,.35)}
/* Sound badge, opposite corner from the play button. Only rendered for clips
   that actually carry an audio track (see hasAudio in the manifest). */
.gal-item .sound{position:absolute;top:16px;right:14px;width:30px;height:30px;border-radius:50%;background:var(--green);color:var(--fg);display:grid;place-items:center;font-size:15px;line-height:1;pointer-events:none;box-shadow:0 0 0 2px rgba(10,10,10,.35)}

/* --- barista venues dialog (added) -------------------------------------- */
/* Native <dialog>: the backdrop, focus trap and inert background come free,
   so this only has to style the panel itself. */
/* Height is driven by the viewport, not a vh cap: at short viewports the
   scroll area has to be a real fraction of the screen or the header pushes the
   list out of view. */
.dialog{border:2px solid var(--line);background:var(--bg);color:var(--fg);padding:0;width:min(640px,calc(100vw - 32px));height:min(86vh,760px);max-height:calc(100vh - 32px)}
/* Centre on wide screens; the UA default is bottom-anchored like a sheet. */
.dialog{margin:auto;display:flex;flex-direction:column}
/* Required, and easy to miss: the rule above sets `display:flex` in the author
   origin, which beats the UA's `dialog:not([open]){display:none}` regardless of
   specificity — origin is compared before specificity in the cascade. Without
   this, every closed dialog renders as a static block after the footer. */
.dialog:not([open]){display:none}
/* Header is fixed; only the list scrolls, so the title and Close stay put. */
.dialog-head{flex:none}
/* The ::backdrop covers the page. Kept opaque enough that the fixed nav
   (z-index 10) does not read through it. */
.dialog::backdrop{background:rgba(10,10,10,.72)}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:26px 28px 20px;border-bottom:2px solid var(--line)}
.dialog-head h3{font-size:38px;letter-spacing:-.06em;margin:8px 0 0;line-height:.95}
.dialog-close{background:var(--yellow);border:2px solid var(--line);padding:9px 14px;font:inherit;font-size:10px;text-transform:uppercase;letter-spacing:.1em;cursor:pointer;white-space:nowrap}
.dialog-close:hover{background:#fff}
/* flex + min-height:0 is what actually lets a flex child scroll; without the
   min-height reset the list refuses to shrink below its content height. */
.venue-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1 1 auto;min-height:0;overscroll-behavior:contain}
.venue{padding:22px 28px;border-bottom:1px solid #999}
.venue:last-child{border-bottom:0}
.venue-head{display:flex;align-items:baseline;gap:16px;margin-bottom:6px}
.venue-head .meta{flex:none}
.venue-name{font-size:26px;letter-spacing:-.04em;margin:0;font-weight:700;line-height:1}
.venue-role{font-size:16px;margin:0 0 3px}
.venue-place{font-size:14px;margin:0;color:var(--muted)}
.venue-note{font-size:14px;margin:8px 0 0;max-width:52ch}
@media(max-width:760px){
  .dialog-head{padding:20px 18px 16px}
  .dialog-head h3{font-size:29px}
  .venue{padding:18px}
  .venue-name{font-size:22px}
}

/* --- lightbox (added) --------------------------------------------------- */
/* Opaque, not translucent: the fixed nav sits at z-index 10 and shows through
   a semi-transparent backdrop, which reads as a rendering bug. */
.lightbox{position:fixed;inset:0;z-index:50;background:var(--fg);display:grid;place-items:center;padding:24px}
.lightbox[hidden]{display:none}
/* z-index beats the fixed nav so the backdrop actually covers it. */
.lightbox-inner{position:relative;z-index:51;max-width:min(1200px,100%);display:grid;place-items:center}
.lightbox-inner img,.lightbox-inner video{max-width:100%;max-height:88vh;display:block;background:#000}
.lightbox-close{position:absolute;top:18px;right:18px;z-index:52;background:var(--yellow);border:0;padding:10px 16px;font:inherit;font-size:11px;text-transform:uppercase;letter-spacing:.1em;cursor:pointer}
.lightbox-close:hover{background:#fff}

/* --- responsive --------------------------------------------------------- */
@media(max-width:900px){
  .gallery{grid-template-columns:repeat(2,1fr)}
  .track{grid-template-columns:1fr;gap:18px}
}
@media(max-width:760px){
  nav{padding:14px 16px}.navlinks{gap:10px;font-size:9px}.logo{font-size:21px}
  main{padding:65px 16px 0}.hero{grid-template-columns:1fr;min-height:auto;padding:3vh 0 50px;gap:50px}
  h1{font-size:24vw}.hero-right{margin:0}.intro{font-size:30px}
  /* Single column: a percentage width of a full-width track would be far too
     wide, so the photo gets an absolute size instead. */
  .hero-shot{width:min(190px,52vw);margin-bottom:24px}
  .section{padding:70px 0}.section-head{grid-template-columns:1fr;gap:25px;margin-bottom:45px}
  h2{font-size:20vw}.copy{font-size:19px}
  .grid{grid-template-columns:1fr}.card{min-height:220px}
  .project{grid-template-columns:1fr;gap:8px}.project-year{display:none}
  .music-box,.contact{grid-template-columns:1fr}
  .contact-big{font-size:19vw}
  .gallery{grid-template-columns:1fr}
  footer{flex-direction:column;gap:8px}
}
/* Respect users who ask for less motion. */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .gal-item img{transition:none}
  .gal-item:hover img{transform:none}
}