/* ============================================================
   ICHNOS HOMEPAGE  —  static/home.css
   Loaded only by wiki/pages/home.html, through
   {% block extra_css %} in layout.html.
   Loads after style.css, so it wins any specificity tie.
   ============================================================ */

/* ---------- HOMEPAGE BACKGROUND ---------- */

body.home {
  background-color: var(--color-bg-hp);
  background-image: url("https://static.igem.wiki/teams/6459/wiki/home-page/bw-light.avif");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}
body.home .bg-hero { background-color: transparent; }
:root[data-theme="dark"] body.home {
  background-image: url("https://static.igem.wiki/teams/6459/wiki/home-page/color-dark.avif");
  background-color: var(--color-bg-dark-hp);
}

/* The ICHNOS logo is the masthead, so the hero band carries no text.
   The padding-top still has to clear the floating nav. */
body.home .bg-hero h1,
body.home .bg-hero .lead { display: none; }

body.home .bg-hero {
  padding-top: calc(var(--nav-top) + var(--nav-h) + 1rem) !important;
  padding-bottom: 0 !important;
  margin-bottom: 1.5rem !important;
}

@media (max-width: 760px) {
  body.home { background-size: auto 80svh; }
}

/* ============================================================
   ICHNOS HOMEPAGE
   Everything is scoped to .ichnos-home and prefixed ih- so it
   cannot reach Bootstrap's .row / .card / .btn / .nav, and the
   bare `svg` rule can't touch your footer or nav icons.
   ============================================================ */

.ichnos-home {
  --ih-fg:    #190F4F;
  --ih-ttl:   #634BE0;
  --ih-pu:    #634BE0;
  --ih-card:  #F3F0FC;
  --ih-line:  #D6D0F0;
  --ih-btn-fg:#190F4F;
  --ih-sh:    rgba(40, 30, 80, .22);
  --ih-gl1:   rgba(255, 255, 255, .7);
  --ih-gl2:   rgba(255, 255, 255, .18);
  --ih-ghi:   rgba(255, 255, 255, .95);
  --ih-glo:   rgba(99, 75, 224, .28);
  --ih-gsh:   rgba(60, 40, 140, .18);
  color: var(--ih-fg);
}

:root[data-theme="dark"] .ichnos-home {
  --ih-fg:    #D2CBF7;
  --ih-ttl:   #C7A1EF;
  --ih-pu:    #C7A1EF;
  --ih-card:  #1C1640;
  --ih-line:  #3A3366;
  --ih-btn-fg:#D2CBF7;
  --ih-sh:    rgba(0, 0, 0, .5);
  --ih-gl1:   rgba(255, 255, 255, .2);
  --ih-gl2:   rgba(255, 255, 255, .05);
  --ih-ghi:   rgba(255, 255, 255, .4);
  --ih-glo:   rgba(199, 161, 239, .25);
  --ih-gsh:   rgba(0, 0, 0, .4);
}

.ichnos-home * { box-sizing: border-box; }
.ichnos-home section { max-width: 1100px; margin: 0 auto 96px; }
.ichnos-home section:last-child { margin-bottom: 0; }

.ichnos-home h2 {
  color: var(--ih-ttl);
  font-weight: 900;
  font-size: clamp(26px, 4.4vw, 42px);
  margin: 0 0 14px;
  letter-spacing: -.015em;
  line-height: 1.1;
  text-wrap: balance;
}
.ichnos-home h2.ih-up { text-transform: uppercase; letter-spacing: .02em; }

.ichnos-home p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.ichnos-home .ih-lead {
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.35;
  font-weight: 500;
  text-align: left;
}
.ichnos-home .ih-lead-narrow { max-width: 48ch; }
.ichnos-home .ih-center { text-align: center; }
.ichnos-home .ih-center-text { text-align: center; }

.ichnos-home .ih-one {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ih-ttl);
  margin: 34px 0 18px;
}

