:root {
  --et-line-soft: rgba(24, 19, 14, 0.08);
  --et-soft: rgba(24, 19, 14, 0.6);
  --et-panel: #ffffff;
  --et-code-bg: rgba(24, 19, 14, 0.04);
}

.jh-page.jh-portfolio {
  background: var(--jh-bg);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
}

.et-portfolio-layout {
  position: relative;
  padding-top: 16px;
  padding-bottom: 2rem;
}

.et-loading-screen {
  position: fixed;
  top: 78px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  background: rgb(245, 241, 232);
  z-index: 20;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.et-loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.et-loading-screen__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 172px;
  height: 172px;
}

.et-loading-screen__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(59, 126, 77, 0.16);
}

.et-loading-screen__ring::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 999px;
  background: rgb(59, 126, 77);
  box-shadow: 0 0 0 6px rgba(59, 126, 77, 0.12);
  animation: etLoadingOrbit 1.1s linear infinite;
  transform-origin: 7px 93px;
}

.et-loading-screen__logo {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.et-inline-loader {
  min-height: 320px;
  display: grid;
  place-items: center;
}

.et-intro-active {
  background: #0f1712;
}

.et-intro-active-root {
  background: #101813;
}

.et-intro-active::before {
  content: "";
  position: fixed;
  z-index: 2147483647;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: #101813;
  pointer-events: none;
}

.et-intro-active .jh-site-shell,
.et-intro-active .jh-site-main {
  background: #111a14;
  padding-top: 0 !important;
}

.et-intro-active .jh-page-hero,
.et-intro-active [data-et-app],
.et-intro-active .jh-site-footer {
  display: none !important;
}

.et-intro {
  --et-intro-progress: 0;
  --et-roots-draw: 100;
  --et-trunk-draw: 100;
  --et-trunk-grow: 0;
  --et-branches-draw: 100;
  --et-leaves-scale: 0;
  --et-animal-sea: 0;
  --et-animal-low: 0;
  --et-animal-mid: 0;
  --et-animal-high: 0;
  --et-animal-crown: 0;
  --et-complete: 0;
  position: relative;
  margin-top: -4px;
  min-height: 100svh;
  padding-top: 4px;
  background:
    radial-gradient(circle at 50% 10%, rgba(209, 184, 118, 0.16), transparent 34%),
    linear-gradient(180deg, #101813 0%, #182119 48%, #111a14 100%);
  color: #f7f0de;
  overflow: clip;
}

.et-intro__hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(92px, 10vh, 118px) clamp(28px, 5.4vw, 84px) clamp(24px, 4vh, 54px);
  overflow: hidden;
}

.et-intro__hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22vh;
  background: linear-gradient(0deg, #101813, transparent);
  pointer-events: none;
}

.et-intro__hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.et-intro__hero h2 {
  max-width: 7ch;
  font-size: clamp(5.8rem, 10vw, 12rem);
  line-height: 0.82;
}

.et-intro__hero p:not(.et-intro__eyebrow) {
  max-width: 31rem;
  color: rgba(247, 240, 222, 0.76);
  font-size: 1.08rem;
  line-height: 1.62;
}

.et-intro__hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  padding: 0 16px;
  border: 1px solid rgba(217, 190, 119, 0.5);
  background: transparent;
  color: #f7f0de;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.et-intro__hero-logo {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(34vw, 52vh, 440px);
  opacity: 1;
  transform: translateX(-3vw);
}

.et-intro__hero-logo::after {
  content: none;
}

.et-intro__hero-tree {
  position: relative;
  width: 100%;
  aspect-ratio: 933 / 1400;
  filter: drop-shadow(0 34px 90px rgba(0, 0, 0, 0.38));
}

.et-intro__hero-tree-layer,
.et-intro__hero-animal {
  position: absolute;
  display: block;
  max-width: none;
  opacity: 0;
  transform-origin: 50% 80%;
  animation: etIntroLayerIn 900ms cubic-bezier(0.21, 0.75, 0.24, 1) forwards;
}

.et-intro__hero-tree-layer {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.et-intro__hero-tree-layer--roots { animation-delay: 0s; }
.et-intro__hero-tree-layer--water { animation-delay: 0.2s; }
.et-intro__hero-tree-layer--bark { animation-delay: 0.4s; }
.et-intro__hero-tree-layer--branches { animation-delay: 0.6s; }
.et-intro__hero-tree-layer--foliage { animation-delay: 0.8s; }

.et-intro__hero-animal {
  width: var(--w);
  left: var(--x);
  top: var(--y);
  z-index: 3;
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(22px) scale(0.9);
}

.et-intro__hero-animal--fish-a { --x: 37%; --y: 83%; --w: 18%; animation-delay: 0.25s; }
.et-intro__hero-animal--fish-b { --x: 53%; --y: 85%; --w: 14%; animation-delay: 0.35s; transform: scaleX(-1); }
.et-intro__hero-animal--dolphin { --x: 50%; --y: 75%; --w: 21%; animation-delay: 0.45s; }
.et-intro__hero-animal--penguins { --x: 18%; --y: 65%; --w: 15%; animation-delay: 0.8s; }
.et-intro__hero-animal--fox { --x: 71%; --y: 66%; --w: 16%; animation-delay: 0.95s; }
.et-intro__hero-animal--antelope { --x: 59%; --y: 62%; --w: 12%; animation-delay: 1.05s; }
.et-intro__hero-animal--elephant { --x: 5%; --y: 43%; --w: 25%; animation-delay: 1.1s; }
.et-intro__hero-animal--gorilla { --x: 42%; --y: 50%; --w: 17%; animation-delay: 1.2s; }
.et-intro__hero-animal--toucan { --x: 74%; --y: 36%; --w: 14%; animation-delay: 1.3s; }
.et-intro__hero-animal--lion { --x: 25%; --y: 24%; --w: 17%; animation-delay: 1.35s; }
.et-intro__hero-animal--giraffe { --x: 65%; --y: 17%; --w: 16%; animation-delay: 1.45s; }
.et-intro__hero-animal--butterfly { --x: 83%; --y: 32%; --w: 10%; animation-delay: 1.55s; }
.et-intro__hero-animal--eagle { --x: 38%; --y: 4%; --w: 22%; animation-delay: 1.65s; }

@keyframes etIntroLayerIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.et-intro__assembly {
  display: none;
}

.et-intro[hidden] {
  display: none !important;
}

.et-intro.is-leaving {
  opacity: 0;
  transition: opacity 420ms ease;
}

.et-intro__stage {
  position: sticky;
  top: -4px;
  height: calc(100svh + 4px);
  min-height: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 54px clamp(24px, 6vw, 84px) 38px;
  pointer-events: none;
}

.et-intro__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 24, 19, 0.74), transparent 31%, transparent 69%, rgba(16, 24, 19, 0.74)),
    repeating-linear-gradient(90deg, rgba(247, 240, 222, 0.035) 0 1px, transparent 1px 84px);
}

