@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE ===== */
html, body {
  height: 100%;
  font-family: "Inter", system-ui, sans-serif;
  background: #f5f6f4;
  color: #222;
}

/* ===== CONTAINER ===== */
.container {
  position: relative;
  height: 100%;
  overflow: hidden;
}

/* ===== HERO ===== */
.hero {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 400;
  animation: breathe 8s ease-in-out infinite;
  cursor: pointer;
}

.role {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.7;
}

/* ===== CATEGORY FIELD ===== */
.categories {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  opacity: 0.35;
  animation: drift 30s ease-in-out infinite alternate;
  transition: opacity 1.2s ease, transform 6s ease;
}

.node:hover {
  opacity: 1;
  transform: scale(1.05);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #222;
  opacity: 0.6;
}

.label {
  font-size: 1.1rem;
  white-space: nowrap;
}

/* ===== CONTACT ===== */
.contact {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  opacity: 0.5;
  z-index: 10;
}
/* FORCE contact link to behave like node */
#contact-email {
  color: inherit;
  text-decoration: none !important;
}

#contact-email:visited {
  color: inherit;
}

#contact-email:hover {
  text-decoration: none;
}
/* ===== OVERLAYS (BASE) ===== */
.overlay,
.picture-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 246, 244, 0.95);
  z-index: 20;
  display: flex;
}

.overlay {
  align-items: center;
  justify-content: center;
}

.picture-overlay {
  align-items: center;
}

.overlay.hidden,
.picture-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== OVERLAY CONTENT ===== */
.overlay-content {
  max-width: 420px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
}

.close,
.picture-close {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
}

.picture-close {
  position: absolute;
  top: 3%;
  right: 4%;
  font-size: 2rem;
}

.close:hover,
.picture-close:hover {
  opacity: 1;
}

/* ===== PICTURE TRACK ===== */
.picture-track {
  display: flex;
  gap: 6vw;
  padding: 0 8vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.picture-track::-webkit-scrollbar {
  height: 10px;
}

.picture-track::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 3px;
}

.picture-track::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== PICTURE ITEMS (LINEAR / REDESIGN DEFAULT) ===== */
.picture-item {
  flex: 0 0 70vw;
  height: 42vh;
  background: #e3e3e3;
  display: flex;
  align-items: center;
  gap: 4vw;
  scroll-snap-align: center;
  font-size: 0.9rem;
}

/* ===== TEXT + VIDEO ===== */
.project-text {
  flex: 0 0 32%;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.85;
  max-height: 100%;
  overflow-y: auto;
  pointer-events: none;
}

.project-text .rights {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.project-video {
  flex: 1;
  aspect-ratio: 16 / 9;
}

.project-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   NON-LINEAR OVERLAY — CORRECT FIX
========================================================= */

/* KEEP overlay centered vertically */
#nonlinear-overlay {
  align-items: center;   /* <-- THIS is the fix */
}

/* Track should align items at top */
#nonlinear-overlay .picture-track {
  align-items: flex-start;
}

/* Each project card */
#nonlinear-overlay .picture-item {
  flex: 1;
  min-width: 0;
  height: auto;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Thumbnail size */
#nonlinear-overlay .picture-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
/* ===== MUSIC OVERLAY ===== */
#music-overlay .picture-item {
  height: auto;
  align-items: flex-start;
}

#music-overlay iframe {
  height: 450px;
}



/* ===== ANIMATIONS ===== */
@keyframes breathe {
  0% { opacity: 0.75; letter-spacing: 0.02em; }
  50% { opacity: 1; letter-spacing: 0.12em; }
  100% { opacity: 0.75; letter-spacing: 0.02em; }
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}
/* =========================================================
   NON-LINEAR OVERLAY — FINAL ALIGNMENT FIX
========================================================= */

#nonlinear-overlay {
  align-items: flex-start;
  padding-top: 12vh;
}
/* Re-enable links inside project text */
.project-text a {
  pointer-events: auto;
}
.project-text a {
  color: inherit;
  text-decoration: underline;
  opacity: 0.7;
}