/* ---------- intro logo ---------- */
.ichnos-home .ih-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ichnos-home .ih-intro { max-width: 1200px; text-align: center; margin: 0 auto 56px; }
.ichnos-home .ih-logo {
  display: block;
  width: min(690px, 88%);
  height: auto;
  margin: 0 auto;
  fill: var(--ih-ttl);
  animation: ih-logoin 4.5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes ih-logoin {
  from { opacity: 0; filter: blur(18px); transform: scale(1.10); }
  to   { opacity: 1; filter: blur(0);    transform: scale(1); }
}

/* ---------- living background ---------- */
.ichnos-home .ih-intro { position: relative; padding-block: 1.5rem 0; }
.ichnos-home .ih-ambient {
  position: absolute;
  inset: -2% -4%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.ichnos-home .ih-intro > *:not(.ih-ambient) { position: relative; z-index: 1; }


.ichnos-home .ih-bloom {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
  filter: blur(26px);
  opacity: 0;
  animation: ih-bloom 8s ease-in-out infinite;
}
.ichnos-home .ih-bloom-1 { left: 7%;  top: 52%; width: clamp(90px, 13vw, 170px); background: #ff3b4e; }
.ichnos-home .ih-bloom-2 { right: 9%; top: 30%; width: clamp(70px, 10vw, 130px); background: #2fd96b; animation-delay: 1.1s; }
@keyframes ih-bloom {
  0%, 6% { opacity: 0;   transform: scale(.6); }
  18%    { opacity: .55; transform: scale(1); }
  82%    { opacity: .35; transform: scale(1); }
  100%   { opacity: 0;   transform: scale(1.05); }
}

.ichnos-home .ih-scroll {
  display: block;
  width: 26px; height: 26px;
  margin: 18px auto 0;
  color: var(--ih-ttl);
  animation: ih-bob-c 2.6s ease-in-out infinite;
}
.ichnos-home .ih-scroll svg { display: block; width: 100%; height: 100%; }
@keyframes ih-bob-c { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- glass button ---------- */
.ichnos-home .ih-btn {
  display: inline-block;
  font: 500 15px inherit;
  border-radius: 99px;
  padding: 13px 28px;
  color: var(--ih-btn-fg);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, var(--ih-gl1), var(--ih-gl2));
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
          backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1.5px 0 var(--ih-ghi),
    inset 0 -1.5px 0 var(--ih-glo),
    inset 0 0 0 .5px var(--ih-glo),
    0 8px 24px var(--ih-gsh);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1.2), box-shadow .3s;
}
.ichnos-home .ih-btn:hover {
  color: var(--ih-btn-fg);
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    inset 0 1.5px 0 var(--ih-ghi),
    inset 0 -1.5px 0 var(--ih-glo),
    inset 0 0 0 .5px var(--ih-glo),
    0 14px 30px var(--ih-gsh);
}
.ichnos-home .ih-btn:active { transform: scale(.97); }
.ichnos-home .ih-btn:focus-visible { outline: 2px solid var(--ih-ttl); outline-offset: 3px; }
.ichnos-home .ih-cta { text-align: center; margin-top: 26px; }
.ichnos-home #ih-go { text-transform: uppercase; font-weight: 700; letter-spacing: .07em; }

/* ---------- three answer chips ---------- */
.ichnos-home .ih-chips {
  display: flex;
  gap: clamp(12px, 2vw, 22px);
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}
.ichnos-home .ih-chips span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1 1 220px;
  max-width: 300px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ih-ttl);
  padding: 34px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ih-gl1), var(--ih-gl2));
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
          backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1.5px 0 var(--ih-ghi),
    inset 0 -1.5px 0 var(--ih-glo),
    inset 0 0 0 .5px var(--ih-glo),
    0 8px 24px var(--ih-gsh);
}

/* ---------- cell figure ---------- */
.ichnos-home .ih-fig { position: relative; max-width: 540px; margin: 44px auto 0; }
.ichnos-home .ih-box { position: relative; }
.ichnos-home .ih-box > .ih-ci,
.ichnos-home .ih-box > svg { display: block; width: 100%; height: auto; user-select: none; }
.ichnos-home .ih-box > svg { position: absolute; inset: 0; height: 100%; pointer-events: none; }

