/* FIIIZ HOME L3 — isolated normal-flow layout.
   Separate copy / bounded viewport / viewer tools / CTA tracks.
   No negative margins, no intrinsic-image sizing, no fixed homepage CTA. */

#view-home {
  min-height: 0;
  overflow: visible;
}

#view-home .fh-home {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 28px 24px;
  gap: 18px;
  height: auto;
  min-height: 0;
}

#view-home .fh-copy {
  flex: none;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
}

#view-home .fh-title {
  font-size: clamp(36px,4vw,58px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 1px;
  margin: 0 0 12px;
  padding: 0;
}

#view-home .fh-title:focus {
  outline: none;
}

#view-home .fh-subtitle {
  margin: 0;
  padding: 0;
  color: #d2ddc9;
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .3px;
}

#view-home .fh-scene {
  flex: none;
  width: min(960px,100%);
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  position: relative;
  transform: none;
  perspective: none;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto;
  isolation: isolate;
  gap: 10px;
  overflow: visible;
}

#view-home .fh-viewport {
  box-sizing: border-box;
  width: 100%;
  height: var(--fh-stage-height, clamp(230px,42svh,450px));
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  border: 0;
}

#view-home .fh-render {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  transform: none !important;
  animation: none !important;
  perspective: none;
  will-change: auto;
}

#view-home #miniature.fh-poster {
  box-sizing: border-box;
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: 50% 50%;
  margin: 0 !important;
  padding: 8px 10px;
  border: 0;
  transform: none !important;
  filter: none;
  z-index: 0;
}

#view-home #home3dCanvas {
  box-sizing: border-box;
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border: 0;
  padding: 0;
  outline-offset: -4px;
  z-index: 1;
}

#view-home .webgl-ready .fh-poster {
  opacity: 0;
  pointer-events: none;
}

#view-home .webgl-fallback #home3dCanvas {
  display: none;
}

#view-home .fh-viewbar {
  box-sizing: border-box;
  position: relative;
  width: min(680px,100%);
  max-width: 100%;
  justify-self: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 40px;
  padding: 0 4px;
  margin: 0;
}

#view-home .fh-status {
  position: static;
  display: block;
  flex: 1;
  width: auto;
  min-width: 0;
  max-width: 270px;
  font-size: 10px;
  line-height: 1.6;
  color: #c2d1bc;
  letter-spacing: .2px;
  padding: 0;
  margin: 0;
  overflow-wrap: anywhere;
  pointer-events: none;
}

#view-home .fh-tools {
  display: flex;
  flex: 0 0 auto;
  position: static;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  inset: auto;
  width: auto;
  transform: none;
}

#view-home .fh-tools .scene-tool {
  width: 38px;
  height: 38px;
  flex: none;
}

#view-home .webgl-fallback .fh-tools {
  display: none;
}

#view-home .webgl-fallback .fh-viewbar {
  justify-content: center;
  min-height: 22px;
}

#view-home .webgl-fallback .fh-status {
  max-width: none;
  text-align: center;
  flex: none;
}

#view-home .fh-actions {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#view-home .fh-tray {
  box-sizing: border-box;
  position: relative;
  inset: auto;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: auto;
  max-width: min(560px,100%);
  min-width: 0;
  margin: 0;
  padding: 12px 13px 12px 24px;
  transform: none !important;
  animation: none !important;
  border-radius: 25px;
  text-align: left;
  z-index: auto;
}

#view-home .fh-tray-copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: #cbd8c6;
}

#view-home .fh-tray-copy strong {
  display: block;
  color: #fbf7ee;
  font-weight: 400;
  font-size: 13px;
}

#view-home #startButton {
  position: relative;
  inset: auto;
  flex: none;
  min-width: 180px;
  max-width: 100%;
  margin: 0;
}

#view-home .fh-fine {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  min-height: 16px;
  font-size: 10px;
  line-height: 1.7;
  color: #bdcdb6;
  letter-spacing: .3px;
}

#view-home .fh-fine .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

#view-home .fh-footer {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #a6baa5;
}

#view-home .fh-scene.expanded {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 20px !important;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  gap: 18px;
  z-index: 1000;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 42%,#3a5a46,#294d40 65%,#203f35);
}

#view-home .fh-scene.expanded .fh-viewport {
  height: 100%;
  min-height: 0;
}

#view-home .fh-scene.expanded .fh-viewbar {
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom,0px);
}

#view-home .fh-scene.expanded .fh-tools .scene-tool {
  width: 44px;
  height: 44px;
}

#view-home .fh-scene.expanded .fh-status {
  max-width: none;
}

@media (max-width:760px) {
  #view-home .fh-home {
    padding: 14px 22px 26px;
    gap: 18px;
  }
  #view-home .fh-title {
    font-size: 38px;
    margin-bottom: 11px;
  }
  #view-home .fh-subtitle {
    font-size: 11px;
  }
  #view-home .fh-tray {
    width: min(560px,100%);
    padding: 11px;
    gap: 0;
  }
  #view-home .fh-tray-copy {
    display: none;
  }
  #view-home #startButton {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 55px;
    justify-content: space-between;
    padding: 0 23px;
    border-radius: 18px;
    font-size: 13px;
  }
  #view-home .fh-fine {
    font-size: 9px;
    gap: 10px;
  }
  #view-home .fh-footer {
    display: none;
  }
  #view-home .fh-status {
    font-size: 9px;
    line-height: 1.6;
  }
  #view-home .fh-viewbar {
    gap: 10px;
    padding: 0 2px;
  }
}

@media (max-width:420px) {
  #view-home .fh-home {
    padding-left: 18px;
    padding-right: 18px;
  }
  #view-home .fh-title {
    font-size: 34px;
  }
  #view-home .fh-tools {
    gap: 5px;
  }
  #view-home .fh-tools .scene-tool {
    width: 36px;
    height: 36px;
  }
  #view-home .fh-tools .scene-tool svg {
    width: 14px;
    height: 14px;
  }
  #view-home .fh-status {
    font-size: 9px;
    max-width: 150px;
  }
}

@media (max-height:680px) {
  #view-home .fh-home {
    padding-top: 6px;
    padding-bottom: 18px;
    gap: 12px;
  }
  #view-home .fh-title {
    font-size: 32px;
    margin-bottom: 8px;
  }
  #view-home .fh-subtitle {
    font-size: 11px;
    line-height: 1.7;
  }
  #view-home .fh-actions {
    gap: 12px;
  }
  #view-home .fh-tray {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  #view-home #startButton {
    min-height: 50px;
  }
  #view-home .fh-footer {
    display: none;
  }
}

@media (max-width:350px) {
  #view-home .fh-home {
    padding-left: 16px;
    padding-right: 16px;
  }
  #view-home .fh-title {
    font-size: 30px;
  }
  #view-home .fh-tools {
    gap: 4px;
  }
  #view-home .fh-tools .scene-tool {
    width: 34px;
    height: 34px;
  }
  #view-home .fh-status {
    max-width: 120px;
    font-size: 8px;
  }
  #view-home .fh-tray {
    padding: 9px;
  }
}

@media (prefers-reduced-motion:reduce) {
  #view-home .fh-render,#view-home .fh-poster {
    transition: none !important;
    animation: none !important;
  }
}
