/* samz-site.com */

@font-face { font-family: "OCR-A"; src: url("../fonts/OCR-A.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "VAG Rounded"; src: url("../fonts/VAG-Rounded-Bold.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gilda Display"; src: url("../fonts/gilda-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../fonts/raleway.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }

:root {
  --read: "VAG Rounded", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;  /* writing and explanations; titles, menu and labels use OCR-A */
  --bg: #000000;       /* black: main */
  --accent: #ff1f1f;   /* red: menu and accents */
  --white: #ffffff;    /* text */
  --muted: #fff;       /* body text is white (sam) */
  --frame: #1c1c1c;    /* dark grey: alternative accent */
  --line: #2a2a2a;     /* dark grey: lines */
  --menu: #242424;     /* grey menu bar, as on the old site */

  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 112px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
@view-transition { navigation: auto; }   /* smooth cross-fade between pages */

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--title, "OCR-A", "OCR A Std", "Courier New", monospace);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }

/* Header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--menu); }
.nav { height: var(--nav-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.logo { grid-column: 2; font-size: clamp(26px, 2.4vw, 40px); color: var(--accent); text-decoration: line-through; text-decoration-thickness: 2px; white-space: nowrap; }
.nav-social { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: clamp(14px, 1.4vw, 24px); margin: 0; padding: 0; list-style: none; }
.nav-social a { display: block; color: var(--accent); transition: color .2s; }
.nav-social a:hover { color: var(--white); }
.nav-social svg { display: block; width: clamp(22px, 1.8vw, 30px); height: clamp(22px, 1.8vw, 30px); }

.nav-links { display: flex; gap: clamp(20px, 2.4vw, 48px); margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: clamp(22px, 2.2vw, 38px); color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { text-decoration-line: underline; }

.menu-toggle { display: none; width: 48px; height: 48px; margin-right: -12px; padding: 0; align-items: center; justify-content: center; background: none; border: 0; color: var(--accent); cursor: pointer; }
.menu-toggle svg { width: 32px; height: 32px; }
.nav .menu-toggle { grid-column: 3; justify-self: end; }

/* Full-page mobile menu */

.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 40px;
  background: var(--menu);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility 0s .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.mobile-menu__top { height: var(--nav-h); flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; }
.mobile-menu nav { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding-bottom: var(--nav-h); }
.mobile-menu__links { margin: 0; padding: 0; list-style: none; text-align: center; }
.mobile-menu__links a { display: block; padding: 10px 0; font-size: clamp(40px, 13vw, 80px); line-height: 1.1; color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 10px; }
.mobile-menu__links a[aria-current="page"] { text-decoration-line: underline; }
.mobile-menu .nav-social { display: flex; justify-content: center; gap: 28px; }
.mobile-menu .nav-social svg { width: 30px; height: 30px; }

@media (max-width: 1100px) {   /* below this the nav, logo and icons don't fit on one line */
  :root { --nav-h: 80px; }
  .nav-links, .nav-social { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Type */

.title { margin: 0; line-height: 1; }
.title--xl { font-size: clamp(64px, 13vw, 184px); }
.title--lg { font-size: clamp(30px, 7vw, 96px); overflow-wrap: anywhere; }

.muted { color: var(--muted); }

/* Layout */

.page { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(80px, 11vw, 160px); }
.page > .title { margin-bottom: clamp(48px, 7vw, 96px); }

/* Projects */

.grid { display: grid; gap: clamp(48px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* 3 projects per row */
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: minmax(0, 1fr); } }

.card { display: flex; flex-direction: column; gap: 16px; }
.frame { aspect-ratio: 4 / 3; background: var(--frame); border: 1px solid var(--line); transition: border-color .2s; }
.card:hover .frame { border-color: var(--accent); }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.card__title { margin: 0; font-size: clamp(20px, 2vw, 24px); }
.card__meta { font-size: 15px; color: var(--muted); white-space: nowrap; }

.home { min-height: calc(100vh - var(--nav-h) - 88px); min-height: calc(100svh - var(--nav-h) - 88px); }

/* About */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.about .frame { aspect-ratio: 4 / 5; }
.about p { margin: 0 0 1.2em; font-family: var(--read); font-size: clamp(18px, 1.5vw, 26px); line-height: 1.65; }

/* Contact */

.contact p { margin: 0 0 clamp(40px, 6vw, 72px); font-family: var(--read); font-size: clamp(18px, 1.5vw, 26px); color: var(--muted); }
.email { display: inline-block; font-size: clamp(28px, 5vw, 64px); line-height: 1.1; word-break: break-word; border-bottom: 3px solid var(--accent); padding-bottom: 6px; transition: color .2s; }
.email:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; list-style: none; }
.socials a { font-size: 24px; color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--accent); }

/* Footer */

.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--muted); text-align: center; }

/* Responsive */

@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about .frame { max-width: 460px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Images */

img { display: block; max-width: 100%; height: auto; }
.frame { overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
a.card:hover .frame img { opacity: .85; }
a.card:hover .card__title { color: var(--accent); }
.card__title { transition: color .2s; }
.home .frame { aspect-ratio: 3 / 2; }

/* Project pages */



.project-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line); }
.project-nav a { color: var(--accent); }
.project-nav a:hover { color: var(--white); }


/* ---- v4: clean URLs, justified galleries, lightbox ---- */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label { margin: 0 0 14px; font-size: clamp(15px, 1.2vw, 20px); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.project .title { margin-bottom: clamp(32px, 5vw, 64px); }
.project-text { margin: 0 0 clamp(40px, 6vw, 80px); }
.project-text p { margin: 0 0 1.2em; color: var(--white); font-family: var(--read); font-size: clamp(18px, 1.5vw, 26px); line-height: 1.65; }
.project-text .label + p { margin-bottom: 2em; }
.gallery + .project-text, .gallery + .credits { margin-top: clamp(48px, 7vw, 96px); }

/* Justified rows: each image grows by its aspect ratio, so rows stay in order */
.gallery { display: flex; flex-wrap: wrap; gap: clamp(8px, 1vw, 16px); }
.gallery::after { content: ""; flex-grow: 999999; }
.gallery__item { display: block; margin: 0; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 300px); background: var(--frame); overflow: hidden; }
.gallery__item img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: opacity .3s; }
.gallery__item:hover img { opacity: .85; }
@media (max-width: 700px) {
  .gallery__item { flex-basis: calc(var(--r) * 220px); }
}

.credits { margin-top: clamp(48px, 7vw, 96px); }
.credits dl { margin: 0; }
.credits dl div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 32px; padding: 16px 0; border-top: 1px solid var(--line); }
.credits dt { color: var(--white); font-size: clamp(16px, 1.4vw, 24px); }
.credits dd { margin: 0; font-family: var(--read); font-size: clamp(16px, 1.3vw, 22px); }
@media (max-width: 700px) { .credits dl div { grid-template-columns: minmax(0, 1fr); } }

/* lightGallery in the site's font and colours */
.lg-backdrop { background-color: #000; }
.lg-outer, .lg-outer .lg-sub-html { font-family: var(--title, "OCR-A", "Courier New", monospace); }
.lg-outer .lg-sub-html { background: none; }
.lg-outer .lg-thumb-outer { background-color: #000; }
.lg-outer .lg-thumb-item.active, .lg-outer .lg-thumb-item:hover { border-color: var(--accent); }
.lg-toolbar .lg-icon:hover, .lg-next:hover:not(.disabled), .lg-prev:hover:not(.disabled) { color: var(--accent); }
.lg-counter { color: var(--muted); }

/* Once the script has sized every photo, use those exact sizes */
.gallery.is-justified .gallery__item { flex: none; }
.gallery.is-justified .gallery__item img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
@media (max-width: 700px) {
  .gallery { gap: 6px; }
}

/* ---- Home tiles: sam's finished covers, title included in the image ---- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(6px, .6vw, 10px); }
.tile { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--frame); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s ease; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.03); opacity: .9; }
@media (max-width: 700px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) { .tile:hover img { transform: none; opacity: 1; } }
.tile--cat { aspect-ratio: 16 / 9; }          /* category covers on the Projects page */
.grid--tiles { gap: clamp(6px, .6vw, 10px); }

/* ---- Video work: click-to-play YouTube embeds ---- */

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(12px, 1.6vw, 24px); }
.video { margin: 0; }
.video__play, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--frame); cursor: pointer; overflow: hidden; }
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.video__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); background: rgba(0, 0, 0, .55); color: var(--white); transition: background-color .3s, border-color .3s; }
.video__icon svg { width: 100%; height: 100%; }
.video__play:hover img, .video__play:focus-visible img { transform: scale(1.03); opacity: .85; }
.video__play:hover .video__icon, .video__play:focus-visible .video__icon { background: var(--accent); border-color: var(--accent); }
.video figcaption { margin-top: 14px; font-family: var(--read); font-size: clamp(15px, 1.3vw, 18px); }

