/* The image, title and research choices share a single camera frame. */
.home-hero:has(.opening-map) {
  --on-field: #101c17;
  --on-main: clamp(445px, 62svh, 700px);
  --on-forest-bottom: calc(var(--on-main) + 50px);
  display: block;
  height: auto;
  min-height: 0;
  background: var(--on-field);
}
.home-hero:has(.opening-map) > .mast-image,
.home-hero:has(.opening-map) > .mast-wash,
.home-hero:has(.opening-map) > .opening-art {
  top: 0;
  bottom: auto;
  height: var(--on-forest-bottom);
}
.home-hero:has(.opening-map) > .mast-image img {
  object-position: 55% 48%;
}
.home-hero:has(.opening-map) > .mast-wash {
  background:
    linear-gradient(to top, var(--on-field) 0%, rgba(15,27,21,.64) 9%, transparent 31%),
    linear-gradient(to right, rgba(7,18,13,.86) 0%, rgba(10,23,17,.60) 29%, rgba(12,22,16,.11) 57%, transparent 75%);
}
.home-hero:has(.opening-map) > .opening-art {
  opacity: .76;
}
.home-hero:has(.opening-map) .mast-copy {
  width: fit-content;
  max-width: 82%;
  min-height: var(--on-main);
  padding-block: clamp(22px, 3.2vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.home-hero:has(.opening-map) .mast-copy > p {margin-block: .32rem .2rem;}
.home-hero:has(.opening-map) .mast-copy #introduce {margin-block: .035em .095em;}
.home-hero:has(.opening-map) > .bird-reference {
  top: calc(var(--on-main) - 57px);
  bottom: auto;
}
.on-archive-control {
  display:inline-flex;
  align-items:center;
  gap:clamp(7px,1vw,16px);
  max-width:100%;
  min-height:44px;
  padding:0;
  margin:0;
  color:#c3d4be;
  border:0;
  border-radius:2px;
  background:transparent;
  text-align:start;
}
.on-archive-name {
  font:500 .77rem/1.2 var(--sans,sans-serif);
  text-shadow:0 1px 5px #07120b;
}
.on-archive-control:is(:hover,:focus-visible) .on-archive-name {
  color:#f0e9cc;
  text-decoration:underline;
  text-underline-offset:.2em;
}
.on-archive {
  display:block;
  flex:none;
  width: clamp(172px, 20vw, 325px);
  aspect-ratio: 1230 / 330;
  position: relative;
  margin: 0 0 clamp(4px, .65vw, 11px) .15em;
  filter: drop-shadow(0 2px 9px rgba(3,16,11,.78));
}
.on-archive img,
.on-archive svg {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
  width: 100%;
}
.on-archive img { opacity: .94; }
.on-archive .on-historical-trace {
  fill: none;
  stroke: #c0f4e6;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .87;
  stroke-dasharray: 3.7 96.3;
  animation: on-current 7.6s linear infinite;
  animation-play-state: paused;
}
.on-historical-trace[data-arch-arm="0"] {animation-direction:reverse;animation-delay:-5.1s;}
.on-historical-trace[data-arch-arm="1"] {animation-delay:-1.55s;}
.on-historical-trace[data-arch-arm="2"] {animation-delay:-3.7s;}
.on-historical-trace[data-arch-arm="3"] {animation-delay:-.7s;}
.on-jf-node {fill:#f6c18b;stroke:#f4d6a8;stroke-width:.9;}
.on-jf {
  fill:#192521;
  font:700 16px var(--sans,sans-serif);
  letter-spacing:-.045em;
}
.opening-map {padding:0 var(--pad);color:#f2efde;}
.on-behaviour {--on-ink:#cce594;}
.on-ecology {--on-ink:#78cfbf;}
.on-health {--on-ink:#edb188;}
.on-tethers {
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  pointer-events:none;
}
.on-track {fill:none;stroke-linecap:round;stroke-linejoin:round;}
.on-track path {vector-effect:non-scaling-stroke;}
.on-wire {stroke:var(--on-ink);stroke-width:.8;opacity:.39;}
.on-source .on-wire {stroke-width:1;opacity:.56;}
.on-arm .on-wire {opacity:.25;}
.on-cross .on-wire {opacity:.46;}
.on-cross.on-health .on-wire {opacity:.29;}
.on-wire-flow, .on-wire-tip {
  stroke:var(--on-ink);
  stroke-width:1.6;
  stroke-dasharray:2.8 97.2;
  opacity:.77;
  animation:on-current 7.4s linear var(--on-lag,0s) infinite;
  animation-play-state:paused;
}
.on-wire-tip {
  stroke:#f6eccc;
  stroke-width:2.8;
  stroke-dasharray:.11 99.89;
  opacity:.92;
  animation-name:on-nose;
}
.on-arm .on-wire-flow,.on-arm .on-wire-tip {animation-direction:reverse;animation-duration:9.8s;}
.on-source .on-wire-flow,.on-source .on-wire-tip {animation-duration:4.8s;}
.on-cross .on-wire-flow,.on-cross .on-wire-tip {animation-duration:6.1s;}
.on-hot .on-wire {opacity:.78;stroke-width:1.15;}
.on-hot .on-wire-flow {stroke-width:2;}
.home-hero.on-running :is(.on-wire-flow, .on-wire-tip, .on-historical-trace) {animation-play-state:running;}
@keyframes on-current {from{stroke-dashoffset:0;}to{stroke-dashoffset:-100;}}
@keyframes on-nose {from{stroke-dashoffset:-2.7;}to{stroke-dashoffset:-102.7;}}
.on-choices {
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:clamp(12px,3.3vw,68px);
  padding-block:4px clamp(12px,1.7vw,24px);
}
.on-choice {
  position:relative;
  display:grid;
  grid-template-columns:clamp(82px,9.5vw,152px) minmax(0,1fr);
  align-items:center;
  gap:clamp(3px,1.1vw,18px);
  justify-self:start;
  width:100%;
  max-width:25rem;
  min-height:68px;
  padding:4px 0;
  color:#f3f1de;
  font-family:var(--sans,sans-serif);
  outline-offset:3px;
  border-radius:3px;
  text-decoration:none;
  -webkit-tap-highlight-color:rgba(185,218,173,.12);
}
.on-choice strong {
  display:block;
  position:relative;
  font-size:clamp(.94rem,1.25vw,1.35rem);
  font-weight:650;
  letter-spacing:-.015em;
  line-height:1.25;
  text-shadow:0 1px 6px #0d1913;
}
.on-choice strong span {display:block;}
.on-choice[aria-expanded="true"] strong,
.on-choice:focus-visible strong {
  text-decoration:underline;
  text-underline-offset:.23em;
  text-decoration-color:var(--on-ink);
  text-decoration-thickness:1px;
}
.on-cluster {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:120/84;
  overflow:visible;
  color:var(--on-ink);
  background:radial-gradient(ellipse at center,color-mix(in srgb,var(--on-ink) 9%,transparent),transparent 67%);
}
.on-cluster path {fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;}
.on-depth-0 {stroke-width:.64;opacity:.38;}
.on-depth-1 {stroke-width:.92;opacity:.72;}
.on-layer-0 {stroke-width:1.25;opacity:.58;}
.on-layer-1 {stroke-width:2;opacity:.88;}
.on-layer-2 {stroke-width:2.9;}
.on-cluster .on-hub {fill:#fbf7d8;}
.on-cluster .on-hub-ring {fill:none;stroke:currentColor;stroke-width:.85;opacity:.84;}
.on-cluster .on-lantern {fill:#fbf6d4;stroke:currentColor;stroke-width:.7;}
.on-selected-node {fill:none;stroke:currentColor;stroke-width:1.1;opacity:0;}
.on-inspecting .on-selected-node {opacity:1;}
.on-choice[aria-expanded="true"] .on-cluster {
  background:radial-gradient(ellipse at center,color-mix(in srgb,var(--on-ink) 19%,transparent),transparent 70%);
}
.on-preview {
  position:relative;
  z-index:2;
  margin:0;
  background:var(--on-field);
  border-top:1px solid #596955;
}
.on-preview[hidden], .on-preview a[hidden] {display:none;}
.on-preview-inner {
  display:grid;
  grid-template-columns:minmax(9rem,1fr) minmax(14rem,1.9fr) auto auto;
  align-items:center;
  gap:clamp(9px,2.5vw,36px);
  padding-block:12px;
}
.on-preview a {color:#f3efdd;text-underline-offset:.22em;text-decoration-thickness:1px;}
.on-study {font:500 clamp(1.2rem,1.66vw,1.8rem)/1.06 var(--serif,serif);}
.on-paper {
  display:block;
  padding-block:4px;
  text-decoration:none;
}
.on-byline {display:block;color:#c0d0b9;font-size:.81rem;line-height:1.55;}
.on-paper-title {display:block;font-size:.90rem;line-height:1.35;}
.on-paper:focus-visible .on-paper-title,.on-paper:hover .on-paper-title {text-decoration:underline;}
.on-atlas {font-size:.89rem;white-space:nowrap;}
.on-dismiss {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid #64715c;
  padding:0;
  color:#e8edd8;
  border-radius:50%;
  background:transparent;
  font:normal 1.4rem/1 var(--sans,sans-serif);
}
@media(min-width:1600px){
  .opening-map {padding-inline:max(var(--pad),calc((100vw - 1760px)/2));}
}
@media(min-width:751px) and (max-width:980px){
  .on-choice {grid-template-columns:clamp(66px,8vw,82px) minmax(0,1fr);gap:5px;}
  .on-choices {gap:10px;}
}
@media(max-width:750px){
  .home-hero:has(.opening-map) {--on-main:clamp(390px,54svh,555px);}
  .home-hero:has(.opening-map) .mast-copy {max-width:95%;}
  .on-choices {gap:6px;padding-block:0 14px;}
  .on-choice {display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:1px;text-align:center;padding:0 2px 6px;min-width:0;}
  .on-cluster {width:clamp(76px,16vw,108px);max-width:100%;}
  .on-choice strong {font-size:clamp(.87rem,2.1vw,1.06rem);line-height:1.24;max-width:100%;}
  .on-preview-inner {grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding-block:12px;}
  .on-study {grid-column:1;grid-row:1;}
  .on-paper {grid-column:1;grid-row:2;padding:2px 0 6px;}
  .on-atlas {grid-column:1;grid-row:3;justify-self:start;min-height:42px;align-content:center;}
  .on-dismiss {grid-column:2;grid-row:1 / span 3;align-self:start;}
}
@media(max-width:650px){
  .home-hero:has(.opening-map) {--on-main:clamp(408px,56svh,570px);--on-forest-bottom:clamp(260px,75vw,432px);}
  .home-hero:has(.opening-map) .mast-copy {
    min-height:var(--on-main);
    max-width:100%;
    width:100%;
    padding:clamp(138px,37vw,205px) var(--pad) 17px;
    justify-content:flex-end;
  }
  .home-hero:has(.opening-map) .mast-copy #introduce {margin-block:1px 5px;}
  .home-hero:has(.opening-map) .mast-copy .hero-actions {margin-top:12px;}
  .home-hero:has(.opening-map) .mast-image img {object-position:53% 40%;}
  .home-hero:has(.opening-map) > .mast-wash {
    background:
      linear-gradient(to top,var(--on-field) 0%,rgba(14,27,20,.95) 9%,rgba(12,24,18,.43) 33%,transparent 64%),
      linear-gradient(to right,rgba(7,20,14,.64),rgba(8,20,15,.12) 60%,transparent 89%);
  }
  .home-hero:has(.opening-map) > .bird-reference {
    top:12px;right:var(--pad);transform:none;
    background:rgba(14,26,19,.62);gap:5px;
  }
  .home-hero:has(.opening-map) > .bird-reference::before {width:12px;}
  .on-archive {width:clamp(144px,42vw,212px);margin-bottom:0;}
  .on-choices {padding-top:3px;}
}
@media(min-width:560px) and (max-height:480px) {
  .home-hero:has(.opening-map) {--on-main:clamp(305px,84svh,390px);--on-forest-bottom:var(--on-main);height:auto;}
  .home-hero:has(.opening-map) .mast-copy {padding-block:12px 10px;justify-content:center;max-width:72%;}
  .on-archive {width:150px;}
  .on-choice {min-height:48px;}
  .on-cluster {max-width:88px;}
  .home-hero:has(.opening-map) > .bird-reference {top:calc(var(--on-main) - 54px);}
}
@media(prefers-reduced-motion:reduce) {
  .home-hero .on-wire-flow,.home-hero .on-wire-tip,.home-hero .on-historical-trace {display:none;}
}

/* Keep the moving photograph inside the exact bounds of its gradient. */
.home-hero:has(.opening-map) > .mast-image { overflow:hidden; transform:none; animation:none; }
.home-hero:has(.opening-map) > .mast-image img { transform-origin:67% 43%; animation:camera-breathe 22s ease-in-out infinite alternate; }
.motion-paused .home-hero:has(.opening-map) > .mast-image img,.film-suspended .home-hero:has(.opening-map) > .mast-image img,.page-hidden .home-hero:has(.opening-map) > .mast-image img { animation-play-state:paused; }
@media(prefers-reduced-motion:reduce){.home-hero:has(.opening-map) > .mast-image img { animation:none; }}

.portfolio-entrance { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 5px; font-size: .83rem; color: #eee4ce; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #dfcc995c; }
.portfolio-entrance .ico { width: 12px; height: 12px; }
.portfolio-entrance:hover, .portfolio-entrance:focus-visible { color: #ffce99; }
@media(max-width: 680px) {
  .mast-copy .hero-actions { row-gap: 2px; }
  .portfolio-entrance { min-height: 38px; }
}

.mast-copy .portfolio-entrance{touch-action:manipulation;white-space:nowrap}