.et-intro__treegrow {
  position: relative;
  width: min(72vh, 46vw, 710px);
  min-width: 0;
  aspect-ratio: 1 / 1.22;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(217, 190, 119, 0.18), transparent 36%),
    radial-gradient(circle at 50% 66%, rgba(111, 151, 136, 0.16), transparent 30%),
    transparent;
  filter: none;
  overflow: visible;
}

.et-intro__treegrow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 48%, rgba(247, 240, 222, 0.06), transparent 62%);
  pointer-events: none;
}

.et-intro__tree-scene {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 1;
}

.et-intro__logo-tree {
  position: absolute;
  inset: -4% -3%;
  z-index: 1;
  pointer-events: none;
}

.et-intro__logo-tree-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: 50% 72%;
  will-change: opacity, transform, clip-path;
}

.et-intro__logo-tree-layer--roots {
  opacity: calc(var(--et-trunk-grow) * 1.28);
  transform: translateY(calc((1 - var(--et-trunk-grow)) * 96px)) scale(calc(0.9 + var(--et-trunk-grow) * 0.1));
}

.et-intro__logo-tree-layer--water {
  opacity: calc(var(--et-animal-sea) * 1.18);
  transform: translateY(calc((1 - var(--et-animal-sea)) * 74px)) scale(calc(0.92 + var(--et-animal-sea) * 0.08));
}

.et-intro__logo-tree-layer--bark {
  opacity: calc(var(--et-trunk-grow) * 1.48);
  clip-path: inset(calc((1 - var(--et-trunk-grow)) * 68%) 0 0 0);
  transform: translateY(calc((1 - var(--et-trunk-grow)) * 82px)) scale(calc(0.9 + var(--et-trunk-grow) * 0.1));
}

.et-intro__logo-tree-layer--branches {
  opacity: calc((100 - var(--et-branches-draw)) / 100 * 0.76);
  transform: translateY(calc(var(--et-branches-draw) * 0.44px)) scale(calc(0.985 + (100 - var(--et-branches-draw)) * 0.00015));
}

.et-intro__logo-tree-layer--foliage {
  opacity: calc(var(--et-leaves-scale) * 1.34);
  transform: translateY(calc((1 - var(--et-leaves-scale)) * 66px)) scale(calc(0.9 + var(--et-leaves-scale) * 0.1));
}

.et-intro__tree-scene .et-intro__roots,
.et-intro__tree-scene .et-intro__trunk-mass,
.et-intro__tree-scene .et-intro__trunk-shadow,
.et-intro__tree-scene .et-intro__trunk-path,
.et-intro__tree-scene .et-intro__trunk-highlight,
.et-intro__tree-scene .et-intro__limb-masses,
.et-intro__tree-scene .et-intro__branches,
.et-intro__tree-scene .et-intro__bark-lines,
.et-intro__tree-scene .et-intro__leaves,
.et-intro__tree-scene .et-intro__water {
  display: none;
}

.et-intro__root-path,
.et-intro__trunk-path,
.et-intro__trunk-shadow,
.et-intro__trunk-highlight,
.et-intro__branch-path,
.et-intro__twig-path,
.et-intro__limb-ridge,
.et-intro__bark-lines path,
.et-intro__water-line,
.et-intro__coral {
  fill: none;
  stroke: url("#etBark");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  filter: none;
  transition: stroke-dashoffset 90ms linear;
}

.et-intro__root-path {
  stroke-width: 13;
  stroke-dashoffset: var(--et-roots-draw);
}

.et-intro__trunk-mass {
  fill: url("#etBark");
  opacity: calc(var(--et-trunk-grow) * 0.96);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(calc(0.04 + var(--et-trunk-grow) * 0.96));
  filter: none;
  transition: opacity 90ms linear, transform 90ms linear;
}

.et-intro__limb-masses {
  opacity: var(--et-trunk-grow);
  transition: opacity 90ms linear;
}

.et-intro__limb {
  fill: url("#etBark");
  opacity: 0.9;
}

.et-intro__limb-ridge {
  stroke: rgba(238, 191, 91, 0.26);
  stroke-width: 4;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--et-branches-draw);
}

.et-intro__bark-lines path {
  stroke: rgba(31, 20, 13, 0.44);
  stroke-width: 5;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--et-trunk-draw);
  opacity: 0.72;
}

.et-intro__trunk-shadow {
  stroke: rgba(38, 24, 13, 0.52);
  stroke-width: 50;
  stroke-dashoffset: var(--et-trunk-draw);
  filter: none;
}

.et-intro__trunk-path {
  stroke-width: 35;
  stroke-dashoffset: var(--et-trunk-draw);
}

.et-intro__trunk-highlight {
  stroke: url("#etBarkLight");
  stroke-width: 7;
  stroke-dashoffset: var(--et-trunk-draw);
  filter: none;
}

.et-intro__branch-path {
  stroke: rgba(236, 181, 83, 0.32);
  stroke-width: 8;
  stroke-dashoffset: var(--et-branches-draw);
}

.et-intro__branch-path--crown {
  stroke-width: 14;
}

.et-intro__twig-path {
  stroke-width: 6;
  stroke-dashoffset: var(--et-branches-draw);
  opacity: 0.78;
}

.et-intro__leaf-cluster {
  opacity: calc(var(--et-leaves-scale) * 0.94);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(var(--et-leaves-scale));
  transition: opacity 90ms linear, transform 90ms linear;
}

.et-intro__leaf {
  fill: url("#etLeafGlow");
  opacity: 0.86;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-8deg);
  filter: none;
  transition: opacity 90ms linear, transform 90ms linear;
}