.project-text a:hover {
  opacity: 1;
}
/* === CLICKABLE THUMB HINT === */
.picture-thumb img {
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.picture-thumb:hover img {
  opacity: 1;
}
/* ===== FEATURED PICTURE WORK ===== */
#picture-overlay .picture-item:nth-child(6) {
  order: -1;
}
/* ===== RITUAL SCI-FI VISUAL SYSTEM ===== */
:root {
  --void: #0b0d10;
  --smoke: #171a20;
  --bone: #e7e0d5;
  --acid: #c7ff3d;
  --blood: #b61f36;
  --violet: #8b7cff;
}
html, body {
  background: radial-gradient(circle at 50% 12%, #202636 0%, var(--void) 46%, #07080a 100%);
  color: var(--bone);
  font-family: "Space Mono", monospace;
}
.hero h1 {
  color: var(--bone);
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(139, 124, 255, 0.32);
}
.role {
  color: var(--acid);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  opacity: 0.95;
  text-transform: uppercase;
}
.node {
  color: var(--bone);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  opacity: 0.62;
  text-transform: uppercase;
}
.node:hover {
  color: var(--acid);
  text-shadow: 0 0 18px rgba(199, 255, 61, 0.55);
}
.dot {
  background: var(--acid);
  box-shadow: 0 0 12px rgba(199, 255, 61, 0.9);
  opacity: 1;
}
.contact {
  color: var(--violet);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  opacity: 0.9;
  text-transform: uppercase;
}
.overlay,
.picture-overlay {
  background: rgba(11, 13, 16, 0.96);
  backdrop-filter: blur(16px);
}
.overlay-content {
  color: var(--bone);
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
}
.close,
.picture-close {
  color: var(--acid);
}
.picture-track::-webkit-scrollbar-thumb {
  background: var(--acid);
  box-shadow: 0 0 12px rgba(199, 255, 61, 0.65);
}
.picture-item {
  background: linear-gradient(135deg, rgba(31, 35, 45, 0.96), rgba(12, 14, 18, 0.96));
  border: 1px solid rgba(231, 224, 213, 0.14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(199, 255, 61, 0.08);
}
.project-text {
  color: var(--bone);
  font-family: "Space Mono", monospace;
}
.project-title,
.project-text strong {
  color: var(--acid);
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.project-text .rights {
  color: var(--violet);
  opacity: 0.85;
}
.project-text a {
  color: var(--acid);
}
#nonlinear-overlay .picture-item {
  border: 0;
  box-shadow: none;
}
/* ===== STABLE HORIZONTAL BREATHING ===== */
.hero {
  width: 100%;
  padding: 0 1rem;
}
.hero h1 {
  font-size: clamp(1.65rem, 6vw, 5.25rem);
  letter-spacing: 0.04em;
  transform-origin: center;
  white-space: nowrap;
}
@keyframes breathe {
  0%, 100% {
    opacity: 0.78;
    letter-spacing: 0.03em;
    transform: scaleX(0.985);
  }
  50% {
    opacity: 1;
    letter-spacing: 0.065em;
    transform: scaleX(1);
  }
}

/* ===== JOHN RYDER PRODUCTIONS — NIGHT HIGHWAY IDENT ===== */
:root {
  --road: #090b0e;
  --road-deep: #11161c;
  --headlight: #edf3f2;
  --steel: #aebac0;
  --signal-blue: #74aeca;
  --tail-light: #bd392f;
}

html, body {
  background:
    radial-gradient(ellipse at 50% 11%, rgba(116, 174, 202, 0.12), transparent 33%),
    linear-gradient(135deg, var(--road) 0%, var(--road-deep) 52%, #080a0c 100%);
  color: var(--headlight);
  font-family: "Share Tech Mono", "Space Mono", monospace;
}

.container::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(174, 186, 192, 0.04) 4px);
  z-index: 0;
}

.hero h1 {
  font-family: "Barlow Condensed", "Syne", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--headlight);
  text-shadow: 0 0 20px rgba(116, 174, 202, 0.22);
}

.wordmark-main, .wordmark-sub { display: block; }
.wordmark-main { font-size: clamp(2.7rem, 7vw, 7rem); line-height: 0.78; }
.wordmark-sub {
  margin-top: 0.68rem;
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.56rem, 1.1vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  color: var(--signal-blue);
  line-height: 1;
}