.ichnos-home .ih-ci.ih-d { display: none; }
:root[data-theme="dark"] .ichnos-home .ih-ci.ih-l { display: none; }
:root[data-theme="dark"] .ichnos-home .ih-ci.ih-d { display: block; }

.ichnos-home #ih-sn circle,
.ichnos-home #ih-sg circle { opacity: 0; }

.ichnos-home .ih-cap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
  margin-top: 4%;
}
.ichnos-home .ih-cap h3 {
  color: var(--ih-ttl);
  margin: 0;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- stress control ---------- */
.ichnos-home .ih-ctl {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
.ichnos-home .ih-ctl-row { width: 100%; text-align: center; }
.ichnos-home input[type="range"] {
  -webkit-appearance: none;
          appearance: none;
  flex: 0 1 320px;
  min-width: 160px;
  height: 9px;
  border-radius: 99px;
  outline: none;
  cursor: pointer;
  --ih-th: #2fd96b;
}
.ichnos-home input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ih-th);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px var(--ih-gsh);
}
.ichnos-home input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ih-th);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px var(--ih-gsh);
}
.ichnos-home input[type="range"]::-moz-range-track { background: transparent; }

/* ---------- three modules ---------- */
.ichnos-home .ih-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  max-width: 780px;
  margin: 18px auto 0;
}
.ichnos-home .ih-col { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.ichnos-home .ih-col .ih-mod { flex: none; order: -1; }
.ichnos-home .ih-col .ih-bio { width: 100%; max-width: 440px; margin: 0 auto; }
.ichnos-home .ih-three .ih-col:nth-child(2) .ih-bio { margin-top: 22px; }
.ichnos-home .ih-bio svg { display: block; width: 100%; height: auto; }

.ichnos-home .ih-mod {
  background: linear-gradient(135deg, var(--ih-gl1), var(--ih-gl2));
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
          backdrop-filter: blur(18px) saturate(1.8);
  border-radius: 20px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow:
    inset 0 1.5px 0 var(--ih-ghi),
    inset 0 -1.5px 0 var(--ih-glo),
    inset 0 0 0 .5px var(--ih-glo),
    0 8px 24px var(--ih-gsh);
}
.ichnos-home .ih-mod::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ih-bar);
  opacity: .07;
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="dark"] .ichnos-home .ih-mod::after { opacity: .1; }
.ichnos-home .ih-mod h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ih-ttl);
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(19px, 2vw, 22px);
}
.ichnos-home .ih-mod p { font-size: clamp(16px, 1.7vw, 18px); margin: 0; }