/* Normal cursor everywhere (no zoom/grab cursors from the lightbox) */
.lg-outer, .lg-outer .lg-object, .lg-outer .lg-item, .lg-outer.lg-grab img.lg-object, .lg-outer.lg-grabbing img.lg-object,
.lg-outer.lg-zoomed .lg-object, .lg-outer .lg-img-wrap, .lg-outer .lg-image { cursor: default !important; }
.lg-outer button, .lg-outer .lg-thumb-item { cursor: pointer !important; }

/* Phones: no prev/next arrows in the lightbox, swipe instead */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .lg-outer .lg-prev, .lg-outer .lg-next { display: none !important; }
}

/* ---- Web design case studies: full width, compact ---- */
.case__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin: 0 0 clamp(20px, 2.4vw, 36px); }
.case__lede { margin: 0; flex: 1 1 520px; font-family: var(--read); font-size: clamp(18px, 1.5vw, 26px); line-height: 1.5; }
.case__visit { flex: none; color: var(--accent); font-size: clamp(18px, 1.6vw, 28px); border-bottom: 2px solid var(--accent); }
.case__visit:hover { color: var(--white); border-color: var(--white); }
.shot { display: block; position: relative; border: 1px solid var(--line); background: var(--frame); overflow: hidden; }
.shot img { width: 100%; height: auto; transition: opacity .3s; }
.shot:hover img { opacity: .88; }
.shot__bar { display: flex; gap: 6px; padding: 7px 10px; background: var(--frame); border-bottom: 1px solid var(--line); }
.shot__bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3a; }
.case__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px) clamp(10px, 1.2vw, 20px); align-items: start; }
.case__fig { margin: 0; }
.case__fig--hero, .case__fig--phones { grid-column: span 2; }
.case__fig h2 { margin: 10px 0 0; font-size: clamp(16px, 1.3vw, 22px); font-weight: 400; color: var(--accent); }
.case__fig p { margin: 2px 0 0; font-family: var(--read); font-size: clamp(14px, 1.05vw, 18px); line-height: 1.4; }
.case__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, .8vw, 14px); }
.shot--phone { border-radius: 12px; }
@media (max-width: 1100px) {
  .case__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .case__fig p { display: none; }
  .case__fig h2 { font-size: 15px; }
}