.role {
  margin-top: 1.15rem;
  color: var(--steel);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(116, 174, 202, 0.16);
}

.node {
  color: var(--steel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(116, 174, 202, 0.14);
}
.node:hover { color: var(--headlight); text-shadow: 0 0 18px rgba(116, 174, 202, 0.55); }
.dot { background: var(--tail-light); box-shadow: 0 0 11px rgba(189, 57, 47, 0.7); }

.contact, .contact a { color: var(--signal-blue); letter-spacing: 0.14em; }
.overlay, .picture-overlay { background: rgba(7, 9, 12, 0.96); backdrop-filter: blur(9px); }
.overlay-content, .picture-item { border-color: rgba(116, 174, 202, 0.3); }
.picture-item { background: linear-gradient(145deg, rgba(20, 26, 32, 0.88), rgba(8, 10, 13, 0.9)); }
.project-title, .project-text strong, .overlay-content { color: var(--headlight); }
.rights, .project-meta, .project-role { color: var(--steel); }
.close, .picture-close { color: var(--signal-blue); }

.ryder-mark {
  width: 74px !important;
  opacity: 0.92 !important;
  filter: drop-shadow(0 0 12px rgba(116, 174, 202, 0.52));
}
.site-credit {
  color: var(--steel);
  font-family: "Share Tech Mono", monospace !important;
  letter-spacing: 0.12em !important;
}

@media (max-width: 600px) {
  .wordmark-main { font-size: clamp(2.25rem, 12vw, 4.25rem); }
  .wordmark-sub { letter-spacing: 0.34em; }
  .role { font-size: 0.54rem; letter-spacing: 0.13em; }
  .ryder-mark { width: 52px !important; }
}

/* Interactive rhythm cues. */
.contact { position: relative; z-index: 1; }
.contact a { display: inline-flex; align-items: center; padding: 14px 22px; border: 1px solid #ffffff22; border-radius: 999px; background: #11151acc; transition: border-color .3s, background .3s, transform .3s; }
.contact a:hover, .contact a:focus-visible { border-color: #c34b4366; background: #2a1718dd; transform: translateY(-2px); }
.work-section::before { content: ''; position: absolute; inset: -42px -8%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 12% 45%, #a4312712, transparent 32%), radial-gradient(ellipse at 88% 55%, #45627410, transparent 34%); filter: blur(12px); }
.node { isolation: isolate; }
.node::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 25%, #ffffff08 42%, transparent 58%); transform: translateX(-70%); transition: opacity .35s, transform .8s ease; }
.node:hover::after, .node:focus-visible::after { opacity: 1; transform: translateX(70%); }
.title-logo { filter: drop-shadow(0 0 18px #e13b2e22) drop-shadow(0 12px 0 #10131a); }
.categories .node:nth-child(odd) { transform: rotate(-.55deg); }
.categories .node:nth-child(even) { transform: rotate(.55deg); }
.categories .node:hover, .categories .node:focus-visible { transform: translateY(-7px) rotate(0deg) scale(1.018); box-shadow: 0 14px 34px #0008, 0 0 0 3px #d4493b12; }
.node .label { text-shadow: 3px 3px 0 #090b0f, 0 0 18px #d64c3b26; }
.node .dot, .contact .dot { box-shadow: 0 0 0 4px #d14a3b14, 0 0 13px #d14a3b88; }
.work-heading h2 { letter-spacing: .12em; text-shadow: 2px 2px 0 #090b0f; }
@keyframes pulse-line { from { opacity: .45; } to { opacity: 1; } }
@media (max-width: 600px) { .categories .node:nth-child(n) { transform: none; } .categories .node:hover, .categories .node:focus-visible { transform: translateY(-4px) scale(1.01); } }
@media (prefers-reduced-motion: reduce) { .contact a { transition: none; } .categories .node:nth-child(n) { transform: none; } }
/* Match overlay sliders to the node signal lights */
.picture-track::-webkit-scrollbar-thumb {
  background: var(--tail-light);
  box-shadow: 0 0 12px rgba(189, 57, 47, 0.65);
}
/* Larger John Ryder Productions wordmark */
.ryder-mark { width: 148px !important; }
@media (max-width: 600px) { .ryder-mark { width: 104px !important; } }
/* Contact uses the same signal response as the portfolio nodes. */
#contact-email {
  display: inline-flex;
  align-items: center;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
#contact-email .dot {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
#contact-email:hover {
  color: var(--headlight);
  text-shadow: 0 0 18px rgba(116, 174, 202, 0.55);
}
#contact-email:hover .dot {
  transform: scale(1.55);
  box-shadow: 0 0 18px rgba(189, 57, 47, 1);
}

/* Image title; its envelope is driven by the existing eight-second noise cycle. */
.hero { top: 3%; }
.hero h1.image-title { animation: none; letter-spacing: normal; line-height: 1; }
#about-trigger {
  display: block;
  width: min(420px, 76vw);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.title-logo {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(calc(.94 + var(--breath, 0) * .12));
  opacity: calc(.76 + var(--breath, 0) * .24);
  filter: brightness(calc(.9 + var(--breath, 0) * .3));
}
#about-trigger:focus-visible { outline: 2px solid var(--signal-blue); outline-offset: 8px; }
#about-trigger .wordmark-sub { margin-top: .35rem; }
.hero .role { margin-top: .8rem; }
@media (max-width: 600px) {
  .hero { top: 6%; }
  #about-trigger { width: min(460px, 92vw); }
  .hero .ryder-mark, .hero .site-credit { display: none; }
}
@media (max-height: 650px) and (min-width: 601px) {
  #about-trigger { width: min(400px, 60vw); }
  .hero { top: 3%; }
}
@media (prefers-reduced-motion: reduce) {
  .title-logo { transform: none; opacity: 1; filter: none; }
  .node { animation: none; }
}

/* Chrome and signal red: carry the title's palette through the portfolio. */
:root {
  --headlight: #f0f2f4;
  --steel: #c1c5cc;
  --signal-blue: #c2cad1;
  --tail-light: #f13a2e;
}
html, body {
  background: radial-gradient(ellipse at 50% 12%, rgba(133, 153, 171, .10), transparent 36%),
    radial-gradient(ellipse at 85% 90%, rgba(150, 20, 17, .065), transparent 48%),
    linear-gradient(135deg, #080a0d, #111419 55%, #08090b);
}
.node {
  opacity: .72;
  min-height: 44px;
  transition: color .2s ease, opacity .2s ease, text-shadow .25s ease;
  text-shadow: none;
}
.node .label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: .14em;
}
.node:hover, .node:focus-visible {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 16px rgba(239, 56, 43, .4);
}
.node .dot { width: 6px; height: 6px; box-shadow: 0 0 10px rgba(241, 58, 46, .65); }
.node:hover .dot { box-shadow: 0 0 16px rgba(241, 58, 46, .95); }
.role { color: #b8bcc3; text-shadow: none; }
.contact { opacity: .85; }
.picture-item {
  border: 1px solid rgba(192, 198, 206, .2);
  border-top: 1px solid rgba(241, 58, 46, .65);
  background: linear-gradient(145deg, #171a20, #0b0d10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4);
}
.project-title, .project-text strong {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: #f0f2f4;
}
.project-text .rights { color: #a6aab1; }
.project-text a { color: #efb1aa; }
.close, .picture-close { color: #e6e9ed; }
.sound-toggle {
  position: absolute; z-index: 10; bottom: 2%; left: 4%;
  min-height: 44px; padding: .5rem;
  color: #afb4bc; background: transparent; border: 0;
  font: .65rem "Share Tech Mono", monospace;
  text-transform: uppercase; letter-spacing: .09em; cursor: pointer;
}
.sound-toggle:hover { color: #fff; }
.sound-toggle:focus-visible, .node:focus-visible { outline: 2px solid #f13a2e; outline-offset: 5px; }
@media (max-width: 600px) {
  .node .label { font-size: 1.1rem; letter-spacing: .1em; }
  .sound-toggle { bottom: 7%; left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

/* Keep the production credit quietly anchored to the bottom right. */
.site-credit {
  position: fixed;
  right: 1.5rem;
  bottom: max(.6rem, env(safe-area-inset-bottom));
  z-index: 2;
  max-width: calc(100vw - 3rem);
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
  opacity: .62;
  pointer-events: none;
}
@media (max-width: 600px) {
  .site-credit { right: .75rem; font-size: 7px; }
}

/* Cinematic portfolio preview. */
html, body { min-height: 100%; height: auto; }
body { background: radial-gradient(ellipse at 50% 15%, #1c242d 0, transparent 44%), radial-gradient(ellipse at 100% 70%, #24100f 0, transparent 48%), #080a0d; overflow-x: hidden; }
.container { height: auto; min-height: 100svh; overflow: visible; padding: 0 clamp(20px, 6vw, 88px) 100px; }
.portfolio-top { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid #ffffff16; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: #989fa9; }
.portfolio-top a { color: #e8ebef; text-decoration: none; }
.hero { position: relative; top: auto; left: auto; transform: none; padding: 64px 0 52px; width: 100%; }
#about-trigger { width: min(620px, 82vw); }
.hero .role { margin-top: 18px; font-size: 10px; letter-spacing: .22em; color: #e2b4ad; }
.hero-intro { font: 400 clamp(18px, 2.2vw, 25px)/1.55 Inter, sans-serif; color: #c4c9d0; margin: 24px auto 0; }
.work-section { position: relative; max-width: 1280px; margin: auto; }
.work-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.work-heading h2 { font: 500 13px Inter, sans-serif; color: #e2e5e9; }
.work-heading > span { font-size: 10px; color: #8c939e; }
.categories { position: relative; inset: auto; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.node { position: relative; display: flex; align-items: flex-start; flex-direction: column; gap: 0; padding: 25px 22px 20px; border: 1px solid #ffffff1c; border-radius: 2px; background: linear-gradient(145deg, #20273088, #0e1015cc); color: #e4e7ec; text-align: left; animation: none; opacity: 1; text-transform: none; letter-spacing: normal; min-width: 0; min-height: 240px; overflow: hidden; transition: border-color .3s, background .3s, transform .3s; }
.node::before { content: ''; position: absolute; top: 0; left: 22px; width: 28px; height: 2px; background: #dc3b30; transition: width .4s; }
.node:hover, .node:focus-visible { transform: translateY(-4px); border-color: #a4484166; text-shadow: none; background: linear-gradient(145deg, #28272c, #151217); }
.node:hover::before { width: 80px; }
.node-number { font: 9px 'Share Tech Mono', monospace; color: #989ea8; text-transform: uppercase; letter-spacing: .06em; }
.node .label { margin: 24px 0 12px; font: 600 clamp(24px, 2.5vw, 36px)/1 'Barlow Condensed', sans-serif; letter-spacing: .035em; text-transform: uppercase; }
.node-description { font: 12px/1.65 Inter, sans-serif; color: #a7aeb9; max-width: 230px; }
.node-bottom { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: auto; padding-top: 26px; font: 10px 'Share Tech Mono', monospace; color: #e1b1aa; }
.node-bottom > span:last-child { margin-left: auto; font-size: 16px; }
.contact { position: relative; bottom: auto; left: auto; transform: none; text-align: center; margin-top: 42px; font-size: 11px; }
.sound-toggle { position: fixed; left: 20px; bottom: 8px; background: #080a0dd9; border-radius: 3px; }
.site-credit { background: #080a0dcc; padding: 4px; }
.overlay.hidden, .picture-overlay.hidden { visibility: hidden; }
.picture-overlay { overflow-y: auto; padding: 76px 5vw 45px; align-items: flex-start; }
.picture-track { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; max-width: 1400px; margin: auto; gap: 24px; padding: 0; overflow: visible; }
.picture-item, #nonlinear-overlay .picture-item { height: auto; min-width: 0; padding: 24px; display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
.project-text { flex: auto; max-height: none; overflow: visible; font: 13px/1.7 Inter, sans-serif; pointer-events: auto; }
.project-video { flex: none; width: 100%; }
#music-overlay .picture-track { grid-template-columns: 1fr; max-width: 1000px; }
#nonlinear-overlay { padding-top: 76px; }
.picture-close { position: fixed; z-index: 25; top: 16px; right: 24px; background: #11151a; width: 44px; height: 44px; border: 1px solid #ffffff33; border-radius: 50%; opacity: 1; }
.overlay-content { padding: 24px; }
@media (max-width: 950px) { .categories { grid-template-columns: repeat(2,minmax(0,1fr)); } .picture-track { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
 .portfolio-top { font-size: 8px; letter-spacing: .04em; }
 .hero { top: auto; padding: 48px 0 36px; }
 #about-trigger { width: 100%; }
 .hero .role { font-size: 8px; letter-spacing: .1em; }
 .hero-intro { font-size: 17px; }
 .work-heading > span { display: none; }
 .categories { gap: 10px; }
 .node { padding: 20px 14px; min-height: 220px; }
 .node-number { font-size: 8px; }
 .node .label { font-size: 24px; letter-spacing: .015em; }
 .node-description { font-size: 11px; }
 .sound-toggle { left: 10px; bottom: 24px; transform: none; font-size: 9px; }
 .site-credit { bottom: 5px; }
 .picture-item { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .node, .node::before { transition: none; } .node:hover { transform: none; } }
/* Keep the work visible early and place utility controls after the content. */
.hero { padding-top: 38px; padding-bottom: 36px; }
#about-trigger { width: min(510px, 82vw); }
.hero-intro { margin-top: 18px; font-size: clamp(17px, 2vw, 22px); }
.sound-toggle, .site-credit { position: absolute; }
.project-video { min-height: 0; }
.project-video iframe { display: block; aspect-ratio: 16 / 9; height: auto; }
#music-overlay iframe { aspect-ratio: auto; height: 450px; }
@media (max-width: 600px) {
  .hero { padding: 36px 0; }
  #about-trigger { width: 100%; }
  .categories { grid-template-columns: 1fr; }
  .node { min-height: 190px; }
  .node .label { font-size: 30px; margin-top: 18px; }
  .node-description { max-width: none; }
}

/* Portrait and biography in the title's About panel. */
#about-overlay { overflow-y: auto; padding: 24px; box-sizing: border-box; }
#about-overlay .about-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; max-width: 960px; width: 100%; margin: auto; padding: 28px; box-sizing: border-box; text-align: left; background: #10151c; border: 1px solid #798e9e40; border-top: 2px solid #bd392f; }
.about-portrait { display: block; width: 100%; height: auto; align-self: start; border-radius: 3px; }
.about-copy h2 { margin: 0; font: 600 clamp(24px, 3vw, 34px)/1.2 "Barlow Condensed", sans-serif; }
.about-copy h2 span { display: block; margin-top: 6px; font: 400 14px/1.4 Inter, sans-serif; color: #aebac0; }
.about-copy p { margin: 16px 0 0; font: 400 14px/1.75 Inter, sans-serif; color: #c4c9d0; }
.about-copy .about-role { color: #e2b4ad; font-size: 12px; line-height: 1.6; }
.about-copy .close { margin-top: 22px; padding: 10px 18px; border: 1px solid #798e9e60; opacity: 1; }
@media (max-width: 640px) { #about-overlay { padding: 16px; } #about-overlay .about-card { grid-template-columns: 1fr; gap: 22px; padding: 20px; } .about-portrait { max-width: 300px; margin: 0 auto; } }
/* Johnny E — painted steel, oxblood and ivory. */
:root { --bone:#e7ddca; --headlight:#eee4d2; --steel:#b9b4aa; --signal-blue:#d8cbb5; --tail-light:#a82c2a; --acid:#e7ddca; --violet:#b9b4aa; }
html, body { background:#0d0c0b; color:var(--bone); }
body { background:radial-gradient(ellipse at 90% 75%,#35131266,transparent 58%),#0d0c0b; }
.container { max-width:1500px; margin:auto; padding-bottom:100px; }
.container::before { opacity:.13; background:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.32' filter='url(%23n)'/%3E%3C/svg%3E"); }
.portfolio-top { position:relative; z-index:1; border-bottom:1px solid #78665a66; font:600 12px 'Barlow Condensed',sans-serif; letter-spacing:.18em; color:#b5a997; }
.portfolio-top a { color:#e7ddca; }
.hero { padding:26px 0 36px; }
#about-trigger { width:min(760px,100%); }
.title-logo { width:100%; height:auto; margin:auto; opacity:1; filter:none; transform:none; mix-blend-mode:screen; }
.hero h1 { text-shadow:none; }
.hero .role { margin-top:8px; font:600 14px 'Barlow Condensed',sans-serif; letter-spacing:.28em; color:#d1bda1; }
.work-section::before { display:none; }
.categories { gap:0; border-top:3px solid #9c2927; border-bottom:1px solid #78665a88; }
.categories .node:nth-child(n) { transform:none; }
.node { border:0; border-right:1px solid #78665a55; border-radius:0; background:linear-gradient(150deg,#27231f66,#100d0b66); padding:28px 25px; min-height:230px; color:var(--bone); }
.node:last-child { border-right:0; }
.node::before { top:0; left:0; height:3px; width:0; background:#e0c9a6; }
.node::after { display:none; }
.categories .node:hover,.categories .node:focus-visible { transform:none; background:#3b181666; box-shadow:inset 0 -3px #a82c2a; }
.node:hover::before { width:100%; }
.node-number { color:#b59b7d; font:600 11px 'Barlow Condensed',sans-serif; letter-spacing:.16em; }
.node .label { color:#e7ddca; font-weight:700; font-style:italic; letter-spacing:.035em; text-shadow:2px 2px #501b19; font-size:clamp(27px,2.6vw,38px); }
.node-description { color:#bcb5a9; font-size:13px; }
.node-bottom { color:#d5b9a6; font:600 12px 'Barlow Condensed',sans-serif; letter-spacing:.08em; text-transform:uppercase; }
.node .dot,.contact .dot { background:#b33a32; box-shadow:none; border-radius:0; transform:rotate(45deg); }
.contact a { border-radius:0; border:1px solid #8f7160; background:#17120f; padding:13px 32px; font:600 14px 'Barlow Condensed',sans-serif; letter-spacing:.16em; color:var(--bone); }
.contact a:hover { background:#3b1816; border-color:#b54a3c; text-shadow:none; }
.sound-toggle,.site-credit { background:transparent; color:#aa9c89; }
.sound-toggle { font:600 11px 'Barlow Condensed',sans-serif; letter-spacing:.12em; }
.overlay,.picture-overlay { background:rgba(13,11,10,.98); backdrop-filter:blur(8px); }
.picture-item,#nonlinear-overlay .picture-item { background:#1b1713; border:1px solid #75614b66; border-top:3px solid #9c2927; box-shadow:0 16px 40px #0005; }
.project-text { color:#d5cebf; }
.project-text strong,.project-title { color:#eee2cd; font-style:italic; text-transform:uppercase; font-weight:700; }
.project-text a { color:#e6a48d; }
.project-text .rights { color:#a79c8b; }
.picture-close { border-radius:0; background:#201714; border:1px solid #956d56; color:#eadcc6; }
#about-overlay .about-card { background:#1a1512; border:1px solid #75614b88; border-top:3px solid #9c2927; }
.about-portrait { border-radius:0; border:1px solid #8a6e4b66; }
.about-copy h2 { font-weight:700; font-style:italic; text-transform:uppercase; color:#eee2cd; }
.about-copy p { color:#d0c6b6; }
.about-copy .about-role { color:#d1a28e; }
.about-copy .close { border-color:#8e6a52; color:#eee2cd; }
:focus-visible { outline:2px solid #d6b697; outline-offset:5px; }
@media(max-width:950px) { .node:nth-child(2) { border-right:0; } .node:nth-child(-n+2) { border-bottom:1px solid #78665a55; } }
@media(max-width:600px) { .hero { padding:30px 0; } .hero .role { font-size:11px; letter-spacing:.14em; } .node { min-height:185px; border-right:0; border-bottom:1px solid #78665a55; } .node:last-child { border-bottom:0; } .node .label { font-size:32px; } .portfolio-top { font-size:10px; letter-spacing:.08em; } }

/* Slow independent swell remains active even with sound muted. */
.title-logo { mix-blend-mode:normal; animation:logo-swell 8s ease-in-out infinite; transform-origin:center; }
@keyframes logo-swell { 0%,100% { transform:scale(.965); filter:brightness(.94); } 50% { transform:scale(1.025); filter:brightness(1.06); } }
@media(prefers-reduced-motion:reduce) { .title-logo { animation:none; transform:none; filter:none; } }