/* ---------- schematic animations ---------- */
.ichnos-home .ih-bio * { animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
.ichnos-home .ih-ros,
.ichnos-home .ih-tipd { transform-box: fill-box; transform-origin: center; }

.ichnos-home .ih-ros { --ih-dx: 0px; --ih-dy: 0px; fill: #ff3b4e; animation: ih-ros 7s infinite; }
@keyframes ih-ros {
  0%   { transform: translate(0, 0); opacity: 0; }
  5%   { opacity: 1; }
  24%  { transform: translate(var(--ih-dx), var(--ih-dy)); opacity: 1; }
  29%  { transform: translate(var(--ih-dx), var(--ih-dy)) scale(.3); opacity: 0; }
  100% { opacity: 0; transform: translate(var(--ih-dx), var(--ih-dy)) scale(.3); }
}
.ichnos-home .ih-tipi { animation: ih-tipi 7s infinite; }
@keyframes ih-tipi { 0%, 28% { opacity: 0; } 36%, 66% { opacity: 1; } 84%, 100% { opacity: 0; } }

.ichnos-home .ih-tipd {
  fill: #ff9a3c; stroke: #fff; stroke-width: 1.5;
  animation: ih-tipd 7s infinite; opacity: 0;
}
@keyframes ih-tipd {
  0%, 34% { opacity: 0; transform: translate(0, 0); }
  40%     { opacity: 1; }
  68%     { opacity: 1; transform: translate(var(--ih-dx), var(--ih-dy)); }
  74%, 100% { opacity: 0; transform: translate(var(--ih-dx), var(--ih-dy)); }
}

.ichnos-home .ih-p2 { animation: ih-p2f 9s infinite; }
@keyframes ih-p2f { 0%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
.ichnos-home .ih-p2 image { transform-box: fill-box; transform-origin: center; }

.ichnos-home .ih-p2 .ih-a3 { opacity: 0; animation: ih-a3 9s infinite; }
@keyframes ih-a3 { 0%, 4% { opacity: 0; } 10%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }
.ichnos-home .ih-p2 .ih-tl,
.ichnos-home .ih-p2 .ih-tl2 { animation-name: ih-a3l; }
@keyframes ih-a3l { 0%, 6% { opacity: 0; } 12%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }

.ichnos-home .ih-p2 .ih-tt { opacity: 0; animation: ih-tt 9s infinite; }
@keyframes ih-tt {
  0%, 6%   { opacity: 0; transform: scale(.4); }
  12%, 30% { opacity: 1; transform: scale(1); }
  38%      { opacity: 0; transform: translate(-150px, 18px) scale(.8); }
  100%     { opacity: 0; transform: translate(-150px, 18px); }
}
.ichnos-home .ih-p2 .ih-td {
  opacity: 0;
  animation: ih-td 9s infinite;
  animation-delay: calc(var(--ih-i) * .06s);
}
@keyframes ih-td {
  0%, 13%  { opacity: 0; transform: translateX(-30px); }
  20%, 30% { opacity: 1; transform: translateX(0); }
  38%      { opacity: 0; transform: translate(170px, 0) scale(.7); }
  100%     { opacity: 0; transform: translate(170px, 0); }
}
.ichnos-home .ih-p2 .ih-a4 { opacity: 0; animation: ih-a4 9s infinite; }
@keyframes ih-a4 { 0%, 14% { opacity: 0; } 20%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }
.ichnos-home .ih-p2 .ih-a5 { opacity: 0; animation: ih-a5 9s infinite; }
@keyframes ih-a5 { 0%, 22% { opacity: 0; } 28%, 33% { opacity: 1; } 38%, 100% { opacity: 0; } }
.ichnos-home .ih-p2 .ih-blk { opacity: 0; animation: ih-blk 9s infinite; }
@keyframes ih-blk {
  0%, 36%  { opacity: 0; transform: scale(.4); }
  44%      { opacity: 1; transform: scale(1.08); }
  48%, 93% { opacity: 1; transform: scale(1); }
  100%     { opacity: 1; }
}
.ichnos-home .ih-p2 .ih-b2r { animation: ih-b2r 9s infinite; }
@keyframes ih-b2r { 0%, 44% { opacity: .35; } 54%, 100% { opacity: 1; } }
.ichnos-home .ih-p2 .ih-chv { opacity: 0; animation: ih-chv 9s infinite; }
@keyframes ih-chv { 0%, 52% { opacity: 0; transform: translateY(-18px); } 58%, 100% { opacity: 1; transform: translateY(0); } }
.ichnos-home .ih-p2 .ih-od {
  opacity: 0;
  animation: ih-od 9s infinite;
  animation-delay: calc(var(--ih-i) * .1s);
}
@keyframes ih-od {
  0%, 56%   { opacity: 0; transform: translateY(-26px) scale(.3); }
  66%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}
:root[data-theme="dark"] .ichnos-home .ih-p2 .ih-ink { filter: brightness(0) invert(.92); }

/* ---------- flip cards ---------- */
.ichnos-home .ih-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2px, .6vw, 8px);
  margin: 36px auto 0;
  max-width: 1200px;
}
.ichnos-home .ih-card {
  aspect-ratio: 1;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
  filter: drop-shadow(0 8px 14px var(--ih-sh));
  transition: filter .4s;
}
.ichnos-home .ih-card:hover,
.ichnos-home .ih-card:focus-visible { filter: drop-shadow(0 14px 22px rgba(40, 30, 30, .3)); }
.ichnos-home .ih-card:focus-visible { outline: 2px solid var(--ih-ttl); outline-offset: 6px; border-radius: 12px; }

.ichnos-home .ih-float {
  width: 100%; height: 100%;
  animation: ih-bob 5s ease-in-out infinite;
  animation-delay: var(--ih-d);
}
@keyframes ih-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.ichnos-home .ih-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .85s cubic-bezier(.2, .8, .2, 1.12);
}
.ichnos-home .ih-face {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

.ichnos-home .ih-front { transform: scale(1.35); }
.ichnos-home .ih-back  { transform: rotateY(180deg) scale(1.35); }
@media (hover: hover) and (pointer: fine) {
  .ichnos-home .ih-card:hover .ih-inner { transform: rotateY(180deg); }
}
.ichnos-home .ih-card.ih-on .ih-inner { transform: rotateY(180deg); }

/* ---------- explore links ---------- */
.ichnos-home .ih-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(6px, .9vw, 16px);
  margin: 40px auto 0;
  max-width: 1100px;
}


