/* Navigation cues stay visible on touchscreens as well as desktop. */
.project-link-cue {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  color: var(--ink);
  box-sizing: border-box;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 500;
}
.project-link-arrow { flex: 0 0 20px; }
.project-link-cue > span { white-space: nowrap; }
.portfolio .portfolio-selection .project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px 32px;
}
.portfolio-selection .project-heading .text-link { grid-column: auto; }
.portfolio-selection .text-link { min-height: 44px; padding-bottom: 0; text-decoration: none; }
.portfolio-selection h2 a { text-underline-offset: .16em; text-decoration-thickness: 1px; }
.portfolio-selection h2 a:focus-visible { text-decoration: underline; }
.portfolio-selection .lead-photograph:focus-visible { outline-offset: -5px; }
.portfolio a:focus-visible > .project-link-cue {
  background: var(--tidal-link, #713525);
  border-color: var(--tidal-link, #713525);
  color: var(--paper);
}
.physical-project { display: flex; flex-direction: column; }
.physical-project .project-link-cue { align-self: start; margin-top: auto; }
.physical-project:focus-visible h3,
.portfolio-additional > a:focus-visible h2 { text-decoration: underline; text-underline-offset: .2em; }
.portfolio-additional > a > .project-link-cue { align-self: center; }

@media (hover: hover) and (pointer: fine) {
  .portfolio-selection h2 a:hover { text-decoration: underline; }
  .portfolio a:hover > .project-link-cue {
    background: var(--tidal-link, #713525);
    border-color: var(--tidal-link, #713525);
    color: var(--paper);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .project-link-arrow { transition: transform 180ms ease; }
  .project-link-cue { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
  a:focus-visible > .project-link-cue .project-link-arrow { transform: translateX(4px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  a:hover > .project-link-cue .project-link-arrow { transform: translateX(4px); }
}
@media (max-width: 700px) {
  .portfolio .portfolio-selection .project-heading { grid-template-columns: minmax(0, 1fr); }
  .portfolio-selection .project-heading h2 { margin-bottom: 0; }
  .physical-project .project-link-cue { padding-inline: 8px; gap: 6px; font-size: .8rem; }
  .portfolio-additional > a > .project-link-cue { grid-column: 2; grid-row: 1 / 3; }
  .portfolio-additional > a > p { min-width: 0; }
}
/* Equal halves: documentation on the left, live motion and recording on the right. */
html body.portfolio .portfolio-selection>.portfolio-lead { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); height:100svh; min-height:0; padding-bottom:32px; }
html body.portfolio .portfolio-selection>.portfolio-lead::before { display:block; border-top:1px solid #000; }
html body.portfolio .portfolio-lead>.project-heading { padding-block:12px 20px; }
html body.portfolio .portfolio-lead>.sea-instrument { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; height:100%; min-height:0; gap:0 28px; margin:0; padding:0; }
.sea-film-link { display:block; position:relative; width:100%; grid-column:1; grid-row:1/3; overflow:hidden; }
.sea-film-link::before { content:''; position:absolute; inset:0; z-index:1; background:var(--view-ground); mix-blend-mode:multiply; opacity:1; pointer-events:none; transition:opacity var(--media-reveal-duration) var(--media-reveal-ease); }
.sea-film-link::after { content:''; position:absolute; inset:0; z-index:2; border:1px solid #000; pointer-events:none; }
.sea-film { display:block; width:100%; height:100%; min-height:0; object-fit:cover; pointer-events:none; }
html[data-colour-review=coherent] body.portfolio .sea-film-link .sea-film { filter:grayscale(1); mix-blend-mode:normal; transition:filter var(--media-reveal-duration) var(--media-reveal-ease); }
html[data-colour-review=coherent] body.portfolio .sea-film-link:focus-visible .sea-film { filter:grayscale(0); }
.sea-film-link:focus-visible::before { opacity:0; }
.sea-instrument--preview .sea-model { grid-column:2; grid-row:1; display:block; padding:0; min-width:0; }
.sea-instrument--preview .sea-scene { height:100%; min-height:0; }
.sea-instrument--preview .sea-water { height:100%; }
.sea-instrument--preview .sea-timeline { grid-column:2; grid-row:2; min-width:0; }
.sea-instrument--preview .sea-score { height:80px; }
.sea-instrument--preview .sea-recording-label { max-width:42ch; }
@media(hover:hover) {
  html[data-colour-review=coherent] body.portfolio .sea-film-link:hover .sea-film { filter:grayscale(0); }
  .sea-film-link:hover::before { opacity:0; }
}
@media(max-width:700px) {
 html body.portfolio .portfolio-selection>.portfolio-lead { height:auto; min-height:100svh; grid-template-rows:auto auto; }
 html body.portfolio .portfolio-lead>.sea-instrument { height:auto; min-height:0; grid-template-columns:1fr; grid-template-rows:auto auto auto; gap:0; }
 .sea-film-link { grid-column:1; grid-row:1; }
 .sea-film { height:40svh; min-height:240px; max-height:none; }
 .sea-instrument--preview .sea-model { grid-column:1; grid-row:2; }
 .sea-instrument--preview .sea-timeline { grid-column:1; grid-row:3; }
 .sea-instrument--preview .sea-scene { height:200px; min-height:0; }
}