/* ---- v6: full-bleed photos, centred, tight spacing, smooth ---- */
.wrap.page { padding-left: 0; padding-right: 0; text-align: center; }
.page { padding-top: clamp(16px, 2vw, 32px); padding-bottom: clamp(24px, 3vw, 48px); }
.page > .title { margin-bottom: clamp(16px, 2vw, 28px); }
.page > * { padding-left: var(--gutter); padding-right: var(--gutter); }
/* photos run edge to edge, no side margins */
.page > .gallery, .page > .tiles, .page > .grid, .page > .videos, .page > .case > .case__grid { padding-left: 0; padding-right: 0; }
.page > .case { padding: 0; }
.page > .case > .case__top { padding-left: var(--gutter); padding-right: var(--gutter); }
.page.home { padding-top: 0; padding-bottom: 0; min-height: 0; }
.gallery { gap: 4px; }
.grid, .grid--tiles { gap: 4px; }
.grid .card { gap: 8px; }
.card__row { justify-content: center; padding: 0 var(--gutter) 12px; }
.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 900px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.frame { border: 0; }
.project-text { margin: clamp(20px, 3vw, 40px) 0 0; }
.gallery + .project-text, .gallery + .credits { margin-top: clamp(20px, 3vw, 40px); }
.project-text p { margin-left: auto; margin-right: auto; }
.credits { margin-top: clamp(20px, 3vw, 40px); }
.credits dl div { text-align: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.credits dt { text-align: right; } .credits dd { text-align: left; }
@media (max-width: 700px) { .credits dt, .credits dd { text-align: center; } }
.about { margin: 0 auto; align-items: center; }
.project-nav { justify-content: center; margin-top: clamp(24px, 3vw, 48px); padding-top: 16px; }
.site-footer .wrap { padding-top: 16px; padding-bottom: 16px; }
.socials { justify-content: center; margin-top: clamp(24px, 3vw, 40px); }
.contact p { margin-bottom: clamp(20px, 3vw, 36px); }
.case__top { justify-content: center; text-align: center; margin-bottom: 4px; padding-top: 0; }
.case__lede { flex: 0 1 auto; max-width: none; }
.case__grid { gap: 4px; }
.case__fig h2, .case__fig p { padding: 0 10px; }
.case__fig { padding-bottom: 14px; }
.shot { border: 0; }
@media (max-width: 700px) { .page > * { padding-left: 16px; padding-right: 16px; } .page > .gallery, .page > .tiles, .page > .grid, .page > .videos, .page > .case > .case__grid { padding: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- v7: menu in caps, home spacing, themed web projects ---- */
.nav-links a, .mobile-menu__links a { text-transform: uppercase; }
.page.home { padding-top: clamp(6px, .6vw, 10px); }
.home .tiles { gap: clamp(6px, .6vw, 10px); }

/* Each web project wears its own site's theme (page body only; the menu bar stays Sam's) */
body.theme-mini, body.theme-anou { background: #fff; color: #111; --white: #111; --muted: #6b6b6b; --line: #e6e6e6; --frame: #f6f6f6; }
body.theme-mini { --read: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --t-accent: #f48cb8; --t-head: "Inter", system-ui, sans-serif; --t-radius: 12px; }
body.theme-anou { color: #1d1d1f; --white: #1d1d1f; --muted: #7a7a7f; --line: #e8e8ea; --frame: #f6f6f7; --read: "Raleway", system-ui, sans-serif; --t-accent: #1d1d1f; --t-head: "Gilda Display", Georgia, serif; --t-radius: 10px; }
body.theme-mini ::selection { background: #f48cb8; color: #111; }
body.theme-anou ::selection { background: #1d1d1f; color: #fff; }
.theme-mini .page > .case > .case__grid, .theme-anou .page > .case > .case__grid { padding: 0 var(--gutter); gap: clamp(12px, 1.6vw, 24px); }
.theme-mini .case__lede, .theme-anou .case__lede { color: #333; }
body.theme-anou .case__lede { font-weight: 300; }
.theme-mini .case__visit { color: #111; border-bottom: 2px solid var(--t-accent); }
.theme-anou .case__visit { color: #1d1d1f; border-bottom: 1px solid #1d1d1f; }
.theme-mini .case__visit:hover, .theme-anou .case__visit:hover { color: #6b6b6b; }
.theme-mini .shot, .theme-anou .shot { border: 1px solid var(--line); border-radius: var(--t-radius); background: var(--frame); }
.theme-anou .shot { box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .25); }
.theme-mini .shot--phone, .theme-anou .shot--phone { border-radius: 22px; }
.theme-mini .shot__bar, .theme-anou .shot__bar { background: #fafafa; border-bottom: 1px solid var(--line); }
.theme-mini .shot__bar i { background: var(--t-accent); }
.theme-anou .shot__bar i { background: #d6d6d9; }
.theme-mini .case__fig h2, .theme-anou .case__fig h2 { color: #111; font-family: var(--t-head); }
.theme-mini .case__fig h2 { font-weight: 700; letter-spacing: -.02em; }
.theme-anou .case__fig h2 { letter-spacing: .01em; }
.theme-mini .case__fig p, .theme-anou .case__fig p { color: #444; }
.theme-mini .project-nav a, .theme-anou .project-nav a { color: #111; }
.theme-mini .project-nav a:hover { color: var(--t-accent); }
.theme-mini .project-nav, .theme-anou .project-nav { border-top-color: var(--line); }
.theme-mini .site-footer, .theme-anou .site-footer { border-top: 1px solid var(--line); }

/* ---- v8: footer sticks to the bottom, home carousel ---- */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { margin-top: auto; }


/* ---- v9: web projects, minimal: big centred link, then only the screens ---- */
.case__visit { display: block; width: fit-content; margin: clamp(18px, 3vw, 44px) auto clamp(18px, 3vw, 44px); font-size: clamp(30px, 5vw, 84px); line-height: 1.1; border-bottom-width: 3px; padding-bottom: 6px; }
.theme-mini .case__visit, .theme-anou .case__visit { font-family: var(--t-head); }
.theme-mini .case__visit { font-weight: 700; letter-spacing: -.03em; }
.theme-anou .case__visit { letter-spacing: .01em; }
.case__fig { padding-bottom: 0; }
.theme-mini .shot, .theme-anou .shot { box-shadow: none; }
.theme-mini .page > .case > .case__grid, .theme-anou .page > .case > .case__grid { padding-bottom: clamp(18px, 3vw, 44px); }

/* ---- v10: project previews are bounded boxes: picture, then name (and an optional small caption) ---- */
.grid:not(.grid--tiles) { gap: clamp(8px, 1vw, 16px); padding-left: clamp(8px, 1vw, 16px); padding-right: clamp(8px, 1vw, 16px); }
.card { gap: 0; border: 1px solid var(--border, #333); background: var(--bg); transition: border-color .2s; }
.card:hover { border-color: var(--accent); }
.card .frame { border: 0; }
.card__text { padding: 16px 14px 18px; border-top: 1px solid var(--border, #333); text-align: center; }
.card:hover .card__text { border-top-color: var(--accent); }
.card__title { font-size: clamp(18px, 1.6vw, 26px); color: var(--accent); letter-spacing: .04em; }
a.card:hover .card__title { color: var(--white); }
.card__cap { margin: 6px 0 0; font-family: var(--read); font-size: clamp(14px, 1.1vw, 18px); line-height: 1.4; }

/* ---- v11: the photo fills the whole box; the name sits on it in white ---- */
.card { position: relative; display: block; overflow: hidden; }
.card .frame { aspect-ratio: 4 / 3; }
.card__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 14px 18px; border: 0; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); pointer-events: none; }
.card:hover .card__text { border: 0; }
.card__title { color: #fff; } a.card:hover .card__title { color: var(--accent); }
.card__cap { color: #fff; }
.card__title { font-size: clamp(20px, 1.9vw, 32px); }

/* ---- v12: home and Work covers are bounded boxes too (their names are already in sam's images) ---- */
.tile { border: 1px solid var(--border, #333); transition: border-color .2s; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); }

/* ---- v13: project names in bold capitals (OCR-A has one weight, so bold is a thin stroke) ---- */
.card__title { text-transform: none; font-weight: 400; -webkit-text-stroke: 0; letter-spacing: .04em; }

/* ---- v14: About photo, centred (portrait, fitted to the screen height) ---- */
.page.about-page > .about__photo { display: block; height: calc(100vh - var(--nav-h) - 176px); height: calc(100svh - var(--nav-h) - 176px); width: auto; max-width: 100%; aspect-ratio: 1125 / 2000; margin: 0 auto; padding: 0; object-fit: cover; }
@media (max-width: 700px) { .page.about-page > .about__photo { height: auto; width: 100%; } }

/* ---- v15: contact page is a business card, front and back ---- */
.page.contact { display: flex; align-items: center; justify-content: center; }
.page.contact > .cards { padding: 0; width: min(calc(100% - 2 * var(--gutter)), 1500px, calc((100vh - var(--nav-h) - 130px) * 2 * 91 / 55)); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 28px); }
.card-face { container-type: inline-size; aspect-ratio: 91 / 55; text-align: left; }
.card-face__in { position: relative; height: 100%; padding: 5.5cqw; }
.page.contact .card-face p { margin: 0; }
.card-face--front { background: #fff; color: #111; }
.page.contact .card-face--front .card-face__name { font-family: "OCR-A", "Courier New", monospace; color: #ff1f1f; font-size: 18.4cqw; line-height: 1; letter-spacing: -.05em; white-space: nowrap; margin-left: -1cqw; }
.page.contact .card-face__small { position: absolute; bottom: 5.5cqw; color: #111; margin: 0; font-family: var(--read); font-size: 2.5cqw; line-height: 1.3; }
.page.contact .card-face__small--l { left: 5.5cqw; }
.page.contact .card-face__small--r { right: 5.5cqw; text-align: right; }
.card-face--back { background: #ff1f1f; }
.page.contact .card-face--back p { color: #fff; }
.page.contact .card-face__title { font-family: var(--read); font-size: 6.2cqw; line-height: 1.15; margin-bottom: 6cqw; }
.page.contact .card-face__lines { font-family: var(--read); font-size: 6.2cqw; line-height: 1.25; }
.card-face__lines a { border-bottom: 2px solid rgba(255, 255, 255, .0); transition: border-color .2s; }
.card-face__lines a:hover { border-color: #fff; }
@media (max-width: 800px) {
  .page.contact > .cards { grid-template-columns: minmax(0, 1fr); width: min(calc(100% - 32px), 560px); }
  .page.contact .card-face__small { font-size: 3.5cqw; }
  .card-face__qr { width: 21cqw; height: 21cqw; }
}
.card-face__qr { position: absolute; right: 5.5cqw; bottom: 5.5cqw; display: block; width: 15cqw; height: 15cqw; }
.card-face__qr svg { display: block; width: 100%; height: 100%; }

/* ---- v17: menu items struck through like the logo; current page in white ---- */
.nav-links a, .mobile-menu__links a { text-decoration-line: line-through; text-underline-offset: 0; }
.nav-links a[aria-current="page"], .mobile-menu__links a[aria-current="page"] { text-decoration-line: line-through; color: var(--white); }

/* ---- v19: "All work" link under the home covers; covers fade in one after another; block centred on desktop ---- */
.page.home > .home__more { margin: 0; padding: 14px 16px 16px; text-align: center; }
.home__more a { font-size: clamp(18px, 1.6vw, 26px); color: var(--accent); text-decoration: line-through; text-decoration-thickness: 2px; text-transform: uppercase; letter-spacing: .06em; transition: color .2s; }
.home__more a:hover, .home__more a:focus-visible { color: var(--white); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.page.home .tile, .page.home .home__more { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.page.home .tile:nth-child(2) { animation-delay: .12s; }
.page.home .tile:nth-child(3) { animation-delay: .24s; }
.page.home .home__more { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .page.home .tile, .page.home .home__more { animation: none; } }
@media (min-width: 900px) { .page.home { display: flex; flex-direction: column; justify-content: center; flex: 1 0 auto; } }

/* ---- v21: photos can't be dragged or selected ---- */
img, picture, svg { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---- v24: the contact cards are images (assets/img/card-*.png), scaled to fit the screen ---- */
.page.contact > .cards { padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 28px); width: min(calc(100% - 2 * var(--gutter)), 1500px, calc((100vh - var(--nav-h) - 130px) * 2 * 91 / 55)); margin-inline: auto; }
.page.contact .card-img { display: block; width: 100%; height: auto; aspect-ratio: 91 / 55; }
.page.contact .card-link { display: block; }
@media (max-width: 700px) { .page.contact > .cards { grid-template-columns: minmax(0, 1fr); width: min(calc(100% - 32px), 560px); } }

/* ---- v25: footer link to Tools and misc ---- */
.site-footer .footer-link { margin-left: 28px; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; transition: color .2s; }
.site-footer .footer-link:hover, .site-footer .footer-link:focus-visible { color: var(--white); }

/* ---- v26: on phones the whole Home page (menu, three covers, All work link, footer) fits the screen, no scrolling ---- */
@media (max-width: 700px) {
  .page.home { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .page.home > .tiles { flex: 1 1 0; min-height: 270px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0; }
  .page.home .tile { aspect-ratio: auto; height: 100%; min-height: 0; }
  .page.home .tile img { height: 100%; }
  .page.home > .home__more { padding: 8px 16px 6px; }
  .home__more a { font-size: 18px; }
  .site-footer .wrap { padding-top: 8px; padding-bottom: 12px; font-size: 13px; }
}

/* ---- v27: Work (three category covers) and About (portrait) also fit a phone screen ---- */
@media (max-width: 700px) {
  main.page:has(> .grid--tiles) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  main.page > .grid--tiles { flex: 1 1 0; min-height: 270px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 0; }
  main.page > .grid--tiles .tile, main.page > .grid--tiles .tile--cat { aspect-ratio: auto; height: 100%; min-height: 0; }
  .page.about-page > .about__photo { height: calc(100svh - var(--nav-h) - 88px); min-height: 280px; width: auto; max-width: 100%; }
}

/* v28: 3D model on project pages (table-02). Full width, black stage, normal cursor, page still scrolls on phones */
.model { position: relative; width: 100%; aspect-ratio: 16 / 8; max-height: 78svh; margin: 0 0 4px; background: var(--bg); border: 1px solid var(--border, #333); opacity: 0; transition: opacity .8s ease; }
.model.is-ready { opacity: 1; }
.model canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: default; }
@media (max-width: 699px) { .model { aspect-ratio: 1 / 1; max-height: 70svh; } }


/* v32: Work lists the 3 categories and the 3 home projects (6 covers). Phones: six covers stacked, together filling the whole screen between the menu and the footer */
@media (max-width: 700px) {
  main.page > .grid--work { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 3px; flex: 1 1 0; min-height: 360px; padding: 0; }
  main.page > .grid--work .tile, main.page > .grid--work .tile--cat { aspect-ratio: auto; height: 100%; min-height: 0; }
  main.page > .grid--work .tile img { height: 100%; }
}

/* v33: Work = 4 covers (Photography, Design, Website Design, Video work). On desktop they expand into a 2 x 2 grid that fills the screen. */
@media (min-width: 701px) {
  main.page:has(> .grid--work) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  main.page > .grid--work { flex: 1 1 0; min-height: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0; }
  main.page > .grid--work .tile, main.page > .grid--work .tile--cat { aspect-ratio: auto; height: 100%; min-height: 0; }
  main.page > .grid--work .tile img { height: 100%; }
}

/* v34: logo without strikethrough; Tools and misc link under the social icons in the menu */
.logo { text-decoration: none; }
.mobile-menu .menu-tools { display: block; text-align: center; margin: 22px 0 0; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; transition: color .2s; }
.mobile-menu .menu-tools:hover, .mobile-menu .menu-tools:focus-visible { color: var(--white); }

/* v35: Selection page (radios, playlists, mixes) */
.selection { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.sel-part { display: flex; flex-direction: column; gap: 4px; }
.sel-title { margin: 0 0 clamp(10px, 1.4vw, 16px); text-align: center; font-weight: 400; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.onair { display: flex; align-items: stretch; height: 40px; background: var(--menu); overflow: hidden; }
.onair__label { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: var(--accent); color: var(--bg); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.onair__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg); animation: onair-blink 1.2s steps(1) infinite; }
@keyframes onair-blink { 50% { opacity: 0; } }
.onair__ticker { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.onair__track { display: flex; width: max-content; animation: onair-roll 90s linear infinite; }
.onair__track span { padding: 0 28px; white-space: nowrap; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.onair__track span::after { content: "•"; margin-left: 28px; color: var(--accent); }
@keyframes onair-roll { to { transform: translateX(-50%); } }
.sel-grid { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sel-grid--mixes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.sel-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(14px, 1.4vw, 20px); border: 1px solid var(--border, #333); background: var(--bg); color: var(--white); transition: border-color .2s; }
a.sel-card:hover, a.sel-card:focus-visible { border-color: var(--accent); }
.sel-card__text { display: flex; flex-direction: column; gap: 4px; }
.sel-card__title { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; transition: color .2s; }
a.sel-card:hover .sel-card__title { color: var(--accent); }
.sel-card__meta { font-family: var(--read); font-size: 14px; line-height: 1.3; }
.sel-card__go { margin-top: auto; color: var(--accent); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.sel-radio { min-height: 200px; }
.sel-radio__logo { display: block; height: 64px; width: auto; max-width: 70%; object-fit: contain; object-position: left center; filter: var(--logo-filter, brightness(0) invert(1)); }
.sel-playlist { padding: 0 0 clamp(14px, 1.4vw, 20px); }
.sel-playlist .sel-card__text { padding: 0 clamp(14px, 1.4vw, 20px); }
.sel-playlist__cover { display: block; aspect-ratio: 1; background: var(--frame); overflow: hidden; }
.sel-playlist__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
a.sel-playlist:hover .sel-playlist__cover img { opacity: .85; }
.sel-mix iframe { display: block; width: 100%; height: 300px; border: 0; background: var(--frame); }
@media (max-width: 700px) {
  .sel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sel-grid--mixes { grid-template-columns: minmax(0, 1fr); }
  .sel-radio { min-height: 150px; gap: 10px; }
  .sel-radio__logo { height: 40px; max-width: 100%; }
  .sel-card__title { font-size: 15px; }
  .sel-card__meta, .sel-card__go { font-size: 12px; }
  .onair { height: 34px; }
  .onair__label, .onair__track span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .onair__track, .onair__dot { animation: none; } }
.sel-card { align-items: center; text-align: center; }
.sel-radio__logo { object-position: center; }
/* v36: five menu links (Selection added) need a smaller size so they never touch the centred logo */
@media (min-width: 1101px) {
  .nav-links a { font-size: clamp(18px, 1.55vw, 30px); }
  .nav-links { gap: clamp(16px, 1.6vw, 32px); }
}
/* v37 selection: cover player on desktop, compact + 3-up on phones, edge to edge */
.sel-mix iframe { height: 300px; }
.wrap.selection { padding-left: 0; padding-right: 0; }
.selection.page > * { padding-left: 0; padding-right: 0; }
.sel-title { padding: 0 12px; }
@media (max-width: 700px) {
  .wrap.selection { padding-left: 0; padding-right: 0; }
  .selection.page > * { padding-left: 0; padding-right: 0; }
  .sel-grid--radios, .sel-grid--playlists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sel-grid--mixes { grid-template-columns: minmax(0, 1fr); }
  .sel-card { padding: 8px 6px; gap: 6px; }
  .sel-radio { min-height: 96px; }
  .sel-radio__logo { height: 28px; max-width: 90%; }
  .sel-playlist { padding: 0 0 8px; }
  .sel-playlist .sel-card__text { padding: 0 6px; }
  .sel-card__title { font-size: 11px; }
  .sel-card__meta, .sel-card__go { font-size: 10px; }
  .sel-mix { padding: 0; }
  .sel-mix iframe { height: 116px; }
  .sel-title { padding: 0 12px; }
}
/* v39 optional lime highlight (theme colors.lime) */
.nav-links a[aria-current="page"], .mobile-menu__links a[aria-current="page"] { background: var(--lime, transparent); color: var(--on-lime, var(--white)); padding: 0 8px; }
.nav-links a:hover, .mobile-menu__links a:hover, .home__more a:hover, .home__more a:focus-visible { background: var(--lime, transparent); color: var(--on-lime, var(--white)); }
.nav .socials a:hover, .nav-socials a:hover, .header-socials a:hover { color: var(--lime, var(--accent)); }
.onair__label { background: var(--lime, var(--accent)); color: var(--on-lime, var(--white)); }
.onair__dot { background: var(--on-lime, var(--white)); }
a.sel-card:hover, a.sel-card:focus-visible { border-color: var(--lime, var(--accent)); }
a.sel-card:hover .sel-card__title { color: var(--on-lime, var(--white)); background: var(--lime, transparent); }
.sel-card__go { color: var(--white); }
a.sel-card:hover .sel-card__go { background: var(--lime, transparent); }

/* v40 phones: packed layouts, no gaps */
@media (max-width: 700px) {
  main.page.home, main.page.selection, main.page:has(> .grid--work), main.page.about-page { padding-top: 0; padding-bottom: 0; }
  .page.home { padding-top: 0; margin-top: 0; }
  .page.home > .tiles { gap: 0; }
  .page.home > .home__more { padding: 0; }
  .page.home > .home__more a, .home__more a { display: block; width: 100%; padding: 12px 0; background: var(--lime, var(--accent)); color: var(--on-lime, var(--bg)); text-decoration: none; letter-spacing: .08em; }
  main.page > .grid--work { gap: 0; }
  main.page.about-page { padding: 0; }
  .page.about-page > .about__photo { display: block; width: 100%; max-width: none; height: calc(100svh - var(--nav-h)); min-height: 0; object-fit: cover; margin: 0; padding: 0; }
  main.about-page + .site-footer { display: none; }
  .selection { gap: 0; }
  .selection .sel-part, .sel-grid { gap: 0; }
  .sel-card { border-width: 0 1px 1px 0; }
  .sel-radio { background: var(--menu); color: var(--on-lime, var(--white)); }
  .sel-radio .sel-card__title, .sel-radio .sel-card__meta, .sel-radio .sel-card__go { color: #111; }
  .sel-playlist { padding: 0; }
  .sel-playlist .sel-card__text, .sel-mix .sel-card__text { display: none; }
  .sel-mix { padding: 0; border: 0; }
}
/* v41: no footer text; pages fill the screen without it */
.site-footer { display: none; }
@media (max-width: 700px) { .page.home { min-height: 0; } }
@media (max-width: 700px) { .page.home > .home__more { margin: 0; } .home__more a { padding: 10px 0; line-height: 1.2; } }

/* v42: radios keep the page background (dark text and logos), no listen line, bordered ticker, simple contact page */
.sel-radio { background: var(--bg); min-height: 0; }
.sel-radio .sel-card__title, .sel-radio .sel-card__meta { color: var(--white); }
.sel-radio__logo { filter: brightness(0); }
.sel-card__go { display: none; }
.onair { border: 1px solid var(--white); }
@media (max-width: 700px) { .sel-radio { min-height: 0; background: var(--bg); } .sel-radio__logo { height: 34px; } .onair { border-width: 1px 0; } }
.contact--simple { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 40px); min-height: calc(100svh - var(--nav-h)); padding: 0 var(--gutter); text-align: center; }
.contact-mail { font-size: clamp(22px, 5.4vw, 64px); color: var(--white); font-family: var(--read); word-break: break-word; }
.contact-mail:hover, .contact-mail:focus-visible { background: var(--lime, transparent); color: var(--on-lime, var(--white)); }
.contact-qr { display: block; color: var(--white); width: min(64vw, 46svh, 420px); }
.contact-qr svg { display: block; width: 100%; height: auto; }
/* v43: contact = one business-card shaped panel (email top left, QR bottom right) */
.contact--simple { padding: 0 var(--gutter); }
.bizcard { position: relative; container-type: inline-size; width: min(92vw, 760px, calc((100svh - var(--nav-h) - 48px) * 91 / 55)); aspect-ratio: 91 / 55; background: var(--bg); color: var(--white); text-align: left; overflow: hidden; }
.bizcard .contact-mail { position: absolute; left: 6cqw; top: 6cqw; font-size: 6.4cqw; line-height: 1.15; }
.bizcard .contact-qr { position: absolute; right: 6cqw; bottom: 6cqw; width: 34cqw; }
.contact--simple { position: relative; }
.dither-bg { position: absolute; inset: 0; padding: 0 !important; box-sizing: border-box; width: 100%; height: 100%; image-rendering: pixelated; z-index: 0; pointer-events: none; }
.contact--simple > .bizcard, .contact--simple > .contact-mail { position: relative; z-index: 1; }

/* v44: section titles are lime bars with black text */
.selection .sel-title { display: block; margin: 0; padding: 12px 16px; background: var(--lime, var(--accent)); color: var(--on-lime, var(--bg)); font-size: clamp(18px, 2vw, 28px); letter-spacing: .12em; line-height: 1.2; text-align: center; }
.selection .sel-part + .sel-part { margin-top: 0; }

/* v45 desktop: same packed Selection and Work (Home and About stay as they were) */
@media (min-width: 701px) {
  main.page.selection, main.page:has(> .grid--work) { padding-top: 0; padding-bottom: 0; }
  main.page > .grid--work { gap: 0; }
  .selection { gap: 0; }
  .selection .sel-part, .sel-grid { gap: 0; }
  .sel-card { border-width: 0 1px 1px 0; }
  .sel-playlist { padding: 0; }
  .sel-playlist .sel-card__text, .sel-mix .sel-card__text { display: none; }
  .sel-mix { padding: 0; border: 0; }
  .sel-radio { padding: 18px 10px; }
  .sel-grid--playlists { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* v46 contact: touch-playable background */
main.contact--simple { touch-action: none; -webkit-user-select: none; user-select: none; }

/* v47 video captions in a lime box with a thin frame; performers 2-up and packed on phones */
.video { background: var(--lime, #d4f50f); border: 2px solid var(--lime, #d4f50f); }
.video figcaption { margin: 0; padding: 10px 14px; background: var(--lime, #d4f50f); color: var(--on-lime, #111); text-align: center; line-height: 1.25; }
.videos { gap: clamp(16px, 2vw, 28px); }
@media (max-width: 700px) {
  .videos { gap: 12px; padding-left: 12px !important; padding-right: 12px !important; }
  .gallery[data-cols="2"] { gap: 0; }
}

/* v48 smaller gaps between videos */
.videos { gap: 6px; }
@media (max-width: 700px) { .videos { gap: 6px; padding-left: 6px !important; padding-right: 6px !important; } }

/* v49 personal works and project pages: no gaps, no margins, no space under the menu, thin lime lines between items */
main.page:not(.home):not(.selection):not(.about-page):not(.contact) { padding-top: 0; padding-bottom: 0; }
.page > .gallery, .page > .tiles, .page > .grid, .page > .videos, .page > .case, .page > .case > .case__grid { padding-left: 0 !important; padding-right: 0 !important; }
.gallery, .tiles, .grid, .grid--tiles, .videos, .case__grid { gap: 0 !important; }
.gallery__item, .tile, .case__fig, .card { outline: 1px solid var(--lime, #d4f50f); outline-offset: -1px; }
.video { border-width: 1px; outline: 0; }
.case__top { margin-bottom: 0; }
.case__fig { padding-bottom: 0; }
.project-text, .gallery + .project-text, .gallery + .credits, .credits { margin-top: 0; padding-top: 14px; padding-bottom: 14px; border-top: 1px solid var(--lime, #d4f50f); }
.project-nav { margin-top: 0; padding: 12px 16px; border-top: 1px solid var(--lime, #d4f50f); }
@media (max-width: 700px) { .videos { padding: 0 !important; } .gallery { gap: 0 !important; } }
.page > .model { padding: 0 !important; margin: 0; border-width: 1px 0 0; border-color: var(--lime, #d4f50f); }

/* v50 global: same packed principle on desktop Home, lime lines on Selection and tiles */
@media (min-width: 701px) {
  main.page.home { padding-top: 0; padding-bottom: 0; margin-top: 0; justify-content: flex-start; }
  .page.home > .tiles { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 !important; padding: 0; }
  .page.home .tile { aspect-ratio: 16 / 9; height: auto; }
  .page.home > .home__more { padding: 0; margin: 0; }
  .page.home > .home__more a { display: block; width: 100%; padding: 14px 0; background: var(--lime, var(--accent)); color: var(--on-lime, var(--bg)); text-decoration: none; letter-spacing: .08em; }
}
.sel-card, .sel-radio, .sel-playlist, .sel-mix, .tile { border-color: var(--lime, #d4f50f) !important; }
.tile, .tile--cat { outline: 1px solid var(--lime, #d4f50f); outline-offset: -1px; }
.onair, .site-header { border-color: var(--lime, #d4f50f); }

/* v51 inside a project (gallery, case study, 3D model): back to the way it was; the packed lime-line look is for the pages outside projects */
html main.page:has(> .gallery, > .case, > .model) { padding-top: clamp(16px, 2vw, 32px) !important; padding-bottom: clamp(24px, 3vw, 48px) !important; }
main.page:has(> .gallery, > .case, > .model) .gallery { gap: 4px !important; }
main.page:has(> .gallery[data-cols="2"]) .gallery { gap: 4px !important; }
main.page:has(> .gallery, > .case, > .model) .case__grid { gap: 4px !important; }
main.page:has(> .gallery, > .case, > .model) .gallery__item, main.page:has(> .gallery, > .case, > .model) .case__fig { outline: 0; }
main.page:has(> .gallery, > .case, > .model) .case__fig { padding-bottom: 14px; }
main.page:has(> .gallery, > .case, > .model) .case__top { margin-bottom: 4px; }
main.page:has(> .gallery, > .case, > .model) .project-text { margin-top: clamp(20px, 3vw, 40px); padding: 0 var(--gutter); border-top: 0; }
main.page:has(> .gallery, > .case, > .model) .gallery + .project-text, main.page:has(> .gallery, > .case, > .model) .gallery + .credits, main.page:has(> .gallery, > .case, > .model) .credits { margin-top: clamp(20px, 3vw, 40px); padding: 0 var(--gutter); border-top: 0; }
main.page:has(> .gallery, > .case, > .model) .project-nav { margin-top: clamp(24px, 3vw, 48px); padding: 16px 16px 0; border-top: 0; }
main.page:has(> .model) > .model { margin: 4px 0; border: 1px solid var(--border, #333); }
@media (max-width: 700px) { main.page:has(> .gallery) .gallery { gap: 4px !important; } }

/* v52 white video play buttons */
.video__icon { background: #fff; border-color: #fff; color: #111; }
.video__play:hover .video__icon, .video__play:focus-visible .video__icon { background: var(--lime, #d4f50f); border-color: var(--lime, #d4f50f); color: #111; }

/* v53 black separator lines instead of lime */
.sel-card, .sel-radio, .sel-playlist, .sel-mix, .tile { border-color: #111 !important; }
.tile, .tile--cat { outline-color: #111; }
.video { border-color: #111; background: #111; }
.onair, .site-header { border-color: #111; }

@media (min-width: 1101px) { .nav-links a { font-size: clamp(14px, 1.2vw, 22px); } .nav-links { gap: clamp(12px, 1.1vw, 22px); } }
.projects-page .tree, .projects-page .tree li { text-align: left; }

/* v55 Projects page: editorial index, colour-coded groups, left-aligned */
.c-lime { --c: #d4f50f; --on: #111; } .c-pink { --c: #f4b9c6; --on: #111; } .c-white { --c: #ffffff; --on: #111; } .c-ink { --c: #111111; --on: #ffffff; } .c-sky { --c: #b7c7f7; --on: #111; }
.projects-page { text-align: left !important; padding: 0 !important; counter-reset: pj; }
.projects-page > * { padding-left: 0; padding-right: 0; }
.pj { display: grid; grid-template-columns: minmax(200px, 30%) minmax(0, 1fr); border-bottom: 1px solid #111; counter-increment: pj; }
.pj__title { margin: 0; padding: clamp(18px, 2.4vw, 36px) clamp(16px, 2.4vw, 36px); font-family: var(--title, "OCR-A", monospace); font-weight: 400; font-size: clamp(26px, 3.4vw, 56px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; border-right: 1px solid #111; }
.pj__title::before { content: "0" counter(pj); display: block; margin-bottom: .6em; font-size: 14px; letter-spacing: .12em; opacity: .7; }
.pj__title a { color: inherit; text-decoration: none; }
.pj__title a:hover, .pj__title a:focus-visible { background: var(--lime); color: var(--on-lime, #111); }
.pj__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pj__group { padding: clamp(18px, 2.4vw, 36px) clamp(16px, 2.4vw, 36px); border-right: 1px solid #111; }
.pj__group:last-child { border-right: 0; }
.pj__label { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font-family: var(--title, "OCR-A", monospace); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.pj__label i { width: 14px; height: 14px; background: var(--c); border: 1px solid #111; flex: none; }
.pj__group ul { list-style: none; margin: 0; padding: 0; }
.pj__group li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 8px; margin: 0 -8px; color: #111; text-decoration: none; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.3; border-top: 1px solid rgba(17, 17, 17, .18); }
.pj__group li:first-child a { border-top: 0; }
.pj__group li a em { font-style: normal; font-family: var(--title, "OCR-A", monospace); }
.pj__group li a:hover, .pj__group li a:focus-visible { background: var(--c); color: var(--on); border-color: transparent; }
@media (max-width: 820px) {
  .pj { grid-template-columns: minmax(0, 1fr); }
  .pj__title { border-right: 0; border-bottom: 1px solid #111; padding-bottom: 14px; display: flex; align-items: baseline; gap: 14px; }
  .pj__title::before { margin: 0; }
  .pj__group { border-right: 0; border-bottom: 1px solid rgba(17, 17, 17, .18); }
  .pj__group:last-child { border-bottom: 0; }
}
/* single video page */
.video-page { padding: 0 !important; }
.video-page .videos { grid-template-columns: minmax(0, 1fr); }
.video-page .video__play, .video-page .video iframe { max-height: calc(100svh - 190px); }
.video-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 12px 16px !important; border-top: 1px solid #111; font-size: 15px; }
.video-nav a { color: #111; text-decoration: none; }
.video-nav a:hover { background: var(--lime); }
.pj__group li a { font-family: var(--read, "VAG Rounded", sans-serif); }

/* v56 Home: line-art illustration as the background */
main.page.home--art { flex: 1 1 auto; min-height: calc(100svh - 112px); padding: 0 !important; background: url("../img/home-art.svg") center / contain no-repeat; }
@media (max-width: 700px) { main.page.home--art { min-height: calc(100svh - 54px); background-size: 150% auto; background-position: 40% 55%; } }
.pj__title::before { display: none !important; }
.video figcaption small, .pj__group li small { font-size: .74em; font-weight: 400; opacity: .8; }
.pj__group li small { display: block; margin-top: 1px; }

/* v57 Projects page back to a directory tree (keeps groups, colour markers, descriptions) */
.projects-page { padding: clamp(24px, 4vw, 56px) clamp(16px, 5vw, 72px) clamp(32px, 5vw, 64px) !important; }
.pj { display: block; border: 0; margin: 0 0 clamp(26px, 3vw, 40px); }
.pj__title { padding: 0; border: 0; margin: 0 0 10px; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: .06em; }
.pj__title::before { display: none !important; }
.pj__title a:not(:hover)::after, .pj__title:not(:has(a))::after { content: "/"; }
.pj__title a::after { content: "/"; }
.pj__groups { display: block; }
.pj__group { position: relative; padding: 0 0 0 28px; border: 0 !important; }
.pj__group::before, .pj__group li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 12px; border-left: 1px solid #111; border-bottom: 1px solid #111; }
.pj__group:not(:last-child)::after, .pj__group li:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 12px; bottom: 0; border-left: 1px solid #111; }
.pj__label { margin: 0; height: 24px; line-height: 24px; padding-left: 0; }
.pj__group ul { padding: 0 0 8px; }
.pj__group li { position: relative; padding: 0 0 0 28px; }
.pj__group li::before { height: 14px; }
.pj__group li:not(:last-child)::after { top: 14px; }
.pj__group li a { display: inline-block; padding: 0 6px; margin: 0; border: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 28px; }
.pj__group li a em { margin-left: 8px; }
.pj__group li small { display: inline; margin: 0 0 0 4px; }
@media (max-width: 700px) { .pj__group li small { display: block; margin: -6px 0 6px 6px; line-height: 1.3; } .pj__group li a { line-height: 26px; } }
@media (max-width: 820px) { .pj__title { display: block !important; border: 0 !important; padding: 0 !important; } }

/* v58 Projects page: simple, one viewport, no scrolling. 4 columns on desktop, compact stack on phones */
main.projects-page { padding: 0 !important; display: grid; grid-template-columns: 1.15fr .8fr .95fr 1.5fr; height: calc(100svh - 112px); min-height: 520px; overflow: hidden; }
.projects-page .pj { display: flex; flex-direction: column; margin: 0; padding: clamp(18px, 3svh, 36px) clamp(14px, 1.8vw, 32px); border: 0; border-right: 1px solid #111; min-width: 0; gap: clamp(10px, 2svh, 22px); }
.projects-page .pj:last-child { border-right: 0; }
.projects-page .pj__title { margin: 0; font-size: clamp(18px, 2vw, 32px); line-height: 1.1; letter-spacing: .05em; padding: 0; }
.projects-page .pj__title a::after, .projects-page .pj__title:not(:has(a))::after { content: none; }
.projects-page .pj__groups { display: flex; flex-direction: column; gap: clamp(12px, 2.4svh, 26px); }
.projects-page .pj__group { padding: 0 !important; }
.projects-page .pj__group::before, .projects-page .pj__group::after, .projects-page .pj__group li::before, .projects-page .pj__group li::after { content: none !important; }
.projects-page .pj__label { height: auto; line-height: 1.2; margin: 0 0 clamp(4px, 1svh, 10px); font-size: clamp(10px, 1svh + 3px, 12px); }
.projects-page .pj__group ul { padding: 0; }
.projects-page .pj__group li { padding: 0; }
.projects-page .pj__group li a { display: block; padding: 3px 6px; margin: 0 -6px; line-height: 1.25; font-size: clamp(14px, 1.2vw + .4svh, 19px); }
.projects-page .pj__group li small { display: block; margin: 1px 0 0; font-size: .72em; line-height: 1.25; }
.projects-page .pj__group li a em { margin-left: 6px; }
@media (max-width: 820px) {
  main.projects-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; height: calc(100svh - 54px); min-height: 0; }
  .projects-page .pj { border-right: 0; border-bottom: 1px solid #111; padding: clamp(6px, 1.4svh, 14px) 16px; gap: clamp(3px, .8svh, 8px); }
  .projects-page .pj:last-child { border-bottom: 0; }
  .projects-page .pj__title { font-size: clamp(15px, 2.6svh, 22px); }
  .projects-page .pj__groups { gap: clamp(3px, .8svh, 8px); }
  .projects-page .pj__label { margin-bottom: 1px; font-size: clamp(9px, 1.25svh, 11px); }
  .projects-page .pj__group li a { padding: 0 6px; line-height: 1.2; font-size: clamp(12px, 2.05svh, 16px); }
  .projects-page .pj__group li small { font-size: clamp(9px, 1.35svh, 11px); margin: 0; }
}
@media (max-width: 1100px) { main.projects-page { height: calc(100svh - 80px); } }
@media (max-width: 700px) {
  main.video-page { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - 80px); }
  main.video-page .video-nav { border-top: 0; }
}
@media (min-width: 821px) {
  .projects-page .pj__title { font-size: clamp(20px, 1.7vw + 1svh, 38px); }
  .projects-page .pj__group li a { font-size: clamp(15px, 1vw + .9svh, 24px); padding: 4px 6px; }
  .projects-page .pj__label { font-size: clamp(11px, .5vw + .6svh, 14px); }
}
@media (max-width: 700px) { main.video-page .video-nav { flex-direction: column; align-items: flex-start; } }

/* v59 Projects page: roomier, scrolls as it grows, colour hierarchy (lime > white > black > soft grey), no marker boxes */
main.projects-page { height: auto !important; min-height: calc(100svh - 112px); overflow: visible; align-items: stretch; }
@media (max-width: 1100px) { main.projects-page { min-height: calc(100svh - 80px); } }
.projects-page .pj__label i { display: none; }
.projects-page .pj { padding: clamp(24px, 4vw, 48px) clamp(18px, 2.2vw, 40px); gap: clamp(18px, 2.6vw, 30px); }
.projects-page .pj__title { margin: 0 0 clamp(4px, .8vw, 10px); padding: 8px 12px; margin-left: -12px; margin-right: -12px; background: var(--lime, #d4f50f); color: var(--on-lime, #111); align-self: flex-start; }
.projects-page .pj__title a { color: inherit; }
.projects-page .pj__title a:hover { background: #111; color: var(--lime, #d4f50f); }
.projects-page .pj__groups { gap: clamp(24px, 3.4vw, 44px); }
.projects-page .pj__label { color: #fff; font-size: clamp(12px, .5vw + 8px, 15px); letter-spacing: .14em; margin: 0 0 clamp(8px, 1vw, 14px); padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .55); }
.projects-page .pj__group li { margin: 0; }
.projects-page .pj__group li a { color: #111; padding: 7px 8px; margin: 0 -8px; line-height: 1.3; }
.projects-page .pj__group li small { color: #3a3c39; opacity: 1; margin-top: 2px; }
.projects-page .pj__group li a:hover, .projects-page .pj__group li a:focus-visible { background: var(--menu, #f4b9c6); color: #111; }
.projects-page .pj__group li a:hover small { color: #111; }
@media (max-width: 820px) {
  main.projects-page { display: block; }
  .projects-page .pj { border-right: 0; border-bottom: 1px solid #111; padding: 26px 18px 30px; gap: 18px; }
  .projects-page .pj__title { font-size: 20px; }
  .projects-page .pj__label { font-size: 12px; margin-bottom: 8px; }
  .projects-page .pj__groups { gap: 26px; }
  .projects-page .pj__group li a { font-size: 17px; line-height: 1.25; padding: 8px; }
  .projects-page .pj__group li small { font-size: 12px; }
}

/* v60 home copyright; Projects links underlined with an arrow */
main.page.home--art { position: relative; }
.home__copy { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; padding: 0 !important; text-align: center; font-family: var(--title, "OCR-A", monospace); font-size: 12px; letter-spacing: .12em; color: #111; }
.projects-page .pj__group li a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.projects-page .pj__group li a span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.projects-page .pj__group li a span small { text-decoration: none; display: block; }
.projects-page .pj__group li a em { flex: none; font-style: normal; font-family: var(--title, "OCR-A", monospace); margin-left: 6px; }
.projects-page .pj__group li a span { text-decoration: none; }
.projects-page .pj__t { font-weight: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* v61 menu: no strike-through by default, only on the current page */
.nav-links a, .mobile-menu__links a { text-decoration: none !important; }
.nav-links a[aria-current="page"], .mobile-menu__links a[aria-current="page"] { text-decoration: line-through !important; text-decoration-thickness: 2px; text-underline-offset: 0; color: var(--on-lime, #111); }
@media (min-width: 821px) { main.projects-page { grid-template-columns: 1.15fr 1.5fr .8fr .95fr; } }

/* v63 radio: a play button with a listening timer in the header; Home fits the phone viewport exactly */
.radio-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 8px; border: 0; background: none; color: #111; font-family: var(--title, "OCR-A", monospace); font-size: 14px; letter-spacing: .08em; cursor: pointer; }
.radio-btn[hidden] { display: none !important; }
.radio-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.radio-btn .rb-pause, .radio-btn.is-on .rb-play { display: none; } .radio-btn.is-on .rb-pause { display: block; }
.radio-btn.is-on { background: var(--lime, #d4f50f); }
.radio-btn:hover { background: var(--menu-hover, #fff); }
.radio-btn.is-on:hover { background: var(--lime, #d4f50f); }
.nav-radio { list-style: none; }
.radio-m { display: none; }
@media (max-width: 1100px) {
  .radio-m { display: contents; }
  .radio-m .radio-btn { grid-column: 1; grid-row: 1; justify-self: start; margin-left: -8px; }
  .radio-m .radio-genre { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 34px; max-width: 96px; }
  main.page.home--art { min-height: calc(100svh - 80px) !important; height: calc(100svh - 80px); }
}
.nav .logo { grid-row: 1; } .nav .menu-toggle { grid-row: 1; }
.nav-radio { display: flex; align-items: center; gap: 4px; }
.radio-genre { appearance: none; -webkit-appearance: none; height: 34px; max-width: 120px; padding: 0 22px 0 8px; border: 0; border-radius: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E") right 6px center / 9px no-repeat; color: #111; font-family: var(--title, "OCR-A", monospace); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-overflow: ellipsis; }
.radio-genre[hidden] { display: none !important; }
.radio-genre:hover, .radio-genre:focus-visible { background-color: #fff; outline: 0; }
.radio-genre option { text-transform: none; font-family: sans-serif; }
@media (max-width: 430px) {
  .nav .logo { font-size: 22px; }
  .radio-m .radio-genre { max-width: 74px; font-size: 11px; padding: 0 16px 0 4px; margin-right: 32px; background-position: right 3px center; }
  .radio-m .radio-btn { padding: 0 8px 0 6px; gap: 6px; font-size: 13px; }
}

/* v64 bigger radio button, centred header items on phones, Instagram on the contact card */
.radio-btn { height: 44px; padding: 0 16px 0 10px; gap: 10px; font-size: 18px; }
.radio-btn svg { width: 26px; height: 26px; }
.radio-genre { height: 44px; font-size: 16px; }
.bizcard .contact-ig { position: absolute; left: 6cqw; top: calc(6cqw + 8.4cqw); font-size: 4.2cqw; line-height: 1.15; color: var(--white); font-family: var(--read); }
.bizcard .contact-ig:hover, .bizcard .contact-ig:focus-visible { background: var(--lime, transparent); color: var(--on-lime, var(--white)); }
@media (max-width: 1100px) {
  .nav { align-items: center; }
  .radio-m .radio-btn, .radio-m .radio-genre, .nav .logo, .nav .menu-toggle { align-self: center; }
  .radio-m .radio-btn { height: 48px; font-size: 16px; padding: 0 10px 0 8px; margin-left: -8px; }
  .radio-m .radio-btn svg { width: 24px; height: 24px; }
  .radio-m .radio-genre { height: 48px; font-size: 13px; }
}
@media (max-width: 430px) {
  .radio-m .radio-btn { font-size: 14px; padding: 0 6px 0 6px; gap: 6px; }
  .radio-m .radio-btn svg { width: 22px; height: 22px; }
  .radio-m .radio-genre { font-size: 11px; max-width: 72px; }
}

/* v65 Home: soft blurred copy of the contact animation behind the line art (art stays exactly where it was) */
main.page.home--art { background: none !important; overflow: hidden; }
main.page.home--art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: url("../img/home-art.svg") center / contain no-repeat; }
@media (max-width: 700px) { main.page.home--art::after { background-size: 150% auto; background-position: 50% 50%; } }
main.page.home--art .home__copy, main.page.home--art h1 { z-index: 2; }
.dither-bg--soft { opacity: .8; image-rendering: auto; filter: blur(1.5px); }

/* v66 phone header: one full-height row, so name, player and menu icon sit exactly in the middle of the bar */
@media (max-width: 1100px) {
  .nav { grid-template-rows: minmax(0, 1fr); grid-auto-rows: 0; align-items: center; }
  .nav > nav { display: none; }
  .nav > * { grid-row: 1; align-self: center; }
}

/* v67 Projects: four dropdown buttons, one open at a time */
main.projects-page { display: block !important; height: auto !important; min-height: calc(100svh - 112px); padding: 0 !important; }
@media (max-width: 1100px) { main.projects-page { min-height: calc(100svh - 80px); } }
.projects-page .pj { display: block; padding: 0 !important; border: 0 !important; border-bottom: 1px solid #111 !important; }
.projects-page .pj:last-child { border-bottom: 1px solid #111 !important; }
.projects-page .pj summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(16px, 2.4vw, 28px) clamp(16px, 4vw, 48px); }
.projects-page .pj summary::-webkit-details-marker { display: none; }
.projects-page .pj summary::marker { content: ""; }
.projects-page .pj__title { margin: 0 !important; align-self: auto; font-size: clamp(20px, 2.4vw, 34px); letter-spacing: .06em; }
.projects-page .pj summary:hover .pj__title, .projects-page .pj summary:focus-visible .pj__title { background: #111; color: var(--lime, #d4f50f); }
.projects-page .pj summary:focus-visible { outline: 0; }
.projects-page .pj__ind { font-style: normal; font-family: var(--title, "OCR-A", monospace); font-size: clamp(24px, 2.6vw, 36px); line-height: 1; color: #111; }
.projects-page .pj__ind::before { content: "+"; }
.projects-page details[open] .pj__ind::before { content: "\2212"; }
.projects-page .pj__groups { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3.4vw, 44px) !important; padding: 0 clamp(16px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.projects-page .pj__group { border: 0 !important; }

/* v68 Selections: radio cards with their own play button (one station at a time) */
.rp-card { position: relative; justify-content: center; }
.rp-card .rp-btn { position: absolute; top: 8px; right: 8px; width: clamp(34px, 3vw, 44px); aspect-ratio: 1; padding: 0; display: grid; place-items: center; border: 1.5px solid #111; border-radius: 0; background: #fff; color: #111; cursor: pointer; }
.rp-card .rp-btn:hover, .rp-card .rp-btn:focus-visible { background: #111; color: var(--lime, #d4f50f); outline: 0; }
.rp-play { width: 48%; height: 48%; fill: currentColor; }
.rp-eq { display: none; align-items: flex-end; gap: 3px; height: 44%; }
.rp-eq i { width: 4px; height: 100%; background: currentColor; transform-origin: bottom; animation: rp-eq .8s ease-in-out infinite alternate; }
.rp-eq i:nth-child(2) { animation-delay: -.35s; } .rp-eq i:nth-child(3) { animation-delay: -.6s; } .rp-eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes rp-eq { 0% { transform: scaleY(.2); } to { transform: scaleY(1); } }
.rp-card[data-state="playing"] .rp-btn, .rp-card[data-state="loading"] .rp-btn { background: #111; color: var(--lime, #d4f50f); }
.rp-card[data-state="playing"] .rp-play, .rp-card[data-state="loading"] .rp-play { display: none; }
.rp-card[data-state="playing"] .rp-eq, .rp-card[data-state="loading"] .rp-eq { display: flex; }
.rp-card[data-state="loading"] .rp-eq i { animation-duration: .35s; opacity: .6; }
.rp-card[data-state="playing"], .rp-card[data-state="loading"] { background: var(--lime, #d4f50f) !important; }
.rp-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; margin-top: 10px; font-family: var(--title, "OCR-A", monospace); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.rp-state { display: inline-flex; align-items: center; gap: 6px; }
.rp-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; }
.rp-card[data-state="playing"] .rp-dot { opacity: 1; animation: rp-pulse 1.6s ease-in-out infinite; }
@keyframes rp-pulse { 50% { opacity: .3; } }
.rp-site { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.rp-site:hover, .rp-site:focus-visible { background: #111; color: var(--lime, #d4f50f); text-decoration: none; }
@media (max-width: 700px) {
  .rp-card .rp-btn { top: 4px; right: 4px; width: 26px; border-width: 1px; }
  .rp-eq { gap: 2px; } .rp-eq i { width: 2px; }
  .rp-foot { font-size: 8px; margin-top: 4px; gap: 4px; } .rp-dot { width: 5px; height: 5px; } .rp-state { gap: 3px; }
}
.rp-card .sel-radio__logo { max-width: calc(100% - 108px); }
@media (max-width: 700px) { .rp-card .sel-radio__logo { max-width: calc(100% - 68px); } }

/* v69 Selections: quiet play control in the card footer, Site link on every radio, playlist covers fill the frame with the name on them */
.rp-card .rp-btn { position: static; width: auto; aspect-ratio: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.rp-card .rp-btn:hover, .rp-card .rp-btn:focus-visible { background: #111; color: var(--lime, #d4f50f); padding-left: 6px; outline: 0; }
.rp-play { width: 9px; height: 9px; }
.rp-eq { height: 9px; gap: 2px; } .rp-eq i { width: 2px; }
.rp-card[data-state="playing"] .rp-btn, .rp-card[data-state="loading"] .rp-btn { background: #111; color: var(--lime, #d4f50f); padding-left: 6px; }
.rp-dot { display: none; }
.rp-foot { justify-content: space-between; }
@media (max-width: 700px) { .rp-card .rp-btn { gap: 3px; padding: 2px 3px 2px 0; } .rp-play { width: 7px; height: 7px; } .rp-eq { height: 7px; } .rp-card .rp-btn:hover, .rp-card .rp-btn:focus-visible, .rp-card[data-state="playing"] .rp-btn, .rp-card[data-state="loading"] .rp-btn { padding-left: 3px; } }
.rp-card .sel-radio__logo { max-width: 70%; }
.sel-playlist { position: relative; padding: 0 !important; aspect-ratio: 1; overflow: hidden; display: block; }
.sel-playlist__cover { position: absolute; inset: 0; aspect-ratio: auto; }
.sel-playlist__cover img { width: 100%; height: 100%; object-fit: cover; }
.sel-playlist .sel-card__text { display: flex !important; position: absolute; left: 0; bottom: 0; z-index: 1; padding: 0 !important; align-items: flex-start; text-align: left; max-width: 100%; }
.sel-playlist .sel-card__meta { display: none; }
.sel-playlist .sel-card__title { background: var(--lime, #d4f50f); color: #111; padding: 6px 10px; text-transform: none; font-family: var(--read); max-width: 100%; }
a.sel-playlist:hover .sel-card__title, a.sel-playlist:focus-visible .sel-card__title { background: #111; color: var(--lime, #d4f50f); }
@media (max-width: 700px) { .sel-playlist .sel-card__title { padding: 3px 5px; font-size: 11px; } }

/* v70 Selections: every radio card lines up, logo and name at the top, Play / Site row pinned to the bottom edge */
.rp-card { justify-content: flex-start !important; align-items: center; }
.rp-card .sel-radio__logo { flex: 0 0 auto; height: 64px; width: auto; object-fit: contain; display: block; }
.rp-card .sel-card__text { flex: 0 0 auto; }
.rp-card .rp-foot { margin-top: auto; padding-top: 12px; }
@media (max-width: 700px) { .rp-card .sel-radio__logo { height: 34px; } .rp-card .rp-foot { padding-top: 6px; } }
.rp-card .rp-foot { min-height: 20px; box-sizing: content-box; } @media (max-width: 700px) { .rp-card .rp-foot { min-height: 14px; } }

/* v71 iOS Safari: drop the native button look on the radio Play control, keep it text-only next to Site */
.rp-card .rp-btn { -webkit-appearance: none; appearance: none; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none; margin: 0; width: auto !important; height: auto; min-width: 0; line-height: 1; flex-direction: row; -webkit-tap-highlight-color: transparent; color: #111; font-family: var(--title, "OCR-A", monospace); font-size: inherit; text-transform: uppercase; }
.rp-card .rp-btn:hover, .rp-card .rp-btn:focus-visible, .rp-card[data-state="playing"] .rp-btn, .rp-card[data-state="loading"] .rp-btn { background: #111 !important; color: var(--lime, #d4f50f); }
.rp-card .rp-play { width: 9px !important; height: 9px !important; flex: 0 0 auto; }
.rp-card .rp-label { font: inherit; }
.rp-foot { flex-wrap: nowrap; }
.sel-mix iframe { -webkit-overflow-scrolling: touch; }

/* v72 3D viewer: textured model, Fullscreen button and fullscreen inspect mode */
.model__full { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 0; background: #111; color: var(--lime, #d4f50f); font-family: var(--title, "OCR-A", monospace); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; -webkit-appearance: none; appearance: none; }
.model__full svg { width: 12px; height: 12px; }
.model__full:hover, .model__full:focus-visible { background: var(--lime, #d4f50f); color: #111; outline: 0; }
.model__hint { position: absolute; left: 12px; bottom: 12px; z-index: 2; margin: 0; max-width: calc(100% - 140px); font: 11px/1.4 var(--title, "OCR-A", monospace); letter-spacing: .06em; color: #111; opacity: .7; pointer-events: none; }
.model.is-full { position: fixed; inset: 0; z-index: 9999; width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; margin: 0 !important; border: 0 !important; background: var(--bg); }
.model.is-full canvas { touch-action: none; cursor: grab; }
.model.is-full canvas:active { cursor: grabbing; }
.model:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; margin: 0 !important; border: 0 !important; background: var(--bg); }
.model:-webkit-full-screen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; margin: 0 !important; border: 0 !important; background: var(--bg); }
html.model-full { overflow: hidden; }
.model.is-full .model__full, .model:fullscreen .model__full { right: 14px; top: 14px; bottom: auto; padding: 9px 14px; font-size: 12px; }
@media (max-width: 699px) { .model__hint { max-width: calc(100% - 24px); bottom: 48px; font-size: 9px; } .model:fullscreen .model__hint, .model.is-full .model__hint { bottom: 14px; } }

/* v-3d: six menu items (3D services added) still fit next to the centred logo */
@media (min-width: 1101px) and (max-width: 1320px) { .nav-links { gap: clamp(8px, .8vw, 14px); } .nav-links a { font-size: clamp(13px, 1.1vw, 16px); } }
.mobile-menu__links a { font-size: clamp(34px, 11vw, 80px); }
/* v-menu-fit: six items (Portfolio, 3D services) keep clear of the centred name at every desktop width */
@media (min-width: 1101px) { .nav-links { gap: clamp(10px, 1vw, 22px); } .nav-links a { font-size: clamp(12px, 1vw, 20px); } }
@media (min-width: 1101px) and (max-width: 1199px) { .nav-links { gap: 8px; } .nav-links a { font-size: 11.5px; } }

/* v-classic: back to the original menu - pink bar, plain uppercase links, current page lime with strike-through; Contact keeps its arrow; sizes follow the screen (2026-11-26) */
.nav-links a, .mobile-menu__links a { text-decoration: none !important; background: transparent; border: 0 !important; padding: 0 .4em !important; letter-spacing: .02em; line-height: inherit; transform: none; display: inline-block; white-space: nowrap; color: var(--on-lime, #111) !important; transition: none; }
.nav-links a[aria-current="page"], .mobile-menu__links a[aria-current="page"], .nav-links a:hover, .mobile-menu__links a:hover, .nav-links a:focus-visible { background: var(--lime, #d4f50f) !important; color: #111 !important; border: 0 !important; transform: none; }
.nav-links a[aria-current="page"], .mobile-menu__links a[aria-current="page"] { text-decoration: line-through !important; text-decoration-thickness: 2px; text-underline-offset: 0; }
.nav-links { gap: clamp(2px, .5vw, 12px) !important; align-items: center; }
.nav-links .lc, .mobile-menu__links .lc { text-transform: none; }
.nav-links li:last-child a::after, .mobile-menu__links li:last-child a::after { content: "\2197"; font-family: Arial, sans-serif; font-size: .8em; margin-left: .35em; display: inline-block; }
.mobile-menu__links a { padding: 0 8px !important; margin: 4px 0; letter-spacing: .06em; }
.mobile-menu .menu-tools { display: none !important; }
/* desktop: no name in the bar, the menu spreads across it (2026-11-26) */
@media (min-width: 1101px) {
  .nav { grid-template-columns: minmax(0, 1fr) auto; }
  .nav > nav { grid-column: 1; }
  .nav-social { grid-column: 2; }
  .logo { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .nav-links { width: 100%; justify-content: space-between; gap: 0 !important; }
  .nav-links a { font-size: clamp(12px, calc((100vw - 340px) / 38), 30px) !important; padding: 0 .5em !important; }
}