.ichnos-home .ih-nb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;   
  text-decoration: none;
  color: var(--ih-fg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.25;
  text-align: center;
  min-width: 0;
}
.ichnos-home .ih-nb:hover { color: var(--ih-fg); text-decoration: none; }
.ichnos-home .ih-nb img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px var(--ih-sh));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), filter .35s;
  transform: scale(1.3);
}
.ichnos-home .ih-nb:hover img,
.ichnos-home .ih-nb:focus-visible img { transform: translateY(-6px) scale(1.38); }
.ichnos-home .ih-nb:focus-visible { outline: 2px solid var(--ih-ttl); outline-offset: 6px; border-radius: 12px; }
.ichnos-home .ih-nb-label { color: var(--ih-fg); }

@media (max-width: 760px) {
  .ichnos-home .ih-nav { flex-wrap: wrap; gap: 18px 10px; }
  .ichnos-home .ih-nb  { flex: 0 1 clamp(76px, 20vw, 110px); }
}

/* ---------- reveal on scroll ---------- */
.ichnos-home .ih-rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.ichnos-home .ih-rv.ih-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ichnos-home .ih-rv { opacity: 1; transform: none; transition: none; }
  .ichnos-home .ih-float,
  .ichnos-home .ih-logo { animation: none; }
  .ichnos-home .ih-inner { transition: none; }
  .ichnos-home .ih-bio * { animation: none !important; }
  .ichnos-home .ih-ros,
  .ichnos-home .ih-tipd { opacity: 0; }
  .ichnos-home .ih-p2,
  .ichnos-home .ih-p2 * { animation: none !important; }
  .ichnos-home .ih-p2 .ih-a3,
  .ichnos-home .ih-p2 .ih-tt,
  .ichnos-home .ih-p2 .ih-td,
  .ichnos-home .ih-p2 .ih-a5 { opacity: 0; }
  .ichnos-home .ih-p2 .ih-a4,
  .ichnos-home .ih-p2 .ih-a3.ih-tl,
  .ichnos-home .ih-p2 .ih-blk,
  .ichnos-home .ih-p2 .ih-chv,
  .ichnos-home .ih-p2 .ih-od,
  .ichnos-home .ih-p2 .ih-b2r { opacity: 1; }
  .ichnos-home .ih-bloom,
  .ichnos-home .ih-scroll { animation: none; }
  .ichnos-home .ih-bloom { opacity: .3; }
}


/* ============================================================
   STORY SCENES
   The narrative sections: tagline, problem, impact, modularity
   and closing. Everything is prefixed ih- and scoped to
   .ichnos-home, same as the rest of this file.
   ============================================================ */