.et-intro__leaf:nth-child(even) {
  transform: rotate(12deg);
}

.et-intro__water {
  opacity: var(--et-animal-sea);
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: translateY(calc((1 - var(--et-animal-sea)) * 18px)) scale(calc(0.96 + var(--et-animal-sea) * 0.04));
  transition: opacity 120ms linear, transform 120ms linear;
}

.et-intro__water-pool {
  fill: url("#etWater");
  filter: none;
}

.et-intro__water-line {
  stroke: rgba(184, 238, 238, 0.72);
  stroke-width: 5;
  stroke-dashoffset: calc((1 - var(--et-animal-sea)) * 100);
  filter: none;
}

.et-intro__water-line--b {
  stroke: rgba(81, 177, 186, 0.44);
  stroke-width: 4;
}

.et-intro__coral {
  stroke: rgba(234, 126, 78, 0.62);
  stroke-width: 6;
  stroke-dashoffset: calc((1 - var(--et-animal-sea)) * 100);
  filter: none;
}

.et-intro__coral--b {
  stroke: rgba(222, 190, 78, 0.56);
}

.et-intro__animal-img {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: saturate(1.08) contrast(1.04);
  transition: opacity 120ms linear, transform 120ms linear;
}

.et-intro__animal--sea {
  opacity: var(--et-animal-sea);
  transform: translateY(calc((1 - var(--et-animal-sea)) * 96px)) scale(calc(0.72 + var(--et-animal-sea) * 0.28));
}

.et-intro__animal--low {
  opacity: var(--et-animal-low);
  transform: translateY(calc((1 - var(--et-animal-low)) * 130px)) scale(calc(0.7 + var(--et-animal-low) * 0.3));
}

.et-intro__animal--mid {
  opacity: var(--et-animal-mid);
  transform: translateY(calc((1 - var(--et-animal-mid)) * 150px)) scale(calc(0.66 + var(--et-animal-mid) * 0.34));
}

.et-intro__animal--high {
  opacity: var(--et-animal-high);
  transform: translateY(calc((1 - var(--et-animal-high)) * 170px)) scale(calc(0.62 + var(--et-animal-high) * 0.38));
}

.et-intro__animal--crown {
  opacity: var(--et-animal-crown);
  transform: translateY(calc((1 - var(--et-animal-crown)) * 190px)) scale(calc(0.58 + var(--et-animal-crown) * 0.42));
}

.et-intro__animal--small-fish {
  transform-origin: center;
  transform: translateY(calc((1 - var(--et-animal-sea)) * 96px)) scaleX(-1) scale(calc(0.72 + var(--et-animal-sea) * 0.28));
}

.et-intro__animal--tiny-fish {
  transform-origin: center;
  transform: translateY(calc((1 - var(--et-animal-sea)) * 92px)) scale(calc(0.7 + var(--et-animal-sea) * 0.3)) rotate(-7deg);
}

.et-intro__scroll {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(5, 92vh);
  gap: 0;
  margin-top: 0;
  padding: 0 clamp(28px, 5vw, 72px);
}

.et-intro__panel {
  width: min(360px, 34vw);
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  opacity: 0.08;
  filter: blur(1.2px);
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

.et-intro__panel.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.et-intro__panel.is-before {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-18px);
}

.et-intro__panel--right {
  justify-self: end;
  text-align: right;
  justify-items: end;
}

.et-intro__panel--hero,
.et-intro__panel--finish {
  width: min(390px, 35vw);
}

.et-intro__panel-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.et-intro__panel--right .et-intro__panel-heading {
  justify-content: flex-end;
}

.et-intro__panel-number {
  color: rgba(217, 190, 119, 0.82);
  font-family: "Aboreto", cursive;
  font-size: clamp(4rem, 6vw, 7rem);
  line-height: 0.72;
}