.ichnos-home .ih-eyebrow {
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ih-ttl);
  text-align: center;
  margin: 0 0 22px;
}

/* shared scene frame */
.ichnos-home .ih-scene {
  min-height: 88svh;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.ichnos-home .ih-scene-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 84px) clamp(16px, 4vw, 36px);
}
.ichnos-home .ih-scene h2 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-align: center;
  margin: 0 0 26px;
}
.ichnos-home .ih-scene h2 em { font-style: normal; color: var(--ih-ttl); }
.ichnos-home .ih-scene .ih-lead { text-align: center; max-width: 60ch; margin-inline: auto; }
.ichnos-home .ih-scene p { max-width: 70ch; margin-inline: auto; text-align: center; hyphens: none; -webkit-hyphens: none; }
/* 2. tagline */

.ichnos-home .ih-tagline h2 {
  font-size: clamp(42px, 8vw, 92px);
  line-height: .94;
  letter-spacing: -.06em;
  color: var(--ih-fg);
  margin: 0;
}
.ichnos-home .ih-tagline h2 span,
.ichnos-home .ih-closing h2 span { color: var(--ih-ttl); }
.ichnos-home .ih-tagline-sub {
  text-align: center;
  font-size: clamp(20px, 2.6vw, 27px);
  margin-top: 22px;
}

/* the invisible resolving */
.ichnos-home .ih-tagline.ih-vis h2 span {
  animation: ih-reveal .7s cubic-bezier(.2, .8, .2, 1) .25s both;
}
@keyframes ih-reveal {
  from { opacity: 0; filter: blur(10px); }
  to   { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ichnos-home .ih-tagline.ih-vis h2 span { animation: none; }
}

/* 3. problem */

.ichnos-home .ih-problem-main,
.ichnos-home .ih-problem-q { display: block; }
.ichnos-home .ih-problem-q { color: var(--ih-ttl); }
.ichnos-home .ih-problem-turn {
  text-align: center;
  font-size: clamp(23px, 3.8vw, 45px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 900;
  color: var(--ih-ttl);
  max-width: 850px;
  margin: clamp(22px, 4vw, 42px) auto 0;
}

/* 4. impact */
.ichnos-home .ih-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 22px;
}
.ichnos-home .ih-stat-card {
  border: 1px solid var(--ih-line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(135deg, var(--ih-gl1), var(--ih-gl2));
  box-shadow: 0 8px 24px var(--ih-gsh);
  text-align: center;
}
.ichnos-home .ih-stat-card strong {
  display: block;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--ih-ttl);
  font-weight: 900;
}
.ichnos-home .ih-stat-card p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.35;
  text-align: center;
  margin: 16px 0 0;
}
.ichnos-home .ih-stat-note { font-size: clamp(16px, 1.9vw, 19px); opacity: .9; }
.ichnos-home .ih-sup { font-size: .6em; line-height: 0; vertical-align: super; }
.ichnos-home .ih-sup a { color: var(--ih-ttl); text-decoration: none; }
.ichnos-home .ih-ref {
  max-width: 70ch;
  margin: 18px auto 0;
  padding-left: 1.4em;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}
.ichnos-home .ih-ref li { margin-bottom: 10px; }
.ichnos-home .ih-ref a { color: var(--ih-ttl); word-break: break-word; }

/* references panel */
.ichnos-home .ih-refs { max-width: 820px; }

.ichnos-home .ih-refbox {
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ih-gl1), var(--ih-gl2));
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
          backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1.5px 0 var(--ih-ghi),
    inset 0 -1.5px 0 var(--ih-glo),
    inset 0 0 0 .5px var(--ih-glo),
    0 8px 24px var(--ih-gsh);
  overflow: hidden;
}
.ichnos-home .ih-refbox summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 48px 16px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ih-ttl);
}
.ichnos-home .ih-refbox summary::-webkit-details-marker { display: none; }
.ichnos-home .ih-refbox summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.ichnos-home .ih-refbox[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ichnos-home .ih-refbox summary:focus-visible { outline: 2px solid var(--ih-ttl); outline-offset: -4px; }
.ichnos-home .ih-refbox .ih-ref {
  margin: 0;
  padding: 0 22px 20px 44px;
  animation: ih-reffade .35s ease both;
}
@keyframes ih-reffade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ichnos-home .ih-refbox summary::after,
  .ichnos-home .ih-refbox .ih-ref { transition: none; animation: none; }
}