.et-intro__eyebrow,
.et-intro__kicker {
  margin: 0 0 14px;
  color: rgba(217, 190, 119, 0.88);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.et-intro h2,
.et-intro h3 {
  margin: 0;
  color: #fbf4e4;
  font-family: "Aboreto", cursive;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.et-intro h2 {
  max-width: 9.5ch;
  font-size: clamp(3rem, 5.4vw, 4.9rem);
}

.et-intro h3 {
  max-width: 8ch;
  font-size: clamp(2.4rem, 4.2vw, 4.4rem);
}

.et-intro p {
  max-width: 24rem;
  margin: 18px 0 0;
  color: rgba(247, 240, 222, 0.76);
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
  line-height: 1.56;
}

.et-intro__enter {
  min-height: 48px;
  margin-top: 30px;
  padding: 0 22px;
  border: 1px solid rgba(217, 190, 119, 0.5);
  border-radius: 999px;
  background: #f4e9ca;
  color: #111812;
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.et-intro__enter:hover {
  background: #fff6d9;
}

@media (max-width: 820px) {
  .et-intro {
    min-height: 100svh;
  }

  .et-intro__hero {
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding: max(92px, calc(env(safe-area-inset-top) + 64px)) 28px max(28px, env(safe-area-inset-bottom));
  }

  .et-intro__hero::after {
    height: 18vh;
  }

  .et-intro__hero-copy {
    display: grid;
    gap: 15px;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .et-intro__hero h2 {
    max-width: none;
    font-size: clamp(3.2rem, 13.8vw, 5.2rem);
    line-height: 0.88;
  }

  .et-intro__hero p:not(.et-intro__eyebrow) {
    max-width: min(24rem, 100%);
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.44;
  }

  .et-intro__hero-logo {
    justify-self: center;
    width: min(64vw, 34vh, 320px);
    margin-top: -8px;
    transform: none;
  }

  .et-intro__hero-link {
    width: min(100%, 282px);
    justify-content: center;
    margin-top: 8px;
  }

  .et-intro__stage {
    align-items: start;
    padding-top: 92px;
  }

  .et-intro__treegrow {
    width: min(86vw, 390px);
    opacity: 0.84;
  }

  .et-intro__scroll {
    gap: 12vh;
    padding-top: 48vh;
  }

  .et-intro__panel,
  .et-intro__panel--right {
    justify-self: start;
    min-height: 66vh;
    text-align: left;
    justify-items: start;
  }

  .et-intro h2 {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
  }

  .et-intro h3 {
    font-size: clamp(2rem, 11vw, 3.6rem);
  }

  .et-intro p {
    font-size: 1rem;
    line-height: 1.58;
  }

  .et-intro__hero h2 {
    font-size: clamp(3.2rem, 13.8vw, 5.2rem);
  }
}

@keyframes etLoadingOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.et-breadcrumb-wrap {
  align-items: center;
  width: 100%;
  max-width: none;
  grid-template-columns: auto auto minmax(260px, 380px);
  gap: 12px;
}

.et-breadcrumb-wrap .jh-breadcrumb__trail {
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
}

.jh-portfolio-layout.is-tree-view .et-breadcrumb-wrap .jh-breadcrumb__trail,
.jh-portfolio-layout.is-map-view .et-breadcrumb-wrap .jh-breadcrumb__trail {
  grid-column: 1 / -1;
}

.et-site-header {
  position: static;
  background: #fafafa;
  color: #222;
  border-bottom: 2px solid #eee;
}

.et-site-header .jh-site-header__inner {
  min-height: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px 16px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 20px;
}

.et-site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.et-site-logo img {
  display: block;
  width: 70px;
  height: auto;
}

.et-site-header__title-wrap {
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
}

.et-site-header__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(24, 19, 14, 0.46);
}

.et-site-header__title {
  margin: 0;
  font-family: "Aboreto", cursive;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: none;
}

.et-site-header .jh-site-menu-toggle,
.et-site-header .jh-site-nav {
  display: none !important;
}

.et-search {
  grid-column: auto;
  margin-left: 0;
  width: min(380px, 100%);
  max-width: none;
  min-width: 0;
  align-self: start;
}

.et-search__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.et-search__input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(24, 19, 14, 0.12);
  background: rgba(255, 252, 246, 0.82);
  color: var(--jh-text);
  font: inherit;
  width: 100%;
  padding: 0 16px;
  border-radius: 999px;
}

.et-search__input::placeholder {
  color: rgba(24, 19, 14, 0.42);
}

.et-search__button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(24, 19, 14, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.82);
  color: var(--jh-text);
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.et-search__button:hover {
  background: rgba(255, 252, 246, 0.96);
}

.et-tree-root .jh-treeviz__scene {
  position: relative;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: visible !important;
  overflow-y: visible !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  contain: layout paint;
  isolation: isolate;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 19, 14, 0.18) transparent;
}

.et-tree-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0;
  overflow: hidden auto;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.et-tree-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.et-map-panel {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.et-portfolio-map {
  min-height: 620px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(24, 19, 14, 0.08);
  background:
    radial-gradient(circle at 20% 18%, rgba(119, 153, 190, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(242, 246, 250, 0.88), rgba(231, 236, 242, 0.95));
}

.et-map-location__inner {
  min-width: 74px;
  min-height: 32px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24, 19, 14, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: rgba(24, 19, 14, 0.82);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(24, 19, 14, 0.08);
  white-space: nowrap;
}

.et-tree-root .jh-treeviz__root-flow {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 16px;
}

.et-tree-root .jh-treeviz__root-group {
  display: grid;
  gap: 5px;
}

.et-tree-root .jh-treeviz__root-list {
  display: grid;
  gap: 6px;
}

.et-tree-root .jh-treeviz__group-label {
  position: relative;
  font-family: var(--jh-font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(24, 19, 14, 0.56);
  z-index: 3;
}

.et-tree-root .jh-treeviz__group-label--deuterostome {
  color: rgba(122, 96, 48, 0.66);
}

.et-tree-root .jh-treeviz__group-label--protostome {
  color: rgba(53, 122, 88, 0.66);
}

.et-tree-root .jh-treeviz__group-label--basal {
  color: rgba(67, 110, 156, 0.66);
}

.et-tree-root .jh-treeviz__phylum,
.et-tree-root .jh-treeviz__node--branch {
  appearance: none;
  display: block;
  width: 212px;
  max-width: calc(100% - 48px);
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  text-align: left;
  color: rgba(24, 19, 14, 0.86);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.et-tree-root .jh-treeviz__scene--root .jh-treeviz__phylum--align-left {
  margin-right: auto;
  margin-left: 0;
}

.et-tree-root .jh-treeviz__scene--root .jh-treeviz__phylum--align-right {
  margin-left: auto;
  margin-right: 0;
  margin-top: 0;
}

.et-tree-root .jh-treeviz__node--branch {
  width: 100%;
  max-width: 100%;
  padding: 7px 9px;
}

.et-tree-root .jh-treeviz__group {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 8px;
  width: 156px;
  max-width: calc(100% - 16px);
}

.et-tree-root .jh-treeviz__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.et-tree-root .jh-treeviz__path {
  fill: none;
  stroke: rgba(74, 59, 42, 0.2);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.et-tree-root .jh-treeviz__path--twig {
  stroke: rgba(102, 88, 66, 0.18);
}

.et-tree-root .jh-treeviz__phylum span,
.et-tree-root .jh-treeviz__node--branch span {
  display: block;
  margin-bottom: 3px;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(24, 19, 14, 0.46);
}

.et-tree-root .jh-treeviz__phylum strong,
.et-tree-root .jh-treeviz__node--branch strong {
  display: block;
  font-family: var(--jh-font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(24, 19, 14, 0.86);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.08;
}

.et-tree-root .jh-treeviz__phylum em,
.et-tree-root .jh-treeviz__node--branch em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  color: rgba(24, 19, 14, 0.56);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.et-tree-root .jh-treeviz__common-name {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(24, 19, 14, 0.64);
}

.et-tree-root .jh-treeviz__phylum:hover,
.et-tree-root .jh-treeviz__phylum:focus-visible,
.et-tree-root .jh-treeviz__node--branch:hover,
.et-tree-root .jh-treeviz__node--branch:focus-visible,
.et-tree-root .jh-treeviz__phylum.is-active,
.et-tree-root .jh-treeviz__node--branch.is-active {
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  transform: none;
  border-color: #4CAF50;
}

.et-portfolio-layout.is-tree-view .et-technical-rail,
.et-technical-rail {
  width: 100%;
  margin: 0;
  grid-column: 2;
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 19, 14, 0.18) transparent;
}

.et-technical-rail .jh-photo-rail__header {
  margin-bottom: 16px;
  border-left: 0;
  padding-left: 0;
}

.et-technical-rail .jh-photo-rail__title,
.et-technical-rail .jh-photo-rail__meta {
  text-transform: none;
}

.et-rail-media {
  margin: 0 0 18px;
}

.et-rail-media[hidden] {
  display: none;
}

.et-node-lead {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.et-node-lead__image {
  display: block;
  overflow: hidden;
  background: rgba(24, 19, 14, 0.06);
  border-radius: 22px;
}

.et-node-lead__image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.et-node-lead__caption {
  margin: 0;
  color: rgba(24, 19, 14, 0.62);
  font-size: 0.92rem;
  line-height: 1.6;
}

.et-node-gallery {
  margin: 22px 0 0;
}

.et-node-gallery .jh-photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.et-node-gallery__photos,
.et-node-gallery__films {
  margin-top: 18px;
}

.et-node-gallery__photos:first-child {
  margin-top: 0;
}

.et-node-gallery__photos h3,
.et-node-gallery__films h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.et-node-gallery--media-tab {
  margin-top: 18px;
}

.et-media-section {
  margin-top: 22px;
}

.et-media-section:first-child {
  margin-top: 0;
}

.et-media-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.et-media-card {
  position: relative;
}

.et-media-card__fallback {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(24, 19, 14, 0.92), rgba(77, 92, 68, 0.82));
}

.et-media-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 28px 10px 9px;
  color: #fff;
  text-align: left;
  font-family: "Aboreto", cursive;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.et-media-card:hover .et-media-card__caption,
.et-media-card:focus-visible .et-media-card__caption {
  opacity: 1;
  transform: translateY(0);
}

.et-media-card__caption strong,
.et-media-card__caption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.et-media-card__caption strong {
  font-size: 0.84rem;
  line-height: 1.15;
}

.et-media-card__caption small {
  font-size: 0.72rem;
  line-height: 1.1;
  opacity: 0.86;
}

.et-media-card--film::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 1px 2px rgba(24, 19, 14, 0.35));
}

.et-film-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100svh;
  max-height: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(9, 9, 9, 0.96);
  color: #fff;
  overflow: auto;
}

.et-film-dialog::backdrop {
  background: rgba(9, 9, 9, 0.96);
}

.et-film-dialog[open] {
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.et-film-dialog__panel {
  position: relative;
  width: min(96vw, 1560px);
  max-height: none;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  justify-items: center;
  align-content: center;
  padding: 0;
  overflow: visible;
}

.et-film-dialog__close {
  position: absolute;
  top: -8px;
  right: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  font-family: "Aboreto", cursive;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.et-film-dialog__media {
  width: min(96vw, 1560px);
  display: grid;
  place-items: center;
}

.et-film-dialog__media video,
.et-film-dialog__media iframe,
.et-film-dialog__media img {
  display: block;
  width: min(96vw, 1560px);
  max-width: min(96vw, 1560px);
  height: auto;
  max-height: min(78svh, 900px);
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: #000;
}

.et-film-dialog__media video,
.et-film-dialog__media iframe {
  aspect-ratio: 16 / 9;
}

.et-film-dialog__ig {
  margin-top: 10px;
}

.et-film-dialog h3 {
  width: min(96vw, 1560px);
  margin: 0;
  font-size: 1rem;
  font-family: "Aboreto", cursive;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.et-film-dialog__description {
  width: min(96vw, 1560px);
  margin: -6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
  font-family: "Aboreto", cursive;
  letter-spacing: 0;
  text-align: center;
}

.et-film-dialog__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(96vw, 1560px);
  max-height: 18svh;
  margin-top: 0;
  overflow: hidden;
}

.et-film-dialog__meta .jh-chip {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-family: "Aboreto", cursive;
  letter-spacing: 0;
}

@media (orientation: landscape) and (max-height: 640px) {
  .et-film-dialog[open] {
    align-items: start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .et-film-dialog__panel,
  .et-film-dialog__media,
  .et-film-dialog h3,
  .et-film-dialog__description,
  .et-film-dialog__meta {
    width: min(90vw, 1560px);
  }

  .et-film-dialog__media video,
  .et-film-dialog__media iframe,
  .et-film-dialog__media img {
    width: min(90vw, 1560px);
    max-width: min(90vw, 1560px);
    max-height: 82svh;
  }
}

.et-media-browser {
  display: grid;
  gap: 12px;
}

.et-media-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(160px, 1fr) minmax(92px, 0.45fr) minmax(130px, 0.65fr);
  gap: 12px;
}

.et-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.et-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.et-link-list a {
  border: 1px solid rgba(24, 19, 14, 0.18);
  border-radius: 6px;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 9px;
  text-decoration: none;
}

.et-link-list a:hover,
.et-link-list a:focus {
  background: rgba(24, 19, 14, 0.08);
}

.et-media-toolbar input,
.et-media-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(24, 19, 14, 0.25);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: #211b16;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
}

.et-media-toolbar input::placeholder {
  color: rgba(33, 27, 22, 0.62);
}

.et-media-browser__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.et-media-browser__count {
  margin: 0;
  color: rgba(24, 19, 14, 0.62);
  font-size: 0.9rem;
}

.et-media-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(24, 19, 14, 0.62);
  font-size: 0.9rem;
}

.et-media-pagination button {
  min-height: 34px;
  border: 1px solid rgba(24, 19, 14, 0.22);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #211b16;
  cursor: pointer;
  font: inherit;
}

.et-media-pagination button:disabled {
  opacity: 0.38;
  cursor: default;
}

.et-technical-content {
  display: grid;
  gap: 16px;
}

.et-status-bar {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.run-status.et-run-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px 0;
  padding: 8px 10px;
  border: 1px solid #eee;
  background: white;
  border-radius: 8px;
  font-size: 12px;
  color: #666;
}

.et-run-status__label {
  flex: 0 0 auto;
  min-width: 72px;
  font-weight: 700;
  color: inherit;
  font-size: 12px;
}

.et-run-status__text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.et-run-status__time {
  flex: 0 0 auto;
  font-size: 12px;
}

.run-status.et-run-status.active {
  border-color: #4CAF50;
  background: #e3f0e6;
  color: #2b6945;
}

.run-status.et-run-status.stalled {
  border-color: #d8b24c;
  background: #fbf4da;
  color: #8b6b0a;
}

.run-status.et-run-status.error {
  border-color: #cf8e8e;
  background: #f8e6e6;
  color: #8a3535;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(76, 175, 80, 0.25);
  border-top-color: #4CAF50;
  border-radius: 50%;
  display: none;
  animation: et-spin 0.9s linear infinite;
  flex-shrink: 0;
}

.run-status.et-run-status.active .spinner {
  display: inline-block;
}

@keyframes et-spin {
  to { transform: rotate(360deg); }
}

.et-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.et-mode-switch__button {
  appearance: none;
  border: 1px solid #888;
  background: #f4f4f4;
  color: #222;
  padding: 6px 10px;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.et-mode-switch__button.is-active {
  background: #e9e9e9;
  color: #222;
}

/* Local-only Online / Offline preview switch (dev site only). A small fixed pill anchored to the
   top-right, just below the 78px site header, so it floats above the page and never shifts the
   layout. z-index sits above page content but below the site header/nav (3000/3001) so an open
   site menu covers it. */
.et-preview-toggle {
  position: fixed;
  right: 18px;
  top: 88px;
  z-index: 2900;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid rgba(20, 30, 14, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.16);
  backdrop-filter: saturate(1.1) blur(2px);
}

.et-preview-toggle__button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6a7363;
  padding: 4px 11px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.et-preview-toggle__button:hover {
  color: #1f2a18;
}

.et-preview-toggle__button.is-active {
  background: #415c2f;
  color: #fff;
}

.et-portfolio-layout.is-map-view .et-technical-rail {
  min-height: 620px;
}

.et-portfolio-layout.is-overview-view {
  grid-template-columns: 1fr;
}

.et-portfolio-layout.is-overview-view .et-tree-panel {
  grid-column: 1 / -1;
}

.et-overview-heatmap-shell {
  width: 100%;
}

.et-overview-heatmap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 6px;
  align-items: stretch;
}

.et-overview-tile {
  appearance: none;
  width: 100%;
  min-height: 76px;
  padding: 8px 9px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 4px;
  grid-column: span var(--et-tile-span, 1);
  overflow: hidden;
  box-shadow: none;
  transition: transform 120ms ease, filter 120ms ease;
}

.et-overview-tile:hover,
.et-overview-tile:focus-visible {
  transform: scale(1.01);
  filter: brightness(1.03);
  outline: none;
  position: relative;
  z-index: 2;
}

.et-overview-tile.is-complete {
  background:
    linear-gradient(135deg, rgba(23, 143, 66, 0.98), rgba(49, 182, 96, 0.96));
}

.et-overview-tile.is-incomplete {
  background:
    linear-gradient(135deg, rgba(173, 36, 36, 0.98), rgba(225, 82, 73, 0.96));
}

.et-overview-tile__rank {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.et-overview-tile strong {
  display: block;
  font-family: "Spline Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.55rem, 0.95vw, 1rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.et-tabs {
  display: grid;
  gap: 14px;
}

.et-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 4;
  touch-action: manipulation;
}

.et-tabs__button,
.et-inline-button,
.et-chip-button {
  appearance: none;
  border: 1px solid #888;
  background: #f4f4f4;
  color: #222;
  font: inherit;
  cursor: pointer;
}

.et-tabs__button {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 15px;
  position: relative;
  z-index: 4;
  touch-action: manipulation;
  pointer-events: auto;
}

.et-tabs__button.is-active {
  background: #e9e9e9;
  color: #222;
}


.et-tabs__panel {
  display: none;
}

.et-tabs__panel.is-active {
  display: block;
}

.et-ai-grid {
  display: grid;
  gap: 16px;
}

.et-ai-prompt {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(24, 19, 14, 0.1);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.78);
  color: rgba(24, 19, 14, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  max-height: 28rem;
  overflow: auto;
}

.et-empty {
  padding: 0.25rem 0;
}

.et-empty h2,
.et-technical-card h3,
.et-section-title,
.et-detail-title {
  margin: 0;
  font-family: var(--jh-font-display);
}

.et-empty p,
.et-detail-lede,
.et-prose,
.et-note-list,
.et-note-text {
  color: rgba(24, 19, 14, 0.8);
  line-height: 1.75;
}

.et-sequence-block {
  color: rgba(24, 19, 14, 0.8);
}

.et-sequence-block p,
.et-sequence-block li {
  white-space: pre-wrap;
}

.et-sequence-block code,
.et-sequence-block p,
.et-sequence-block li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

.et-ref-sup {
  margin-left: 0.12rem;
  font-size: 0.68em;
  vertical-align: super;
}

.et-ref-sup a {
  color: rgba(126, 66, 16, 0.9);
  text-decoration: none;
}

.et-reference-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.et-reference-list li {
  color: rgba(24, 19, 14, 0.82);
  line-height: 1.7;
}

.et-reference-list p {
  margin: 0;
}

.et-reference-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(24, 19, 14, 0.66);
}

.et-reference-card {
  padding: 16px 18px;
  border: 1px solid rgba(24, 19, 14, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(252, 249, 243, 0.95), rgba(247, 242, 233, 0.9));
  box-shadow: 0 8px 20px rgba(24, 19, 14, 0.05);
}

.et-reference-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.et-reference-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(126, 66, 16, 0.1);
  color: rgba(106, 54, 11, 0.92);
  font-size: 0.88rem;
  font-weight: 700;
}

.et-reference-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.et-reference-title-wrap {
  min-width: 0;
}

.et-reference-title {
  display: inline;
  font-weight: 600;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.et-reference-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 19, 14, 0.05);
  border: 1px solid rgba(24, 19, 14, 0.08);
  color: rgba(24, 19, 14, 0.72);
  font-size: 0.78rem;
  line-height: 1.2;
}

.et-reference-note {
  font-size: 0.92rem;
  color: rgba(24, 19, 14, 0.72);
}

.et-reference-claims {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 19, 14, 0.08);
}

.et-reference-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(24, 19, 14, 0.5);
}

.et-detail-head {
  display: grid;
  gap: 10px;
}

.et-detail-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--et-soft);
}

.et-detail-title {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.et-detail-lede {
  margin: 0;
}

.et-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.et-stat-grid + .et-stat-grid {
  margin-top: 2px;
}

.et-technical-card,
.et-fold {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.et-technical-card h3 {
  font-size: 1.02rem;
  color: #444;
  border-left: 0;
  padding-left: 0;
  font-family: "Aboreto", cursive;
  letter-spacing: 0;
  text-transform: none;
}

.et-technical-card h4 {
  margin: 1rem 0 0.45rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(24, 19, 14, 0.62);
}

.et-technical-card--wide {
  grid-column: span 1;
}

.et-stat-list,
.et-note-list,
.et-chip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.et-stat-list li + li,
.et-note-list li + li,
.et-chip-list li + li {
  margin-top: 0.5rem;
}

.et-meta-grid {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  gap: 0.55rem 0.9rem;
  margin: 0;
}

.et-meta-grid dt {
  color: var(--et-soft);
}

.et-meta-grid dd {
  margin: 0;
}

.et-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.et-chip-list li {
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

.et-fold summary {
  cursor: pointer;
  font-family: var(--jh-font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.et-fold[open] summary {
  margin-bottom: 12px;
}

.et-code {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--et-code-bg);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.et-inline-link {
  color: inherit;
  text-decoration-color: rgba(24, 19, 14, 0.26);
}

.et-inline-node-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: rgba(88, 52, 18, 0.96);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(88, 52, 18, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  box-shadow: none;
  border-radius: 0;
}

.et-inline-node-link:hover,
.et-inline-node-link:focus-visible {
  color: rgba(62, 34, 10, 1);
  text-decoration-color: currentColor;
  outline: none;
}

.et-inline-button {
  padding: 7px 11px;
  border-radius: 4px;
}

.et-card-actions {
  margin: 0.75rem 0 0;
}

.et-chip-list--interactive li {
  padding: 0;
  background: transparent;
  border: 0;
}

/* Taxon chip pill — the var-based light pill shared with the Map (.jh-safari-badge)
   and Safari surfaces. Overrides the dark base rule (#888 / #f4f4f4 / #222). */
.et-chip-button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--jh-line);
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.et-chip-button:hover,
.et-chip-button:focus-visible {
  background: var(--jh-accent);
  border-color: var(--jh-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.14);
  outline: none;
}

.et-chip-button.is-active {
  background: var(--jh-bg-alt);
  border-color: var(--jh-accent);
  color: var(--jh-text);
}

.et-map-actions {
  margin: 1rem 0 0.8rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.et-tree-root .jh-treeviz__node--branch.is-active,
.et-tree-root .jh-treeviz__phylum.is-active {
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  transform: none;
  border-color: rgba(24, 19, 14, 0.24);
}

@media (max-width: 980px) {
  .et-breadcrumb-wrap {
    grid-template-columns: 1fr;
  }

  .et-breadcrumb-wrap .et-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .et-portfolio-layout.is-tree-view,
  .et-portfolio-layout.is-map-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .et-status-bar__inner,
  .et-status-bar__stats {
    grid-template-columns: 1fr;
  }

  .et-search {
    grid-column: 1 / -1;
    max-width: none;
  }

  .et-stat-grid,
  .et-meta-grid,
  .et-grid-two {
    grid-template-columns: 1fr;
  }

  .et-media-toolbar {
    grid-template-columns: 1fr;
  }

  .et-technical-card--wide {
    grid-column: auto;
  }

  .et-overview-heatmap {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .et-portfolio-layout.is-tree-view .et-tree-panel,
  .et-portfolio-layout.is-map-view .et-map-panel,
  .et-portfolio-layout.is-tree-view .et-technical-rail,
  .et-tree-panel,
  .et-map-panel,
  .et-technical-rail {
    grid-column: 1 / -1;
    min-height: auto;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .et-portfolio-layout.is-tree-view .et-technical-rail,
  .et-technical-rail {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0;
    overscroll-behavior: auto;
  }

  .et-technical-rail .jh-photo-rail__title {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  .et-tabs__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }

  .et-tabs__button {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  .et-media-toolbar {
    gap: 10px;
  }

  .et-media-toolbar input,
  .et-media-toolbar select,
  .et-media-toolbar button {
    width: 100%;
    min-height: 44px;
  }

  .et-tree-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .et-tree-root .jh-treeviz__scene {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0 0 12px;
    box-sizing: border-box;
  }

  .et-tree-root .jh-treeviz__group {
    width: clamp(142px, 42vw, 188px);
  }

  .et-tree-root .jh-treeviz__node--branch {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px;
  }

  .et-tree-root .jh-treeviz__phylum,
  .et-tree-root .jh-treeviz__node--branch {
    width: min(100%, 188px);
    max-width: calc(100% - 14px);
  }

  .et-tree-root .jh-treeviz__phylum strong,
  .et-tree-root .jh-treeviz__node--branch strong {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .et-tree-root .jh-treeviz__phylum em,
  .et-tree-root .jh-treeviz__node--branch em,
  .et-tree-root .jh-treeviz__common-name {
    overflow-wrap: anywhere;
  }

  .et-node-gallery .jh-photo-grid,
  .et-node-gallery--media-tab .jh-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 12px;
  }

  .et-node-gallery .jh-photo-card,
  .et-node-gallery--media-tab .jh-photo-card {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .et-search__controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .et-search__button {
    width: auto;
    padding-inline: 14px;
  }

  .et-tree-root .jh-treeviz__scene {
    min-height: 0;
  }

  .et-tree-root .jh-treeviz__group {
    width: clamp(132px, 44vw, 160px);
  }

  .et-node-gallery .jh-photo-grid,
  .et-node-gallery--media-tab .jh-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Safari badge row — links from a taxon node to the photo safaris whose archive covers it.
   Rendered into [data-et-meta] by evolution-technical.js (safariBadgesHtml). */
.et-meta-summary {
  display: block;
}

.et-safari-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.et-safari-badges__label {
  font-family: var(--jh-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jh-muted);
  margin-right: 2px;
}

/* Chip styling mirrors .jh-safari-badge in john-safaris-clean.css exactly —
   explicit font-family/transform so chips rendered inside the tree-view meta
   (serif display font, uppercase) don't inherit it. */
.et-safari-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--jh-line);
  border-radius: 999px;
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.et-safari-badge:hover,
.et-safari-badge:focus-visible {
  background: var(--jh-accent);
  border-color: var(--jh-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.14);
  outline: none;
}

/* Species badge row — archive species under an Order/Family/Genus node, rendered
   above the Photo safaris row by archiveSpeciesBadgesHtml. Mirrors the safari chips. */
.et-species-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.et-species-badges__label {
  font-family: var(--jh-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jh-muted);
  margin-right: 2px;
}

.et-species-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--jh-line);
  border-radius: 999px;
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.et-species-badge--static {
  cursor: default;
}

button.et-species-badge:hover,
button.et-species-badge:focus-visible {
  background: var(--jh-accent);
  border-color: var(--jh-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.14);
  outline: none;
}

/* "Found in" location badge row — surfaced at the top of a species node's detail
   panel (renderDetail → speciesFoundInRowHtml). Each badge opens the /map view
   scoped to that continent / country / location. */
.et-found-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--jh-line);
}
.et-found-in[hidden] {
  display: none;
}
.et-found-in__label {
  font-family: var(--jh-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jh-muted);
  margin-right: 2px;
}
.et-found-in__badges {
  display: contents;
}
.et-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 1px solid var(--jh-line);
  border-radius: 999px;
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}
/* Matches .jh-safari-badge__icon (john-safaris-clean.css) so the location pin is
   identical to the safari pages: filled, dimmed, full opacity on hover. */
.et-location-badge__pin {
  width: 13px;
  height: 13px;
  flex: none;
  fill: currentColor;
  opacity: 0.55;
}
.et-location-badge:hover .et-location-badge__pin,
.et-location-badge:focus-visible .et-location-badge__pin {
  opacity: 1;
}
.et-location-badge:hover,
.et-location-badge:focus-visible {
  background: var(--jh-accent);
  border-color: var(--jh-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.14);
  outline: none;
}

/* Collapsible wildlife class groups (Mammals / Birds / Reptiles …). Shared look
   with the Map (.jh-taxa-group) + Safari surfaces. Native <details>/<summary>. */
.et-taxa-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 9px;
}
.et-taxa-group {
  flex: 0 1 auto;
}
.et-taxa-group[open] {
  flex-basis: 100%;
}
.et-taxa-group__header {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--jh-line);
  background: var(--jh-panel);
  color: var(--jh-text);
  font-family: var(--jh-font-body);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.et-taxa-group__header::-webkit-details-marker { display: none; }
.et-taxa-group__header:hover {
  background: var(--jh-accent);
  color: #fff;
  border-color: var(--jh-accent);
}
.et-taxa-group__icon { width: 14px; height: 14px; flex: none; fill: currentColor; opacity: 0.6; }
.et-taxa-group__header:hover .et-taxa-group__icon { opacity: 1; }
.et-taxa-group__name { font-weight: 400; }
.et-taxa-group__count {
  background: rgba(23, 21, 17, 0.1);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.72rem;
}
.et-taxa-group__header::after {
  content: "›";
  margin-left: 2px;
  opacity: 0.55;
  transition: transform 150ms ease;
}
.et-taxa-group[open] .et-taxa-group__header::after { transform: rotate(90deg); }
.et-taxa-group__tray {
  margin-top: 9px;
}
.et-taxa-group__tray .et-chip-list {
  gap: 9px;
}
.et-taxa-group__tray .et-chip-list li + li {
  margin-top: 0;
}

/* Animal-class glyph shown in a taxon card's rank eyebrow (paw / bird / reptile). */
.et-class-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -0.22em;
  margin-right: 5px;
  fill: rgba(34, 34, 34, 0.66);
}

/* ── On-page "Featured group" control, inline beside the node name ──────────
   (dev/Offline only). Small/normal-case so it sits quietly next to the big
   heading rather than inheriting its display type. */
.et-milestone-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 12px;
  vertical-align: middle;
  font-family: var(--jh-font-body, "Inter", system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  color: rgba(34, 34, 34, 0.6);
}
.et-milestone-inline__toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.22);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}
.et-milestone-inline__toggle.is-on {
  background: #c79a26;
}
.et-milestone-inline__knob {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.et-milestone-inline__toggle.is-on .et-milestone-inline__knob {
  transform: translateX(17px);
}

/* Node title: common-name headline + Latin name underneath in grey. */
.et-detail-title__primary {
  display: inline;
}
.et-detail-title__sci {
  display: block;
  margin-top: 5px;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(34, 34, 34, 0.5);
}
.et-detail-title__sci.is-binomial {
  font-style: italic;
}

/* Gold star on a tree card whose group is featured (replaces the class glyph).
   Specificity must beat `.et-tree-root .jh-treeviz__node--branch span`. */
.et-tree-root .jh-treeviz__node--branch span .jh-treeviz__star {
  display: inline-block;
  margin-right: 5px;
  color: #c79a26;
  font-size: 0.82rem;
  line-height: 1;
  vertical-align: middle;
}

/* Dev-only "Iconic groups" panel (fixed, bottom-left). */
.et-iconic-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1400;
  width: 230px;
  max-width: calc(100vw - 32px);
}
.et-iconic-panel__head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(34, 34, 34, 0.2);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
}
.et-iconic-panel__star { color: #c79a26; }
.et-iconic-panel__list {
  margin-top: 6px;
  max-height: 50vh;
  overflow: auto;
  border: 1px solid rgba(34, 34, 34, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  padding: 4px;
}
.et-iconic-panel.is-collapsed .et-iconic-panel__list { display: none; }
.et-iconic-panel__empty {
  padding: 10px;
  font-size: 0.76rem;
  color: rgba(34, 34, 34, 0.6);
  line-height: 1.4;
}
.et-iconic-panel__item { display: flex; align-items: center; gap: 4px; }
.et-iconic-panel__name {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.et-iconic-panel__name:hover { background: rgba(199, 154, 38, 0.1); }
.et-iconic-panel__name span {
  font-size: 0.82rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.et-iconic-panel__name small { font-size: 0.66rem; color: rgba(34, 34, 34, 0.5); }
.et-iconic-panel__remove {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(34, 34, 34, 0.5);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.et-iconic-panel__remove:hover { background: rgba(220, 60, 60, 0.12); color: #c0392b; }