/* 5. our idea */
.ichnos-home .ih-center-block { margin-inline: auto; text-align: center; }
.ichnos-home .ih-idea-sub {
  text-align: center;
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 20px);
  margin: 0 auto 18px;
}
.ichnos-home .ih-chips span strong {
  font-size: clamp(16px, 1.9vw, 20px);
  letter-spacing: .04em;
}
.ichnos-home .ih-chips span small {
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 20px);
  letter-spacing: .04em;
  opacity: .72;
  text-transform: uppercase;
}

/* 6. how it works */
.ichnos-home #how > h2 { text-align: center; }
.ichnos-home #how > p {
  text-align: center;
  max-width: 70ch;
  margin-inline: auto;
}

/* 7. modularity */
.ichnos-home .ih-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 38px 0 22px;
}
.ichnos-home .ih-flow-mod {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--ih-line);
  border-radius: 20px;
  padding: clamp(18px, 2.8vw, 28px);
  background: linear-gradient(135deg, var(--ih-gl1), var(--ih-gl2));
  box-shadow: 0 8px 24px var(--ih-gsh);
}
.ichnos-home .ih-flow-mod span {
  display: block;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ih-ttl);
  font-weight: 700;
  margin-bottom: 20px;
}
.ichnos-home .ih-flow-mod strong {
  display: block;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.2;
  margin-bottom: 10px;
}
.ichnos-home .ih-flow-mod p { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.5; margin: 0; text-align: left; }
.ichnos-home .ih-flow-join {
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 300;
  color: var(--ih-ttl);
  opacity: .7;
}
.ichnos-home .ih-flow-note { font-size: clamp(16px, 1.8vw, 19px); opacity: .9; }

/* 8. beyond the lab */
.ichnos-home .ih-beyond {
  text-align: center;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  margin: 18px auto 34px;
}

/* 9. closing */

.ichnos-home .ih-closing h2 {
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.12;
}
.ichnos-home .ih-closing { min-height: auto; }
.ichnos-home .ih-closing .ih-scene-inner { padding-block: 32px; }

/* ---------- scroll-linked scene reveal ---------- */
.ichnos-home .ih-scene .ih-scene-inner {
  transition: opacity .55s ease, transform .55s ease;
}
.ichnos-home .ih-scene:not(.ih-vis) .ih-scene-inner {
  opacity: .18;
  transform: translateY(18px);
}
.ichnos-home .ih-scene.ih-vis .ih-scene-inner {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .ichnos-home .ih-scene { min-height: auto; }
  .ichnos-home .ih-tagline { min-height: 82svh; }
  .ichnos-home .ih-closing { min-height: auto; }
  .ichnos-home .ih-scene-inner { padding: 56px 20px; }
  .ichnos-home .ih-stat-grid { grid-template-columns: 1fr; }
  .ichnos-home .ih-flow { grid-template-columns: 1fr; gap: 10px; }
  .ichnos-home .ih-flow-join { transform: rotate(90deg); font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ichnos-home .ih-scene .ih-scene-inner { transition: none; }
  .ichnos-home .ih-scene:not(.ih-vis) .ih-scene-inner { opacity: 1; transform: none; }
}


/* ============================================================
   ONE SENTENCE, ONE LINE
   On wide screens these headings must not wrap mid-sentence.
   Below 900px they fall back to normal wrapping.
   ============================================================ */
@media (min-width: 901px) {
  .ichnos-home .ih-problem-main,
  .ichnos-home .ih-problem-q,
  .ichnos-home .ih-closing h2 span { white-space: nowrap; }
}